ORA-00060 during remove workspace

I'm using Oracle Release 9.2.0.4 with Workspace Manager.
In my application all changes are made inside long transaction, all involved tables are versioned.
Several users work concurrently, the users can not modify the same rows (update/delete), insert are possible
(the application generates automatically the unique primary keys using sequences)
Any user session operates in this way:
- Create workspace: execute dbms_wm.createworkspace('ws1');
- go to workspace : execute dbms_wm.gotoworkspace('ws1');
- make changes: update/delete/insert on different tables
- exit from workspace: execute dbms_wm.gotoworkspace('LIVE');
- merge/rollback workspace: execute dbms_wm.mergeworkspace('ws1')/dbms_wm.rollbackworkspace('ws1');
- remove workspace: execute dbms_wm.removeworkspace('ws1');
Sometimes the following error occurs during dbms_wm.removeworkspace:
ORA-00060 deadlock detected while waiting for resource
While this error can occur? Can I prevent this error?
In the follow I include the content of oracle trace files:
oraadmn6@cdsv00jd:SIGASP> more /app/oraadmn6/admin/SIGASP/udump/sigasp_ora_21687.trc
/app/oraadmn6/admin/SIGASP/udump/sigasp_ora_21687.trc
Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
ORACLE_HOME = /app/oraadmn6/product/9.2.0
System name: SunOS
Node name: cdsv00jd
Release: 5.8
Version: Generic_108528-19
Machine: sun4u
Instance name: SIGASP
Redo thread mounted by this instance: 1
Oracle process number: 58
Unix process pid: 21687, image: oracle@cdsv00jd (TNS V1-V3)
*** 2005-10-26 15:25:55.494
*** SESSION ID:(60.2524) 2005-10-26 15:25:55.488
DEADLOCK DETECTED
Current SQL statement for this session:
DELETE FROM WMSYS.WM$WORKSPACE_SAVEPOINTS_TABLE WHERE WORKSPACE = :b1
----- PL/SQL Call Stack -----
object line object
handle number name
3927ac3e0 1145 package body SYS.LTADM
38dd4bf40 3421 package body SYS.LT
38dd4bf40 3286 package body SYS.LT
38dd4bf40 4507 package body SYS.LT
3920d4c00 1 anonymous block
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-0003002d-000083db 58 60 X 32 46 X
TX-00020004-00008db9 32 46 X 58 60 X
session 60: DID 0001-003A-0000094E session 46: DID 0001-0020-00001A99
session 46: DID 0001-0020-00001A99 session 60: DID 0001-003A-0000094E
Rows waited on:
Session 46: obj - rowid = 00001771 - AAABdxAABAAAFILAAE
(dictionary objn - 6001, file - 1, block - 21003, slot - 4)
Session 60: obj - rowid = 00001786 - AAABeGAABAAAFKSAAI
(dictionary objn - 6022, file - 1, block - 21138, slot - 8)
Information on the OTHER waiting sessions:
Session 46:
pid=32 serial=112 audsid=1728581 user: 0/SYS
O/S info: user: ri01516, term: SNWS00695019, ospid: 1716:1712, machine: SNAMRETEGAS\SNWS00695019
program: Ustation.exe
application name: Ustation.exe, hash value=0
Current SQL Statement:
UPDATE WMSYS.WM$WORKSPACES_TABLE SET PARENT_VERSION=:b1 WHERE PARENT_VERSION = :b2
End of information on OTHER waiting sessions.
===================================================
oraadmn6@cdsv00jd:SIGASP> more /app/oraadmn6/admin/SIGASP/udump/sigasp_ora_21757.trc
/app/oraadmn6/admin/SIGASP/udump/sigasp_ora_21757.trc
Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
ORACLE_HOME = /app/oraadmn6/product/9.2.0
System name: SunOS
Node name: cdsv00jd
Release: 5.8
Version: Generic_108528-19
Machine: sun4u
Instance name: SIGASP
Redo thread mounted by this instance: 1
Oracle process number: 13
Unix process pid: 21757, image: oracle@cdsv00jd (TNS V1-V3)
*** 2005-10-06 16:51:56.140
*** SESSION ID:(19.2048) 2005-10-06 16:51:56.134
DEADLOCK DETECTED
Current SQL statement for this session:
insert into TRATTI (FAC_TYPE, COD_GASD, TIPO_COND, STATO_FUN, CENTRO, LUN, DN, PRES_MAX, PRES_CPI, COD_SPE, LIVELLO_CIRC, ORD
INE_LIVELLO, VISIBILITA_STR, AUTOMATIZZAZIONE, mslink) values (1100, 45860, 2, 1, 'PI', 300, 450, 24, 70, 'PI047', 4, 1, 0, '
S', 2100000120)
----- PL/SQL Call Stack -----
object line object
handle number name
392cf1e80 82 package body SYS.DBMS_LOCK
392cf1e80 110 package body SYS.DBMS_LOCK
392d561f0 2055 package body SYS.LTADM
38dcbf928 352 package body SYS.LT_CTX_PKG
38d4dfb28 42 GISDBA.OVM_INSERT_3842
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-0000ab01-00000000 13 19 X 44 32 SX
UL-00000000-00000000 44 32 X 13 19 S
session 19: DID 0001-000D-000006DB session 32: DID 0001-002C-0000224D
session 32: DID 0001-002C-0000224D session 19: DID 0001-000D-000006DB
Rows waited on:
Session 32: obj - rowid = 0000AA54 - AAAAAAAAJAAAPi7AAA
(dictionary objn - 43604, file - 9, block - 63675, slot - 0)
Session 19: no row
Information on the OTHER waiting sessions:
Session 32:
pid=44 serial=1406 audsid=1556312 user: 118/GISDBA
O/S info: user: ri50000, term: SNWS01146378, ospid: 1876:1872, machine: SNAMRETEGAS\SNWS01146378
program: Ustation.exe
application name: Ustation.exe, hash value=0
Current SQL Statement:
UPDATE GISDBA.TRATTI_LT
SET ltlock =
sys.lt_ctx_pkg.checkngetlock(:b4, ltlock, nextver,
:b2, 0,'UPDATE'),
nextver = sys.lt_ctx_pkg.getNextVer(nextver,:b3,:b2)
WHERE ROWID = :b1
Thanks, Alessandra

Hi,
Do any of the versioned tables that you are using have RICs defined on them ? If so, you may find useful information regarding deadlocks in the following thread.
RIC in OWM - ORA-20171 deadlock detected ...
A deadlock will occur when 2 different sessions are waiting on a resource that has already been acquired by the other session.
The easiest example of this are multiple updates to the same table:
-- Session 1
SQL> update scott.test_tab set value=10 where id=1 ;
SQL> -- wait for session 2 to execute its first statement
SQL> update scott.test_tab set value=10 where id=2 ;
-- Session 2
SQL> update scott.test_tab set value=10 where id=2 ;
SQL> -- wait for session 1 to execute its first statement
SQL> update scott.test_tab set value=10 where id=1 ;
At this point 1 of the 2 sessions will fail due to a deadlock. Please note that a deadlock will not occur when 2 sessions simply update the same row. It needs to have already acquired a lock on a row that the other session will be updating.
The same principles can be applied to workspace manager. During each of the workspace operations(merge, remove, rollback, etc) we will acquire a lock on the current workspace and also the parent workspace in the case of remove and merge and a few other operations. If you set the auto_commit to false than those locks are retained until the session either commits or rolls back.
So, if two session successfully perform a workspace operation without committing, and then each of them tries to do another workspace operation which requires the lock held by the other session, then a deadlock will occur. This could also happen from a combination of dmls and workspace operations if you do not commit between them.
It is hard to say from the description that you gave exactly what is happening in your case. It will depend on when the commits are occurring and if you set auto_commit to false during any workspace operations. If you have a simple testcase that is able to show the deadlock occurring, then I would be glad to look at it and make any further recommendations. I would also suggest to upgrade to the latest version of workspace manager(9.2.0.5.1) if you have not already done so. You can find your current version by querying the wm_installation view. The latest version of workspace manager is always available on Metalink.
Regards,
Ben

Similar Messages

  • ORA-00060: deadlock detected while adding a datafile

    Hello all,
    I found a strange error today.
    We were trying add datafile to our existing tablespace as usually but suddenly caught in a problem.
    SQL> alter tablespace erp_dat2 add datafile '/hotdata2/irsdata/erp_dat2irs_145.dbf' size 2000M;
    alter tablespace erp_dat2 add datafile '/hotdata2/irsdata/erp_dat2irs_145.dbf' size 2000M
    ERROR at line 1:
    ORA-00060: deadlock detected while waiting for resourcelooks very strange.Searched on google but not found something useful.Still searching.No trace file is generated as such.
    Any ideas will be appreciated. Is it related to any batch job running?
    OS : SunOS 5.10 Generic_142900-13 sun4u sparc SUNW,Sun-Fire (64-bit)
    RDBMS : 11.1.0.7
    Regards!
    Edited by: Nitin Joshi on Sep 30, 2010 3:41 PM
    Changed subject line

    seems like you're hitting a bug in 11.1.0.7
    Bug 8332021 - Cannot add a datafiles when sessions reporting ORA-1653 [ID 8332021.8]
    ORA-60 can occur during datafile addition when concurrent sessions
    are reporting ORA-1653 .>>Workaround:
    >> Stop the sessions getting the errors then add the datafile.

  • Excluding ORA-00060 errors from Generic Alert Log Error in OEM

    Hi,
    I want to remove the alerts for ORA-00060 errors from OEM Alerts. In "Generic Alert Log Error" the current expression for Warning is ORA-0*(600?|7445|4[0-9][0-9][0-9])[^0-9]. How should I change this expression so that it will not send alerts for ORA-00060. I am not much aware of perl :-). Please help me with the expression.
    Target Type=dbname
    Host=host
    Metric=Generic Alert Log Error
    Metric Value=ORA-00060: Deadlock detected. More info in
    Time/Line Number=Mon Nov 2 10:02:54 2009/134883
    Timestamp=Nov 2, 2009 10:17:14 AM EST
    Severity=Warning
    Message=ORA-error stack (00060) logged in /eb_rdo0_p/oraadmin/pnoltp/bdump/alert_.log.
    Notification Rule Name=Database Alert
    Notification Rule Owner=SYSMAN
    Notification Count=1
    Thanks,
    Varma

    this is default monitored objects.
    To stop monitoring for this object, clear the Critical and Warning threshold values and click Continue.

  • ORA-00060

    Hi,
    Using Oracle 8.1.7 and JDBC driver of Oracle I am getting a
    java.sql.SQLException: ORA-00060: deadlock detected while waiting for
    resource
    Strangely this happens during a insert of a row. No updates are going
    on as far as I know. All I am doing is batch a whole bunch of prepared
    statements for inserts into a table.
    Any suggestions will be greatly appreciated,
    Thanks,
    Aswin.

    Yes different WLS threads are executing transactions. No other clients are
    working.
    Slava Imeshev wrote:
    So is it possible that the code is executed from different
    threads (transactions)? While other clients are working?
    Slava
    "Aswin Dinakar" <[email protected]> wrote in message
    news:[email protected]..
    Plain JDBC calls.
    Slava Imeshev wrote:
    Hi Aswin,
    Inserts locks db pages, too. Do you use EJBs or plain JDBC calls?
    Regards,
    Slava Imeshev
    "Aswin Dinakar" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    Using Oracle 8.1.7 and JDBC driver of Oracle I am getting a
    java.sql.SQLException: ORA-00060: deadlock detected while waiting for
    resource
    Strangely this happens during a insert of a row. No updates are going
    on as far as I know. All I am doing is batch a whole bunch of
    prepared
    statements for inserts into a table.
    Any suggestions will be greatly appreciated,
    Thanks,
    Aswin.

  • ORA-29540 during full database export

    Hi,
    Anyone encounter this error ORA-29540 during full database export. Have check out the web site for solution. Have check that the init file compatible is set to 8.1.0, the public synonym dba_java is been removed. However after the above remedies, the problem still occured. My database version is 8.1.5. Please let me know if there is other solution to this problem.
    Thank You ...
    regards,
    lbs

    Hi,
    Thanks...Any idea how to check whether the installation for the initjvm.sql is successful. cos I just took over from the previous DBA and he too have no idea...
    Thank You..

  • ORA-00060: Deadlock detected

    I getting error as "ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/.................". Following are my observations on the occurence of this error.
    The deadlock is encountered first time when trying to login to applications. I have R12 vision instance on linux.
    Following the content of the alert_VIS.log file
    Mon Jun 15 04:41:41 2009
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as /d01/oracle/VIS/db/tech_st/10.2.0/dbs/arch
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =44
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.3.0.
    System parameters with non-default values:
    tracefiles_public = TRUE
    processes = 200
    sessions = 400
    timed_statistics = TRUE
    shared_pool_size = 419430400
    shared_pool_reserved_size= 41943040
    nls_language = american
    nls_territory = america
    nls_sort = binary
    nls_date_format = DD-MON-RR
    nls_numeric_characters = .,
    nls_comp = binary
    nls_length_semantics = BYTE
    sga_target = 1073741824
    control_files = /d01/oracle/VIS/db/apps_st/data/cntrl01.dbf, /d01/oracle/VIS/db/apps_st/data/cntrl02.dbf, /d01/oracle/VIS/db/apps_st/data/cntrl03.dbf
    db_block_checksum = TRUE
    db_block_size = 8192
    compatible = 10.2.0
    log_buffer = 14251008
    log_checkpoint_interval = 100000
    log_checkpoint_timeout = 1200
    db_files = 512
    log_checkpoints_to_alert = TRUE
    dml_locks = 10000
    undo_management = AUTO
    undo_tablespace = APPS_UNDOTS1
    db_block_checking = FALSE
    O7_DICTIONARY_ACCESSIBILITY= FALSE
    session_cached_cursors = 500
    utl_file_dir = /usr/tmp, /usr/tmp, /d01/oracle/VIS/db/tech_st/10.2.0/appsutil/outbound/VIS_oracleebsr12, /usr/tmp
    plsql_native_library_dir = /d01/oracle/VIS/db/tech_st/10.2.0/plsql/nativelib
    plsql_native_library_subdir_count= 149
    plsql_code_type = native
    plsql_optimize_level = 2
    job_queue_processes = 2
    systemtrig_enabled = TRUE
    cursor_sharing = EXACT
    parallel_min_servers = 0
    parallel_max_servers = 8
    background_dump_dest = /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump
    user_dump_dest = /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump
    max_dump_file_size = 20480
    core_dump_dest = /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/cdump
    db_name = VIS
    open_cursors = 600
    ifile = /d01/oracle/VIS/db/tech_st/10.2.0/dbs/VIS_oracleebsr12_ifile.ora
    sortelimination_cost_ratio= 5
    btree_bitmap_plans = FALSE
    fastfull_scan_enabled = FALSE
    sqlexecprogression_cost= 2147483647
    likewith_bind_as_equality= TRUE
    pga_aggregate_target = 1073741824
    workarea_size_policy = AUTO
    optimizer_secure_view_merging= FALSE
    aq_tm_processes = 1
    olap_page_pool_size = 4194304
    Mon Jun 15 04:42:05 2009
    WARNING:Oracle instance running on a system with low open file descriptor
    limit. Tune your system to increase this limit to avoid
    severe performance degradation.
    PSP0 started with pid=3, OS id=6824
    PMON started with pid=2, OS id=6822
    MMAN started with pid=4, OS id=6826
    DBW0 started with pid=5, OS id=6828
    CKPT started with pid=7, OS id=6832
    SMON started with pid=8, OS id=6834
    RECO started with pid=9, OS id=6836
    CJQ0 started with pid=10, OS id=6838
    LGWR started with pid=6, OS id=6830
    MMON started with pid=11, OS id=6840
    MMNL started with pid=12, OS id=6842
    Mon Jun 15 04:42:19 2009
    ALTER DATABASE MOUNT
    Mon Jun 15 04:42:25 2009
    Setting recovery target incarnation to 2
    Mon Jun 15 04:42:27 2009
    Successful mount of redo thread 1, with mount id 243370348
    Mon Jun 15 04:42:27 2009
    Database mounted in Exclusive Mode
    Completed: ALTER DATABASE MOUNT
    Mon Jun 15 04:42:28 2009
    ALTER DATABASE OPEN
    Mon Jun 15 04:42:48 2009
    Thread 1 opened at log sequence 16
    Current log# 3 seq# 16 mem# 0: /d01/oracle/VIS/db/apps_st/data/log3.dbf
    Successful open of redo thread 1
    Mon Jun 15 04:42:48 2009
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Mon Jun 15 04:42:48 2009
    SMON: enabling cache recovery
    Mon Jun 15 04:42:48 2009
    Incremental checkpoint up to RBA [0x10.a779.0], current log tail at RBA [0x10.a779.0]
    Mon Jun 15 04:43:01 2009
    Successfully onlined Undo Tablespace 18.
    Mon Jun 15 04:43:01 2009
    SMON: enabling tx recovery
    Mon Jun 15 04:43:04 2009
    Database Characterset is UTF8
    Mon Jun 15 04:43:18 2009
    replication_dependency_tracking turned off (no async multimaster replication found)
    Mon Jun 15 04:43:44 2009
    Starting background process QMNC
    QMNC started with pid=14, OS id=6884
    Mon Jun 15 04:46:48 2009
    Completed: ALTER DATABASE OPEN
    Mon Jun 15 05:03:23 2009
    Incremental checkpoint up to RBA [0x10.b1bd.0], current log tail at RBA [0x10.b1f3.0]
    Mon Jun 15 05:23:33 2009
    Incremental checkpoint up to RBA [0x10.b5b3.0], current log tail at RBA [0x10.b5c2.0]
    Mon Jun 15 05:45:12 2009
    Incremental checkpoint up to RBA [0x10.b7b0.0], current log tail at RBA [0x10.fbce.0]
    This is upto the point where all DB and application services has been started.
    Once trying to login to applications following content got appended to the log file
    Mon Jun 15 05:53:39 2009
    ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
    Mon Jun 15 05:53:51 2009
    ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
    Mon Jun 15 05:54:02 2009
    ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
    Mon Jun 15 05:54:12 2009
    ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
    Mon Jun 15 05:54:22 2009
    ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
    Mon Jun 15 05:54:28 2009
    ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
    Mon Jun 15 05:54:35 2009
    ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
    Mon Jun 15 05:54:42 2009
    ORA-00060: Deadlock detected. More info in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/udump/vis_ora_8149.trc.
    Mon Jun 15 05:59:06 2009
    Process J000 died, see its trace file
    Mon Jun 15 05:59:11 2009
    kkjcre1p: unable to spawn jobq slave process
    Mon Jun 15 05:59:11 2009
    Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6838.trc:
    Mon Jun 15 05:59:23 2009
    Process J000 died, see its trace file
    Mon Jun 15 05:59:24 2009
    kkjcre1p: unable to spawn jobq slave process
    Mon Jun 15 05:59:24 2009
    Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6838.trc:
    Mon Jun 15 05:59:50 2009
    Process J000 died, see its trace file
    Mon Jun 15 05:59:50 2009
    kkjcre1p: unable to spawn jobq slave process
    Mon Jun 15 05:59:50 2009
    Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6838.trc:
    I did the TKPROF on .trc files but the tkprof file does not show any details as such except similar to :- (don't know if I am missing anything while issuing TKPROF as $ tkprof filename.trc
    filename.txt explain=apps/apps)
    TKPROF: Release 10.2.0.3.0 - Production on Mon Jun 15 06:07:14 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Trace file: /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6838.trc
    Sort options: default
    count = number of times OCI procedure was executed
    cpu = cpu time in seconds executing
    elapsed = elapsed time in seconds executing
    disk = number of physical reads of buffers from disk
    query = number of buffers gotten for consistent read
    current = number of buffers gotten in current mode (usually for update)
    rows = number of rows processed by the fetch or execute call
    0 statements EXPLAINed in this session.
    Trace file: /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6838.trc
    Trace file compatibility: 10.01.00
    Sort options: default
    1 session in tracefile.
    0 user SQL statements in trace file.
    0 internal SQL statements in trace file.
    0 SQL statements in trace file.
    0 unique SQL statements in trace file.
    22 lines in trace file.
    0 elapsed seconds in trace file.
    Yesterday, I did login to applications after multiple attempts and tried submitting a concurrent request of a standard report (after resolving the data block corrupt issue) and got the same ORA-00060 Error.
    I have a fresh VISION R12 (12.0.4) installed without any customizations. My installation looks to be quite unstable, takes 2-3 attempts for successful login to apps.
    Can you please give any clues on this and how to overcome the problem?
    Thanks,
    Amit

    I have run cmclean.sql as per :- Re: R12 Vision install - Unable to submit concurrent request
    This is the only change made. No new patches etc. Before running cmclean.sql I believe the instance was working fine.
    Now everytime I start the application services, its causing ORA=00060: Deadlock error. There are no issues with just DB services up and running.
    And after apps services up, when trying to Login to apps it just hangs, get error as follows:
    Tue Jun 23 02:04:55 2009
    Process J001 died, see its trace file
    Tue Jun 23 02:04:55 2009
    kkjcre1p: unable to spawn jobq slave process
    Tue Jun 23 02:04:55 2009
    Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6747.trc:
    Tue Jun 23 02:05:04 2009
    Process q002 died, see its trace file
    Tue Jun 23 02:05:04 2009
    ksvcreate: Process(q002) creation failed
    Tue Jun 23 02:05:55 2009
    Process J000 died, see its trace file
    Tue Jun 23 02:05:55 2009
    kkjcre1p: unable to spawn jobq slave process
    Tue Jun 23 02:05:55 2009
    Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6747.trc:
    Tue Jun 23 02:06:11 2009
    Process J000 died, see its trace file
    Tue Jun 23 02:06:11 2009
    kkjcre1p: unable to spawn jobq slave process
    Tue Jun 23 02:06:11 2009
    Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6747.trc:
    Tue Jun 23 02:08:51 2009
    Process J000 died, see its trace file
    Tue Jun 23 02:08:52 2009
    kkjcre1p: unable to spawn jobq slave process
    Tue Jun 23 02:08:52 2009
    Errors in file /d01/oracle/VIS/db/tech_st/10.2.0/admin/VIS_oracleebsr12/bdump/vis_cjq0_6747.trc:
    The OS also hangs (Linux) and I have to exit abnormally everytime which is frustrating.
    I am not sure the reason for the same. I have gone through the metalink notes pointed which says to install the health check engine.
    Do you have any clues based on above information as to what might be causing this problem.
    I have 4 GB RAM installed on my Windows and 2 GB has been allocated to Linux on VMware.
    Please let me know if I need to upgrade the memory.
    Any pointers would be really helpful.
    Thanks,
    Amit

  • ORA-39126 during an export of a partition via dbms_datapump

    Hi ,
    i did export using datapump in command line everything went fine but while exporting via dbms_datapump i got this:
    ORA-39126 during an export of a partition via dbms_datapump
    ORA-00920
    'SELECT FROM DUAL WHERE :1' P20060401
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 6228
    the procedure is:
    PROCEDURE pr_depura_bitacora
    IS
    l_job_handle NUMBER;
    l_job_state VARCHAR2(30);
    l_partition VARCHAR2(30);
    v_sql VARCHAR2(2000);
    BEGIN
    -- Create a user-named Data Pump job to do a "table:partition-level" export
    -- Local
    select 'P'|| to_char((select min(STP_LOG_DATE) from SAI_AUDITBITACORA),'YYYYMM')||'01'
    into l_partition
    from user_tab_partitions
    where table_name = 'SAI_AUDITBITACORA'
    and rownum = 1;
    l_partition := rtrim (l_partition,' ');
    l_job_handle:= DBMS_DATAPUMP.OPEN
    operation=>'EXPORT',
    job_mode =>'TABLE',
    job_name =>'EXPORT_ORACLENSSA'
    -- Schema filter
    DBMS_DATAPUMP.METADATA_FILTER
    handle => l_job_handle,
    name => 'SCHEMA_EXPR',
    value => 'IN (''ORACLENSSA'')'
    DBMS_OUTPUT.PUT_LINE('Added filter for schema list');
    -- Table filter
    DBMS_DATAPUMP.METADATA_FILTER
    handle => l_job_handle,
    name => 'NAME_EXPR',
    value => '=''SAI_AUDITBITACORA'''
    DBMS_OUTPUT.PUT_LINE('Added filter for table expression');
    -- Partition filter
    DBMS_DATAPUMP.DATA_FILTER
    handle => l_job_handle,
    name => 'PARTITION_EXPR',
    value => l_partition,
    table_name => 'SAI_AUDITBITACORA'
    DBMS_OUTPUT.PUT_LINE('Partition filter for schema list');
    DBMS_DATAPUMP.ADD_FILE
    handle => l_job_handle,
    filename => 'EXP'||l_partition||'.DMP',
    directory => 'EXP_DATA_PUMP',
    filetype => 1
    DBMS_DATAPUMP.ADD_FILE
    handle => l_job_handle,
    filename => 'EXP'||l_partition||'.LOG',
    directory => 'EXP_DATA_PUMP',
    filetype => 3
    DBMS_DATAPUMP.START_JOB
    handle => l_job_handle,
    skip_current => 0
    DBMS_DATAPUMP.WAIT_FOR_JOB
    handle => l_job_handle,
    job_state => l_job_state
    DBMS_OUTPUT.PUT_LINE('Job completed - job state = '||l_job_state);
    DBMS_DATAPUMP.DETACH(handle=>l_job_handle);
    END;
    I've already drop and recreate the directory, granted read, write to public and to user, grant create session, create table, create procedure, exp_full_database to user, restart the database and the listener with the var LD_LIBRARY pointing first to $ORACLE_HOME/lib, and add more space to temporary tablespace.

    The basic problem is:
    Error: ORA 920
    Text: invalid relational operator
    Cause: A search condition was entered with an invalid or missing relational
    operator.
    Action: Include a valid relational operator such as =, !=, ^=, <>, >, <, >=, <=
    , ALL, ANY, [NOT] BETWEEN, EXISTS, [NOT] IN, IS [NOT] NULL, or [NOT]
    LIKE in the condition.
    Obviously this refers to the invalid statement 'SELECT FROM DUAL ...'. I also recommend, you should contact Oracle Support, because it happens inside an Oracle provided package.
    Werner

  • Database error"ORA-00060: deadlock detected while waiting for resource"

    Hi All,
    I got dump as
    Database error text........: "ORA-00060: deadlock detected while waiting for
      resource"
    Internal call code.........: "[RSQL/RDUP/NRIV ]"
    Please check the entries in the system log (Transaction SM21).
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
    in
    procedure "READ_NRIV" "(FORM)", nor was it propagated by a RAISING clause.
    Can u ppl tell me how to get correct this?
    Edited by: Bala Chandar on Jul 20, 2009 11:01 AM

    Hi Bala,
    Same type of dump we got when we trigger the DTP which in process chain to load data from DSO to Info cube. And the load had processed with 225 data package and at 164th data package we got this error and except 164th data package all data package processed successfully
    And the request was red. So we had done processed manually by clicking the icon. So all its been green and successfully loaded.
    So when you do process manual the particular data package which got failed will be process successfully  

  • ORA-00060 "deadlock detected while waiting for resource"

    Hello.
    I am having an oracle deadlock when calling a stored procedure (wich updates several records in several tables) from several threads: ORA-00060 error. The error does not happen very often but from time to time, normally the calls to this proceudre end ok.
    Each call starts and ends a transaction. (When the oracle error raises the transaction where it raises is rolled back) and the other transactions can go on.
    I don't how to avoid it. Should it be solved at the stored procedure level or could it be solved at java level by doing the call to the stored procedure to be synchronized?
    Thanks in advance.

    Fernando_Sanchez wrote:
    Hello.
    I am having an oracle deadlock when calling a stored procedure (wich updates several records in several tables) from several threads: ORA-00060 error. The error does not happen very often but from time to time, normally the calls to this proceudre end ok.Which doesn't really sound good.
    If you have a java thread then to do JDBC, regardless of what type, you get a new connection and new statements in each one.
    If you are not doing that then that is a problem.
    If you are doing that then the thread information is irrelevant at the java level.
    You can of course do all sorts of interesting things with locks and transactions in Oracle and via stored procs but other ways as well. And if you are not careful it will cause problems.

  • ORA-00060: deadlock detected while waiting for resource CLOSE cursor

    Hi,
    I am a new member of this forum. I am working with a problem we got a few weeks ago. It is from a Pro C batch executable running on 10 threads dealing with >800 data accessed from multiple tables. The error as reported came from a package.function call.
    This is the error I encountered:
    process_item~G****, D***~-60~ORA-00060: deadlock detected while waiting for resource~PACKAGE ERROR = CLOSE cursor C_***** in package R***.I*** 7641
    The cursor is a simple SELECT cursor without Table or Record locking.
    My questions are:
    *Upon the occurrence of this error, is the execution already at the CLOSE cursor line or did the error occurred between the OPEN cursor and the CLOSE cursor? There are several lines of code in between OPEN and CLOSE:
    - one that calls for a package.function that simply stores parameter values to a variable
    - another one which fetches the cursor. The group that holds the cursor values is only used by a single function in the package
    *Is it possible for this CLOSE cursor to cause a deadlock? What could have caused this?
    *From what I know, Oracle deals with deadlocks by aborting the deadlocking process while others continue, but this deadlock caused our program to hang. How is this possible? Could the root cause of the deadlock be from our threading program? This is a rare occurrence and happened only twice this year.
    Thanks,
    Raf

    Raf Serrano wrote:
    Hi,
    I am a new member of this forum. I am working with a problem we got a few weeks ago. It is from a Pro C batch executable running on 10 threads dealing with >800 data accessed from multiple tables. The error as reported came from a package.function call.
    This is the error I encountered:
    process_item~G****, D***~-60~ORA-00060: deadlock detected while waiting for resource~PACKAGE ERROR = CLOSE cursor C_***** in package R***.I*** 7641
    The cursor is a simple SELECT cursor without Table or Record locking.
    My questions are:
    *Upon the occurrence of this error, is the execution already at the CLOSE cursor line or did the error occurred between the OPEN cursor and the CLOSE cursor? There are several lines of code in between OPEN and CLOSE:
    - one that calls for a package.function that simply stores parameter values to a variable
    - another one which fetches the cursor. The group that holds the cursor values is only used by a single function in the package
    *Is it possible for this CLOSE cursor to cause a deadlock? What could have caused this?
    *From what I know, Oracle deals with deadlocks by aborting the deadlocking process while others continue, but this deadlock caused our program to hang. How is this possible? Could the root cause of the deadlock be from our threading program? This is a rare occurrence and happened only twice this year.
    Thanks,
    RafSELECT (without FOR UPDATE) statements are never involved in ORA-00060.
    only DML statements throw ORA-00060 error

  • Encountered ora-29701 during Sun Cluster for Oracle RAC 9.2.0.7 startup (UR

    Hi all,
    Need some help from all out there
    In our Sun Cluster 3.1 Data Service for Oracle RAC 9.2.0.7 (Solaris 9) configuration, my team had encountered
    ora-29701 *Unable to connect to Cluster Manager*
    during the startup of the Oracle RAC database instances on the Oracle RAC Server resources.
    We tried the attached workaround by Oracle. This workaround works well for the 1^st time but it doesn’t work anymore when the server is rebooted.
    Kindly help me to check whether anyone encounter the same problem as the above and able to resolve. Thanks.
    Bug No. 4262155
    Filed 25-MAR-2005 Updated 11-APR-2005
    Product Oracle Server - Enterprise Edition Product Version 9.2.0.6.0
    Platform Linux x86
    Platform Version 2.4.21-9.0.1
    Database Version 9.2.0.6.0
    Affects Platforms Port-Specific
    Severity Severe Loss of Service
    Status Not a Bug. To Filer
    Base Bug N/A
    Fixed in Product Version No Data
    Problem statement:
    ORA-29701 DURING DATABASE CREATION AFTER APPLYING 9.2.0.6 PATCHSET
    *** 03/25/05 07:32 am ***
    TAR:
    PROBLEM:
    Customer applied 9.2.0.6 patchset over 9.2.0.4 patchset.
    While creating the database, customer receives following error:
         ORA-29701: unable to connect to Cluster Manager
    However, if customer goes from 9.2.0.4 -> 9.2.0.5 -> 9.2.0.6, the problem does not occur.
    DIAGNOSTIC ANALYSIS:
    It seems that the problem is with libskgxn9.so shared library.
    For 9.2.0.4 -> 9.2.0.5 -> 9.2.0.6, the install log shows the following:
    installActions2005-03-22_03-44-42PM.log:,
    [libskgxn9.so->%ORACLE_HOME%/lib/libskgxn9.so 7933 plats=1=>[46]langs=1=> en,fr,ar,bn,pt_BR,bg,fr_CA,ca,hr,cs,da,nl,ar_EG,en_GB,et,fi,de,el,iw,hu,is,in, it,ja,ko,es,lv,lt,ms,es_MX,no,pl,pt,ro,ru,zh_CN,sk,sl,es_ES,sv,th,zh_TW, tr,uk,vi]]
    installActions2005-03-22_04-13-03PM.log:, [libcmdll.so ->%ORACLE_HOME%/lib/libskgxn9.so 64274 plats=1=>[46] langs=-554696704=>[en]]
    For 9.2.0.4 -> 9.2.0.6, install log shows:
    installActions2005-03-22_04-13-03PM.log:, [libcmdll.so ->%ORACLE_HOME%/lib/libskgxn9.so 64274 plats=1=>[46] langs=-554696704=>[en]] does not exist.
    This means that while patching from 9.2.0.4 -> 9.2.0.5, Installer copies the libcmdll.so library into libskgxn9.so, while patching from 9.2.0.4 -> 9.2.0.6 does not.
    ORACM is located in /app/oracle/ORACM which is different than ORACLE_HOME in customer's environment.
    WORKAROUND:
    Customer is using the following workaround:
    cd $ORACLE_HOME/rdbms/lib make -f ins_rdbms.mk rac_on ioracle ipc_udp
    RELATED BUGS:
    Bug 4169291

    Check if following MOS note helps.
    Series of ORA-7445 Errors After Applying 9.2.0.7.0 Patchset to 9.2.0.6.0 Database (Doc ID 373375.1)

  • When does Oracle throw the ORA-00060 , Deadlock error

    Hi,
    To test the "ORA-00060: Deadlock detected" we tried the below steps on scott schema.
    First session -
    update emp set sal=9999 where name='JACK';
    Second session -
    update emp set sal=5555 where name='JACK';
    We used the below query to find out which SID is locking the other;
    select l1.sid, ' IS BLOCKING ', l2.sid from v$lock l1, v$lock l2 where l1.block =1 and l2.request > 0 and l1.id1=l2.id1 and l1.id2=l2.id2;
    -- We got the SID's
    But in the alert log we are still not able to see the ORA-00060 error.
    Why is this ? In which scenario do we see the ORA-00060 error in alert log ?
    Please guide.
    Thanks.

    What you describe is just a blocking lock, not a deadlock.
    The first session can simply do commit and the second session can then continue.
    In a deadlock situation, nobody can commit if the system does not resolve the problem by rolling back one of the transactions:
    session1: lock row 1
    session 2: lock row 2
    session 1: try lock row 2 <- wait on session 2
    session 2: try lock row 1 <- wait on session 1
    both wait, enter ORA-600
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Deadlock detected  as ORA-00060

    hi,
    deadlock detected in DEV box with below warnings :
    BR0976W Database message alert - level: WARNING, line: 38869, time: 2008-05-12 00.31.38, message:
    ORA-00060: Deadlock detected. More info in file /oracle/DV1/saptrace/usertrace/dv1_ora_1187980.trc .
    BR0280I BRCONNECT time stamp: 2008-05-12 06.20.37
    I checked at OS level also. I found following message :
    DEADLOCK DETECTED ( ORA-00060 )
    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-0012000c-00003699
    21
    37
    X
    19
    25
    X
    TX-0007001c-000035f9
    19
    25
    X
    21
    37
    X
    session 37: DID 0001-0015-0000000A
    session 25: DID 0001-0013-00000016
    session 25: DID 0001-0013-00000016
    session 37: DID 0001-0015-0000000A
    Rows waited on:
    Session 25: obj - rowid = 0000489B - AAAEibAAfAAAAUTAAE
    (dictionary objn - 18587, file - 31, block - 1299, slot - 4)
    Session 37: obj - rowid = 0000489B - AAAEibAAfAAAAUPAAa
    (dictionary objn - 18587, file - 31, block - 1295, slot - 26)
    Information on the OTHER waiting sessions:
    can anybody help me out for exact solution..
    regards
    Anju

    Hi,
    When you are facing this problem you have to identify the process which is causing the deadlock. You can run DB01 transaction to see the lock waits and deadlocks occured in Database level. So find the PID which is causing the deadlocks, analyze the process what it is doing and its importance by contacting the user who is running the process and then terminate it to resolve the deadlock.
    Regards,
    N.Amarnath

  • DEADLOCK DETECTED ( ORA-00060 )

    Hi,
    We are getting deadlocks when the System (Exteranl-Portal-
    Production) Cache Upload process runs. It's Looks like
    application problem.
    We have been getting this deadlock problem whenever the CACHE job gets
    executed.
    Basically its a portal SRM Business package system.
    We have scheduled the CACHE job on portal at 1 AM MSTAZ time , so it
    will use Jco to connect R3 and SRM system to bring the data.
    We have been observing this deadlock problem only at the time of cache
    job.
    But cache job is executing succesfully , but we could see the deadlock
    in the logs.
    In the beginning of trace file (Location:-
    /oracle/RPE/saptrace/usertrace/) we found the information as follows
    more rpe_ora_1835342.trc
    Dump file /oracle/RPE/saptrace/usertrace/rpe_ora_1835342.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    ORACLE_HOME = /oracle/RPE/102_64
    System name:    AIX
    Node name:      fsp55a08
    Release:        3
    Version:        5
    Machine:        000788ABD600
    Instance name: RPE
    Redo thread mounted by this instance: 1
    Oracle process number: 17
    Unix process pid: 1835342, image: oracle@fsp55a08
    2009-05-31 01:00:49.485
    ACTION NAME:() 2009-05-31 01:00:49.485
    MODULE NAME:(JDBC Thin Client) 2009-05-31 01:00:49.485
    SERVICE NAME:(SYS$USERS) 2009-05-31 01:00:49.485
    SESSION ID:(275.1229) 2009-05-31 01:00:49.485
    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-00050010-00003981        17     275     X             18     284           X
    TX-00010000-000038a3        18     284     X             17     275           X
    session 275: DID 0001-0011-00000139     session 284: DID 0001-0012-0000004F
    session 284: DID 0001-0012-0000004F     session 275: DID 0001-0011-00000139
    Rows waited on:
    Session 284: obj - rowid = 0000561D - AAAFYdAAJAAAHUlAAU
      (dictionary objn - 22045, file - 9, block - 29989, slot - 20)
    Session 275: obj - rowid = 00005617 - AAAFYXAAJAAAG1aAAc
      (dictionary objn - 22039, file - 9, block - 27994, slot - 28)
    Information on the OTHER waiting sessions:
    Session 284:
      pid=18 serial=1236 audsid=672749 user: 21/SAPRPEDB
      O/S info: user: rpeadm, term: unknown, ospid: 1234, machine: fsp65003
                program: JDBC Thin Client
    Please help me on this issue.
    Please let me know if you need any more information on the same.
    Thank you in advance.
    Regards,
    A.Naresh
    SAP-BASIS

    Hi,
    Check SAP Note 84348 - Oracle deadlocks, ORA-00060
    Thanks
    Sunny

  • Caused by: java.sql.SQLException: ORA-00060: deadlock detected while waitin

    Hi,
    I'm getting following exception:
    Caused by: net.sf.hibernate.exception.GenericJDBCException: could not update: [com.sample.database.hibernate.mappings.reference.impl.TaskImpl#156979998]
         at net.sf.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:90)
         at net.sf.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:79)
         at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:30)
         at net.sf.hibernate.persister.AbstractEntityPersister.convert(AbstractEntityPersister.java:1332)
         at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:683)
         at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:623)
         at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:52)
         at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2438)
         at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2392)
         at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2260)
         at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
         at com.sample.database.hibernate.util.HibernateUtil.doSessionWork(HibernateUtil.java:83)
         ... 8 more
    Caused by: java.sql.SQLException: ORA-00060: deadlock detected while waiting for resource
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:158)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:685)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1138)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3018)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3090)
         at com.mchange.v2.sql.filter.FilterPreparedStatement.executeUpdate(FilterPreparedStatement.java:71)
         at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:666)
         ... 15 more
    what could be the reason??
    thanks.

    The error is coming from an application. Please check the alert log file of the database and further there will be a trace file mentioned in the alert log file in which you will have information of the object which is causing deadlock.
    Regards

Maybe you are looking for

  • My iMovie '11 has bombed, is there a place to re-download it?

    My iMovie '11 (v. 9.0.4) is no longer functional as I cannot get any audio for any files over the last few days. It worked fine for as long as I have had it. Now every video I bring in the audio is not working. The audio does work in quicktime 7, qui

  • Masking Buttons problem...

    Hello All... I am trying to create a website using Flash CS3. I want to have my navigation appear with a mask when seen on the site. I created the buttons in a movie clip and each button is an actual button. When I place a mask over the buttons and t

  • Cannot connect to YouTube or safari

    My son iTouch for some reason refused to connect to YouTube and safari . Error was "cannot connect tou you tube" and on safari just spins but never connect. Odd the apppear tobe copnnect to my wireless Hub ok. Follow most of the solution but none wor

  • Table authorisation group for a group of user ?

    Hi all, Is it possible to give read only authorisation for my ztable to enduser. i dont want to give tcode. Is it possible to do anything in Authorisation group .( normally is use &nc& ) can i create authorisation group and do something in that ? if

  • Captivate @ TSW Conference - May 4-6, Santa Clara

    We are attending the Technology Services World conference being held from May 4-6 at the Santa Clara convention center. If you are planning to attend, do drop by our booth (#25) to learn how Captivate can be used to streamline your tech-support and c