概述:oracle 11.2.0.4补丁为2019年4月份的,在使用exp导出指定表时,提示ORA-00904: : invalid identifier无效标识符错误。
操作过程:
[oracle@db1 ~]$ exp userq/password@db tables=ac02 file=/home/oracle/exp.dmp log=/home/oracle/exp.log
Export: Release 11.2.0.4.0 - Production on Wed Aug 21 11:07:15 2019
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Tes
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table AC02
EXP-00008: ORACLE error 904 encountered
ORA-00904: : invalid identifier
根据mos文档1091927.1 说明是为了安全问题将 execute on DBMS_JAVA 权限收回。
解决办法:可临时授权于导出用户或者授权于public
grant execute on DBMS_JAVA to public;
重新导出后,导出表语句正常运行。