OB V4如何查看分区表的副本分布?请提供sql

【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】OB
【 使用版本 】OB V4
【问题描述】OB V4如何查看分区表的副本分布?请提供sql @论坛小助手

2 个赞

可以参考这个 ,
TABLE_NAME NOT IN 改下就可以

https://ask.oceanbase.com/t/topic/35632329/2

2 个赞

oceanbase.DBA_OB_TABLE_LOCATIONS视图

1 个赞

学习到了

1 个赞

查询此表哈

1 个赞

官网抄的哈:
select
database_name,
table_name,
partition_name,
tablet_id,
ls_id,
zone,
svr_ip,
role
from
oceanbase.dba_ob_table_locations
where
database_name=‘test_db’
and table_name=‘hp_t1’
order by
table_name,
partition_name,
role desc
;

1 个赞

ths

多谢~

thanks

1 个赞

谢谢~