分区表 全局索引和本地索引 区别

SQL> create user test100 identified by test100 ;

User created.



SQL> grant dba to test100;

Grant succeeded.

ALL_IND_PARTITIONS 描述,对于每个index 分区访问到当前用户, 分区级别分区信息, 分区的存储参数


相关的视图:

DBA_IND_PARTITIONS 描述所有的index 分区在数据库

INDEX_OWNER              索引所有者

INDEX_NAME               索引名字

PARTITION_NAME           分区名字

drop table T48_TRANSACTION_MODEL;
create table T48_TRANSACTION_MODEL
(
  trandate    DATE,
  orgid       VARCHAR2(11),
  stan        NUMBER,
  subjectno   VARCHAR2(10),
  subjectname VARCHAR2(50),
  acctid      NUMBER
)
partition by range (TRANDATE)
(
  partition XYZ_20100000 values less than (TO_DATE(' 2011-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS')),
   
  partition XYZ_20110101 values less than (TO_DATE(' 2011-01-02 00:00:00', 'SYYYY-MM-DD HH24:MI:SS')),

  partition XYZ_20110102 values less than (TO_DATE(' 2011-01-03 00:00:00', 'SYYYY-MM-DD HH24:MI:SS')),

  partition XYZ_20110103 values less than (TO_DATE(' 2011-01-04 00:00:00', 'S

你可能感兴趣的:(sql,查询优化)