欢迎来到天天文库
浏览记录
ID:5804671
大小:72.00 KB
页数:3页
时间:2017-12-25
《创建索引的应用实例》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、创建索引的应用实例例11-37创建正常索引event_sal_idxSQL>createindexscott.emp_sal_idxOnscott.event(sal)Pctfree25Storage(initial500k)Tablespacesystem;例11-38创建位图索引event_evttype_idxSQL>createbitmapindexscott.emp_job_idxonscott.emp(job)pctfree25storage(initial300k)tablespacesy
2、stem;例11-39查询以上所创建的俩个索引以及它们所基于的表,所在的表空间,索引的类型和状态信息。SQL>selectindex_name,table_name,tablespace_name,index_type,uniqueness,statusFromdba_indexesWhereowner=’SCOTT’Andtablespace_namelike’SY%’;例11-40查询俩个索引所基于的例,索引的主人和所基于的表的主人的信息。SQL>selectindex_name,table_nam
3、e,column_name,index_ownerFromdba_ind_columnsWheretable_owner=’SCOTT’Andindex_namelike’%_IDX’;例11-41查询这俩个索引的存储参数是不是按命令设置的。SQL>selectindex_name,pct_free,pct_increase,initial_extent,next_extentFromdba_indexesWhereowner=’SCOTT’Andtablespace_namelike‘SY%’;
此文档下载收益归作者所有