问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

EXP-00056: 遇到 ORACLE 错误 932 ORA-00932: 数据类型不一致: 应为 BLOB, 但却获得 CHAR 导出失败

发布网友 发布时间:2023-08-08 23:04

我来回答

2个回答

热心网友 时间:2023-09-28 11:19

是个bug,metalink解释如下

Full Export From 10.2.0.1 Aborts With EXP-56 ORA-932 (Inconsistent Datatypes) EXP-0 [ID 339938.1] Modified 30-MAR-2009 Type PROBLEM Status PUBLISHED In this Document
Symptoms
Cause
Solution
References

Applies to:Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 10.2.0.3
Oracle Server - Personal Edition - Version: 10.1.0.2 to 10.2.0.3
Oracle Server - Standard Edition - Version: 10.1.0.2 to 10.2.0.3
This problem can occur on any platform.
SymptomsA 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.CauseOne 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 CHARSolutionFor 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

SQL> connect / as sysdba
SQL> @?/rdbms/admin/catmetx.sql
SQL> @?/rdbms/admin/utlrp.sql

SQL> exit
Afterwards, re-run the export.or:Solution #2
Run the export with the Export DataPump client. E.g.:> expdp system/manager directory=my_dir \
mpfile=expdp_full.dmp logfile=expdp_full.log full=y

热心网友 时间:2023-09-28 11:19

EXP-00056]全部数据库导出终止
使用Oracle导出工具exp导出全部数据时错误,如果使用单张表导出正常。
[oracle@oracle02 ~]$ exp userid=test/test file=test.dmp buffer=1024 owner=test
Export: Release 10.2.0.1.0 - Proction 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 Proction
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 ...
. exporting pre-schema proceral objects and actions
. exporting foreign function library names for user TEST
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user TEST
About to export TEST's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
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.
Procere created.
System altered.
System altered.
System altered.
PL/SQL procere successfully completed.
Procere dropped.
2.执行重新编译无效对象脚本 $ORACLE_HOME/rdbms/admin/utlrp.sql
SQL> @?/rdbms/admin/utlrp.sql
PL/SQL procere successfully completed.
PL/SQL procere successfully completed.
验证一下程序
SQL> select * from ku$_xmlschema_view;
V V OWNER_NUM OWNER_NAME URL
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
想买红米但没银行卡 开美宜佳便利店是加盟好还是直接转一个美宜佳店好 ...就给你一个交易号,能到美宜佳付款,请问美宜佳是怎样付款的_百度知 ... 用美宜佳代购会不会看到我买的东西 重返帝国弓弩营对诸葛连弩有加成吗 重返帝国城市风格选什么好 重返帝国城市风格选择推荐 重返帝国城市风格怎么切换 重返帝国城市如何切换风格 重返帝国城市风格大全 特色兵种及增益介绍 重返帝国特殊兵种怎么生产-特殊兵种生产攻略 重返帝国怎么训练诸葛弩 数据类型不一致: 应为 DATE, 但却获得 NUMBER 在plsql里执行查询语句提示:数据类型不一致 应为date 却获得了number 报错ORA-00932: 数据类型不一致: 应为 DATE, 但却获得 NUMBER plsq ORA-00932: 数据类型不一致: 应为 DATE, 但却获得 NUMBER 会计分录:开出转账支票一张200元,支付管理部门购买办公用品的价款. 签发转账支票2000元,支付 企业以存款购入A公司3000股,每股21元,次年企业将公司每股18元,手续费等200元售出.会计分录怎么做? 3日,销售A产品300件,销售单价200元,款项已收存银行。(会计分录)怎么做? 银行卡不收不付怎么解冻 请问成都高新实验中学2022高考升学率? 国宾队出车车头展开几面国旗 科比的手指能治好吗? 想知道歌曲名字,知道的请告之,谢谢! 请知道的朋友告诉我这首歌曲的歌名... 感谢 询问"幸福就像花季开到透明"的歌名 有一句歌词叫《当你要走的那天,请不必慰问》请问是什么歌,知道的朋友麻烦告诉我。谢谢 问一首歌的歌名,旋律大熟悉了,但就是想不起歌名,麻烦知道的朋友告诉下,谢谢 双流西港航一中是不是西港航街道对面那所中学? 西航港一中的教学理念 西航一中的特色学校 尽现名校风采 西安西航一中是公办学校嘛 ...0092:数据类型不一致,应为NUMBER,但却获得DATE,该如何处理? 胶带涂布机哪种好 原神如何看6个月的抽卡记录 默娘放生鱼是第几集 thinkpad E40 风扇不正常且CPU温度不稳定 23年温网男单半决赛时间 我的微信被别人登了密码都改了怎么办? 我的微信被别人登了密码都改了怎么办? 微信被盗 微信密码都被改 改怎么找回来 那个消息也拒收!改怎么办! 我的和微信密码都被别人给改了,我怎么才能把她找回来? 软件卡机之后全消失了怎么回事? 手机卡机,而且有些软件用不了 手机经常卡机用什么杀毒软件最好?我的手机安装软件少但是老卡机,我该怎么办? 手机卡机,黑屏,反应慢,用什么杀毒软件好? 为什么NOTE老是卡机 一个软件用着用着就卡在那了 过几分钟就要重启软件了 死机卡机经常启动不了软件 一本十章的现代言情小说:男主失忆前很爱女主,男主失忆后忘了自己是谁,并对救他的女配有感恩之情 领养孩子会找自己的亲生父母吗? 领养的孩子会寻找自己的亲生父母吗? 如果是领养的孩子,你还会找亲生父母吗