〖Environment(环境)〗
OS:LINUX AS3
DB:ORACLE 9I
〖Symptom(现象) 〗
执行导入时,导入被挂起(HANG),具体过程如下。
[oracle@primarydb imp]$ imp zzp/zzp parfile='/wxxr_data/imp/ifile'
Import: Release 9.2.0.4.0 - Production on Tue Apr 4 11:51:31 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
Export file created by EXPORT:V09.02.00 via conventional path
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. . importing table "A"
没有任何提示,导入一直停在这里
imp的参数文件/wxxr_data/imp/ifile的内容如下:
FILE=/wxxr_data/imp/expdat.dmp
GRANTS=y
ROWS=y
TABLES=( processing_logs)
buffer=100000000
commit=y
feedback=10000
ignore=y
log=/wxxr_data/imp/log
〖Cause(原理) 〗
经过仔细察看,发现原来用户zzp下面已经存在一个视图,该视图的名字也叫processing_logs,这个视图的名字与要导入的表的名字相同。
〖Action(方法) 〗
在执行导入前,删除或则重命名视图processing_logs。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13804621/viewspace-351801/ ,如需转载,请注明出处,否则将追究法律责任。