創建新環境用戶的時候 注意回收 unlimited tablespace權限(測試環境和生產環境的時候 用戶的權限注意)

爲了方便後期的維護,便於刪除用戶 或者 drop tablespace,建議在創建用戶的時候:
要給每個用戶 收回unlimited tablespace權限
給每個用戶設置 qutoa on tablespace權限

同時,好多單位都有從測試環境 導數據到生產環境的需求,建議創建測試環境的用戶的時候,也採納該策略。
操作如下:

首先創建10個表空間
create tablespace AGENT_DP datafile '+DATA' size 10G;
create tablespace PLATFORM_DP datafile '+DATA' size 10G;




創建用戶
create user platuser identified by "platformdd" default tablespace AGENT_DP;
grant connect,resource to platuser;
revoke unlimited tablespace from platuser;   -------回收 unlimited tablespace權限 
alter user platuser quota unlimited on AGENT_DP; -----賦予本地表空間 quota unlimited 


create user repuser identified by "reportdd" default tablespace PLATFORM_DP;
grant connect,resource to repuser;
revoke unlimited tablespace from repuser;-------回收 unlimited tablespace權限 

alter user repuser quota unlimited on PLATFORM_DP;-----賦予本地表空間 quota unlimited 


注意:

在使用impdp按照schema方式向已經存在的用戶中灌入數據之後,也需要對對應用戶進行回收 unlimited權限。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章