Proxy User

I proxy user sono un filtro per un utente e lo schema.
Colleghiamoci con l'utenza SYS e creiamo due utenze.

create user batman identified by batman;
create user robin identified by robin;

S i n t a s s i
ALTER USER  hr  GRANT CONNECT THROUGH  batman, robin;

Ora posso collegarmi ad hr con le user batman e robin.

Collegarsi ad Sql Plus da riga di comando:
[$ORACLE_HOME/bin] sqlplus /nolog

SQL> conn batman[hr]/batman;
SQL> conn robin[hr]/robin;
SQL> show user;
User is HR.

Quindi batman e robin vedono tutto lo schema hr.

 SQL> select sys_context ('userenv','proxy_user') from dual;
 ---------
 Robin

E' possibile bloccare la connessione come hr/hr ma si può accedere allo stesso schema hr con utenze batman e robin.

Post popolari in questo blog

ORA-12154: TNS: il listener non è attualmente a conoscenza del servizio richiesto nel descrittore di connessione

Create e Drop Pluggable Database