日期:2014-05-17  浏览次数:20793 次

一个oracle imp 导入出现如下的错误 超高分求解 ,请高手赐教!谢!!!
Microsoft Windows XP [版本 5.1.2600](C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>imp AAA/aaa@TEST fromuser=AAA touser=AAA file=I:\111\AAA4.dmp commit=y feedback=10000 buffer=3800000 ignore=y rows=y in
dexes=n constraints=n tables=(a_emp:DA2012_1)

 
Import: Release 10.2.0.1.0 - Production on 星期 09月 11 07:03:03 2012
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

 
经由常规路径由 EXPORT:V09.02.00 创建的导出文件
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
. 正在将 AAA 的对象导入到 AAA
IMP-00017: 由于 ORACLE 错误 942, 以下语句失败:
 "CREATE TRIGGER "AAA".tri_a_emp_outdate after update of out_date on "
 "a_emp  for each row"
 "begin"
 "  delete from a_stat where emp_no=:new.emp_no;"
 "  insert into a_stat (emp_no,amount) "
 "  select t.emp_no, count(distinct d_code ) from if_list t "
 "  where t.emp_no=:new.emp_no"
 "  and t.d_code in "
 "  (select d_code from a_info where d_use in ('1','2'))"
 "  group by t.emp_no;"
 "end tri_a_emp_outdate;"
IMP-00003: 遇到 ORACLE 错误 942
ORA-00942: 表或视图不存在
IMP-00055: 警告: 在导出文件中未找到分区或子分区 "a_emp": "DA2012_1"
成功终止导入, 但出现警告。



要导入a_emp  这个表 其他trigger要求的表都已经导入了, 但是就是提示a_emp 这个表不存在 目的就想导入这个表的数据。 我手工建立了tri_a_emp_outdate 不行 建好a_emp  导入数据也不行。希望高手能帮忙解答。谢谢了。
------解决方案--------------------
源表是分区表 你建的普通表
表结构不同,找不到子分区,自然就说找不到表
------解决方案--------------------
看下错误信息:IMP-00055: 警告: 在导出文件中未找到分区或子分区 "a_emp": "DA2012_1"
确认导出文件的内容是否包含表a_emp及分区DA2012_1
------解决方案--------------------
找不到分区表 用sql语句建立分区表
------解决方案--------------------
把tables=(a_emp:DA2012_1)
改成tables=(a_emp)
直接导入整个表.