使用exp/imp匯入oracle 11g資料到oracle 9i

來源:互聯網
上載者:User

現在有個需求,需要使用exp/imp匯入11g的資料庫資料到9i中,解決這個問題一般來說想到三種方法思路,一個個嘗試(其實從高版本服務端支援低版本用戶端的原則,可以大概的猜測出使用9i的用戶端處理該問題)

方法1:匯出匯入都使用11g用戶端

--11g用戶端匯出

[oracle@xifenfei ~]$ exp chf/xifenfei file=/tmp/t_xifenfei.dmp

>log=/tmp/t_xifenfei.log tables=chf.t_xifenfei

Export: Release 11.2.0.3.0 - Production on Fri May 18 18:15:18 2012

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

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set

server uses AL32UTF8 character set (possible charset conversion)

About to export specified tables via Conventional Path ...

. . exporting table                     T_XIFENFEI          2 rows exported

Export terminated successfully without warnings.

--11g用戶端匯入

[oracle@xifenfei ~]$ imp chf/xifenfei@ora9i file=/tmp/t_xifenfei_11g.dmp

>log=/tmp/t_xifenfei.log tables=chf.t_xifenfei

Import: Release 11.2.0.3.0 - Production on Fri May 18 18:17:24 2012

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

IMP-00058: ORACLE error 6550 encountered

ORA-06550: line 1, column 33:

PLS-00302: component 'SET_NO_OUTLINES' must be declared

ORA-06550: line 1, column 7:

PL/SQL: Statement ignored

IMP-00000: Import terminated unsuccessfully

這個錯誤是版本不相容導致:PLS-00302: component ‘SET_NO_OUTLINES’ must be declared

方法2:11g用戶端匯出,9i用戶端匯入

--11g用戶端匯出

[oracle@xifenfei ~]$ exp chf/xifenfei file=/tmp/t_xifenfei.dmp

>log=/tmp/t_xifenfei.log tables=chf.t_xifenfei

Export: Release 11.2.0.3.0 - Production on Fri May 18 18:15:18 2012

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

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set

server uses AL32UTF8 character set (possible charset conversion)

About to export specified tables via Conventional Path ...

. . exporting table                     T_XIFENFEI          2 rows exported

Export terminated successfully without warnings.

--傳輸到9i

[oracle@xifenfei tmp]$ scp t_xifenfei.dmp 192.168.1.10:/tmp/

The authenticity of host '192.168.1.10 (192.168.1.10)' can't be established.

RSA key fingerprint is 3d:0c:d1:4b:45:bd:a3:f5:25:eb:4d:52:d2:32:03:69.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added '192.168.1.10' (RSA) to the list of known hosts.

oracle@192.168.1.10's password:

t_xifenfei.dmp                          100%   56KB  56.0KB/s   00:00    

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.