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

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字段的不支持反向索引

全局索引,则没有问题.


http://www.kler.cn/a/594883.html

相关文章:

  • 【AIGC前沿】MiniMax海螺AI视频——图片/文本生成高质量视频
  • SQLark 实战 | 如何通过对象名和 DDL 快速搜索数据库对象
  • 任务分配器做负载均衡方案对比和选择
  • webrtc3A算法
  • Chapter 4-15. Troubleshooting Congestion in Fibre Channel Fabrics
  • C++程序从windows移植到linux后cmake脚本CMakeLists.txt的修改
  • 论数据结构
  • Docker简易使用说明
  • Ubuntu24搭建k8s高可用集群
  • 分布式任务调度
  • 【MySQL速成指南】数据库定义语言(DDL)详解:从建库到改表!
  • c++简单实现redis
  • 华为参访预约,团队考察体验黑科技之旅
  • PostgreSQL 存储过程
  • 如何在云端平台上建立 30,000 名用户的网页 MMO游戏环境-2 (服务器)
  • 基于javaweb的SpringBoot成绩管理系统设计与实现(源码+文档+部署讲解)
  • 大数据学习(77)-Hive详解
  • C#/.NET/.NET Core技术前沿周刊 | 第 30 期(2025年3.10-3.16)
  • 实时监控、数据分析!Web-Check构建你的网站健康检测系统实操方案
  • 如何将外网 Git 仓库完整迁移到本地仓库并保留提交历史(附原理详解)