分区索引通过哪个视图可以查到是GLOBAL还是LOCAL?
可以看下这个文档, oceanbase.CDB_PART_INDEXES 视图中的 LOCALITY 字段查看
https://www.oceanbase.com/docs/common-oceanbase-database-cn-10000000001699291
3.2.3环境,貌似没有这张表,而且我是oracle模式
3.2.3 环境可以看这两个文档,同样是 LOCALITY 字段
查看所有的分区索引的分区信息:https://www.oceanbase.com/docs/enterprise-oceanbase-database-cn-10000000000356072
查看属于当前用户的分区索引的分区信息:https://www.oceanbase.com/docs/enterprise-oceanbase-database-cn-10000000000356151
该视图里没找到记录
select tenant_id,table_id,data_table_Id,table_name,database_id,index_type from oceanbase.__all_virtual_table where
data_table_id = (select table_id from oceanbase.__all_virtual_table where table_name=‘xxxxx’);
可以在sys租户里执行这个sql
index_type: 1/2是local,3/4是global