Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Statspack analysis

Re: Statspack analysis

From: oracle_doc <nilendu_at_nilendu.com>
Date: 31 Mar 2006 11:35:56 -0800
Message-ID: <1143833755.952174.136260@i40g2000cwc.googlegroups.com>


One more thing - could you post the full text of the SQL?

You can do so by querying -

select sql_text from v$sqltext where hash_value =3097108327 order by piece ;

(or, alternately find out the hash_value after querying V$SQLAREA for the SQL doing most "buffer_gets" and then find the full_text)

This structure looks odd to me -

select
a.tablespace_name,a.bytes_full,b.bytes_total,a.bytes_full/b.bytes_total status, b.bytes_total-a.bytes_full free from
(select tablespace_name,sum(bytes) bytes_full from dba_extents where
tablespace_name='HBMSTAB' group by tablespace_name) a,
(select tablespace_name,sum(bytes) bytes_total from dba_data_files

If we know tablespace name - the scalar sub-queries can just be -

select sum(bytes) bytes_full from dba_extents where tablespace_name='HBMSTAB'

rather than

select tablespace_name,sum(bytes) bytes_full from dba_extents where tablespace_name='HBMSTAB' group by tablespace_name Received on Fri Mar 31 2006 - 13:35:56 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US