分类(Oracle)
Oracle索引
2008/04/30 16:55
---- 普通索引 create index index_name on Table_name (colum_name)
tablespace index_tablespace ;
---- 位图索引 create bitmap index index_name on Table_name (colum_name)
tablespace index_tablespace ;
---- 当字段多重复数据时建 位图索引,能大大提高性能。 (如TELE_TYPE 字段)
---- 重建索引 alter index INDEX_NAME rebuild;
********************************************
分析索引需要跑两脚本
SQL> @ $ORACLE_HOME/rdbms/admin/utlxplan.sql
SQL> @ $ORACLE_HOME/sqlplus/admin/plustrce.sql
SQL> grant plustrace to scott;
授权成功
--------
再set autotrace on
********************************************
来自:本站原创
相关日志:
+引用(0) |
发表评论
| 昵称 密码 游客无需密码 |
| 网址 电邮 注册 |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
验证码 请输入左侧图片中的字符
记住我







