Oracle EXPDP導出數據


Oracle expdp導出表數據(帶條件):

expdp student/123456@orcl dumpfile=student_1.dmp logfile=student_1.log tables= stuinfo directory=dir 
query="'where sex=1'"

  

 


query:指定要添加的條件,把表中的數據進行過濾導出

Oracle expdp導出表空間:

expdp student/123456@orcl dumpfile=student_tablespace.dmp logfile=student_tablespace.log 
tablespaces=(student)  directory=dir

  

 


tablespaces:指定要導出的表空間的名字。

Oracle expdp導出用戶:

expdp student/123456@orcl dumpfile=student_user.dmp logfile=student_user.log 
owner=(student)  directory=dir

  

 


owner:指定要導出的用戶,前提條件是具有該用戶的操作權限

Oracle expdp導出整個庫:

expdp student/123456@orcl dumpfile=full.dmp logfile=full.log 
full=y  directory=dir

  

full=y指的是導出整個數據庫,前提是該用戶具有管理員權限。

 

dir為系統默認缺省值:DATA_PUMP_DIR


免責聲明!

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



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