|
|
Oracle Metalink 的一片文章,大致说明了,慢的原因。
Data dictionary query very very slow
On my database v8.1.6 64 bits having 6506 objects (select * from DBA_OBJECT), I submit this query :
SELECT DISTINCT(a.segment_name),MAX(a.extent_id), b.max_extents,a.segment_type,a.tablespace_name,
a.owner, b.bytes, b.initial_extent, b.next_extent, b.min_extents, b.pct_increase
FROM dba_extents a, dba_segments b
WHERE a.segment_name=b.segment_name AND a.owner=b.owner AND (a.segment_name,a.owner) IN
(SELECT DISTINCT segment_name,owner FROM dba_extents
WHERE owner!='SYS' AND owner!='SYSTEM' AND owner!='DBSNMP'
AND owner!='SCOPEL' AND owner!='VALETTE')
GROUP BY a.segment_name, a.owner,a.segment_type,a.tablespace_name,
b.bytes, b.initial_extent, b.next_extent, b.min_extents, b.max_extents, b.pct_increase
HAVING MAX(a.extent_id) > b.max_extents * 0.90
ORDER BY a.segment_type,a.segment_name;
My problen is I have the respond after more than 4 hours.
My server (RS6000 Model H70) has 1Gb of RAM and under Server Manager the SHOW SGA command issue the folowing :
Total System Global Area 171628588 bytes
Fixed Size 108588 bytes
Variable Size 89067520 bytes
Database Buffers 81920000 bytes
Redo Buffers 532480 bytes
I don't use special parameters in my init<sid>.ora.
On my other platforms, I have 21 other database in v7.3.4.x, v8.0.6.x and v8.1.5.x and doesn't have any problem when I use the same query(respond after 15 seconds).
Does anyone have an idea about this phenomenon !
Thank you in advance.
--------------------------------------------------------------------------------
From: Oracle, Reem Munakash 24-Sep-00 17:54
Subject: Re : Data dictionary query very very slow
I filed bug 1415101 regarding this.
Reem Munakash
Electronic Support
--------------------------------------------------------------------------------
From: Oracle, Reem Munakash 03-Oct-00 23:47
Subject: Re : Data dictionary query very very slow
FYI -- the bug I filed, 1415101 has been closed as a duplicate of bug 1043147, which is closed as not a bug. The slow down is caused by hints embedded in the dictionary tables. These hints are necessary for other areas of Oracle. Developers suggest using the RULE hint as a way around this issue.
Reem Munakash
Electronic Support
--------------------------------------------------------------------------------
From: Jean-Pierre SCOPEL 06-Oct-00 10:05
Subject: Re : Data dictionary query very very slow
I have modified my query and then have inserted 2 hints /* +RULE */.
I have obtained my result afer 15 seconds.
Thank you for your help. |
|