ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle使得index变成不可用状态

oracle使得index变成不可用状态

原创 Linux操作系统 作者:haoyuanfen 时间:2010-05-18 13:57:50 0 删除 编辑

oracle使得index变成不可用状态:

ALTER INDEX index_name UNUSABLE;

执行成功后,如果后期需要用到该索引的话,必须重建。重建后自动变成usable状态

 

 

另外,数据库还有2个种修改index状态叫 enable和disable:

ALTER INDEX index_name ENABLE;

ALTER INDEX index_name DISABLE;

2者之间的区别: enable和disable仅仅是针对函数索引

ENABLE applies only to a function-based index that has been disabled because a user-defined function used by the index was dropped or replaced. This clause enables such an index if these conditions are true:

  • The function is currently valid

  • The signature of the current function matches the signature of the function when the index was created

  • The function is currently marked as DETERMINISTIC

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

请登录后发表评论 登录
全部评论

注册时间:2009-04-02

  • 博文量
    55
  • 访问量
    283764