要給每個用戶 收回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權限。