|
|
|
|
|
|
|
Re: How to impersonate while switching db schema [message #601141 is a reply to message #601136] |
Sun, 17 November 2013 03:43 |
John Watson
Messages: 8931 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
This,alter session set current_schema=<schema-name> does not change the identity of your session: your security context is unchanged. All it does is change the context in which names are resolved. You need to grant your schema1 insert/update/delete privileges on the tables in schema2, then your code should work.
Using proxy authentication through a pooled connection should work, but I think (I am of course open to correction on this) you would need to use the thick JDBC client, and code appropriate OCI calls, which is probably a lot mote work.
|
|
|