just wondering is there a way to List all objects in database which have not been Queried.
i know you can see the last_ddl_time and Created Time through sys.dba_Objects. But i am More interested in Total_reads on Objects specially Indexes and tables.And Who has Used it.(Not the Owner)
thanks
You can probably use the
V$SEGMENT_STATISTICSview to get the information you’re after. For example, if you wanted to see how many logical reads had been done on each segment in theSCOTTschema since the last database restartIf you are licensed to use the AWR and your AWR retention is long enough and you can make due with fewer available statistics, and you are only interested in the most used segments, you may also be able to use the
DBA_HIST_SEG_STATtable.If you are trying to find out whether a particular object is lightly used, however, the AWR is probably not the right solution since it might not show up as one of the top segments in any snapshot window despite being used occasionally.
Alternately, you could write your own process to capture the data from
V$SEGMENT_STATISTICSperiodically and compute the deltas by subtracting the statistic values from different snapshots.