Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: DML on dual?
I have not seen this situation, but I have a thought on it. At one site, a
client had all their sequences with a cache size 0 to "enforce" a nogap
policy which obviously didn't work instead it caused a sql loader job to run
extremly slow. After tracing the session I saw a ton of recursive sql on the
internal sequnence tables which is a serial operation (to prevent duplicate
sequence values) using locks.
While the sql loader job does not, afaik, select from dual the lock might be caused by underlying sequence refreshing its values too often.
Ken
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]
On Behalf Of Kerber, Andrew W.
Sent: Thursday, April 12, 2007 11:07 AM
To: Dave.Herring_at_acxiom.com; oracle-l_at_freelists.org
Subject: RE: DML on dual?
Is perhaps doing a select from dual to bump a sequence as part of a transaction? I suppose that might get a lock...
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]
On Behalf Of Herring Dave - dherri
Sent: Thursday, April 12, 2007 9:42 AM
To: oracle-l_at_freelists.org
Subject: DML on dual?
Folks,
I've got an odd problem on our production database where it seems physical writes and row lock waits are happening on SYS.DUAL. These are not causing any major performance problems, but it concerns me that some sort of DML (I'm assuming) is being performed against SYS.DUAL, which in my mind should never happen.
I came to the conclusion about DML against SYS.DUAL based on data from STATS$SEG_STAT for that segment, where I see physical writes and row lock waits, at most 100 or so per day.
I've set auditing on for INSERT, UPDATE, LOCK, DELETE on SYS.DUAL, but nothing has shown up. I've search V$SQL for any SQL statement referencing DUAL/SYS.DUAL but have found nothing beyond SELECT statements.
Anyone else see this behavior and/or have any clues on how to track what's causing this activity?
Database is 9.2.0.6, on Tru64 5.1b, 10 x 40GB GS1280 server.
Thanks.
Dave
If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system.
Thank You.
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Apr 12 2007 - 13:20:33 CDT
![]() |
![]() |