首页 > Linux操作系统 > Linux操作系统 > IMP数据到另外的表空间
近期有个需求要将EXP出来的数据IMP到另外一个表空间,经过在网上查询相关的资料(见附录),处理结果如下:
1、先将建表脚本导出来,然后修改其表空间信息。
imp username/password@sid file=file.dmp log=file.log ignore=y indexfile=file.sql
2、使用此建表脚本在数据库中建表
3、将数据导入数据库中
imp username/password@sid file=file.dmp log=file.log ignore=y tables=(tab1,tab2)
关键点:参数ignore=y,当数据库中已经建有需导入的表时,会跳过建表失败的过程,开始将数据追加装入原有表中
参考资料:
http://kgfh.spaces.live.com/blog/cns!43d746f0caa3afd7!701.entry
http://blog.vsharing.com/songtao1971/A639288.html
http://topbright.spaces.live.com/blog/cns!3c05b678e10c41a0!773.entry
http://bbs.chinaunix.net/thread-530864-1-1.html
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/538809/viewspace-364814/ ,如需转载,请注明出处,否则将追究法律责任。