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
Deadlock problem

Deadlock problem

2006-05-08       - By Alessandro Vercelli

Reply:     1     2     3     4     5     6     7     8     9     10  

Hi all,
I'm trying to solve an ora-4020 (See ora-4020.ora-code.com) (deadlock) issue; the trace file (sorry if
messed) shows:

ksqded1:  deadlock detected via did
DEADLOCK DETECTED
Current SQL statement for this session:
Update <TABLE> set <FIELD1>='<VALUE>' where <FIELD2> like '<STRING>%'
The following deadlock is not an ORACLE error. It is a
deadlock due to user error in the design of an application
or from issuing incorrect ad-hoc SQL. The following
information may aid in determining the deadlock:
Deadlock graph:
                      -- ------Blocker(s)-- -----  -- ------Waiter(s)-- ------
Resource Name          process session holds waits  process session holds waits
TX-00040015-0000305b        13      11     X             10      14           X
TX-0007000b-0000309e        10      14     X             13      11           X
session 11: DID 0001-000D-00000001      session 14: DID 0001-000A-00000001
session 14: DID 0001-000A-00000001      session 11: DID 0001-000D-00000001
Rows waited on:
Session 14: obj - rowid = 0000147E - AAABR+AAKAAAAJIAAH
Session 11: obj - rowid = 0000147E - AAABR+AAKAAAzEeAAH

The trace file shows clearly that session 11 and 14 are blocking each other.

Note that <STRING> can be very long, but it's almost certain that this is not
causing the problem.

Database version is 8.0.5 on Solaris 8 sparc.

So, I'm looking at the piece of source containing the affected code (I'm not
the developer neither a skilled one) and I have seen something strange, that is
a sql package containing many procedures with insert/update statements and none
of these insert/update was followed by a commit; I asked the developer for this
matter and she said that a commit would prevent a possible rollback of database
transaction.

Now, my questions are:
1. Is it correct an insert/update without a commit into a sql package? If yes,
when are the inserted/updated data commited?
2. Would this the possible cause of the deadclock, as the table indexes could
be locked by a large number of records inserted/updated?
3. Is this the correct way to get the choice of performing a rollback?


Thanks for you help,

Alessandro

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