【知识分享】同一台服务器,用 expdp导出 expdp ts/ts schemas=ts dumpfile=expdp.dmp logfile=ts.log DIRECTORY=tsdmp; ,然后在用impdp导入,为啥有几个视图没有导入进去。。

0
数据库版本:11.2.0.3
导出命令:expdp ts/ts schemas=ts dumpfile=expdp.dmp logfile=ts.log DIRECTORY=tsdmp; 
导入命令:impdp yl/yl DIRECTORY=DPDATA1 DUMPFILE=expdp.dmp  REMAP_SCHEMA=ts:yl;
服务器:Centos6.3
 
已邀请:
0

梁勇 - 天道酬勤、上善若水。爱好商业智能 2015-07-21 回答

导入的时候错误提示:
ORA-39083: Object type view failed to create with error:
ORA-00923: FROM keyword not found where expected
ORA-00905: missing keyword
8.jpg


 
原因分析:
这是11.2.0的Bug,一般建议用11.2.0.4版本的数据库,bug会比较少
10.jpg

 
解决方案:
在导入前
connect / as sysdba
alter system set events '31156 trace name context forever, level 0x400';
 
然后impdp导入。
 
结束后,关闭events
connect / as sysdba
alter system set events '31156 trace name context off'; 

11.jpg

 

要回复问题请先登录注册