问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501
你好,欢迎来到懂视!登录注册
当前位置: 首页 - 正文

...遇到 ORACLE 错误 932 ORA-00932: 数据类型不一致: 应为 BLOB, 但...

发布网友 发布时间:2022-05-03 02:36

我来回答

3个回答

热心网友 时间:2022-05-05 20:34

是个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

热心网友 时间:2022-05-05 21:52

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
...不是室内设计也不是土木工程,上海的考生,有选科3+1,目前想选化学... ...土木不好吗?拜托,女生怎么就不方便学土木工程了啊。。 在中国,机械设计与土木工程这两个专业更热门?拜托诸位各位仁兄畅所欲... 土木工程施工与管理的就业前景如何,拜托! 360健康精灵功能 北京房贷还完多久算首贷 未成年人父母买房贷款加名字,后来防务卖掉了。子女长大算首房首贷... 赤峰如意家园到桥北荷枫水岸公交 想知道: 赤峰市荷枫水岸在哪? 二三一五四七轮是指什么生肖,成语作答落实 爱玛电动车后刹车怎么拆 数据类型不一致。应为number 但却获得binary 跪求大神。 ORA-00932: 不一致的数据类型: 要求 - 得到的却是 BLOB plsq ORA-00932: 数据类型不一致: 应为 DATE, 但却获得 NUMBER 百家姓中的“唐”,有什么传说故事 手机声音小了怎么回事 唐氏的姓氏的来源 唐氏的姓氏是怎么样的(形容词) 手机音量小是怎么回事 唐这个姓氏算不算古老大姓 手机声音小是什么原因 唐姓在全球排名第几 唐姓的由来,故事以及姓唐的名人,还有姓唐的大约人口数是多少? 唐姓的介绍 唐姓的所有资料 在网上怎样下载电子书? 在那个网址上可以下载电子书?怎么下载? 姓唐的专属句子有哪些? 有哪些软件可以在没有网络的情况下用手机看下载好的电子书 什么电子书,可以离线观看。呢? 使用kettle做orcale数据交换(插入/更新)时,遇到数据类型为CLOB的情况时就交换不了是什么原因? 没有类型为blob的字段,但是插入语句时却提示ORA-00932: 数据类型不一致: 应为 CLOB, 但却获得 BLOB。 猪肚炖可以什么汤 电动车后轮拆了里面是磁铁吸住转不动线已经绞断电机 小刀电动车后尾坐小板凳怎么拆开怎么拆开 爱玛电动车后轮怎么拆 谁知道电动车后轮这个怎么拆下来,, oracle数据插入问题(应为number,但获得的却是date) 执行 sum(decode)sql语句时,提示ORA-0092:数据类型不一致,应为NUMBER,但却获得DATE,该如何处理? 雅迪电动车后轮轮胎补胎如何拆卸 在java应用程序中怎样得到oracle数据库错误信息 电动三轮后轮轮毂怎么拆开 oracle SQL语句,查询出来的语句要把时间类型转换为整数型或者字符型, 请老师们看看下面问题详情 电动三轮车后轮鼓刹怎么换刹片?怎么拆? 爱玛小叮当电动车后轮怎么拆 下面的查询语句为什么会报错 电动车后轮的线怎么拆? PLSQL中expected number got char 是什么意思 - 信息提示 这句sql怎么把日期格式转换成天数,在sum那里,我想把日期格式转换成天数计算总和
  • 焦点

最新推荐

猜你喜欢

热门推荐