【分区管理】如何确定分区索引是Global还是Local,PREFIXED 还是NON-PREFIXED
2014-06-21 08:06
357 查看
http://www.askmaclean.com/archives/determine-partition-index-local-global-prefixed.html
【分区管理】如何确定分区索引是Global还是Local,PREFIXED 还是NON-PREFIXED
可以通过 DBA_PART_INDEXES视图中的LOCALITY和ALIGNMENT确定这一点:
LOCALITY VARCHAR2(6) Whether this partitioned index is LOCAL or GLOBAL
ALIGNMENT VARCHAR2(12) Whether this partitioned index is PREFIXED or NON-PREFIXED
脚本如下:
相关文章 | Related posts:
Function
Based Indexes and Global Temporary Tables
Script:Lists
Text index and it’s dependent objects
Script:列出数据库中子表上没有对应索引的外键
Script:Generate
A DDL Script For A Table
Script
to Detect Tablespace Fragmentation
Restoring
a user's original password
Oracle SQL Developer 的一个Bug
DBMS_REPAIR example
FILED UNDER: ORACLE, ORACLE分区技术PARTITION
【分区管理】如何确定分区索引是Global还是Local,PREFIXED 还是NON-PREFIXED
可以通过 DBA_PART_INDEXES视图中的LOCALITY和ALIGNMENT确定这一点:
LOCALITY VARCHAR2(6) Whether this partitioned index is LOCAL or GLOBAL
ALIGNMENT VARCHAR2(12) Whether this partitioned index is PREFIXED or NON-PREFIXED
CREATE TABLE employees (employee_id NUMBER(4) NOT NULL, last_name VARCHAR2(10), department_id NUMBER(2)) PARTITION BY RANGE (department_id) (PARTITION employees_part1 VALUES LESS THAN (11) TABLESPACE users, PARTITION employees_part2 VALUES LESS THAN (21) TABLESPACE users, PARTITION employees_part3 VALUES LESS THAN (31) TABLESPACE users); CREATE INDEX local_one ON employees (employee_id) LOCAL; SQL> CREATE INDEX local_one ON employees (employee_id) LOCAL; 索引已创建。 SQL> select locality,ALIGNMENT from dba_part_indexes where index_name='LOCAL_ONE'; LOCALITY ALIGNMENT ------------ ------------------------ LOCAL NON_PREFIXED drop index LOCAL_ONE; CREATE INDEX global_one ON employees(employee_id) GLOBAL PARTITION BY RANGE(employee_id) (PARTITION p1 VALUES LESS THAN(5000), PARTITION p2 VALUES LESS THAN(MAXVALUE)); SQL> select locality,ALIGNMENT from dba_part_indexes where index_name='GLOBAL_ONE'; LOCALITY ALIGNMENT ------------ ------------------------ GLOBAL PREFIXED
脚本如下:
select locality,ALIGNMENT from dba_part_indexes where index_name='&INDEX_NAME';
相关文章 | Related posts:
Function
Based Indexes and Global Temporary Tables
Script:Lists
Text index and it’s dependent objects
Script:列出数据库中子表上没有对应索引的外键
Script:Generate
A DDL Script For A Table
Script
to Detect Tablespace Fragmentation
Restoring
a user's original password
Oracle SQL Developer 的一个Bug
DBMS_REPAIR example
FILED UNDER: ORACLE, ORACLE分区技术PARTITION
相关文章推荐
- 【翻译自mos文章】关于分区索引:Global, Local, Prefixed and Non-Prefixed
- 【翻译自mos文章】关于分区索引:Global, Local, Prefixed and Non-Prefixed
- 本地分区索引如何确定表空间
- 本地分区索引如何确定表空间
- 【NetApp】如何确定DataOntap的版本是Non-restricted Countries还是Restricted Countries
- 本地分区索引如何确定表空间
- 索引分区分为:本地(局部)索引(local index) 全局索引(global index)
- 本地分区索引如何确定表空间
- 如何设计分区索引
- 如何确定您的电脑是32位还是64位操作平台?
- 如何确定oracle数据库的连接模式是专用,还是共享模式?
- oracle分区表、分区索引的管理!
- 深入学习分区表及分区索引(7)--怎样管理-续
- 增加表分区时,为local分区索引指定不同表空间的方法
- 如何确定您的电脑是32位还是64位操作平台?
- What is Local Index and Global Index in Partition Table? What is Prefix Index and Nonprefix Index in table?
- 如何确定计算机运行的是 32 位还是 64 位版本的 Windows 操作系统
- 深入学习分区表及分区索引(7)--怎样管理
- 如何确定系统启用了32 位还是64位 Solaris 功能
- 『管理调优』如何确定一个回滚段被哪个用户使用