Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

sql - ORA-00600 When running ALTER command?

I am running this command on a table :

ALTER TABLE testTable ADD column1 NUMBER(1) DEFAULT 0 NOT NULL;

And i keep getting this error:
Error report:
SQL Error: ORA-00600: internal error code, arguments: [kkpoffoc], [], [], [], [], [], [], [], [], [], [], []
00600. 00000 - "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
*Cause: This is the generic internal error number for Oracle program
exceptions. This indicates that a process has encountered an exceptional condition.
*Action: Report as a bug - the first argument is the internal error number

Any thoughts on this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This is a bug, and you need to talk with your dba to make a SR as paxdiablo said.

If you are pressed for time, you can manually do what does

ALTER TABLE testTable ADD column1 NUMBER(1) DEFAULT 0 NOT NULL;
  1. Add the column as null:

    ALTER TABLE testTable ADD column1 NUMBER(1);
    
  2. Update values:

    update testTable set column1 = 0;
    
  3. Alter table not null(between precedent and this, you must be sure that nobody inserts in the table):

    ALTER TABLE testTable MODIFY(column1  NOT NULL)
    

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...