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-22       - By Allen, Brandon

Reply:     <<     11  

Just an update in case anyone still cares - I found the source of my high
'transaction rollbacks' stats.  I captured a 10046 trace on a session that was
generating some transaction rollbacks and I found the following in the trace
file:

=====================
PARSING IN CURSOR #1 len=96 dep=0 uid=48 oct=2 lid=48 tim=4021023302 hv
=3246794128 ad='65b2b754'
insert into REPORT_INDEX_TEMP(REPORT_ID, RECORD_ID, PROJECT_ID, MODULE_ID)
values (:1,:2,:3,:4)
END OF STMT
EXEC #1:c=0,e=2873,p=0,cr=9,cu=11,mis=0,r=0,dep=0,og=2,tim=4021026271
ERROR #1:err=1 tim=380526050

This same sequence appeared 229 times, which matched exactly with the increase
I saw for the value of 'transaction rollbacks' in v$sesstat for this session.

So it appears the problem is due to a flaw in the application causing it to
attempt 30 duplicate key inserts every second!

/mnt1/oracle/ ->oerr ora 1
00001, 00000, "unique constraint (%s.%s) violated"

Regards,
Brandon


-- --Original Message-- --
From: Allen, Brandon
Sent: Monday, September 12, 2005 4:13 PM
To: 'Lex de Haan'; oracle-l@(protected)
Subject: RE: High "transaction rollbacks" value in v$sysstat


Now to try and figure out exactly what statements are failing and why . . .




>>Re: High "transaction rollbacks" value in v$sysstat
>>From: Phil Jones <phillipjones@(protected)>
>>To: lex.de.haan@(protected)
>>Date: Sat, 10 Sep 2005 12:55:57 +0000
>>See his recent blog entries:


On 10/09/05, Lex de Haan <lex.de.haan@(protected)> wrote:
> yep -- the famous (but less well known) Oracle feature "write consistency"


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