exp匯出的問題

來源:互聯網
上載者:User

昨天payment從測試庫到另外一個測試庫進行遷移,匯出時,出現如下故障:

[oracle@oracle02 ~]$ exp userid=test/test file=test.dmp buffer=1024 owner=test

Export: Release 10.2.0.1.0 - Production on Tue Nov 28 15:09:42 2006

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

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

Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set

About to export specified users ...

.EXP-00056: ORACLE error 932 encountered

ORA-00932: inconsistent datatypes: expected BLOB, CLOB got CHAR

EXP-00000: Export terminated unsuccessfully

原因:資料字典中有存在一些無效KU$_視圖;

SQL> select * from sys.ku$_xmlschema_view;

select * from sys.ku$_xmlschema_view

*

ERROR at line 1:

ORA-00932: inconsistent datatypes: expected BLOB, CLOB got CHAR

解決辦法:

1.執行物件檢視定義指令碼 $ORACLE_HOME/rdbms/admin/catmetx.sql

SQL> @?/rdbms/admin/catmetx.sql

Package altered.

Index altered.

View created.

Grant succeeded.

View created.

Grant succeeded.

Procedure created.

System altered.

System altered.

System altered.

PL/SQL procedure successfully completed.

Procedure dropped.

2.執行重新編譯無效對象指令碼 $ORACLE_HOME/rdbms/admin/utlrp.sql

SQL> @?/rdbms/admin/utlrp.sql

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

驗證一下程式

SQL> select * from ku$_xmlschema_view;

V V OWNER_NUM OWNER_NAME URL

- - ---------- ------------------------------ ---------------

1 0 46 MDSYS http://www.opengis.net/gml/geometry.xsd

1 0 46 MDSYS http://www.w3.org/1999/xlink/xlinks.xsd

1 0 46 MDSYS http://www.opengis.net/gml/feature.xsd

重新執行匯出程式exp,一些正常。

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.