.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
High "transaction rollbacks " value in v$sysstat

High "transaction rollbacks " value in v$sysstat

2005-09-09       - By oracle-l-bounce@(protected)
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Upon further examination, I don't think the description provided in the
Metalink note below could explain what I'm seeing, because if that were the
case, then I would expect a large number of 'enqueue waits' accompanying the
'transaction rollbacks', but I'm not seeing that.  Here are the stats from the
worst one hour period yesterday:

Statistic                                      Total     per Second    per Trans
-- ---- ---- ---- ---- ---- ----- -- ---- ---- ----- -- ---- ------ -- ---- ----
enqueue waits                                    295            0.1          0.0
transaction rollbacks                        389,303          108.1          2.1
rollback changes - undo records a            394,309          109.5          2.1
user commits                                 189,364           52.6          1.0
user rollbacks                                     0            0.0          0.0

Can anyone think of an explanation for this?  How can I have 389,303
transaction rollbacks with 0 user rollbacks???

I'll open a TAR and let y'all know if/when I figure it out, but if you have any
ideas, please let me know.

Thanks!



-- --Original Message-- --
From: Allen, Brandon
Sent: Thursday, September 08, 2005 4:58 PM
To: 'Mladen Gogala'
Cc: Lou Fangxin; oracle-l@(protected)
Subject: RE: High "transaction rollbacks" value in v$sysstat


I found this explanation on Metalink, which might explain it:

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
From: Andrew Allen 26-Apr-05 15:29
Subject: Re : User rollbacks higher then user commits


Could be blocked updates causing the rollbacks. I do not know the source of the
stat in the statspack report, but I will bet that this is it.

You see, when you do an update -- especially when more than one row is affected
, your transaction could rollback and restart (possibly several times) before it
completes. Oracle does not take locks on every row before it does the update.
Instead it takes the row lock as it does the update on that row, so if you are
updating more than one row in a query, you may successfully change the first
few rows, then encounter a row that is locked. In this case your update will
rollback and then attempt to do the update again once the lock is cleared. Then
next pass may update all the rows or it may encounter another lock further down
the line and rollback/restart again. All this happens behind the scenes so you
never know about it.

HTH,
Andrew
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---


Privileged/Confidential Information may be contained in this message or
attachments hereto. Please advise immediately if you or your employer do not
consent to Internet email for messages of this kind. Opinions, conclusions and
other information in this message that do not relate to the official business
of this company shall be understood as neither given nor endorsed by it.

--
http://www.freelists.org/webpage/oracle-l