I want to have a connections which stays activated:<br><br>cn=cx_Oracle.connect(&quot;dataset&quot;, &quot;lowprivuser&quot;, &quot;password&quot;)<br><br><br>and change the user of that connection.<br><br>Reason: I want to have a web application, which connects ONE TIME (per process/thread) to Oracle, and switches the privileges on the fly.
<br><br>I looked into &quot;SET ROLE &lt;ACTIVEUSERax&gt;&quot;; but as much as I understand thats pureley additional, so:<br><br>cn=cx_Oracle.connect(&quot;dataset&quot;, &quot;lowprivuser&quot;, &quot;password&quot;)<br>
# gives the privs of &quot;lowprivuser&quot;<br>cs=cn.cursor()<br><br>cs.execute (&quot;SET ROLE USERFISCH identified by secret2006&quot;)<br><br>then gives the privs of &quot;lowprivuser&quot; plus the privs of&nbsp; USERFISCH,
<br><br>and an additional<br><br>cs.execute (&quot;SET ROLE USERFOO identified by othersecret&quot;)<br><br>adds the privs of &quot;USERFOO&quot;, WITHOUT loosing those of USERFISCH.<br><br><br>Is there any way to do this?
<br><br>Best wishes,<br><br>Harald<br><br><br><br><br><br clear="all"><br>-- <br>GHUM Harald Massa<br>persuadere et programmare<br>Harald Armin Massa<br>Reinsburgstraße 202b<br>70197 Stuttgart<br>0173/9409607<br>-<br>Let's set so double the killer delete select all.