Oracle創建表空間用戶

– 創建表空間
create tablespace portal datafile ‘&1\portal.dbf’ size 100m autoextend on next 10m;

– 刪除表空間
drop tablespace portal including contents;

– 創建用戶
create user portal identified by portal default tablespace portal;

–賦權限
grant dba to portal;
grant all on dual to portal with grant option;
grant create any table to portal;

– 導入dmp文件
imp portal/[email protected]/agent file=d:\portal.dmp log=d:\portal170704.log fromuser=portal touser=portal

– 導出dmp文件
exp portal/[email protected]/agent file=d:\portal.dmp log=d:\portal170704.log owner=portal

– 修改用戶密碼
alter user portal identified by Gzgs377;

在數據導入完成後,使用每個用戶,將該用戶下的對象全部編譯。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章