命令行DMP文件导入导出
需求:
- 导出数据库内个别表的数据(非全部表)
- 这些表的数据也不要全部的(添加筛选条件)
语法:
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'”