- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
3#
发表于 2013-11-6 14:30:30
SQL> select * from v$VERSION;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
CREATE TABLE virtual_index_tab as SELECT * FROM dba_tables;
CREATE INDEX virtual_index_tab_i ON virtual_index_tab(table_name) NOSEGMENT;
alter index virtual_index_tab_i monitoring usage;
SQL> alter index virtual_index_tab_i monitoring usage;
alter index virtual_index_tab_i monitoring usage
*
ERROR at line 1:
ORA-08114: can not alter a fake index
[oracle@oel8 ~]$ oerr ora 8114
08114, 00000, "can not alter a fake index"
// *Cause: User attempted to alter a fake index
// *Action: drop fake index
一个fake index是不能被真实使用的 只能被CBO 用来生成执行计划而已, 且无法再实际执行时使用, 所以不存在 usage 使用信息, 所以也就没有monitor usage的必要 |
|