分享
 
 
 

EXP-00008: ORACLE error 904 encountered的解决方法

王朝oracle·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

【错误情况】

[Oracle@ccdevsvr admin]$ eXP wmap/pass@jackeydb

Export: Release 8.1.7.4.0 - ProdUCtion on Fri Oct 8 11:28:37 2004

(c) Copyright 2000 Oracle Corporation. All rights reserved.

Connected to: Oracle9i Release 9.2.0.1.0 - Production

JServer Release 9.2.0.1.0 - Production

Enter array fetch buffer size: 4096 >

Export file: expdat.dmp > host

(2)U(sers), or (3)T(ables): (2)U > u

Export grants (yes/no): yes >

Export table data (yes/no): yes >

Compress extents (yes/no): yes >

Export done in WE8ISO8859P1 character set and UTF8 NCHAR character set

server uses ZHS16GBK character set (possible charset conversion)

. exporting pre-schema procedural objects and actions

. exporting foreign function library names for user WMAP

. exporting object type definitions for user WMAP

About to export WMAP's objects ...

. exporting database links

. exporting sequence numbers

. exporting cluster definitions

. about to export WMAP's tables via Conventional Path ...

EXP-00008: ORACLE error 904 encountered

ORA-00904: "SPOLICY": invalid identifier

EXP-00000: Export terminated unsuccessfully

[oracle@ccdevsvr admin]$

【解决方法一】

Bookmark Go to End

fact: Oracle Server - Enterprise Edition

symptom: ORA-00904: Invalid column name

symptom: EXP-00008: ORACLE error %s encountered

cause: The package is missing, invalid or corrupt

fix:

How to handle ORA-00904 errors on Export

========================================

When running full database export the following errors will be returned:

exp80 user/passWord full=y file=D:\DB-Backup\ORCL\expORCL.dmp

log=D:\DB-Backup\ORCL\expORCL.log consistent=y buffer=40960000

EXP-00008: ORACLE error 904 encountered

ORA-00904: invalid column name

To get a clue what has force these ORA-00904 message, follow the following

steps:

1. Connect as privileged user and run the following command inside an

SQLPLUS session:

SQL> alter system set events='904 trace name errorstack';

-------------------------------- Note ------------------------------------

This event will work starting with Oracle8i. If running a Oracle database

version below Oracle8i, you'll get ORA-02065 errors returned, when

specifying this event. In Oracle versions below 8i you'll have to insert

the following entry into INIT.ORA

event="904 trace name errorstack"

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

2. Retry the FULL export. When the ORA-00904 occurs, a trace file will be

written to the storage location specified by the INIT.ORA parameter

'user_dump_dest'. As soon as the ORA-00904 has been returned to your

export session, you can abort the export and examine the trace information.

3. Disable event tracing by running the following command:

SQL> alter system set events='904 trace name errorstack off';

On Oracle versions below 8.1.5 return the event entry from INIT.ORA

4. Examine the trace file:

*** SESSION ID:(9.3) 2001.11.21.15.28.00.494

*** 2001.11.21.15.28.00.494

ksedmp: internal or fatal error

ORA-00904: invalid column name

Current SQL statement for this session:

SELECT fname,fsize,maxextend,inc FROM sys.exu8fil WHERE tsid = :1

===========

a) a problem with object EXU8FIL has been detected

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In this example, there's a problem with the EXE8FIL view. To examine,

whether this object exist, run the following command:

SQL> select owner,object_name,object_type,object_id,status

from dba_objects

where object_name='EXU8FIL';

If the problem is on the EXU8FIL object you simply can recreate the

object by running the CATEXP.SQL script.

b) a problem with object DBMS_Java or DBMS_JAVA_TEST

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ksedmp: internal or fatal error

ORA-00904: invalid column name

Current SQL statement for this session:

SELECT SYNNAM, DBMS_JAVA.LONGNAME(SYNNAM), DBMS_JAVA.LONGNAME(SYNTAB), ...

On systems where the Java Server has been installed the trace file could

contain information on a failing select statement on DBMS_JAVA packages.

For reference on fixing errors relating to DBMS_JAVA, please follow

<Note:1017276.102>.

【解决方法二】

If this error (ORA-904 invalid column name) occurs after applying a patch, this would probably fix the problem.

1. First, run CATEXP as INTERNAL. Then retry the export. Often times this will fix the problem and then export will run without error. The reason being a problem with object EXU8FIL view has been detected.

To examine, whether this object exist, run the following command:

SQL> select owner,object_name,object_type,object_id,status

from dba_objects

where object_name='EXU8FIL';

If the problem is on the EXU8FIL object you simply can recreate the object by running the CATEXP.SQL script.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有