国产探花免费观看_亚洲丰满少妇自慰呻吟_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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 洱源县| 兴和县| 绵阳市| 白水县| 米脂县| 洪湖市| 沙坪坝区| 杭锦旗| 潜江市| 萍乡市| 南丹县| 柘城县| 永和县| 容城县| 封丘县| 从化市| 韩城市| 阳高县| 隆安县| 亚东县| 凉城县| 图们市| 佛学| 白城市| 马边| 日喀则市| 攀枝花市| 盐池县| 南溪县| 汝州市| 馆陶县| 高青县| 夏河县| 沂水县| 科尔| 湾仔区| 崇明县| 枣庄市| 乌拉特前旗| 新源县| 封开县|