遇到oracle错误932,exp/imp 操作过程中遇到932错误

Applies to:

Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 10.2.0.1

Oracle Server - Personal Edition - Version: 10.1.0.2 to 10.2.0.1

Oracle Server - Standard Edition - Version: 10.1.0.2 to 10.2.0.1

This problem can occur on any platform.

Symptoms

A full database export from a Oracle10g database aborts with:

...

. exporting cluster definitions

EXP-00056: ORACLE error 932 encountered

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

EXP-00056: ORACLE error 932 encountered

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

EXP-00000: Export terminated unsuccessfully

EXP-00000: Export terminated unsuccessfully

If export was started with SYS schema, a table level export may also fail with:

...

Current user changed to TEST

. . exporting table DOC_ARCHIVE 16 rows exported

Current user changed to SYS

EXP-00011: SYS.; does not exist

Export terminated successfully with warnings.

Cause

One possible cause (note there might be others):

Script $ORACLE_HOME/rdbms/admin/catmeta.sql has been run recently.

There are several invalid SYS.KU$_% views in the dictionary:

-- invalid objects:

SET lines 120 pages 2000

COL status FOR a9

COL object_type FOR a20;

COL owner.object FOR a50

SELECT status, object_id, object_type, owner||'.'||object_name "OWNER.OBJECT"

FROM dba_objects

WHERE status != 'VALID' AND object_name NOT LIKE 'BIN$%'

ORDER BY 4,2;

STATUS     OBJECT_ID OBJECT_TYPE     OWNER.OBJECT

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

INVALID         7105 PACKAGE BODY    SYS.DBMS_METADATA

INVALID         6683 VIEW            SYS.KU$_10_1_COMMENT_VIEW

INVALID         6788 VIEW            SYS.KU$_10_1_IND_STATS_VIEW

INVALID         6778 VIEW            SYS.KU$_10_1_PIND_STATS_VIEW

INVALID         6752 VIEW            SYS.KU$_10_1_PTAB_STATS_VIEW

INVALID         6770 VIEW            SYS.KU$_10_1_SPIND_STATS_VIEW

INVALID         6748 VIEW            SYS.KU$_10_1_TAB_ONLY_STATS_VIEW

... (etc)

A query in SQL*Plus on sys.ku$_xmlschema_view also fails with ORA-932:

SET lines 200 pages 2000

COL url FOR a60 WRA

SELECT url, local, stripped_val

FROM sys.ku$_xmlschema_view;

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

Solution

For reasons having to do with compatibility, the XDB objects cannot be created by the catproc.sql script. The script catproc.sql therefore calls the catmeta.sql script, which contains fake object views for XDB objects.

The real object views are defined in the catmetx.sql script (this script is invoked by catxdbv.sql which is invoked by catqm.sql).

Solution #1

Run following scripts while connected as SYS user:> sqlplus /nolog

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值