CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Oracle >  基础和管理

怎样删除字段?

楼主icystone(石冰)2002-07-30 17:43:34 在 Oracle / 基础和管理 提问

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

相关问题

  • 怎样在表中删除某字段?谢谢!
  • 问:怎样更名oracle 某表的字段或删除(null)
  • 怎样更名oracle 某表的字段或删除?
  • 请问怎样删除表中的一个字段?
  • VB里怎样删除FroxPro表里的字段
  • oracel8.05怎样删除一个表中的字段
  • sqlSERVER 怎样删除一个含有默认值的字段
  • 字段删除不了!???
  • 删除表中的字段
  • 删除一个字段?

关键词

  • 字段
  • release
  • sql
  • 修改
  • oracle
  • linux
  • release8.1.7.0
  • optionjserver
  • 删除
  • productionwith

得分解答快速导航

  • 帖主:icystone
  • penitent
  • penitent
  • jiezhi
  • gyang
  • xinpingf
  • riyeye
  • jlandzpa
  • kmlinda

相关链接

  • Oracle类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo