17.Oracle杂记——Oracle诊断表索引监控脚本

来源:互联网 发布:直销双轨会员系统源码 编辑:程序博客网 时间:2024/05/16 13:50

17.Oracle杂记——Oracle诊断表索引监控脚本

                  这个脚本主要是表索引相关的信息。

                  实现的功能如下:

$ sh dbtableindex.sh

Invalid Arguments!

pls use like this : ./dbtableindexmon.exe [NUMBER ]

the NUMBER can be from 1 to 100

                  [1] show the table's index, input the TABLE_NAME

                  [2] show the index's col name, input the TABLE_NAME

                  [3] show the table's parallel degree ,input the TABLE_NAME

                  [4] show the table's partition number ,input the TABLE_NAME

                  [5] create sql script to monitor index,input the schema

                  [6] create sql script to drop unused index,pls run enough time to sure all sqlis runned

                  [7] create sql script to unmonitor ndex,input the schema

                  [8] get the physical datafile,block number from ROWID,input the ROWID

                  [9] get the table's statistics,input the TABLE_NAME

                  [10] set the schema's statistics,input the SCHEMA_NAME

                  [11] delte the schema's statistics,input the SCHEMA_NAME

                  [12] get the table used block number,input the SCHEMA_NAME and TABLE_NAME

                  [13] get table index's clustering factor,input the TABLE_NAME

翻译成中文如下:

1 显示表的索引,需要输入表名

2 显示索引列名字,输入表名

3 显示表并行度,输入表名

4 显示表分区数量,输入表名

5 创建SQL脚本来监控索引

6 创建SQL脚本来删除未使用的索引

7 创建脚本来放弃监控索引

8 通过ROWID来获取物理的数据文件,块号

9 通过表的统计信息,需要输入表名

10 设置SCHEMA的静态统计

11 删除SCHEMA的静态统计

12 获取表使用的块号,需要输入SCHEMA名字和表名字

13 获取表索引的聚集因子,需要输入表名。

程序名字如下:dbtableindexmon.exe

下载地址:           http://download.csdn.net/detail/notbaron/9447082

 

原创粉丝点击