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 显示表并行度,输入表名
5 创建sql脚本来监控索引
7 创建脚本来放弃监控索引
9 通过表的统计信息,需要输入表名
10 设置SCHEMA的静态统计
12 获取表使用的块号,需要输入SCHEMA名字和表名字
13 获取表索引的聚集因子,需要输入表名。
程序名字如下:dbtableindexmon.exe
原文链接:https://www.f2er.com/oracle/207446.html