SQL> create user toto identified by toto ;
Utilisateur crÚÚ.
SQL> create role toto_r identified by toto_r ;
R¶le crÚÚ.
SQL> grant toto_r to toto ;
Autorisation de privilÞges (GRANT) acceptÚe.
SQL> grant create session to toto_r ;
Autorisation de privilÞges (GRANT) acceptÚe.
SQL> spool off ;
SQL> quit ;
DÚconnectÚ de Oracle Database 11g Release 11.2.0.1.0 - Production
C:\Users\duchossoir>sqlplus toto/toto@appt11g
SQL*Plus: Release 11.2.0.1.0 Production on Mar. Oct. 11 10:41:39 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-01045: l'utilisateur TOTO n'a pas le privilÞge CREATE SESSION ; connexion
refusÚe
C:\Users\duchossoir>sqlplus system/****@appt11g
SQL*Plus: Release 11.2.0.1.0 Production on Mar. Oct. 11 10:41:56 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ConnectÚ Ó :
Oracle Database 11g Release 11.2.0.1.0 - Production
SQL> drop role toto_r ;
R¶le supprimÚ.
SQL> drop user toto ;
Utilisateur supprimÚ.
SQL> create user toto identified by toto ;
Utilisateur crÚÚ.
SQL> create role toto_r ;
R¶le crÚÚ.
SQL> grant toto_r to toto ;
Autorisation de privilÞges (GRANT) acceptÚe.
SQL> grant create session to toto_r ;
Autorisation de privilÞges (GRANT) acceptÚe.
SQL> quit ;
DÚconnectÚ de Oracle Database 11g Release 11.2.0.1.0 - Production
C:\Users\duchossoir>sqlplus toto/toto@appt11g
SQL*Plus: Release 11.2.0.1.0 Production on Mar. Oct. 11 10:45:03 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ConnectÚ Ó :
Oracle Database 11g Release 11.2.0.1.0 - Production
SQL>
Partager