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