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


第一次接觸到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 ;

如上~

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM