Oracle数据库数据导入导出

oracle版本:oracle 10g

导出:
content=ALL
content=METADATA_ONLY
content=DATA_ONLY

expdp username1/password1@sidname1 TABLES=HOTELS directory=DMPDIR dumpfile=hoteldbs_20180427_ALL.dmp logfile=hoteldbs_20180427.dmp_ALL.log content=ALL

导入:
table_exists_action=skip:默认操作
table_exists_action=replace:先drop表,然后创建表,最后插入数据
table_exists_action=append:在原来数据的基础上增加数据
table_exists_action=truncate:先truncate,然后再插入数据

impdp username2/password2@sidname2 directory=DMPDIR dumpfile=hoteldbs_20180427_ALL.dmp logfile=hoteldbs_20180427.dmp_ALL_import.log table_exists_action=replace

如果导出的tablespace名字不一致,需要用到 REMAP_TABLESPACE 来做映射转换
impdp username2/password2@sidname2 directory=DMPDIR REMAP_TABLESPACE=DATA:CRM dumpfile=hoteldbs_20180427.dmp logfile=hoteldbs_20180427.dmp.log table_exists_action=replace

上一篇 property
下一篇 最新Python全栈开发学习笔记

探索站点内容

搜索文章、标签、分类

站点性能

运行正常
实时心跳0 ms
页面加载
0
SQL 查询
0
服务端响应
0 ms
峰值内存
0 MB