If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Error ORA-00406

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-23-03, 10:44
Norman Norman is offline
Registered User
 
Join Date: Jan 2003
Posts: 6
Error ORA-00406

Hello again everyone..

I've got a database setup and foiund that after I did some testing I don't need a specific column, but also found that I can't drop the column..

SQL> alter table tracking drop column test;
alter table tracking drop column test
*
ERROR at line 1:
ORA-00406: COMPATIBLE parameter needs to be 8.1.0.0.0 or greater


SQL>

And I'm kinda confused.. any help would be great....

Thanks
Reply With Quote
  #2 (permalink)  
Old 01-23-03, 10:48
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: Error ORA-00406

You need to be on at least Oracle 8.1 to drop columns. If your version of Orace IS 8.1 or higher, then it has the COMPATIBLE parameter set to a lower value - this would be done deliberately while evaluating a new Oracle version to ensure no new features were accidentally used.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #3 (permalink)  
Old 01-23-03, 11:05
Norman Norman is offline
Registered User
 
Join Date: Jan 2003
Posts: 6
Re: Error ORA-00406

Quote:
Originally posted by andrewst
You need to be on at least Oracle 8.1 to drop columns. If your version of Orace IS 8.1 or higher, then it has the COMPATIBLE parameter set to a lower value - this would be done deliberately while evaluating a new Oracle version to ensure no new features were accidentally used.
As far as I know we are using 8.1.7.0.1

So is there ANY other way to get rid of this column?
Reply With Quote
  #4 (permalink)  
Old 01-23-03, 11:14
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: Error ORA-00406

Quote:
Originally posted by Norman
As far as I know we are using 8.1.7.0.1

So is there ANY other way to get rid of this column?
Well, you could just change the COMPATBLE parameter to 8.1.7.0.1 and then it will work.

If that isn't permitted, then you would have to do it the hard way:

CREATE TABLE new_tracking AS SELECT ... FROM tracking;

DROP TABLE tracking;

RENAME new_tracking TO tracking;

(Then add back missing indexes, constraints, triggers, ...)
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #5 (permalink)  
Old 01-23-03, 11:31
Norman Norman is offline
Registered User
 
Join Date: Jan 2003
Posts: 6
Re: Error ORA-00406

Quote:
Originally posted by andrewst
Well, you could just change the COMPATBLE parameter to 8.1.7.0.1 and then it will work.
Hate tos ound so clueless, but oracle is a new beast for me.

Can I change it using the Alter Session and/or some other set command?

Thanks
Reply With Quote
  #6 (permalink)  
Old 01-23-03, 11:41
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: Error ORA-00406

Quote:
Originally posted by Norman
Hate tos ound so clueless, but oracle is a new beast for me.

Can I change it using the Alter Session and/or some other set command?

Thanks
You could use ALTER SYSTEM, if you have sufficient privileges. If you are not the DBA, I suggest you contact him/her.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #7 (permalink)  
Old 01-23-03, 13:02
marist89 marist89 is offline
Registered User
 
Join Date: Oct 2002
Location: greenwich.ct.us
Posts: 279
Re: Error ORA-00406

Quote:
Originally posted by andrewst
You could use ALTER SYSTEM, if you have sufficient privileges. If you are not the DBA, I suggest you contact him/her.
Ah, no disrespect intended, but you can't modify compatible via ALTER SESSION or ALTER SYSTEM. Your only recourse is to change the init.ora and bounce the instance.

Code:
SQL> l
  1  select name, issys_modifiable, isses_modifiable, value from v$parameter
  2* where upper(name) like 'COMPAT%'
SQL> /

NAME                           ISSYS_MOD ISSES VALUE
------------------------------ --------- ----- --------------------
compatible                     FALSE     FALSE 8.1.0
__________________
Jeff Hunter
http://marist89.*************
Reply With Quote
  #8 (permalink)  
Old 01-23-03, 15:54
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: Error ORA-00406

Quote:
Originally posted by marist89
Ah, no disrespect intended, but you can't modify compatible via ALTER SESSION or ALTER SYSTEM. Your only recourse is to change the init.ora and bounce the instance.
Thanks for correcting me - I was careless in checking the documentation.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On