用Oracle用戶進入數(shù)據(jù)庫
sqlplus /nolog
conn / as sysdba
1 建立用戶
Create User orcldba Identified by zcs001;
2 創(chuàng)建角色
-
Create role orclrole;
3 授權(quán)給角色
grant create session to orclrole;
grant select on v_$sysstat to orclrole;
grant select on v_$system_event to orclrole;
grant select on v_$rowcache to orclrole;
grant select on v_$librarycache to orclrole;
grant select on V_$INSTANCE to orclrole;
grant select on V_$STATNAME to orclrole;
grant select on V_$SESSION to orclrole;
grant select on v_$process to orclrole;
grant select on V_$SESSTAT to orclrole;
grant select on dba_data_files to orclrole;
grant select on dba_free_space to orclrole;
4 授予角色給用戶
Grant orclrole to orcldba; 本文出自:億恩科技【1tcdy.com】
服務(wù)器租用/服務(wù)器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
|