爱心技术专栏专题

如何创建DBAROLE

摘录:Oracle教程 来源:Oracle教程 加入时间:2006年08月26日
摘要:
如何创建DBAROLE
如何创建DBA ROLE

本人一次遇到有人将数据库DBA ROLE删除掉了,惊讶之余  ,只好想办法恢复,经查找资料,终于完全恢复了DBA …

转载:转载请保留本信息,本文来自
http://www.51dibs.com
/html/2006/article/info23/a_ca1a4339dbe665df.htm

如何创建DBAROLE

站点:爱心种子小博士 关键字:如何创建DBAROLE

   
如何创建DBA ROLE

本人一次遇到有人将数据库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

 xichenx 回复于:2003-08-25 10:10:10
还有一个:

 grant all on map_object to dba


   可以用 grep dba sql.bsq 查看

 airlily 回复于:2003-08-25 10:22:12
[quote:f5ee4df477="xichenx"]还有一个:

 grant all on map_object to dba


   可以用 grep dba sql.bsq 查看[/quote:f5ee4df477]     

这个权限应该已经包含在上面的命令中了吧?

 txfy 回复于:2003-08-25 13:00:11
好笑,还有人干这种无聊的事呀!airlily扁他!


客户服务中心信箱:info@51dibs.com 51dibs@gmail.com 网站地图

粤ICP备05020177号 声明

合作伙伴:深圳赫柏文化发展有限公司 健康百宝箱 东北人创业家园