- 最后登录
- 2018-9-14
- 在线时间
- 47 小时
- 威望
- 205
- 金钱
- 2327
- 注册时间
- 2011-10-13
- 阅读权限
- 150
- 帖子
- 90
- 精华
- 0
- 积分
- 205
- UID
- 26
|
3#
发表于 2017-7-16 17:05:54
本帖最后由 biotwang 于 2017-7-24 18:39 编辑
SQL> select obj# from obj$ where name='I_ACCESS1';
OBJ#
----------
108
SQL> select flags,obj# from ind$ where obj#=108;
FLAGS OBJ#
---------- ----------
2051 108
create table ind$ /* index table */
( obj# number not null, /* object number */
/* DO NOT CREATE INDEX ON DATAOBJ# AS IT WILL BE UPDATED IN A SPACE
* TRANSACTION DURING TRUNCATE */
dataobj# number, /* data layer object number */
ts# number not null, /* tablespace number */
file# number not null, /* segment header file number */
block# number not null, /* segment header block number */
...
flags number not null,
/* mutable flags: anything permanent should go into property */
/* unusable (dls) : 0x01 */ -- 2051
/* analyzed : 0x02 */
/* no logging : 0x04 */
/* index is currently being built : 0x08 */
/* index creation was incomplete : 0x10 */
/* key compression enabled : 0x20 */
/* user-specified stats : 0x40 */
/* secondary index on IOT : 0x80 */
/* index is being online built : 0x100 */
/* index is being online rebuilt : 0x200 */
/* index is disabled : 0x400 */
/* global stats : 0x800 */
/* fake index(internal) : 0x1000 */
/* index on UROWID column(s) : 0x2000 */
/* index with large key : 0x4000 */- SQL> alter database open upgrade;
- SQL> update ind$ set flags=1024 where obj#=108;
- SQL> commit;
- SQL> alter index SYS.I_ACCESS1 rebuild;
复制代码 SQL> select owner,table_name,index_name,tablespace_name,status from dba_indexes where table_name like '%ACCESS%';
OWNER TABLE_NAME INDEX_NAME TABLESPACE_NAME STATUS
---------- --------------- --------------- --------------- --------
SYS ACCESS$ I_ACCESS1 SYSTEM VALID
|
|