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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了