当前位置: 首页 > news >正文

Oracle 19C reverse反向索引测试

一、重建的方式改造反向索引

1、创建普通主键索引

create table MS_BN.test as select * from MS_SC.QT_CHA_LIST where rownum

select * from MS_BN.test;

alter table MS_BN.TEST

add constraint PK_testid primary key (list_id)

using index;

drop table MS_BN.test purge;

select * from dba_indexes where table_owner='MS_BN' and table_name='TEST'

2、创建反向主键索引

create table MS_BN.test as select * from MS_SC.QT_CHA_LIST where rownum

create unique index MS_BN.idx_listid on MS_BN.test (list_id) reverse;

alter table MS_BN.TEST

add constraint PK_testid primary key (list_id)

using index ;

二、直接改造

alter index MS_BN.PK_testid rebuild reverse;

三、分区表测试

如下图,分区表,local字段的不支持反向索引

全局索引,则没有问题.

相关文章:

  • 安防监控视频平台EasyNVR级联视频上云系统EasyNVS出现“Login error”报错的原因排查
  • AI对话框实现
  • Workerman5.0如何实现一对一聊天
  • 实体机安装linux视频教程。windows和ubuntu共存。启动时选择切换引导系统。
  • 两个常用的用于读写和操作DXF文件C#库:netDxf 和 DXF.NET
  • Redis命令详解--集合
  • 服务器——报错解决:移动文件时,bash: /usr/bin/mv: Argument list too long
  • [密码学实战]Java实现抗量子Kyber512与Dilithium2算法及详解
  • Facebook 如何影响元宇宙的发展趋势
  • 连接 kafka0.8.1.1 java
  • 使用HAI来打通DeepSeek的任督二脉
  • Python简单爬虫实践案例
  • 基于Rockylinux9.5(LTS-SP4)安装MySQL Community Server 9.2.0
  • 侯捷 C++ 课程学习笔记:从对象生命周期谈C++内存管理范式演进——侯捷C++课程学习启示录
  • Transformer原理
  • 数据结构篇——二叉树的存储与遍历
  • libnvdla_compiler.so: cannot open shared object file: No such file or directory
  • 在LwIP中,`tcp_recved()`、`tcp_sndbuf()` 和 `tcp_write()`三个函数详细用法及示例
  • 【QT】Q_GLOBAL_STATIC的使用
  • 免费提供多样风格手机壁纸及自动更换功能的软件
  • 浦江潮涌征帆劲,上海以高质量发展服务全国发展大局
  • 美国务卿与以色列总理通话,讨论加沙局势
  • 当“小铁人”遇上青浦,看00后如何玩转长三角铁三
  • 乌称苏梅州一公共汽车遭俄军袭击,致9死4伤
  • 江西4人拟任县(市、区)委书记,其中一人为“80后”
  • 东部沿海大省浙江,为何盯上内河航运?