Strange problem deadlock (no foreign key not indexed)

Hello
We are on 11.2.0.2 on Linux. There is a blockage in our database (I first checked that no foreign key is not indexed). This impasse has this type of data in the alert file (after it cuts a lot). Can anyone suggest what might be the cause?
--FROM Alert log: "Global Enqueue Services Deadlock detected. More info in file....trc"
--below from trace file:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
ORACLE_HOME = /oracle/product/database/1120/db1
System name:     Linux
Node name:     NODE1
Release:     2.6.32.59-0.3-default
Version:     #1 SMP 2012-04-27 11:14:44 +0200
Machine:     x86_64
Instance name: db02
Redo thread mounted by this instance: 0 <none>
Oracle process number: 12
Unix process pid: 17454, image: oracle@db01 (LMD0)


*** 2012-09-16 00:54:00.094
*** SESSION ID:(181.1) 2012-09-16 00:54:00.094
*** CLIENT ID:() 2012-09-16 00:54:00.094
*** SERVICE NAME:() 2012-09-16 00:54:00.094
*** MODULE NAME:() 2012-09-16 00:54:00.094
*** ACTION NAME:() 2012-09-16 00:54:00.094
 
* Load Monitor used for high load check 
* Old Low - High Load Threshold Range = [0 - 0] 
* hlcpu 5 (kjihpc 5), slpct 90, llpct 75 
* New Low - High Load Threshold Range = [30720 - 40960] 

*** 2012-09-16 00:54:02.690
KSXPCINI: kjxgnpub KSXP 2.2.0GESR000 13, 0

*** 2012-09-16 00:54:11.168
ftd (4) received from node 1 (84 5.0/0.0) 
all ftds received 
* kjxhvmaph: domain 0 valid = 1 according to instance 1 
ftd (6) received from node 1 (84 7.0/0.0) 

all ftds received 
ftd (19) received from node 1 (84 20.0/0.0) 
all ftds received 
* Initialize deadlock detection * 
ftd (21) received from node 1 (84 22.0/0.0) 
all ftds received 
ftd (23) received from node 1 (84 22.0/0.0) 
all ftds received 

*** 2012-09-16 00:54:11.460
* kjxpnpgoh: PnP Go Ahead received from 1 (pnp inc 84) 

*** 2012-09-16 00:54:31.988
Begin DRM(399) (swin 1) - AFFINITY transfer pkey 4.1 to 2 oscan 1.1
kjiobjscn 1 
ftd (30) received from node 1 (84 0.31/0.0) 
all ftds received 
ftd (33) received from node 1 (84 0.34/5.0) 
all ftds received 
ftd (35) received from node 1 (84 0.36/6.0) 
all ftds received 
ftd (37) received from node 1 (84 0.38/7.0) 
all ftds received 
2012-09-16 00:54:32.061349 : 

* End DRM for pkey remastering request(s) (locally requested)

*** 2012-09-16 00:55:02.914
2012-09-16 00:55:02.914301 : Setting 3-way CR grants to 1 global-lru off? 0
2012-09-16 03:00:44.727542 : Setting 3-way CR grants to 1 global-lru off? 0

*** 2012-09-16 03:04:25.696
Begin DRM(400) (swin 0) - AFFINITY transfer pkey 74335.0 to 2 oscan 0.0
kjiobjscn 1 
ftd (30) received from node 1 (84 0.30/0.0) 
all ftds received 



* kjxftdn: break from kjxftdn, post lmon later 
ftd (37) received from node 1 (84 0.38/0.0) 
all ftds received 
ftd (30) received from node 1 (84 0.31/0.0) 
all ftds received 
ftd (33) received from node 1 (84 0.34/0.0) 
all ftds received 
ftd (35) received from node 1 (84 0.35/0.0) 
all ftds received 


* kjxftdn: break from kjxftdn, post lmon later 
ftd (37) received from node 1 (84 0.38/0.0) 
all ftds received 
ftd (30) received from node 1 (84 0.30/0.0) 
all ftds received 

(repeated such entry removed)
* End DRM for pkey remastering request(s) (locally requested)

*** 2012-09-17 07:20:51.111
Begin DRM(401) (swin 0) - AFFINITY transfer pkey 88491.0 to 2 oscan 0.0
kjiobjscn 1 
ftd (30) received from node 1 (84 0.31/0.0) 
all ftds received 
ftd (30) received from node 1 (84 0.30/0.0) 
all ftds received 


* kjxftdn: break from kjxftdn, post lmon later 
ftd (33) received from node 1 (84 0.34/0.0) 
all ftds received 
ftd (35) received from node 1 (84 0.36/0.0) 
all ftds received 

* kjxftdn: break from kjxftdn, post lmon later 
2012-09-17 07:20:51.407739 : 

* End DRM for pkey remastering request(s) (locally requested)

*** 2012-09-17 22:04:10.873
Begin DRM(402) (swin 0) - AFFINITY transfer pkey 74331.0 to 2 oscan 0.0
kjiobjscn 1 

*** 2012-09-17 22:04:11.001
ftd (30) received from node 1 (84 0.31/0.0) 
all ftds received 
ftd (33) received from node 1 (84 0.34/0.0) 
ftd (30) received from node 1 (84 0.30/0.0) 
all ftds received 


* kjxftdn: break from kjxftdn, post lmon later 
ftd (35) received from node 1 (84 0.36/0.0) 
all ftds received 
ftd (33) received from node 1 (84 0.33/0.0) 
all ftds received 

* kjxftdn: break from kjxftdn, post lmon later 

*** 2012-09-18 11:07:30.967
ftd (35) received from node 1 (84 0.36/0.0) 
all ftds received 
ftd (37) received from node 1 (84 0.38/0.0) 
all ftds received 
2012-09-18 11:07:30.973676 : 
End DRM(405) for pkey transfer request(s) from 1
ENQUEUE DUMP REQUEST: from 1 spnum 12 on [0xf0008][0x24a0],[TX][ext 0x4,0x0] for reason 3 mtype 0

*** 2012-09-18 17:14:20.114
DUMP LOCAL BLOCKER/HOLDER: block level 3 res [0xf0008][0x24a0],[TX][ext 0x4,0x0]
----------resource 0xc2bc3f50----------------------
resname       : [0xf0008][0x24a0],[TX][ext 0x4,0x0]
hash mask     : x3
Local inst    : 2
dir_inst      : 2
master_inst   : 2
hv idx        : 124
hv last r.inc : 84
current inc   : 84
hv status     : 0
hv master     : 1
open options  : dd 
grant_bits    : KJUSERNL KJUSEREX 
grant mode    : KJUSERNL  KJUSERCR  KJUSERCW  KJUSERPR  KJUSERPW  KJUSEREX
count         : 1         0         0         0         0         1
val_state     : KJUSERVS_NOVALUE
valblk        : 0x00000000000000000000000000000000 .
access_inst   : 2
vbreq_state   : 0
state         : x0
resp          : 0xc2bc3f50
On Scan_q?    : N
Total accesses: 2652
Imm.  accesses: 2516
Granted_locks : 1 
Cvting_locks  : 1 
value_block:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GRANTED_Q :
lp 0xd0f7e510 gl KJUSEREX rp 0xc2bc3f50 [0xf0008][0x24a0],[TX][ext 0x4,0x0]
  master 2 gl owner 0xd5df5688 possible pid 19261 xid 53000-0002-00000286 bast 0 rseq 125 mseq 0 history 0x4977d495
  open opt KJUSERDEADLOCK  
CONVERT_Q: 
lp 0xd0f7e6e0 gl KJUSERNL rl KJUSERPR rp 0xc2bc3f50 [0xf0008][0x24a0],[TX][ext 0x4,0x0]
  master 2 owner 1  bast 1 rseq 207 mseq 0x1 history 0x77d497ad
  convert opt KJUSERGETVALUE  
----------enqueue 0xd0f7e510------------------------
lock version     : 89
Owner inst       : 2
grant_level      : KJUSEREX
req_level        : KJUSEREX
bast_level       : KJUSERNL
notify_func      : (nil)
resp             : 0xc2bc3f50
procp            : 0xdb10cc20
pid              : 17454
proc version     : 0
oprocp           : (nil)
opid             : 17454
group lock owner : 0xd5df5688
possible pid     : 19261
xid              : 53000-0002-00000286
dd_time          : 0.0 secs
dd_count         : 0
timeout          : 0.0 secs
On_timer_q?      : N
On_dd_q?         : N
lock_state       : GRANTED
ast_flag         : 0x0
Open Options     : KJUSERDEADLOCK 
Convert options  : KJUSERNOQUEUE KJUSERNODEADLOCKWAIT 
History          : 0x4977d495
Msg_Seq          : 0x0
res_seq          : 125
valblk           : 0x00000000000000000000000000000000 .
user session for deadlock lock 0xd0f7e510
  sid: 290 ser: 713 audsid: 82787243 user: 64/SCOTT    flags: (0x41) USR/- flags_idl: (0x1) BSY/-/-/-/-/-
    flags2: (0x40009) -/-/INC
  pid: 83 O/S info: user: grid, term: UNKNOWN, ospid: 19261
    image: oracle@db1
  client details:
    O/S info: user: wasadmin, term: unknown, ospid: 1234
    machine: cdldvjassvap291 program: JDBC Thin Client
    application name: JDBC Thin Client, hash value=2546894660
  current SQL:
  INSERT INTO tab1 SELECT x from tab2;

DUMP LOCAL BLOCKER: initiate state dump for DEADLOCK
  possible owner[83.19261] on resource TX-000F0008-000024A0

*** 2012-09-18 17:14:20.115
Submitting asynchronized dump request [28]. summary=[ges process stack dump (kjdglblkrdm1)].
Global blockers dump start:---------------------------------
DUMP LOCAL BLOCKER/HOLDER: block level 3 res [0x150019][0x12b0a],[TX][ext 0x2,0x0]
----------resource 0xdcf6de80----------------------
resname       : [0x150019][0x12b0a],[TX][ext 0x2,0x0]
hash mask     : x3
Local inst    : 2
dir_inst      : 1
master_inst   : 1
hv idx        : 119
hv last r.inc : 82
current inc   : 84
hv status     : 0
hv master     : 0
open options  : dd 
Held mode     : KJUSERNL
Cvt mode      : KJUSERPR
Next Cvt mode : KJUSERNL
msg_seq       : 0x1
res_seq       : 32
grant_bits    : KJUSERNL 
grant mode    : KJUSERNL  KJUSERCR  KJUSERCW  KJUSERPR  KJUSERPW  KJUSEREX
count         : 1         0         0         0         0         0
val_state     : KJUSERVS_NOVALUE
valblk        : 0xd0f5415aff7f00000000000000000000 .AZ
access_inst   : 1
vbreq_state   : 0
state         : x8
resp          : 0xdcf6de80
On Scan_q?    : N
Total accesses: 3472
Imm.  accesses: 1369
Granted_locks : 0 
Cvting_locks  : 1 
value_block:  d0 f5 41 5a ff 7f 00 00 00 00 00 00 00 00 00 00
GRANTED_Q :
CONVERT_Q: 
lp 0xdb976808 gl KJUSERNL rl KJUSERPR rp 0xdcf6de80 [0x150019][0x12b0a],[TX][ext 0x2,0x0]
  master 1 gl owner 0xdc688bc0 possible pid 19261 xid 53000-0002-00000286 bast 0 rseq 32 mseq 0 history 0x495149da
  convert opt KJUSERGETVALUE  
DUMP LOCAL BLOCKER/HOLDER: block level 3 res [0xf0008][0x24a0],[TX][ext 0x4,0x0]
----------resource 0xc2bc3f50----------------------
resname       : [0xf0008][0x24a0],[TX][ext 0x4,0x0]
hash mask     : x3
Local inst    : 2
dir_inst      : 2
master_inst   : 2
hv idx        : 124
hv last r.inc : 84
current inc   : 84
hv status     : 0
hv master     : 1
open options  : dd 
grant_bits    : KJUSERNL KJUSEREX 
grant mode    : KJUSERNL  KJUSERCR  KJUSERCW  KJUSERPR  KJUSERPW  KJUSEREX
count         : 1         0         0         0         0         1
val_state     : KJUSERVS_NOVALUE
valblk        : 0xd0f5415aff7f00000000000000000000 .AZ
access_inst   : 2
vbreq_state   : 0
state         : x0
resp          : 0xc2bc3f50
On Scan_q?    : N
Total accesses: 2654
Imm.  accesses: 2517
Granted_locks : 1 
Cvting_locks  : 1 
value_block:  d0 f5 41 5a ff 7f 00 00 00 00 00 00 00 00 00 00
GRANTED_Q :
lp 0xd0f7e510 gl KJUSEREX rp 0xc2bc3f50 [0xf0008][0x24a0],[TX][ext 0x4,0x0]
  master 2 gl owner 0xd5df5688 possible pid 19261 xid 53000-0002-00000286 bast 0 rseq 125 mseq 0 history 0x4977d495
  open opt KJUSERDEADLOCK  
CONVERT_Q: 
lp 0xd0f7e6e0 gl KJUSERNL rl KJUSERPR rp 0xc2bc3f50 [0xf0008][0x24a0],[TX][ext 0x4,0x0]
  master 2 owner 1  bast 1 rseq 207 mseq 0x1 history 0x77d497ad
  convert opt KJUSERGETVALUE  
----------enqueue 0xd0f7e510------------------------
lock version     : 89
Owner inst       : 2
grant_level      : KJUSEREX
req_level        : KJUSEREX
bast_level       : KJUSERNL
notify_func      : (nil)
resp             : 0xc2bc3f50
procp            : 0xdb10cc20
pid              : 17454
proc version     : 0
oprocp           : (nil)
opid             : 17454
group lock owner : 0xd5df5688
possible pid     : 19261
xid              : 53000-0002-00000286
dd_time          : 0.0 secs
dd_count         : 0
timeout          : 0.0 secs
On_timer_q?      : N
On_dd_q?         : N
lock_state       : GRANTED
ast_flag         : 0x0
Open Options     : KJUSERDEADLOCK 
Convert options  : KJUSERNOQUEUE KJUSERNODEADLOCKWAIT 
History          : 0x4977d495
Msg_Seq          : 0x0
res_seq          : 125
valblk           : 0x00000000000000003100050200000000 .1
user session for deadlock lock 0xd0f7e510
  sid: 290 ser: 713 audsid: 82787243 user: 64/SCOTT
    flags: (0x41) USR/- flags_idl: (0x1) BSY/-/-/-/-/-
    flags2: (0x40009) -/-/INC
  pid: 83 O/S info: user: grid, term: UNKNOWN, ospid: 19261
    image: oracle@db1
  client details:
    O/S info: user: wasadmin, term: unknown, ospid: 1234
    machine: cdldvjassvap291 program: JDBC Thin Client
    application name: JDBC Thin Client, hash value=2546894660
  current SQL:
  INSERT INTO tab1 SELECT x from tab2; (made up )
DUMP LOCAL BLOCKER: initiate state dump for DEADLOCK
  possible owner[83.19261] on resource TX-000F0008-000024A0

*** 2012-09-18 17:14:20.116
Submitting asynchronized dump request [28]. summary=[ges process stack dump (kjdglblkrdm1)].
Global blockers dump end:-----------------------------------
Global Wait-For-Graph(WFG) at ddTS[0.1] :
BLOCKED 0xdb976808 3 wq 2 cvtops x1 TX 0x150019.0x12b0a(ext 0x2,0x0)[53000-0002-00000286] inst 2 
BLOCKER 0xcc55d558 3 wq 1 cvtops x28 TX 0x150019.0x12b0a(ext 0x2,0x0)[4C000-0001-0000014C] inst 1 
BLOCKED 0xdb7dcfc8 3 wq 2 cvtops x1 TX 0xf0008.0x24a0(ext 0x4,0x0)[4C000-0001-0000014C] inst 1 
BLOCKER 0xd0f7e510 3 wq 1 cvtops x28 TX 0xf0008.0x24a0(ext 0x4,0x0)[53000-0002-00000286] inst 2 

*** 2012-09-18 17:14:20.687
* Cancel deadlock victim lockp 0xdb976808 

*** 2012-09-18 17:14:25.028
ENQUEUE DUMP REQUEST: from 1 spnum 12 on [0x1a0006][0x2b6e],[TX][ext 0x4,0x0] for reason 3 mtype 0
DUMP LOCAL BLOCKER/HOLDER: block level 3 res [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
----------resource 0xde49c768----------------------
resname       : [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
hash mask     : x3
Local inst    : 2
dir_inst      : 2
master_inst   : 2
hv idx        : 72
hv last r.inc : 84
current inc   : 84
hv status     : 0
hv master     : 1
open options  : dd 
grant_bits    : KJUSERNL KJUSEREX 
grant mode    : KJUSERNL  KJUSERCR  KJUSERCW  KJUSERPR  KJUSERPW  KJUSEREX
count         : 1         0         0         0         0         1
val_state     : KJUSERVS_NOVALUE
valblk        : 0x00000000000000000000000000000000 .
access_inst   : 2
vbreq_state   : 0
state         : x0
resp          : 0xde49c768
On Scan_q?    : N
Total accesses: 1823
Imm.  accesses: 1789
Granted_locks : 1 
Cvting_locks  : 1 
value_block:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
GRANTED_Q :
lp 0xdb40f4a0 gl KJUSEREX rp 0xde49c768 [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
  master 2 gl owner 0xd7f08fa8 possible pid 19228 xid 46000-0002-000004A4 bast 0 rseq 32 mseq 0 history 0x4977d495
  open opt KJUSERDEADLOCK  
CONVERT_Q: 
lp 0xdb414320 gl KJUSERNL rl KJUSERPR rp 0xde49c768 [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
  master 2 owner 1  bast 1 rseq 190 mseq 0x1 history 0x77d497ad
  convert opt KJUSERGETVALUE  
----------enqueue 0xdb40f4a0------------------------
lock version     : 129
Owner inst       : 2
grant_level      : KJUSEREX
req_level        : KJUSEREX
bast_level       : KJUSERNL
notify_func      : (nil)
resp             : 0xde49c768
procp            : 0xdb10cc20
pid              : 17454
proc version     : 0
oprocp           : (nil)
opid             : 17454
group lock owner : 0xd7f08fa8
possible pid     : 19228
xid              : 46000-0002-000004A4
dd_time          : 0.0 secs
dd_count         : 0
timeout          : 0.0 secs
On_timer_q?      : N
On_dd_q?         : N
lock_state       : GRANTED
ast_flag         : 0x0
Open Options     : KJUSERDEADLOCK 
Convert options  : KJUSERNOQUEUE KJUSERNODEADLOCKWAIT 
History          : 0x4977d495
Msg_Seq          : 0x0
res_seq          : 32
valblk           : 0x00000000000000000000000000000000 .
user session for deadlock lock 0xdb40f4a0
  sid: 94 ser: 2065 audsid: 82787238 user: 64/SCOTT    flags: (0x41) USR/- flags_idl: (0x1) BSY/-/-/-/-/-
    flags2: (0x40009) -/-/INC
  pid: 70 O/S info: user: grid, term: UNKNOWN, ospid: 19228
    image: oracle@db1
  client details:
    O/S info: user: wasadmin, term: unknown, ospid: 1234
    machine: cdldvjassvap291 program: JDBC Thin Client
    application name: JDBC Thin Client, hash value=2546894660
  current SQL:
  INSERT INTO tab1 SELECT x from tab2; (made up)
DUMP LOCAL BLOCKER: initiate state dump for DEADLOCK
  possible owner[70.19228] on resource TX-001A0006-00002B6E

*** 2012-09-18 17:14:25.029
Submitting asynchronized dump request [28]. summary=[ges process stack dump (kjdglblkrdm1)].
Global blockers dump start:---------------------------------
DUMP LOCAL BLOCKER/HOLDER: block level 3 res [0x160016][0x9249],[TX][ext 0x2,0x0]
----------resource 0xdb2d6758----------------------
resname       : [0x160016][0x9249],[TX][ext 0x2,0x0]
hash mask     : x3
Local inst    : 2
dir_inst      : 1
master_inst   : 1
hv idx        : 51
hv last r.inc : 82
current inc   : 84
hv status     : 0
hv master     : 0
open options  : dd 
Held mode     : KJUSERNL
Cvt mode      : KJUSERPR
Next Cvt mode : KJUSERNL
msg_seq       : 0x1
res_seq       : 49
grant_bits    : KJUSERNL 
grant mode    : KJUSERNL  KJUSERCR  KJUSERCW  KJUSERPR  KJUSERPW  KJUSEREX
count         : 1         0         0         0         0         0
val_state     : KJUSERVS_NOVALUE
valblk        : 0xd0f5415aff7f00000000000000000000 .AZ
access_inst   : 1
vbreq_state   : 0
state         : x8
resp          : 0xdb2d6758
On Scan_q?    : N
Total accesses: 1620
Imm.  accesses: 1442
Granted_locks : 0 
Cvting_locks  : 1 
value_block:  d0 f5 41 5a ff 7f 00 00 00 00 00 00 00 00 00 00
GRANTED_Q :
CONVERT_Q: 
lp 0xdb682d78 gl KJUSERNL rl KJUSERPR rp 0xdb2d6758 [0x160016][0x9249],[TX][ext 0x2,0x0]
  master 1 gl owner 0xdc568020 possible pid 19228 xid 46000-0002-000004A4 bast 0 rseq 49 mseq 0 history 0x495149da
  convert opt KJUSERGETVALUE  
DUMP LOCAL BLOCKER/HOLDER: block level 3 res [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
----------resource 0xde49c768----------------------
resname       : [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
hash mask     : x3
Local inst    : 2
dir_inst      : 2
master_inst   : 2
hv idx        : 72
hv last r.inc : 84
current inc   : 84
hv status     : 0
hv master     : 1
open options  : dd 
grant_bits    : KJUSERNL KJUSEREX 
grant mode    : KJUSERNL  KJUSERCR  KJUSERCW  KJUSERPR  KJUSERPW  KJUSEREX
count         : 1         0         0         0         0         1
val_state     : KJUSERVS_NOVALUE
valblk        : 0xd0f5415aff7f00000000000000000000 .AZ
access_inst   : 2
vbreq_state   : 0
state         : x0
resp          : 0xde49c768
On Scan_q?    : N
Total accesses: 1825
Imm.  accesses: 1790
Granted_locks : 1 
Cvting_locks  : 1 
value_block:  d0 f5 41 5a ff 7f 00 00 00 00 00 00 00 00 00 00
GRANTED_Q :
lp 0xdb40f4a0 gl KJUSEREX rp 0xde49c768 [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
  master 2 gl owner 0xd7f08fa8 possible pid 19228 xid 46000-0002-000004A4 bast 0 rseq 32 mseq 0 history 0x4977d495
  open opt KJUSERDEADLOCK  
CONVERT_Q: 
lp 0xdb414320 gl KJUSERNL rl KJUSERPR rp 0xde49c768 [0x1a0006][0x2b6e],[TX][ext 0x4,0x0]
  master 2 owner 1  bast 1 rseq 190 mseq 0x1 history 0x77d497ad
  convert opt KJUSERGETVALUE  
----------enqueue 0xdb40f4a0------------------------
lock version     : 129
Owner inst       : 2
grant_level      : KJUSEREX
req_level        : KJUSEREX
bast_level       : KJUSERNL
notify_func      : (nil)
resp             : 0xde49c768
procp            : 0xdb10cc20
pid              : 17454
proc version     : 0
oprocp           : (nil)
opid             : 17454
group lock owner : 0xd7f08fa8
possible pid     : 19228
xid              : 46000-0002-000004A4
dd_time          : 0.0 secs
dd_count         : 0
timeout          : 0.0 secs
On_timer_q?      : N
On_dd_q?         : N
lock_state       : GRANTED
ast_flag         : 0x0
Open Options     : KJUSERDEADLOCK 
Convert options  : KJUSERNOQUEUE KJUSERNODEADLOCKWAIT 
History          : 0x4977d495
Msg_Seq          : 0x0
res_seq          : 32
valblk           : 0x00000000000000003100050200000000 .1
user session for deadlock lock 0xdb40f4a0
  sid: 94 ser: 2065 audsid: 82787238 user: 64/SCOTT    flags: (0x41) USR/- flags_idl: (0x1) BSY/-/-/-/-/-
    flags2: (0x40009) -/-/INC
  pid: 70 O/S info: user: grid, term: UNKNOWN, ospid: 19228
    image: oracle@db1
  client details:
    O/S info: user: wasadmin, term: unknown, ospid: 1234
    machine: cdldvjassvap291 program: JDBC Thin Client
    application name: JDBC Thin Client, hash value=2546894660
  current SQL:
  INSERT INTO tab1 SELECT x from tab2;(made up)
DUMP LOCAL BLOCKER: initiate state dump for DEADLOCK
  possible owner[70.19228] on resource TX-001A0006-00002B6E

*** 2012-09-18 17:14:25.030
Submitting asynchronized dump request [28]. summary=[ges process stack dump (kjdglblkrdm1)].
Global blockers dump end:-----------------------------------
Global Wait-For-Graph(WFG) at ddTS[0.2] :
BLOCKED 0xdb682d78 3 wq 2 cvtops x1 TX 0x160016.0x9249(ext 0x2,0x0)[46000-0002-000004A4] inst 2 
BLOCKER 0xcefeaf70 3 wq 1 cvtops x28 TX 0x160016.0x9249(ext 0x2,0x0)[54000-0001-000000A9] inst 1 
BLOCKED 0xdb9b6380 3 wq 2 cvtops x1 TX 0x1a0006.0x2b6e(ext 0x4,0x0)[54000-0001-000000A9] inst 1 
BLOCKER 0xdb40f4a0 3 wq 1 cvtops x28 TX 0x1a0006.0x2b6e(ext 0x4,0x0)[46000-0002-000004A4] inst 2 

*** 2012-09-18 17:14:25.667
* Cancel deadlock victim lockp 0xdb682d78 

*** 2012-09-18 18:09:23.508
Begin DRM(406) (swin 0) - AFFINITY transfer pkey 88431.0 to 2 oscan 0.0
kjiobjscn 1 
ftd (30) received from node 1 (84 0.30/0.0) 
all ftds received 

* kjxftdn: break from kjxftdn, post lmon later 
ftd (33) received from node 1 (84 0.34/0.0) 
all ftds received 
ftd (35) received from node 1 (84 0.36/0.0) 
all ftds received 
ftd (37) received from node 1 (84 0.38/0.0) 
all ftds received 
ftd (30) received from node 1 (84 0.31/0.0) 
all ftds received 
ftd (33) received from node 1 (84 0.34/0.0) 
all ftds received 
ftd (35) received from node 1 (84 0.36/0.0) 
all ftds received 
ftd (37) received from node 1 (84 0.38/0.0) 
all ftds received 
ftd (30) received from node 1 (84 0.30/0.0) 
all ftds received 
Published by: orausern on October 10, 2012 05:57

Published by: orausern on October 10, 2012 05:58

Let them show you some code. Do not believe anything they said your question don't tell not only

Tags: Database

Similar Questions

  • Creation of primary keys, foreign keys and indexes

    Hello

    I created 60 new tables based on 60 existing tables.

    The 60 current tables are named FY11_ACC1, FY11_ACC2, FY11_SALES1, FY11_SALES2..., but all of the 60 tables start with FY11. I created the same structured tables but with names like FY12_ACC1, FY12_ACC2, FY12_SALES1, FY12_SALES2 FY12...

    I used the below SQL and generated SQL code.

    Select 'create table ' | Replace (table_name, 11, 12).
    ' in select * from '. table_name | "where 1 = 0'.
    from user_tables;

    But this did not generate the PRIMARY KEYS, FOREIGN KEYS and INDEXES. How can I automatically or with similar like SQL above? _

    Thanks for your time and your help.







    How can I create primary keys, foreign keys and indexes for all

    ssk1974 wrote:
    Can you please provide me with more information or examples.

    Something like:

    SET SERVEROUTPUT ON FORMAT WORD
    DECLARE
        h   NUMBER;
        th  NUMBER;
        ddl CLOB;
    BEGIN
        h := DBMS_METADATA.OPEN('TABLE_EXPORT');
        DBMS_METADATA.SET_FILTER(h,'SCHEMA','SCOTT');
        DBMS_METADATA.SET_FILTER(h,'NAME','DEPT');
        DBMS_METADATA.SET_FILTER(h,'EXCLUDE_PATH_EXPR','=''TABLE_DATA''');
        DBMS_METADATA.SET_FILTER(h,'EXCLUDE_PATH_EXPR','=''STATISTICS''');
        th := DBMS_METADATA.ADD_TRANSFORM(h,'DDL');
        DBMS_METADATA.SET_TRANSFORM_PARAM(th,'PRETTY',false);
        DBMS_METADATA.SET_TRANSFORM_PARAM(th,'SQLTERMINATOR',true);
        LOOP
          ddl := DBMS_METADATA.FETCH_CLOB(h);
          EXIT WHEN DDL IS NULL;
          DBMS_OUTPUT.PUT_LINE (ddl);
        END LOOP;
        DBMS_METADATA.CLOSE(h);
    END;
    /
    
      CREATE TABLE "SCOTT"."DEPT" ("DEPTNO" NUMBER(2,0), "DNAME" VARCHAR2(14),
    "LOC" VARCHAR2(13),  CONSTRAINT "PK_DEPT" PRIMARY KEY ("DEPTNO") USING INDEX
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS  STORAGE(INITIAL 65536
    NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
    FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
    DEFAULT) TABLESPACE "USERS"  ENABLE) SEGMENT CREATION IMMEDIATE PCTFREE 10
    PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT
    1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST
    GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    TABLESPACE "USERS" ;
    
      CREATE UNIQUE INDEX "SCOTT"."PK_DEPT" ON "SCOTT"."DEPT" ("DEPTNO") PCTFREE 10
    INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS  STORAGE(INITIAL 65536 NEXT 1048576
    MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
    BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE
    "USERS" ;
    
      ALTER TABLE "SCOTT"."DEPT" ADD CONSTRAINT "PK_DEPT" PRIMARY KEY ("DEPTNO")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE
    DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS"  ENABLE;
    
    PL/SQL procedure successfully completed.
    
    SQL>  
    

    SY.

    Published by: Solomon Yakobson January 5, 2012 16:22

  • Problem with the primary key and indexes

    Hi all

    I'm looking a mess on one of our main tables.
    One of the developers here added an index on 3 columns in the table, thinking that it would speed up (not noticing that it had not a PK).

    Subsequently another developer has noticed there do not have a primary on key. So they added a touch of primry on the single column.

    The problem is that now the index created on 3 columns is bein used as the primary key index. As when the primary key is created a new index was not created.

    Is there anyway to get rid of this index/change it correct?

    This table is related to many many other tables, so when we tried to remove the index we could not due to the primary key and foreign key violations with other tables.

    Thanks in advance

    Oracle, as you found, is quite capable to use a column enformce multi index a single column primary key, as long as the pk column is the leader in the index. This should not cause performance issues for a search of PK and if the three indexed columns are often selected only may benefit from these types of queries.

    The only way to change that now, would be to drop all CF, drop and add the PK constraint and then add all the FK constraints. A long time and potentially dangerous (if you miss to add back of the FKs) endeavour. Certainly not worth the risk in my opinion.

    John

  • Satellite L850 - 1 H 4 - a strange problem with the FN key

    Hello

    I have a strange problem on my laptop. When I uninstall my PVAT my start "FN" key works, when I install it it s not working not properly. Its market not only the volume key (F9 and F10) without pressing the "Fn", if I want to press F9 or F10 I have to press FN + F9, even with the rest of the buttons.

    When I install PVAT I have to press FN, so I can use my F keys (e.g. F3 to search on the browser tool, alt + f4 - I have to press Fn + alt + f4), and I can't use real functions like mute, disable Touchpad etc. Use the volume keys only. Y at - it a problem if I run my computer without PVAT, this may affect its performance?

    Where could be the problem and can I fix it? I'm with Windows7 x 64, but the laptop was with no OS when I bought it. And there is a problem with this version, I bought its impossible to install the Pakc3 Service, it s with SP1, can be the problem? I put t know what to do... perhaps I run the laptop without PVAT, sounds good, because the buttons work fine without it, but I don't know if it interacts with something else.

    Thanks in advance!

    Its possible to use the function buttons by pressing another button without the use of the fn or FN.
    This option can be changed in the BIOS.

    Go to the BIOS by pressing F2.
    In the BIOS, choose Advanced-> system configuration Options
    Here you should find the option that allows to change the special function keys which allows you to use the function FN or without button Fn button

    By the way: this theme has already spoken here in the forum several times. therefore recommend that you use the advanced search to Forums before posting new thread

  • Strange problem with HorizontalFieldManager - it does not show on real device bitmap

    I have a rather strange problem with the HorizontalFieldManager on my Blackberry 8820, which I did not on the Simulator, or done other blackberries that I tried to install my game.

    The problem is that bitmaps that I add, do not appear on the actual device, as in the images below. The code is provided below as well. No idea how to debug, or resolve is appreciated.

    Here's what I see on Simulator and some devices

    Here's what I see on the real blackberry:

    Code:

    ......

    OK, I found the solution - the problem is that there seems to be a bug where you can't put more fields button radio on a horizontal layout manager with 4.2.2.x.

    The solution is to extend the RadioButtonField field and replace the positioning method:

    RadioButtonField radioField = new RadioButtonHack ("", textureGroup, isSelected);

    SerializableAttribute public class RadioButtonHack extends RadioButtonField {}

    public RadioButtonHack() {}
    Super();
    }

    public RadioButtonHack (String label, group RadioButtonGroup,
    Boolean selected, long style) {}
    Super (label, group, selected, style);
    }

    public RadioButtonHack (String label, group RadioButtonGroup,
    Boolean selected) {}
    Super (label, selected group);
    }

    public RadioButtonHack (label As String) {}
    Super (label);
    }

    Protected Sub layout (int width, int height) {}
    int temp = this.getPreferredWidth ();
    setExtent (time, height);
    Super.Layout (time, height);
    }

    }

    resolved http://supportforums.blackberry.com/t5/Java-Development/radiobuttonGroup-related-problem-in-storm/m-...

  • Strange problem with addinstance, first page not save

    So I spent some time designing a form for a local police department to facilitate their reports.  I'm having a strange problem using addinstance.

    Use the two separate sections of the addinstance form; subject/witnesses/victims and the narrative section.  The two sections have buttons add and remove additional if necessary pages.

    • The witness/subject/victim section works as expected, additional pages can be added or removed, and they are preserved when you save the document, and then reopen the document
    • The narrative section does not work as expected, other pages can be added or removed.  The problem comes when the document is reopened, the first page which is generated using addinstance is no longer present in the file, all the pages generated after the first page that has been deleted remains.  It is extremely strange, and I have no idea what is the cause.

    Some possibilities I have already looked at in

    • Document is saved in dynamic form
    • Type of the Interactive preview
    • form is presented in preview as a form xml dnymaic
    • automatically keep your changes to scripts to form when registering
    • I use acrobat x to activate additional features so that end users can fill in the form and save it using the adobe reader software

    Here is the link to the file, I have been unable to share via acrobat.com http://www.FileSwap.com/DL/kp2BTWSTQR/

    Any help would be greatly appreciated, I have no idea on how to solve this problem!

    -ian

    Hi Ian,

    I think you have little code in the form1 docReady event that are causing you problems.  There are also exceptions to come JavaScript, it looks like test code, but you got "display the console on errors and messages" in Reader/Arobat (Edit... Preferences... JavaScript)

    Good luck

    Bruce

  • Satellite P300 - strange problem with num lock keys

    I had a problem with my keyboard lock num. I have a P300D - 131

    By pressing '4' and '8' at the same time, it shows on the screen '4 '.

    By pressing "0" and "6" at the time, tamed, it shows on the screen "0 0".

    This also happens if I touch the very fast numbers. That's why you can't count on the num lock keys! I have this problem since I bought the laptop in July 2008. Now, I found this forum and I hope that really that someone can help me solve this issue!

    Thank you
    HDW

    Hello

    These issues in the past have been resolved with BIOS update. I therefore recommend as a first step of the BIOS update.
    Check the current version on your laptop and the most recent proposed on the Toshiba download page.

    To be honest I don't understand why you waited so long on this subject. Laptop warranty valid and the nearest Toshiba authorized maintainer can help you about this.

  • NFS Most wanted 2012(Windows 7 Ultimate SP1 x64)-strange problem of launch

    Hi all

    Please Help Me.I have an Original copy of NFS Most wanted 2012 in my PC and I have a very strange problem. Believe it or not, it WAS WORKING FINE WITH No. LAG a FEW DAYS AGO! (Lets get 30 FPS completely lowered graphic setting)

    The problem - I opened NFS13 (The. EXE file), nothing don't Happens-No. Flash, black screen, error nothing!

    My PC Specs-

    i5 2500 k 3.3 ghz in stock

    8 GB RAM DDR3

    Intel HD Graphics 3000 map

    Intel DH67CL Motherboard

    Windows 7 Ultimate SP1 64 bit

    I correct game tried Reinstall (failure of difficulty), reinstall DirectX 11 (failure of difficulty), update Windows 7 download NFS Fixer and all drivers (Failed to Fix), have tried and tried (Failed to Fix) to run through all Windows Versons compatibility mode (Failed to Fix;) None worked)

    Corrections that I have not try System Restore.

    I Suspect Some silly update of Windows 7 can I have caused this!

    Please please please someone help me! It is the only game I Have.Dad gave me this set as a gift when I got good results

    Thank you

    Bilodeau,

    Please contact the Microsoft Community.

    I would like you to contact support for Need For Speed for further assistance-

    http://www.NeedforSpeed.com/

    Let us know if you have other Windows-related issues in the future. We will be happy to help you.

  • Find foreign keys are not indexed

    Hello world

    did anyone out there has a sql script that learns the foreign keys of a table are not indexed?

    I was going to write a sql for it, but then I thought that someone somewhere must have written before...

    DB: 10gR 1 and R2

    Thks

    This sql is courtesy of the asktom.oracle.com site.

    To find the script you find «unindexed foreign keys»

    When you run it, it will generate a report such as:

    SQL > @unindex

    STAT... TABLE_NAME COLUMNS COLUMNS
    ======== ============ =========== ========
    APPLICATION_INSTANCES AI_APP_CODE
    OK EMP DEPTNO DEPTNO

    The * in the first line shows me that I have a foreign key that is not indexed in the APPLICATION_INSTANCES table. Ok in the second row shows me that I have an EMP table with a foreign key indexed.

    column constraint_column format a20 word_wrapped
    column index_column format a20 word_wrapped
    column table table_name format a30 word_wrapped

    Select decode (b.table_name, NULL, ' *', 'ok') status.
    a.table_name, a.columns constraint_column, b.columns index_column
    Of
    (select table_name substr (a.table_name, 1, 30),
    substr(a.constraint_name,1,30) constraint_name,
    Max (decode (position, 1, substr(column_name,1,30), NULL)).
    Max (decode (position, 2, ',': substr (column_name, 1, 30), null)).
    Max (decode (position, 3, ',': substr (column_name, 1, 30), null)).
    Max (decode (4 position ',': substr (column_name, 1, 30), null)).
    Max (decode (position, 5, ',': substr (column_name, 1, 30), null)).
    Max (decode (post, 6, ',': substr (column_name, 1, 30), null)).
    Max (decode (position, 7, ',': substr (column_name, 1, 30), null)).
    Max (decode (position, 8, ',': substr (column_name, 1, 30), null)).
    Max (decode (position, 9, ',': substr (column_name, 1, 30), null)).
    Max (decode (position, 10, ',': substr (column_name, 1, 30), null)).
    Max (decode (position, 11, ',': substr (column_name, 1, 30), null)).
    Max (decode (position, 12, ',': substr (column_name, 1, 30), null)).
    Max (decode (position, 13, ',': substr (column_name, 1, 30), null)).
    Max (decode (position, 14, ',': substr (column_name, 1, 30), null)).
    Max (decode (position, 15', ': substr (column_name, 1, 30), null)).
    Max (decode (position, 16, ',' | columns substr(column_name,1,30), null))
    user_cons_columns a, b user_constraints
    where a.constraint_name = b.constraint_name
    and b.constraint_type = 'R '.
    substr(a.table_name,1,30), substr(a.constraint_name,1,30)),
    (select table_name, index_name substr (index_name, 1, 30) substr(table_name,1,30),
    Max (decode (position_colonne, 1, substr(column_name,1,30), NULL)).
    Max (decode (position_colonne, 2, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 3, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 4, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 5, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 6, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 7, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 8, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 9, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 10, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 11, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 12, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 13, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 14, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 15, ',': substr (column_name, 1, 30), null)).
    Max (decode (position_colonne, 16, ',' | columns substr(column_name,1,30), null))
    of user_ind_columns
    Group of substr (table_name, 1, 30), substr (index_name, 1, 30)) b
    where a.table_name = b.table_name (+)
    and b.columns (+) like a.columns. '%'
    /

  • To index foreign keys in 11 g?

    Hello

    We are on 11.2.0.2 on Solaris 10. A day back I had a mistake in our application due to a blockage. The trace file indicates that a single sql and the table. The table involved is a parent to a child table table and the foreign key of the child table is not indexed. What is the reason for the deadlock? Are foreign keys should be indexed in 11g also?
    Note that the trace file has this statement: ("" the only resource deadlock: block the queue blocking himself, f 0 ' ").

    It's the statement recorded in the trace file:
     delete from tab1  a where exists (select 1 from tab1 where col1 = a.col2 and col3 = :1) . 
    Here the col1 is a key to parent to an another table tab2 which has the same col1 column, but it is not indexed.

    (I changed the names of the tables and columns to remove our specific details of the app).
    Parts of the trace deadlock below:
    Trace file /oracle/diag/rdbms/wdb1/wdb1/trace/wdb1_ora_278.trc
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    ORACLE_HOME = /oracle/product/database/1120/db1
    *** MODULE NAME:(JDBC Thin Client) 2012-09-14 16:36:08.865
    *** ACTION NAME:() 2012-09-14 16:36:08.865
     
    Single resource deadlock: blocking enqueue which blocks itself, f 0
    Granted global enqueue 0xdb5663e8
    ----------enqueue 0xdb5663e8------------------------
    lock version     : 30995
    Owner inst       : 1
    grant_level      : KJUSERCW
    req_level        : KJUSERPW
    bast_level       : KJUSERNL
    notify_func      : (nil)
    resp             : 0xdceae518
    procp            : 0xdb128fe8
    pid              : 27775
    proc version     : 505
    oprocp           : (nil)
    opid             : 27775
    group lock owner : 0xdc7979a0
    possible pid     : 27775
    xid              : 5F000-0001-00000E46
    dd_time          : 10.0 secs
    dd_count         : 0
    timeout          : 60.0 secs
    On_timer_q?      : Y
    On_dd_q?         : Y
    lock_state       : CONVERTING 
    ast_flag         : 0x0
    Open Options     : KJUSERDEADLOCK 
    Convert options  : KJUSERGETVALUE 
    History          : 0x4951495a
    Msg_Seq          : 0x0
    res_seq          : 170
    valblk           : 0x00000000000000000000000000000000 .
    user session for deadlock lock 0xdb5663e8
      sid: 468 ser: 14425 audsid: 82131588 user: 67/MIGRATION
        flags: (0x41) USR/- flags_idl: (0x1) BSY/-/-/-/-/-
        flags2: (0x40009) -/-/INC
      pid: 95 O/S info: user: grid, term: UNKNOWN, ospid: 27775
        image: oracle@cdlt3f002db01
      client details:
        O/S info: user: wasadmin, term: unknown, ospid: 1234
        machine: cdldvjassvap050.nj.adp.com program: JDBC Thin Client
        application name: JDBC Thin Client, hash value=2546894660
      current SQL:
      delete from tab1  a where exists (select 1 from tab1 where col1 = a.col2 and col3 = :1)
    Requesting global enqueue 0xdb9011b8
    ----------enqueue 0xdb9011b8------------------------
    lock version     : 36319
    Owner inst       : 1
    grant_level      : KJUSERCW
    req_level        : KJUSERPW
    bast_level       : KJUSERNL
    notify_func      : (nil)
    resp             : 0xdceae518
    procp            : 0xdb1335c0
    pid              : 27778
    proc version     : 388
    oprocp           : (nil)
    opid             : 27778
    group lock owner : 0xdf6b9908
    possible pid     : 27778
    xid              : 51000-0001-000010E9
    dd_time          : 0.0 secs
    dd_count         : 0
    timeout          : -910947.0 secs
    On_timer_q?      : N
    On_dd_q?         : N
    lock_state       : CONVERTING 
    ast_flag         : 0x0
    Open Options     : KJUSERDEADLOCK 
    Convert options  : KJUSERGETVALUE 
    History          : 0x14951495
    Msg_Seq          : 0x0
    res_seq          : 170
    valblk           : 0x0000000000000000b81190db00000000 .
    user session for deadlock lock 0xdb9011b8
      sid: 259 ser: 13977 audsid: 82131589 user: 67/scott
        flags: (0x41) USR/- flags_idl: (0x1) BSY/-/-/-/-/-
        flags2: (0x40009) -/-/INC
      pid: 81 O/S info: user: grid, term: UNKNOWN, ospid: 27778
        image: oracle@cdlt3f002db01
      client details:
        O/S info: user: wasadmin, term: unknown, ospid: 1234
        machine: cdldvjassvap049.nj.adp.com program: JDBC Thin Client
        application name: JDBC Thin Client, hash value=2546894660
      current SQL:
        delete from tab1  a where exists (select 1 from tab1 where col1 = a.col1 and col2 = :1)
    ----------resource 0xdceae518----------------------
    resname       : [0x159a5][0x0],[TM][ext 0x0,0x0]
    hash mask     : x3
    Local inst    : 1
    dir_inst      : 2
    master_inst   : 2
    hv idx        : 121
    hv last r.inc : 66
    .....
    .....
    .....
    Published by: orausern on Sep 17, 2012 05:03

    Published by: orausern on Sep 17, 2012 05:04

    So I think you have your first suspect.

    It is always helpful if you can come up with a script to reproduce the problem outside the application and then test that the foreign key indexing fixes the problem.

    I hope that you would be able to lead to a test that relate to what your application is doing - you may have to really follow the sessions to discover all of the States involved.

    But for something completely artificial:

    SQL> create table parent
      2  (col1 number not null primary key);
    
    Table created.
    
    SQL> create table child
      2  (col1 number not null references parent(col1) on delete cascade
      3  ,col2 number not null);
    
    Table created.
    
    SQL> insert into parent values(1);
    
    1 row created.
    
    SQL> insert into parent values(2);
    
    1 row created.
    
    SQL> insert into parent values(3);
    
    1 row created.
    
    SQL> insert into child values(1,1);
    
    1 row created.
    
    SQL> insert into child values(2,2);
    
    1 row created.
    
    SQL> commit;
    

    Session 1:

    SQL>  update child set col2=col2+1 where col1 = 1;
    
    1 row updated.
    
    SQL> 
    

    Session 2:

    SQL> update child set col2=col2+1 where col1 = 2;
    
    1 row updated.
    
    SQL> 
    

    Session 1:

    SQL> delete from parent where col1=1;
    

    Session 2:

    SQL> delete from parent where col1=2;
    

    Which translates this in session 1:

    delete from parent where col1=1
                *
    ERROR at line 1:
    ORA-00060: deadlock detected while waiting for resource
    

    And this in the blocking file (which is simpler than your own WFG):

    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
    TM-0007cb4a-00000000        34     642    SX   SSX       35     706    SX   SSX
    TM-0007cb4a-00000000        35     706    SX   SSX       34     642    SX   SSX
    
    session 642: DID 0001-0022-000003EC     session 706: DID 0001-0023-0000031C
    session 706: DID 0001-0023-0000031C     session 642: DID 0001-0022-000003EC
    
    Rows waited on:
      Session 642: no row
      Session 706: no row
    

    And an index on (col1) child not cause this problem.

    As I have said, but a little artificial...

    Published by: Dom Brooks on 17 Sep 2012 14:18

  • Problem with keyboard: some keys return two, not one, characters

    I have a MacBook Air 11 '' mid-2012 128 GB SSD model running OS X Yosemite 10.10.5 and my keyboard has developed a strange problem occultation key repeat.  Whenever you press the "3" button, the system generates thus simultaneously a '3' and '6 '.  This motif is repeated this diagonal of the keyboard down, i.e.

    '3' generates a '3' and '6 '.

    'e' generates an 'e' and a 'y '.

    "d" generates a "d" and an "h".

    'c' generates a 'c' and a "n".

    The reverse is also true, that is, a '6' generates a '3' and so on.  Curiously, the sign '=' generates a character "§" as well, a special character generated by keeping down option and pressing "6".

    (This combo generates a ' § ' and a ' £', hidden under the '3'.)

    The same problem occurs when you use the Shift or Control keys as modifiers.

    I can work around the problem by using either a connection wireless Bluetooth or wired USB keyboard (like using the "Keyboard Viewer" option under "System Preferences"), but that kind of defeats the point of having a laptop as a MacBook Air, Yes?  The problem is intermittent, but becomes very annoying.  (Try to type a password with such a mess!) It sounds like a mechanical problem requiring a possible replacement of the sale wholesale (and), but I hope someone out there can have a software or another solution.  Thank you!

    Raoul_Duke wrote:

    I can work around the problem by using either a wireless or wired USB Bluetooth keyboard

    That certainly points to make it a hardware problem.  It is difficult to imagine a software problem that would not affect both internal and external keyboards.

  • Foreign key delete rule: no matching combination does not show a difference to compare models

    Hello

    I've noticed that if there are in the relational model a foreign key with delete rule NO ACTION and in the database (Data Dictionary), the delete rule is RESTRICT, no difference appears in the dialog box to compare. The difference is displayed if the delete rule for example is CASCADE and RESTRICT.

    Kind regards

    Robert

    Hi Robert,.

    Thanks for reporting this problem.  I connected a bug on this subject (21754221).

    This situation does not normally flow when an Oracle database is imported, but may occur when importing other types of database.

    Kind regards

    David

  • index and foreign key

    I just read an article on the index.

    Jonathan Lewis - during indexing

    The author says that if you update the primary key or a unique key at the end of 'parent' of the referential integrity constraint Oracle locks the "child" table to find the rows of children committed and uncommitted if a suitable index does not exist. After that he says do not create indexes 'foreign key '. I mean, there is a contradiction. What do you think?

    delete this thread!

  • ODI is not able to detect the primary/foreign keys to XML - the user has no privilege or object not found

    Hi guys,.

    Im trying to load an XML with the address of two entities and employee as below. The topology of reverse engineering, everything works well. Even able to display the xml data in ODI, but when I try to load the data of these two entities join by the schema of the primary keys and foreign keys which created odi engineering process reverses for xml, im im getting the error below.  IM able to load an entity data, error occurs only when I use the join odi creates internally to identify employees for xml and address components

    XML file:

    <? XML version = "1.0" encoding = "UTF-8"? >

    < EMP >

    < Empsch >

    < employee >

    < EmployeeID 12345 > < / EmployeeID >

    < original > t < / initials >

    John < name > < / LastName >

    DOE < FirstName > < / name >

    < / employee >

    < address >

    < > 12345 as WorkPhone < / as WorkPhone >

    < WorkAddress > test 234 < / WorkAddress >

    < / address >

    < / Empsch >

    < / EMP >

    Topology: jdbc:snps:xml?f=C:/Temp/RR/Empsch.xml & s = Empsch & re = EMP & dod = true & nobu = false

    Error message:

    -5501: 42501: java.sql.SQLException: user has no privilege or object not found: EMPSCH. EMPSCHPK

    java.sql.SQLException: user has no privilege or object not found: EMPSCH. EMPSCHPK

    at org.hsqldb.jdbc.Util.sqlException (unknown Source)

    for org.hsqldb.jdbc.JDBCPreparedStatement. < init >(Unknown Source)

    at org.hsqldb.jdbc.JDBCConnection.prepareStatement (unknown Source)

    at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.prepareStatement(SnpsXmlConnection.java:1232)

    at sun.reflect.GeneratedMethodAccessor65.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    to oracle.odi.core.datasource.dwgobject.support.OnConnectOnDisconnectDataSourceAdapter$ OnDisconnectCommandExecutionHandler.invoke (OnConnectOnDisconnectDataSourceAdapter.java:200)

    to $Proxy2.prepareStatement (Unknown Source)

    at oracle.odi.runtime.agent.execution.sql.SQLCommand.doInitializeStatement(SQLCommand.java:83)

    at oracle.odi.runtime.agent.execution.sql.SQLCommand.getStatement(SQLCommand.java:117)

    at oracle.odi.runtime.agent.execution.sql.SQLCommand.getStatement(SQLCommand.java:111)

    at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:81)

    at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:1)

    at oracle.odi.runtime.agent.execution.DataMovementTaskExecutionHandler.handleTask(DataMovementTaskExecutionHandler.java:70)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:662)

    Caused by: org.hsqldb.HsqlException: the user has no privilege or object not found: EMPSCH. EMPSCHPK

    at org.hsqldb.error.Error.error (unknown Source)

    at org.hsqldb.ExpressionColumn.checkColumnsResolved (unknown Source)

    at org.hsqldb.QueryExpression.resolve (unknown Source)

    at org.hsqldb.ParserDQL.compileCursorSpecification (unknown Source)

    at org.hsqldb.ParserCommand.compilePart (unknown Source)

    at org.hsqldb.ParserCommand.compileStatement (unknown Source)

    at org.hsqldb.Session.compileStatement (unknown Source)

    at org.hsqldb.StatementManager.compile (unknown Source)

    at org.hsqldb.Session.execute (unknown Source)

    ... more than 27

    Please advice

    Thank you

    Fabien

    It is clear from the content of the xml file, you have given here. In this xml file, you have four type of complex. Two of them are employed and address. However the employee doesnot has nothing to do with the address that you have not added the relationship. That is why its failure. This isn't the fault of the ODI.

    Also I suggest not to use self-generated by ODI dtd that you might face problem in the future. For example, the address of XML type has 8 attributes, and 4 of them are not mandatory. This means that each of your xml file may have attributes between 4 and 8.  That's where ODI auto generated DTD fails.

    ComplexType element XML schema

    Thank you

    Chantal

  • foreign key 'generate' strange behavior check box, any idea?

    Summary: in the properties of the table, the foreign keys, the box generate behaves badly, and I don't understand why or how I got there.

    Oracle Data Modeler 4.0.2.840 8.1 X 64 Windows, jdk1.7.0_55

    the behavior is:

    (1) add the foreign key (two different more to see strange behavior)

    (2) uncheck 'generate' on a foreign key

    (3) apply, Ok

    (4) ask 'Preview DDL', a foreign key constraint is generated, SO FAR SO GOOD, I'm happy

    5-now click on the button 'generate the DDL' for any design = > * * TWO foreign keys are generated?

    (6) even more strange: sometimes the 'generate' check itself after step 5, most of the time is not

    (7) at the beginning this has occurred for a couple of foreign key 'uncheckees', now it almost always happens.

    The relational model was built by importing the SQL scripts already exist (try to migrate the Data Modeler). No too complex ~ 115 tables, 12 times.

    I think it's a bug, but I can't find any reference on the web, maybe I do something wrong?

    Hi Michel,.

    The generation is different depending on whether or not the relevant storage design is open.

    If the design of the storage is not open, the option "Generate DDL" on the foreign key is taken into account (for an overview of the DDL or full generation of DDL).  For an entire generation of DDL, the foreign key will initially not selected phase in the generation of the DDL if Options the option "Generate DDL" on the foreign key has been disabled.  (This change in the phase of the generation of DDL Options will also cause the option "Generate DDL" on the foreign key update.)

    If the design of the storage is open, the option 'generate DDL"on the foreign key has no effect (in a Preview of DDL or full DDL generation).

    Also in a generation full of DDL, an object will be initially marked as not selected if it has been disabled in the previous generation of DDL.

    I hope that this helps to explain the behavior that you find.

    David

Maybe you are looking for