Re: col_usage$ question

2003-11-19 Thread Binley Lim
Bingo! I did pretty much the same thing for an 8i DW with plenty of ad-hoc queries. I had no way of knowing what those ad-hoc queries might look like, and they will change over time. So I set up a polling process to do a textual parse of v$sql for those SQLs with highest disk_reads and/or

RE: col_usage$ question

2003-11-19 Thread Jamadagni, Rajendra
in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art ! -Original Message-From: Tanel Poder [mailto:[EMAIL PROTECTED]Sent: Tuesday, November 18, 2003 1:04 PMTo: Multiple recipients of list ORACLE-LSubject: Re: col_usage$ question Hi

Re: col_usage$ question

2003-11-18 Thread Wolfgang Breitling
That is a new table in Oracle 9 and is used by Oracle to track what columns are used in predicates. At present the only use of that information that I am aware of is in the procedure dbms_stats.gather_table_stats ( ..., method_opt = 'for columns ... size auto'); At 09:29 AM 11/18/2003, you

RE: col_usage$ question

2003-11-18 Thread K Gopalakrishnan
Raj: Wolfgang is right. It is populated by SMON (I think every 15mins SMON flushes the data to COL_USAGE) and the predicate columns are updated (or collected) from the hard parse of the SQLs. Best Regards, K Gopalakrishnan -Original Message- Wolfgang Breitling Sent: Tuesday, November

RE: col_usage$ question

2003-11-18 Thread Jamadagni, Rajendra
Thanks KG, Raj Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art ! -Original Message- Sent:

RE: col_usage$ question

2003-11-18 Thread Jamadagni, Rajendra
Thanks Wolfgang. Raj Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art ! -Original Message-

Re: col_usage$ question

2003-11-18 Thread Tanel Poder
Title: col_usage$ question Hi! If you describe this table then you see that this table stores column usage information in filter and join predicates for database objects. From describe, you see there are several filter and join conditions tracked for an object's (obj#) columns (intcol#).

Re: col_usage$ question

2003-11-18 Thread Daniel Fink
Could the column info be used to 'recommend' indexing? Daniel Fink Tanel Poder wrote: Hi!If you describe this table then you see that this table stores column usage information in filter and join predicates for database objects. From describe, you see there are several filter and join

Re: col_usage$ question

2003-11-18 Thread Wolfgang Breitling
Absolutely At 01:39 PM 11/18/2003, you wrote: Could the column info be used to 'recommend' indexing? Daniel Fink Tanel Poder wrote: Hi! If you describe this table then you see that this table stores column usage information in filter and join predicates for database objects. From describe,

Re: col_usage$ question

2003-11-18 Thread Wolfgang Breitling
At 11:04 AM 11/18/2003, you wrote: Hi! If you describe this table then you see that this table stores column usage information in filter and join predicates for database objects. From describe, you see there are several filter and join conditions tracked for an object's (obj#) columns