【错误情况】

[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

<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.1017276.102>

另外原因:

客户端机器有两个版本的oracle。改变$ORACLE_HOME 和 $ORACLE_HOME/lib指向即可。

exp oracle 904,EXP-00008: ORACLE error 904 encountered的解决方法相关推荐

  1. oracle12154错误 Linux,关于“EXP-00056: ORACLE error 12154 encountered”的解决方法

    有用户问到这样一个问题,在进行导出操作时如何转义口令中的@符号? 由于缺省的Oracle会将@符号后面的字串当作服务名来解析,所以不加处理是不行的. 有的企业因为安全规则的需要,口令中都会加入@符号. ...

  2. 关于“EXP-00056: ORACLE error 12154 encountered”的解决方法

    有用户问到这样一个问题,在进行导出操作时如何转义口令中的@符号? 由于缺省的Oracle会将@符号后面的字串当作服务名来解析,所以不加处理是不行的. 有的企业因为安全规则的需要,口令中都会加入@符号. ...

  3. java+oracle数据库锁,数据库学习之Oracle数据库\记录被另一个用户锁住\解决方法...

    1.先来看看为什么会出锁住: 数据库是一个多用户使用的共享资源.当多个用户并发地存取数据时,在数据库中就会产生多个事务同时存取同一数据的情况.若对并发操作不加控制就可能会读取和存储不正确的数据,破坏数 ...

  4. PLSQL无法连接64位Oracle数据库/Database下拉框为空的解决方法

    PLSQL无法连接64位Oracle数据库/Database下拉框为空的解决方法 参考文章: (1)PLSQL无法连接64位Oracle数据库/Database下拉框为空的解决方法 (2)https: ...

  5. Oracle报ORA-00942: 表或视图不存在的解决方法

    Oracle报ORA-00942: 表或视图不存在的解决方法 首先考虑权限问题. 举例:用户a调用用户b的视图 用户b的视图来自于用户c 如果看到数据库用户b存在某张视图,而用户a调用用户b的视图报不 ...

  6. oracle 01722 无效数字,Oracle连接字符串报错误ORA-01722:无效数字的解决方法

    Oracle连接字符串报错误ORA-01722:无效数字的解决方法,如下函数,用来查出名字相似于某字符串 Oracle连接字符串报错误ORA-01722:无效数字的解决方法,如下函数,用来查出名字相似 ...

  7. Mysql 查询blob数据很慢,关于oracle中clob字段查询慢的问题及解决方法

    关于oracle中clob字段查询慢的问题及解决方法 最近在用oracle的过程中用到了对blob字段模糊查询的问题,对oracle来说,我并不是高手,找了很多的资料终于能够查出来了. blob字段直 ...

  8. virtualbox无法打开虚拟机,error in supR3HardenedWinReSpawn终极解决方法

    virtualbox无法打开虚拟机,"error in supR3HardenedWinReSpawn"终极解决方法 展开 解决方法: 那是因为vboxdrv服务没有安装或没有成功 ...

  9. mysql 5.7 1054_MySQL5.7更改密码时出现ERROR 1054 (42S22)的解决方法

    MySQL5.7更改密码时出现ERROR 1054 (42S22)的解决方法 发布时间:2020-10-14 16:01:38 来源:脚本之家 阅读:81 作者:剑侠365 新安装的MySQL5.7, ...

  10. vss error reading from file 解决方法

    vss error reading from file 解决方法 参考文章: (1)vss error reading from file 解决方法 (2)https://www.cnblogs.co ...

最新文章

  1. Java IO流学习总结四:缓冲流-BufferedReader、BufferedWriter
  2. “社区之星”成长故事征集
  3. Spring整合Hessian
  4. 中国移动短信网关CMPP3.0 C#源代码:使用示例
  5. 开源!100 页机器学习教程全面开放,附完整代码
  6. 微软亚洲研究院发布“人立方关系搜索”
  7. boost::smart_ptr模块boost/pointer_to_other.hpp 的测试
  8. 男人会为女人改变多少
  9. 前端基础:技术栈简介
  10. BlackBerry 应用程序开发者指南 第二卷:高级--第11章 管理通知(Notification)
  11. Android API Guides---Supporting Tablets and Handsets
  12. php imagerotate png,php imagerotate,rotate image,rotateimage opencv
  13. python最简单的游戏源代码_Python 练习: 简单角色游戏程序
  14. java如何获取管理员权限
  15. BPSK_QPSK_16QAM _64QAM _MATLAB
  16. C语言中的逗号的作用,c语言中什么是逗号运算符并举例
  17. 996下的最后一根稻草
  18. 软件(程序)编写通法
  19. vue项目在vscode中编译eslint报错没显示红色波浪线提示
  20. linux能修改用户的权限,linux怎样修改用户权限

热门文章

  1. html属于编程语言,HTML编程语言
  2. HTML+CSS静态网页制作:电影网站设计——漫威电影(2页)
  3. 网络计算机是第几代,操作系统 是在计算机发展的第几代出现的?
  4. VBA学习练习-将多个单元格内容合并
  5. 百度云库计算机网页制作说课PPT,网页制作说课资料得
  6. .NET调用新浪微博开放平台接口的代码示例
  7. PS 2021插件nik collection 闪退怎么办,Nik Collection崩溃闪退解决方法
  8. 百度地图根据经纬度定位
  9. Android Studio 制作.9图片时无法拖拉,导致没法办制作.9图片
  10. 用css制作旋转的立方体