-- Create the user
create user TAITOU
default tablespace USERS
temporary tablespace TEMP
profile DEFAULT;
-- Grant/Revoke object privileges
--grant execute on TAITOU2.P_TW to TAITOU;--執行另一個用戶的P_TW包
grant read, write on directory SYS.DUMP_DIR to TAITOU;
-- Grant/Revoke role privileges
grant connect to TAITOU; --連接
grant resource to TAITOU; --資源
-- Grant/Revoke system privileges
grant alter system to TAITOU;
grant alter tablespace to TAITOU;
grant create any sequence to TAITOU;--序列
grant create any table to TAITOU; --表
grant create any view to TAITOU; --視圖
grant create database link to TAITOU;--dblink
grant create public database link to TAITOU;--公共dblink
grant create synonym to TAITOU; --同義詞
grant delete any table to TAITOU;
grant drop public database link to TAITOU;--刪除dblink
grant execute any procedure to TAITOU;---執行存儲過程
grant insert any table to TAITOU;------增刪改查
grant select any dictionary to TAITOU;--查目錄
grant select any table to TAITOU;
grant unlimited tablespace to TAITOU; --無限制表空間
grant update any table to TAITOU;