base line for new object [message #346240] |
Sun, 07 September 2008 21:55 |
caprikar
Messages: 226 Registered: March 2007
|
Senior Member |
|
|
Hi,
We have oracle 10g database running in Unix. Is there anyway i can keep a base line of existing indexes within the database because sometimes creating a new index or dropping an existing index creates big performance problem. In order to debug quickly, it will be helpful if i can have a baseline and compare with it if there is any difference whenever there is some performance problem.
Thanks
|
|
|
|
Re: base line for new object [message #347431 is a reply to message #346241] |
Thu, 11 September 2008 11:28 |
macdba
Messages: 27 Registered: May 2005 Location: US
|
Junior Member |
|
|
create table baseline_indexes as
select a.owner, a.index_name, a.table_owner, a.table_name, b.column_name, b.column_position from dba_indexes a, dba_ind_columns b
where a.owner not in ('SYS', 'SYSTEM', 'OUTLN', 'DBSNMP', 'PERFSTAT')
and a.owner = b.index_owner
and a.index_name = b.index_name
and a.table_owner = b.table_owner
and a.table_name = b.table_name;
and write a script to run everyday to compare the same results against this table. minus clause will do.
regards
--Mak
|
|
|