Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> SQL-Statements / full-table scans
Hello,
somebody out there who knows how to identify which SQL-Statements causes the (most) full-table scans on a productive server?
I found a statement on the web that counts the full-table scans grouped by tablename (Oracle 8i):
SELECT count(*) as Anzahl, o.object_name, o.owner
FROM dba_objects o, x$bh x
WHERE x.obj=o.object_id
AND o.object_type='TABLE'
AND standard.bitand(x.flag,524288)>0
AND o.owner<>'SYS'
GROUP BY o.object_name, o.object_type, o.owner
ORDER BY Anzahl DESC;
thanx
Klaus
Received on Wed Dec 04 2002 - 06:24:35 CST