国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

如何創建DBA ROLE

2024-07-21 02:39:33
字體:
來源:轉載
供稿:網友

本人一次碰到有人將數據庫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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 辽中县| 龙山县| 天祝| 海盐县| 南宁市| 岳池县| 阳信县| 古田县| 安顺市| 霍山县| 湘阴县| 邹平县| 英吉沙县| 淮南市| 阿巴嘎旗| 栾城县| 盐池县| 鱼台县| 上饶市| 乌恰县| 宁河县| 松江区| 馆陶县| 秦皇岛市| 静宁县| 日照市| 莱西市| 沧州市| 喀喇| 兴化市| 蓬莱市| 鄂伦春自治旗| 德令哈市| 阿鲁科尔沁旗| 九江县| 射洪县| 深泽县| 辉南县| 鹰潭市| 安吉县| 成安县|