Proxy User and Connect Through
Since Oracle 9i Release 2 it has been possible to create proxy users, allowing you to access a schema via a different username/password combination. This is done by using the GRANT CONNECT THROUGH clause on the destination user. Assuming we have a user called SCOTT and we want to create a proxy user to allow someone to connect to SCOTT without knowing the password, we could do the following.CONN / AS SYSDBA CREATE USER test_user IDENTIFIED BY test_user; ALTER USER scott GRANT CONNECT THROUGH test_user;
We can now connect to the SCOTT user, using the credentials of the proxy user.
SQL> CONN test_user[scott]/test_user SQL> SHOW USER USER is "SCOTT" SQL>
Proxy users can be identified using the PROXY_USERS view.
SELECT * FROM proxy_users; PROXY CLIENT AUT FLAGS ------------------------------ ------------------------------ --- ----------------------------------- TEST_USER SCOTT NO PROXY MAY ACTIVATE ALL CLIENT ROLES SQL>
The proxy authentication can be revoked using the following command.
ALTER USER scott REVOKE CONNECT THROUGH test_user;
Using this method the administrator can now set up their privileged account have connect through access to any other user, allowing them to perform tasks as that user, without having to alter the user's password.
For more information see:
Creating Proxy User Accounts and Authorizing Users to Connect Through Them
Derrived from :http://oracle-base.com/articles/misc/proxy-users-and-connect-through.php
Thank you Tim.
Comments
Post a Comment