- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
4#
发表于 2013-1-25 18:03:08
- Connected to:
- Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- SQL> oradebug setmypid
- Statement processed.
- SQL> oradebug event 10704 trace name context forever,level 10;
- Statement processed.
- SQL> analyze index ind_tab validate structure online;
- Index analyzed.
- SQL> oradebug tracefile_name
- /s01/admin/G10R25/udump/g10r25_ora_25830.trc
- [root@vrh8 ~]# grep "ksqgtl \*\*\*" /s01/admin/G10R25/udump/g10r25_ora_25830.trc
- ksqgtl *** TX-0009002d-000072d7 mode=6 flags=0x401 timeout=0 ***
- SQL> select * from index_stats;
- no rows selected
复制代码 analyze index ind_tab validate structure online ==> 不要求 表上的 share lock,但是不填充index_stats 视图, 所以 validate structure online 只能用来验证索引上是否存在讹误。 |
|