oracle DBA 角色重建
一哥們由於誤操作,在pl/sql developer中直接將公司測試資料庫伺服器中DBA 角色給刪除了,導致system使用者建立普通使用者的許可權丟失,只好協助其重建,通過晚上檢視資料,過程如下:
-- Create the role
create role DBA;
-- Grant/Revoke object privileges
grant execute on DBMS_DBVERIFY to DBA;
grant execute on DBMS_DEFER_QUERY to DBA;
grant execute on DBMS_DEFER_SYS to DBA;
grant execute on DBMS_FEATURE_USAGE to DBA;
grant execute on DBMS_FLASHBACK to DBA;
grant execute on DBMS_MONITOR to DBA;
grant execute on DBMS_RESUMABLE to DBA;
grant execute on DBMS_SERVER_ALERT to DBA;
grant execute on DBMS_SERVER_TRACE to DBA;
grant execute on DBMS_SERVICE to DBA;
grant execute on DBMS_STORAGE_MAP to DBA;
grant execute on DBMS_UADV_ARR to DBA;
grant execute on DBMS_UNDO_ADV to DBA;
grant execute on DBMS_WORKLOAD_REPOSITORY to DBA;
grant execute on LOAD_UNDO_STAT to DBA;
grant select, insert, update, delete, alter on MAP_OBJECT to DBA;
grant execute on OUTLN_EDIT_PKG to DBA;
grant execute on OUTLN_PKG to DBA;
grant execute on RESET_UNDO_STAT to DBA;
-- Grant/Revoke role privileges
grant delete_catalog_role to DBA with admin option;
grant execute_catalog_role to DBA with admin option;
grant exp_full_database to DBA;
grant gather_system_statistics to DBA;
grant imp_full_database to DBA;
grant java_admin to DBA;
grant java_deploy to DBA;
grant olap_dba to DBA;
grant scheduler_admin to DBA with admin option;
grant select_catalog_role to DBA with admin option;
grant wm_admin_role to DBA;
grant xdbadmin to DBA;
-- Grant/Revoke system privileges
grant administer any sql tuning set to DBA with admin option;
grant administer database trigger to DBA with admin option;
grant administer resource manager to DBA with admin option;
grant administer sql tuning set to DBA with admin option;
grant advisor to DBA with admin option;
grant alter any cluster to DBA with admin option;
grant alter any dimension to DBA with admin option;
grant alter any evaluation context to DBA with admin option;
grant alter any index to DBA with admin option;
grant alter any indextype to DBA with admin option;
grant alter any library to DBA with admin option;
grant alter any materialized view to DBA with admin option;
grant alter any outline to DBA with admin option;
grant alter any procedure to DBA with admin option;
grant alter any role to DBA with admin option;
grant alter any rule to DBA with admin option;
grant alter any rule set to DBA with admin option;
grant alter any sequence to DBA with admin option;
grant alter any sql profile to DBA with admin option;
grant alter any table to DBA with admin option;
grant alter any trigger to DBA with admin option;
grant alter any type to DBA with admin option;
grant alter database to DBA with admin option;
grant alter profile to DBA with admin option;
grant alter resource cost to DBA with admin option;
grant alter rollback segment to DBA with admin option;
grant alter session to DBA with admin option;
grant alter system to DBA with admin option;
grant alter tablespace to DBA with admin option;
grant alter user to DBA with admin option;
grant analyze any to DBA with admin option;
grant analyze any dictionary to DBA with admin option;
grant audit any to DBA with admin option;
grant audit system to DBA with admin option;
grant backup any table to DBA with admin option;
grant become user to DBA with admin option;
grant comment any table to DBA with admin option;
grant create any cluster to DBA with admin option;
grant create any context to DBA with admin option;
grant create any dimension to DBA with admin option;
grant create any directory to DBA with admin option;
grant create any evaluation context to DBA with admin option;
grant create any index to DBA with admin option;
grant create any indextype to DBA with admin option;
grant create any job to DBA with admin option;
grant create any library to DBA with admin option;
grant create any materialized view to DBA with admin option;
grant create any operator to DBA with admin option;
grant create any outline to DBA with admin option;
grant create any procedure to DBA with admin option;
grant create any rule to DBA with admin option;
grant create any rule set to DBA with admin option;
grant create any sequence to DBA with admin option;
grant create any sql profile to DBA with admin option;
grant create any synonym to DBA with admin option;
grant create any table to DBA with admin option;
grant create any trigger to DBA with admin option;
grant create any type to DBA with admin option;
grant create any view to DBA with admin option;
grant create cluster to DBA with admin option;
grant create database link to DBA with admin option;
grant create dimension to DBA with admin option;
grant create evaluation context to DBA with admin option;
grant create indextype to DBA with admin option;
grant create job to DBA with admin option;
grant create library to DBA with admin option;
grant create materialized view to DBA with admin option;
grant create operator to DBA with admin option;
grant create procedure to DBA with admin option;
grant create profile to DBA with admin option;
grant create public database link to DBA with admin option;
grant create public synonym to DBA with admin option;
grant create role to DBA with admin option;
grant create rollback segment to DBA with admin option;
grant create rule to DBA with admin option;
grant create rule set to DBA with admin option;
grant create sequence to DBA with admin option;
grant create session to DBA with admin option;
grant create synonym to DBA with admin option;
grant create table to DBA with admin option;
grant create tablespace to DBA with admin option;
grant create trigger to DBA with admin option;
grant create type to DBA with admin option;
grant create user to DBA with admin option;
grant create view to DBA with admin option;
grant debug any procedure to DBA with admin option;
grant debug connect session to DBA with admin option;
grant delete any table to DBA with admin option;
grant dequeue any queue to DBA with admin option;
grant drop any cluster to DBA with admin option;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30208428/viewspace-2123573/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle dba角色和sysdba的區別Oracle
- 1.5.2.5. DBA 角色
- 【DBA】Oracle dba角色不是萬能的,儲存過程需要顯示授權Oracle儲存過程
- oracle重建ocrOracle
- oracle重建索引(一)Oracle索引
- oracle重建索引(三)Oracle索引
- oracle重建索引(二)Oracle索引
- oracle 4--角色Oracle
- Oracle vs PostgreSQL DBA(21)- Oracle VPDOracleSQL
- DBA ORACLE連線操作Oracle
- Oracle DBA的職責Oracle
- 2022 DBA 角色轉換 挑戰 與 機遇
- Oracle vs PostgreSQL DBA(22)- Oracle VPD#2OracleSQL
- oracle DBA 巡檢專案Oracle
- ORACLE DG之備庫角色Oracle
- Oracle 11g刪除庫重建Oracle
- 《Oracle DBA手記》- 一書出版Oracle
- 【DBA】Oracle DBA安全之道(規避風險,堅守底線)Oracle
- 【TUNE_ORACLE】索引定期重建的利與弊Oracle索引
- Oracle vs PostgreSQL DBA(13)- 拆分(split)分割槽OracleSQL
- 你能充分信任Oracle DBA嗎?BNOracle
- Oracle使用者角色許可權管理Oracle
- Oracle 19C DELETE_CATALOG_ROLE角色Oracledelete
- oracle快速拿到重建控制檔案語句的方法二Oracle
- [重慶思莊每日技術分享]-重建 oracle Bootstrap IndexesOraclebootIndex
- Oracle建立使用者、角色、授權、建表Oracle
- ORACLE DBA應該掌握的9個免費工具Oracle
- 關於Oracle dba_free_space 檢視的研究Oracle
- DBA_oracle日期函式-【來自多個專案】Oracle函式
- DBA面試資源合集(含Oracle、MySQL、Redis等)面試OracleMySqlRedis
- 【DBA】Relinking Oracle Home 常見問題 (Doc ID 2048232.1)Oracle
- 【DBA】Oracle 中DBA地址的檔案號使用的是相對檔案號(RELATIVE_FNO)Oracle
- 幽默:重建模、重建和重構
- 【SQL】Oracle資料庫通過job定期重建同步表資料SQLOracle資料庫
- Oracle 19c DBA's Guide(01): Getting Started with Database AdministrationOracleGUIIDEDatabase
- 記一次Oracle分割槽表全域性索引重建的過程Oracle索引
- 重建索引索引
- 索引重建索引