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