数据库
首页 > 数据库> > ORA: ORACLE12C导入11G IMP备份文件

ORA: ORACLE12C导入11G IMP备份文件

作者:互联网

ORA: ORACLE12C导入11G IMP备份文件

前提:用户传一个ORACLE11G (版本11.2.0.1.0) 的IMP备份文件,需要分析效率。

将其还原到 WIN2012+ ORACLE 12C环境。

 

还原过程如下:

D:\app\product\12.1.0\dbhome_1\BIN>impDP 'sys/dba密码 as sysdba' directory=DA
TA_DUMP_DIR schemas=system dumpfile=EVCTMSdb.dmp

Import: Release 12.1.0.1.0 - Production on Sat Aug 20 06:35:39 2022

Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.

Connected to: Oracle Database 12c Release 12.1.0.1.0 - 64bit Production
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-39087: directory name DATA_DUMP_DIR is invalid

原因:
原值: “D:\app/admin/orcl/dpdump/” 表述不正确
解决方式:
重建立有效的备份路径
create OR REPLACE directory DATA_PUMP_DIR as 'D:\app\admin\orcl\dpdump';


D:\app\product\12.1.0\dbhome_1\BIN>


D:\app\product\12.1.0\dbhome_1\BIN>impDP 'sys/dba密码 as sysdba' directory=BA
CKUP_DIR TABLESPACES=CTMS dumpfile=EVCTMSdb.dmp

Import: Release 12.1.0.1.0 - Production on Sat Aug 20 06:47:05 2022

Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.

Connected to: Oracle Database 12c Release 12.1.0.1.0 - 64bit Production
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-39143: dump file "D:\app\admin\orcl\dpdump\EVCTMSdb.dmp" may be an original
export dump file


D:\app\admin\orcl\dpdump>imp system/dba密码 file=EVCTMSdb.dmp grants=no full=y

Import: Release 12.1.0.1.0 - Production on Sat Aug 20 07:08:37 2022

Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.


Connected to: Oracle Database 12c Release 12.1.0.1.0 - 64bit Production

Export file created by EXPORT:V11.02.00 via conventional path

Warning: the objects were exported by CTMS, not by you

import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
export client uses WE8ISO8859P1 character set (possible charset conversion)
. importing CTMS's objects into SYSTEM
. . importing table "ACTIVITY" 106 rows imported
. . importing table "ALTER_INFO" 0 rows imported
. . importing table "ALTER_SETTING" 0 rows imported
. . importing table "ARR_RULE_SET" 0 rows imported
. . importing table "ASSIGN_CLASS" 0 rows imported
. . importing table "AUTOGATE_MSG" 966579 rows imported
. . importing table "BACKUP_DOC_INFO" 0 rows imported
. . importing table "BERTH_YARD_LOC" 0 rows imported
. . importing table "BKG_PKE_DTL" 52497 rows imported
. . importing table "BKG_VAN_DTL" 0 rows imported
. . importing table "BL_MATCH" 37 rows imported
. . importing table "BOARDING_INFO" 0 rows imported

 

 


Column 163
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "SYSTEM"."BOOKING_HIST"."PLACE" (actual: 2
2, maximum: 20)
Column 1 PE1905010062
Column 2 1

 

标签:11G,rows,imported,app,备份文件,IMP,12.1,importing,table
来源: https://www.cnblogs.com/samrv/p/16607078.html