最近在用imp导入命令将某个dmp文件导入数据库后,发现原来表中的数据,并没有被导入的新的数据覆盖,好像还是和以前相同,请问各位大侠,如何才能解决,为什么会这样?
解决方案 »
- 求oracle级联删除的办法
- oracle 一张两条数据合并为一条数据
- 浏览器中可以正常访问dbconsole,可是服务器端无法查看dbconsole的运行状态
- 触发器提示 触发器/函数不能读
- 请教一个SQL。。。
- 高手指点OMS登录问题!有贴图!
- SQL如何写:如何选取时间最前面且有行数限制;
- 菜鸟极问题 数据库中方案是什么意思 干吗用的 他与例程 SID都是什么关系
- oracle表的字段不能修改,在线加分
- 关于insert into select from的使用
- oracle 10g 无法安装?? 求救!!
- 有关oracle的数据库连接打database link的问题,请指教THANKS?
若从本地文件恢复,使用如下命令:
imp icdmain/icd fromuser=icdmain touser=icdmain rows=y indexes=n
commit=y buffer=65536 feedback=100000 ignore=n volsize=0
file=exp_icdmain_cs
d_yyyymmdd.dmp
log=imp_icdmain_csd_yyyymmdd.log
tables=commoninformation,serviceinfo 这个是我刚查到的,有没有高手解释一下该怎么用?
已连接。
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 2006Copyright (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 /nologSQL*Plus: Release 9.2.0.1.0 - Production on 星期二 10月 31 17:54:13 2006Copyright (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=yImport: Release 9.2.0.1.0 - Production on 星期二 10月 31 17:55:28 2006Copyright (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 /nologSQL*Plus: Release 9.2.0.1.0 - Production on 星期二 10月 31 17:55:33 2006Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.idle>conn demo/demo
已连接。
idle>select * from testimp; ID
----------
3
4
1
2