ORA-00904: "DROP_SEGMENTS": invalid identifier 解决方法
2010-04-06 16:36
681 查看
之前按用户imp了一个9i的数据库,今天发现Job 执行失败,alert log 显示:
ORA-00904: "DROP_SEGMENTS": invalid identifier
上网搜了一下, 摘抄如下, 说是要执行下catpatch.sql 脚本。
Oracle 9.2.0.5 added the DROP_SEGMENTS column to the DBA_TAB_MODIFICATIONS view. Internally, the dollar table sys.mon_mods$ received the new drop_segments column. Guess who's responsible for adding this new column during the patch process?
Yup, it's catpatch.sql. Oh, joy!
If you don't run catpatch when patching to 9.2.0.5, a few things will happen with regards to the drop_segments column:
SMON will complain profusely in alert.log whenever it tries to update sys.mon_mods$. That means you get this error message every 15 minutes, or sooner:
Thu Nov 25 17:21:05 2004
Errors in file /u01/app/oracle/admin/mydb/bdump/mydb_smon_8201.trc:
ORA-00904: "DROP_SEGMENTS": invalid identifier
DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO will fail.
According to Metalink Note 285315.1, you'll also get the ORA-00904 error in the alert.log on DROP TABLE and TRUNCATE TABLE.
You will get the ORA-00904 error when you try to update statistics with "GATHER STALE".
If you can't update statistics, you will have bad optimizer plans.
解决方法如下:
1. shutdown database
2. startup migrate
3. @?/rdbms/admin/catpatch.sql --升级数据字典
4. @?/rdbms/admin/catalog.sql --创建系统常用的数据字典视图和同义词
5. @?/rdbms/admin/utlrp.sql --编译存储过程
6. 重启数据库
SQL> describe sys.mon_mods$;
Name Null? Type
----------------- -------- ------------
OBJ# NUMBER
INSERTS NUMBER
UPDATES NUMBER
DELETES NUMBER
TIMESTAMP DATE
FLAGS NUMBER
DROP_SEGMENTS NUMBER <==出现了该字段
ORA-00904: "DROP_SEGMENTS": invalid identifier
上网搜了一下, 摘抄如下, 说是要执行下catpatch.sql 脚本。
Oracle 9.2.0.5 added the DROP_SEGMENTS column to the DBA_TAB_MODIFICATIONS view. Internally, the dollar table sys.mon_mods$ received the new drop_segments column. Guess who's responsible for adding this new column during the patch process?
Yup, it's catpatch.sql. Oh, joy!
If you don't run catpatch when patching to 9.2.0.5, a few things will happen with regards to the drop_segments column:
SMON will complain profusely in alert.log whenever it tries to update sys.mon_mods$. That means you get this error message every 15 minutes, or sooner:
Thu Nov 25 17:21:05 2004
Errors in file /u01/app/oracle/admin/mydb/bdump/mydb_smon_8201.trc:
ORA-00904: "DROP_SEGMENTS": invalid identifier
DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO will fail.
According to Metalink Note 285315.1, you'll also get the ORA-00904 error in the alert.log on DROP TABLE and TRUNCATE TABLE.
You will get the ORA-00904 error when you try to update statistics with "GATHER STALE".
If you can't update statistics, you will have bad optimizer plans.
解决方法如下:
1. shutdown database
2. startup migrate
3. @?/rdbms/admin/catpatch.sql --升级数据字典
4. @?/rdbms/admin/catalog.sql --创建系统常用的数据字典视图和同义词
5. @?/rdbms/admin/utlrp.sql --编译存储过程
6. 重启数据库
SQL> describe sys.mon_mods$;
Name Null? Type
----------------- -------- ------------
OBJ# NUMBER
INSERTS NUMBER
UPDATES NUMBER
DELETES NUMBER
TIMESTAMP DATE
FLAGS NUMBER
DROP_SEGMENTS NUMBER <==出现了该字段
相关文章推荐
- EXP-00008: 遇到 ORACLE 错误 904 ORA-00904: "MAXSIZE": invalid identifier
- 对Oracle导出文件错误和DMP文件结构的分析,EXP-00008: 遇到 ORACLE 错误 904 ORA-00904: "MAXSIZE": invalid identifier
- [Bug]ArcGIS Desktop10.1进行Join版本数据操作报:"ORA-00904: invalid identifier"
- ORA-00904: "POLTYP": invalid identifier
- 对Oracle导出文件错误和DMP文件结构的分析,EXP-00008: 遇到 ORACLE 错误 904 ORA-00904: "MAXSIZE": invalid identifier
- ORA-00904: invalid identifier解决方法
- delphi2007:"Invalid floating point operation" 错误的解决方法
- Oracle远程无法startup,提示"ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务 "的解决方法
- An App ID with identifier "xxxx.xxx.xxx" is not avalible 解决方法
- "ORA-00054: 资源正忙, 但指定以 NOWAIT 方式获取资源"的解决方法
- sqlplus "/ as sysdba" 连不上,报ora-01031:insufficient privileges解决方法
- the currently page contains invalid path"之解决方法
- "ora-00988 缺少或无效口令"问题的解决方法
- "ORA-01940: 无法删除当前已连接的用户"的解决方法
- getJSON 跨域脚本提交出现"invalid label"解决方法 ,域脚本
- sqlplus "/ as sysdba" 连不上,报ora-01031:insufficient privileges解决方法
- 使用sqlplus连接数据库时报"ORA-12154:TNS:could not resolve the connect identifier specified"解决办法
- "cvc-complex-type.2.4.a: Invalid content was found starting with element ..."的解决方法
- SQL Developer error: ORA-00904: "ORA_ROWSCN": invalid identifier
- "ORA-00054: 资源正忙,要求指定 NOWAIT"问题的解决方法