oracle imp導入庫到指定表空間


1.創建表空間
create tablespace  example_tablespace datafile 'e:\****.dbf' size 10m  reuse  autoextend on  next 1m maxsize unlimited;
 
2.創建用戶,指定表空間,臨時表空間
create user  username identified by  password default tablespace  usertablespace temporary tablespace  temp;
 
3.IMP導入數據庫文件注意
grant dba to  username; DBA權限是必需的
一般默認導入的表空間是導出時候的表空間
 
revoke unlimited tablespace from  username;
 
alter user  username quota 0 on  users; 表空間限額設置
 
alter user  username quota unlimited on  user_define_tablespace;
 
imp  username/ password file='e:\***.dbf' tablespaces= tbs fromuser= sourcename touser= targetname log='e:\a.txt'
 


免責聲明!

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



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