ORACLE 11G数据库迁移到9I报 IMP-00003 ORA-00096 IMP-00000 推荐
2013-03-25 11:22
549 查看
今天有个朋友问我为什么11G的exp出来的文件不能导入到9I中?由于exp/imp工具的不兼容性,把高版本的数据库导到低版本时,需要使用低版本的exp/imp工具来导入导出。朋友用9i的exp去导出11G数据后再imp导入到9i中,正常导入,然而我自己在自己测试环境测试中切报错了,报错信息如下:
在11G,SHOW PARAMETER命令已经找不到plsql_compiler_flags这个参数,由另一个参数代替。
GOOGLE,BAIDU,METALINK相关的错误代码后没有找到解决方法。更改关键字plsql_compiler_flags在metalink找到解决方法,如下:
再次导出导入正常
11G中改回原来的视图定义
参考文档:
Export From 11g using EXP Utility Version 9iR2 Produces Corrupt Export Dump [ID 550740.1]
[oracle9i@rhel4 admin]$ exp scott/oracle@orcl11g file='/tmp/scott_test_exp.sql' tables='test_exp' rows=N; Export: Release 9.2.0.4.0 - Production on Fri Mar 22 06:18:38 2013 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Export done in US7ASCII character set and AL16UTF16 NCHAR character set server uses ZHS16GBK character set (possible charset conversion) Note: table data (rows) will not be exported About to export specified tables via Conventional Path ... . . exporting table TEST_EXP Export terminated successfully without warnings. [oracle9i@rhel4 admin]$ imp scott/oracle file='/tmp/scott_test_exp.dmp' tables='test_exp' Import: Release 9.2.0.4.0 - Production on Fri Mar 22 07:08:59 2013 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit 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 US7ASCII character set and AL16UTF16 NCHAR character set import server uses ZHS16GBK character set (possible charset conversion) IMP-00003: ORACLE error 96 encountered ORA-00096: invalid value for parameter plsql_compiler_flags, must be from among NON_DEBUG, DEBUG, INTERPRETED, NATIVE IMP-00000: Import terminated unsuccessfully
在11G,SHOW PARAMETER命令已经找不到plsql_compiler_flags这个参数,由另一个参数代替。
GOOGLE,BAIDU,METALINK相关的错误代码后没有找到解决方法。更改关键字plsql_compiler_flags在metalink找到解决方法,如下:
[oracle11g@rhel4 admin]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.3.0 Production on Fri Mar 22 07:27:50 2013 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> CREATE OR REPLACE VIEW exu9defpswitches ( 2 compflgs, nlslensem ) AS 3 SELECT a.value, b.value 4 FROM sys.v$parameter a, sys.v$parameter b 5 WHERE a.name = 'plsql_code_type' AND 6 b.name = 'nls_length_semantics' 7 ; View created.
再次导出导入正常
[oracle9i@rhel4 admin]$ exp scott/ORACLE@orcl11g file='/tmp/scott_test_exp.dmp' tables='test_exp'; Export: Release 9.2.0.4.0 - Production on Fri Mar 22 07:25:43 2013 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Export done in US7ASCII character set and AL16UTF16 NCHAR character set server uses ZHS16GBK character set (possible charset conversion) About to export specified tables via Conventional Path ... . . exporting table TEST_EXP 74622 rows exported Export terminated successfully without warnings. [oracle9i@rhel4 admin]$ imp scott/oracle file='/tmp/scott_test_exp.dmp' tables='test_exp' Import: Release 9.2.0.4.0 - Production on Fri Mar 22 07:25:51 2013 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit 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 US7ASCII character set and AL16UTF16 NCHAR character set import server uses ZHS16GBK character set (possible charset conversion) . importing SCOTT's objects into SCOTT . . importing table "TEST_EXP" 74622 rows imported Import terminated successfully without warnings.
11G中改回原来的视图定义
[oracle11g@rhel4 sql]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.3.0 Production on Mon Mar 25 02:15:51 2013 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> CREATE OR REPLACE VIEW exu9defpswitches ( 2 compflgs, nlslensem ) AS 3 SELECT a.value, b.value 4 FROM sys.v$parameter a, sys.v$parameter b 5 WHERE a.name = 'plsql_compiler_flags' AND 6 b.name = 'nls_length_semantics' 7 ; View created. SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
参考文档:
Export From 11g using EXP Utility Version 9iR2 Produces Corrupt Export Dump [ID 550740.1]
相关文章推荐
- 9i 迁移11g IMP-00003: ORA-00922: IMP-00008:
- 9i 迁移11g IMP-00003: ORA-00922: IMP-00008:
- 使用Oracle的IMP/IMPDP迁移ArcSDE数据库常见问题-ORA-20091和ORA-39083
- oracle 11g数据库迁移(不同目录不同主机) [复制链接]
- Oracle 9i/10g/11g 数据库 升级路线图(upgrade roadmap)
- Oracle 9i/10g/11g 数据库 升级路线图(upgrade roadmap)
- Oracle 11g导出来的dmp导入到 10g的数据库(IMP-00010:不是有效的导出文件,头文件验证失败)
- Oracle 9i/10g/11g数据库升级路线图总览
- Oracle 11g导出来的dmp导入到 10g的数据库(IMP-00010:不是有效的导出文件,头部验证失败)
- 关于oracle 11g 数据库回滚racle 9i的问题
- Oracle 9i/10g/11g数据库升级路线图总览
- Oracle 11g导出来的dmp导入到 10g的数据库(IMP-00010:不是有效的导出文件,头部验证失败)
- Oracle 11G 数据库迁移【expdp/impdp】
- win7 64位 安装 oracle 11g R2 后,链接数据库报 ORA-21505错误的解决。
- 用sqlplus登陆数据库时,oracle 11g出现ORA-12514问题
- Oracle 9i/10g/11g数据库升级路线图总览
- 案例情景--在一次Oracle 数据库导出时 EXP-00008;ORA-00904:EXP-00000: oracle不同版本导入导出规则
- 解决oracle 11g配置了tnsnames.ora,pl/sql连接时找不到数据库
- 数据库迁移 oracle 10g -> oracle 11g (windows下)