用Oracle用户进入数据库
sqlplus /nolog
conn / as sysdba
1 建立用户
Create User orcldba Identified by zcs001;
2 创建角色
-
Create role orclrole;
3 授权给角色
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; 本文出自:亿恩科技【www.enkj.com】
服务器租用/服务器托管中国五强!虚拟主机域名注册顶级提供商!15年品质保障!--亿恩科技[ENKJ.COM]
|