怎样删除字段?
Oracle8i Enterprise Edition Release 8.1.7.0.1 - Production
With the Partitioning option
JServer Release 8.1.7.0.1 - Production
SQL> alter table PROCEDUREM
2 drop column INSTR_NAME;
alter table PROCEDUREM
*
ERROR 在行 1:
ORA-00406: COMPATIBLE parameter needs to be 8.1.0.0.0 or greater
什么意思?
问题点数:100、回复次数:17Top
1 楼icystone(石冰)回复于 2002-07-30 17:45:36 得分 0
还有给字段改名有什么办法?谢谢!!!Top
2 楼penitent(只取一瓢)回复于 2002-07-30 17:46:41 得分 10
修改你init.ora中的COMPATIBLE 参数为8.1.0Top
3 楼penitent(只取一瓢)回复于 2002-07-30 17:48:50 得分 10
没有修改名字的办法,只有删除了重新建立
另外,删除字段也是在8i中才有的,你的是817,也就有这个功能了Top
4 楼icystone(石冰)回复于 2002-07-30 18:33:24 得分 0
是呀,我的是8.17,那他怎么不让我删!Top
5 楼jiezhi(风满袖)回复于 2002-07-30 20:09:23 得分 10
那你可以将该列置为不可用嘛:
AlTER TABLE table_name
SET UNUSED(column_name);
然后
ALTER TABLE table_name
DROP UNUSED COLUMNS;Top
6 楼gyang(我是谁?)回复于 2002-07-31 08:39:55 得分 10
若服务器段是817,则一定可删除Top
7 楼xinpingf(白开心)回复于 2002-07-31 09:54:37 得分 20
修改init.ora
COMPATIBLE = 8.1.7.0.0
如果没有则填加一行
然后重新启动数据库,再试
Top
8 楼richardluopeng(罗罗)回复于 2002-07-31 10:21:58 得分 0
alter table tablename drop column 字段Top
9 楼icystone(石冰)回复于 2002-07-31 18:51:48 得分 0
这是2000上
SQL*Plus: Release 8.1.7.0.0
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
置为不可用可以,删除字段可以
这是linux上的
SQL*Plus: Release 8.1.7.0.0
Oracle8i Enterprise Edition Release 8.1.7.0.1 - Production
With the Partitioning option
JServer Release 8.1.7.0.1 - Production
置为不可用,删除均不可以,错误为:
ORA-00406: COMPATIBLE parameter needs to be 8.1.0.0.0 or greater
我查了好几本书上面都说8i支持这种操作
请问这里该如何解释!Top
10 楼riyeye(邮包器)回复于 2002-07-31 19:24:12 得分 10
我用的是8.17的客户端,
alter table 表名
drop column 列名;
表已更改Top
11 楼riyeye(邮包器)回复于 2002-07-31 19:29:38 得分 0
改表名是rename to …………
哎,不记得了,那位会的提醒一下,:)
学习ing.Top
12 楼icystone(石冰)回复于 2002-07-31 19:48:30 得分 0
不好意思,没说清楚:
在同一台2000的客户端登陆两台oracle服务器,一台是2000server,另外一台是linux
这是2000上的
SQL*Plus: Release 8.1.7.0.0
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
置为不可用可以,删除字段可以
这是linux上的
SQL*Plus: Release 8.1.7.0.0
Oracle8i Enterprise Edition Release 8.1.7.0.1 - Production
With the Partitioning option
JServer Release 8.1.7.0.1 - Production
置为不可用,删除均不可以,错误为:
ORA-00406: COMPATIBLE parameter needs to be 8.1.0.0.0 or greaterTop
13 楼jlandzpa(jlandzpa)回复于 2002-07-31 21:32:24 得分 10
把初始化参数COMPATIBLE parameter 改大.Top
14 楼kmlinda()回复于 2002-08-02 15:32:58 得分 20
看oracle帮助:ORA-00406 COMPATIBLE parameter needs to be string or greater
Cause: The value of the COMPATIBLE initialization parameter is not high enough to allow the operation. Allowing the command would make the database incompatible with the release specified by the current COMPATIBLE parameter.
Action: Shut down and restart with a higher compatibility setting.
Top
15 楼icystone(石冰)回复于 2002-08-02 17:00:55 得分 0
我看了一下linux上的COMPATIBLE 是8.0.5改成8.1.0,从启动,还是不行!Top
16 楼penitent(只取一瓢)回复于 2002-08-02 17:56:58 得分 0
重新启动数据库,应当可以的Top
17 楼icystone(石冰)回复于 2002-08-05 11:22:59 得分 0
重新启动n次了,还是不行!Top




