Oracle新建Schema


1.首先,創建(新)用戶:
create user username identified by password;
username:新用戶名的用戶名
password: 新用戶的密碼
也可以不創建新用戶,而仍然用以前的用戶,如:繼續利用scott用戶

2.創建表空間:
create tablespace tablespacename datafile 'd:\data.dbf' size xxxm;
tablespacename:表空間的名字
d:\data.dbf':表空間的存儲位置
xxx表空間的大小,m單位為兆(M)
3.將空間分配給用戶:
alert user username default tablespace tablespacename;
將名字為tablespacename的表空間分配給username

4.給用戶授權:
grant create session,create table,unlimited tablespace to username;

5.然后再以樓主自己創建的用戶登錄,登錄之后創建表即可。
conn username/password;


免責聲明!

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



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