oracle 覆盖导入数据(转)

覆盖的话,增加一个参数ignore=y就可以

D:\Documents and Settings\liusn> sqlplus /nolog

SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 10月 31 17:52:27 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

idle> conn demo/demo
已连接。
idle> create table testimp (id number);

表已创建。

idle> insert into testimp values(1);

已创建 1 行。

idle> insert into testimp values(2);

已创建 1 行。

idle> commit ;

提交完成。

idle> exit
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开

D:\Documents and Settings\liusn> cd\

D:\> exp demo/demo@xiaoxiao file = 'd:\20061031.dmp ' tables = (testimp)

Export: Release 9.2.0.1.0 - Production on 星期二 10月 31 17:54:03 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.


连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集

即将导出指定的表通过常规路径 ...
. . 正在导出表 TESTIMP 2 行被导出
在没有警告的情况下成功终止导出。

D:\> sqlplus /nolog

SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 10月 31 17:54:13 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

idle> conn demo/demo
已连接。
idle> truncate table testimp
2 /

表已截掉。

idle> insert into testimp values(3);

已创建 1 行。

idle> insert into testimp values(4);

已创建 1 行。

idle> commit ;

提交完成。

idle> exit
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开

D:\> imp demo/demo@xiaoxiao file = d:\20061031.dmp fromuser=demo touser=demo tabl
es=(testimp) ignore=y

Import: Release 9.2.0.1.0 - Production on 星期二 10月 31 17:55:28 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.


连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

经由常规路径导出由EXPORT:V09.02.00创建的文件
已经完成ZHS16GBK字符集和AL16UTF16 NCHAR 字符集中的导入
. . 正在导入表 "TESTIMP " 2行被导入
成功终止导入,但出现警告。

D:\> sqlplus /nolog

SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 10月 31 17:55:33 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

idle> conn demo/demo
已连接。
idle> select * from testimp;

ID
----------
3
4
1
2
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值