如何创建DBA ROLE

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

本人一次碰到有人将数据库DBA ROLE删除掉了,惊奇之余 ,只好想办法恢复,经查找资料,终于完全恢复了DBA ROLE,现将恢复过程与大家共享:

用 sys/xxxx as sysdba登录sqlplus,然后执行下列语句:

SQL> create role dba;

SQL> grant all privileges to dba with admin option;

SQL> grant select_catalog_role to dba with admin option;

SQL> grant execute_catalog_role to dba with admin option;

SQL> grant delete_catalog_role to dba with admin option;

EXPlanation:

============

The DBA role is created at database creation time by the "sql.bsq" script. (The "sql.bsq" script is typically found in the $Oracle_HOME/dbs or the

$ORACLE_HOME/rdbms/admin Directory.)

Additional grants are made to dba through other scripts in the admin directory.

For example, exp_full_database and imp_full_database in catexp.sql.

The above commands are excerpts from the "sql.bsq" script

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航