1. 程式人生 > >ORACLE12C PDB創建默認表空間和用戶語句

ORACLE12C PDB創建默認表空間和用戶語句

oracle12c data upd 客戶 del mit apc 默認 exec

第一次接觸到12C CDB和PDB數據庫,且客戶提供的是ORACLE一體機,只有訪問權,費勁周折,今記錄12C創建默認路徑表空間語句和用戶

--創建默認表空間:

create tablespace tablesapce_name datafile size 500M autoextend on next 100M;

--創建用戶空間:

create user username identified by password
default tablespace tablesapce_name ;

--用戶授權:

grant connect,resource to username ;
grant create any sequence to username ;
grant create any table to username ;
grant delete any table to username ;
grant insert any table to username ;
grant select any table to username ;
grant unlimited tablespace to username ;
grant execute any procedure to username ;
grant update any table to username ;
grant create any view to username ;

如上~

ORACLE12C PDB創建默認表空間和用戶語句