批量rebuild索引
来源:互联网 发布:qq留言软件 编辑:程序博客网 时间:2024/06/03 18:47
自己写了一个批量rebuild索引的存储过程:
create or replace procedure sp_rebuild_indexas v_count number; cursor empCur is select owner,index_name from dba_indexes where status='UNUSABLE'; v_sql varchar2(100); v_owner varchar2(20); v_index_name varchar2(50);BEGIN select count(0) into v_count from dba_indexes where status='UNUSABLE'; if v_count>0 then execute immediate 'alter session set skip_unusable_indexes=false'; open empCur; loop fetch empCur into v_owner,v_index_name; v_sql:='alter index '||v_owner||'.'||v_index_name||' rebuild'; execute immediate v_sql; exit when empCur%notfound; end loop; close empCur; end if;END;
0 0
- 批量rebuild索引
- rebuild 分区索引
- MSSQL Rebuild(重建)索引
- 转:rebuild索引
- 选出需要rebuild的索引
- 索引create|rebuild|rebulid online
- rebuild 索引遭遇ORA-02243
- Elasticsearch索引重建(Rebuild)
- 选出需要rebuild的索引
- Elasticsearch索引重建(Rebuild)
- elasticsearch 索引重建(Rebuild)
- 索引的rebuild和rebuild online的区别
- 索引的rebuild和rebuild online的区别
- 重建索引:ALTER INDEX..REBUILD ONLINE vs ALTER INDEX..REBUILD
- SQL Server 重建索引 Rebuild Index
- 索引是如何定期rebuild的
- kscope cscope rebuild database 索引不能使用
- 生成指定表rebuild所有索引的语句
- 通过action 使用 request.getParameter
- Java基础12--包--多线程
- 关闭浏览器的监听
- AS3使用PrintJob实现单页或多页打印
- MIPI 接口知识点
- 批量rebuild索引
- Blocks: Conclusion
- pku openjudge 拓扑排序
- Android 开发中使用 SQLite 数据库
- struts1与struts2区别
- 正确处理下载文件时HTTP头的编码问题(Content-Disposition)
- source insight快捷键及使用技巧
- action与表单的对接
- 混音算法的学习与研究