ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORA-00904: "DROP_SEGMENTS": invalid identifier

ORA-00904: "DROP_SEGMENTS": invalid identifier

原创 Linux操作系统 作者:tolywang 时间:2009-05-19 13:49:23 0 删除 编辑

Question:

I try to truncate a table and I get this:
QUOTE

ORA-00904: "DROP_SEGMENTS": invalid identifier


Can anybody suggest what the problem is and what I should do?

Answer: by ăг∂üή

Cause: The post installation scripts were not run properly,so drop_segments column is missing from sys.mon_mods$ . One or more of these post installation scripts would add the new column to the database and if the script. is not run properly, it will cause an ORA-904 in the application later on.

Fix: Connect to the SQL session as SYS and issue the following:
SQL> desc sys.mon_mods$

If the drop_segments is missing then we are getting ORA-904.If this is the case,we can do one of these:

1.Shutdown the database- startup migrate and then run catpatch.sql and catalog.sql(the scripts that are needed to be run as a post-installarion process).

2.Add the drop_segments column using:
SQL> alter table sys.mon_mods$ add ( drop_segments number default 0 );

Then run $ORACLE_HOME/rdbms/admin/catalog.sql again.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/35489/viewspace-600426/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle , MySQL, SAP IQ, SAP HANA, PostgreSQL, Tableau 技术讨论,希望在这里一起分享知识,讨论技术,畅谈人生 。

注册时间:2007-12-10

  • 博文量
    5595
  • 访问量
    14695977