命令行DMP文件导入导出

需求:

  1. 导出数据库内个别表的数据(非全部表)
  2. 这些表的数据也不要全部的(添加筛选条件)

语法:

1 exp username/password@ip:port/SID file=d:\example.dmp full=y
2 
3 imp username/password@ip:port/SID file=d:\example.dmp full=y

为满足需求1,

exp username/password@ip:port/SID file=d:\example.dmp full=y tables=(a,b,c...[table_name])

为满足需求2,

exp “username/password@ip:port/SID file=d:\example.dmp full=y tables=(a,b,c...[table_name]) QUERY='WHERE ROWNUM<=100000'

 

posted @ 2022-06-01 16:54  O_din  阅读(264)  评论(0编辑  收藏  举报