.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-12       - By Jared Still
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

On 9/12/05, Allen, Brandon <Brandon.Allen@(protected)> wrote:
>"write consistency" does not show up in the 'transaction rollbacks'
statistic.  So, I've come
>  to believe that the high 'transaction rollbacks' are the result of failed
DML statements
> e.g. due to unique constraint violations.
>

Easy to test:

Session 1:

drop table rtest;
create table rtest ( x number, primary key (x));

insert into rtest values(1);

Session 2:

select n.name, s.value
from v$mystat s, v$statname n
where n.statistic# = s.statistic#
and n.name in ('user rollbacks','transaction rollbacks')
/

NAME                                                                  VALUE
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- ---- --
user rollbacks                                                            0
transaction rollbacks                                                     0

2 rows selected.

insert into rtest values(1);
(waits...)

Session 1:

commit;

Session 2:

insert into rtest values(1)
*
ERROR at line 1:
ORA-00001 (See ORA-00001.ora-code.com): unique constraint (JS.SYS_C0022235) violated

select n.name, s.value
from v$mystat s, v$statname n
where n.statistic# = s.statistic#
and n.name in ('user rollbacks','transaction rollbacks')
/

NAME                                                                  VALUE
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- ---- --
user rollbacks                                                            0
transaction rollbacks                                                     1

2 rows selected.

Do this a few times, and xaction rollbacks will continue to increase
while user rollbacks remains at 0.

--
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
11+ years of trying to appear to know what I'm doing.
--
http://www.freelists.org/webpage/oracle-l