次のOracleログを受け取りました。
DEADLOCK DETECTED ( ORA-00060 )
[Transaction Deadlock]
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-00120007-0002acbf 82 185 X 67 240 X
TX-0008001c-0009ed94 67 240 X 82 185 X
session 185: DID 0001-0052-00000004 session 240: DID 0001-0043-00000004
session 240: DID 0001-0043-00000004 session 185: DID 0001-0052-00000004
Rows waited on:
Session 185: obj - rowid = 0001285C - AAAShcAAiAAEoVFAAi
(dictionary objn - 75868, file - 34, block - 1213765, slot - 34)
Session 240: obj - rowid = 0001285C - AAAShcAAiAAEoRWAA3
(dictionary objn - 75868, file - 34, block - 1213526, slot - 55)
----- Information for the OTHER waiting sessions -----
Session 240:
sid: 240 ser: 7 audsid: 32762787 user: 76/NETCRACKER1
flags: (0x8000041) USR/- flags_idl: (0x1) BSY/-/-/-/-/-
flags2: (0x40008) -/-
pid: 67 O/S info: user: oracle, term: UNKNOWN, ospid: 26869908
image: oracle@opipodb1
client details:
O/S info: user: adipoas1, term: unknown, ospid: 1234
machine: opipoas1 program: JDBC Thin Client
application name: JDBC Thin Client, hash value=2546894660
current SQL:
select o.object_id
from nc_objects o,
(select object_id
from nc_objects
connect by prior object_id = parent_id
start with object_id = :a1
union
select object_id
from nc_references
where reference in (select object_id
from nc_objects
connect by prior object_id = parent_id
start with object_id = :a1)) ids
where o.object_id = ids.object_id
order by o.object_id
for update of o.object_id
----- End of information for the OTHER waiting sessions -----
Information for THIS session:
----- Current SQL Statement for this session (sql_id=3mxkkzhttwa2q) -----
select o.object_id
from nc_objects o,
(select object_id
from nc_objects
connect by prior object_id = parent_id
start with object_id = :a1
union
select object_id
from nc_references
where reference in (select object_id
from nc_objects
connect by prior object_id = parent_id
start with object_id = :a1)) ids
where o.object_id = ids.object_id
order by o.object_id
for update of o.object_id
===================================================
これは、2つの等しいクエリ(ただし、異なるデータを使用している可能性があります)が互いにロックしていることを意味しますか?
もしそうなら、どうやってそれが起こるのでしょうか?-このクエリは順序付けられたシーケンスをロックします。ここでデッドロックを発生させることはできないと思います。
DBはメタモデルobject_id-PK
ありがとう