Package timeout (ORA-04021)

Hi all,
I am trying to create a package but it throws out an error after long time (I guess 5 to 10 minutes), Any help will be greatly appreciated.
Error message is:
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object
null

I had this problem once when I was trying to compile schema in the procedure.
So don't you have some similar problem?
Like the package is currently running or any funny code in the package?
What this does package do?
Maybe provide more information about the package.
Marek

Similar Messages

  • Report based on Ref Cursor and lock package/table (ORA-04021)

    Hi,
    I have reports based on Ref Cursor. Report builder and Reports Background Engine make pins for package, which consist of Ref Cursor, and for tables, which is used in package. So I can't grant any privileges on these tables anybody.
    For example, after next statement:
    GRANT SELECT ON table_name TO user_name
    I received the next error:
    ORA-04021: timeout occurred while waiting to lock object table_name
    Thanks

    Hi,
    I have reports based on Ref Cursor. Report builder and Reports Background Engine make pins for package, which consist of Ref Cursor, and for tables, which is used in package. So I can't grant any privileges on these tables anybody.
    For example, after next statement:
    GRANT SELECT ON table_name TO user_name
    I received the next error:
    ORA-04021: timeout occurred while waiting to lock object table_name
    Thanks

  • Patch 9239090 - ORA-04021: timeout occurred while waiting to lock object

    Hello Guys,
    I need help urgently to comlete an upgrade of ebs 12.1.1 to 12.1.3.
    We are upgrading ebs 11i to 12i going live this weekend. We have encountered "ORA-04021: timeout occurred while waiting to lock object" on patch 9239090 with two Workers:
    In adctrl:
    1 Run AutoPatch R120 AFUTLGRS.pls FAILED
    2 Run AutoPatch R120 AFUTLOGS.pls FAILED
    sqlplus -s APPS/***** @/u02/applfinp/apps/apps_st/appl/admin/OFPROD/out/p001invok.sql
    Connected.
    create or replace package wf_bes_cleanup AUTHID CURRENT_USER as
    ERROR at line 1:
    ORA-04021: timeout occurred while waiting to lock object
    I have done everything everything imaginable but cannot get pass these 2 failed workers.
    1) I have checked are there are no locks blocking on any objects:
    select s1.username || '@' || s1.machine
    || ' ( SID=' || s1.sid || ' ) is blocking '
    || s2.username || '@' || s2.machine || ' ( SID=' || s2.sid || ' ) ' AS blocking_status
    from v$lock l1, v$session s1, v$lock l2, v$session s2
    where s1.sid=l1.sid and s2.sid=l2.sid
    and l1.BLOCK=1 and l2.request > 0
    and l1.id1 = l2.id1
    and l2.id2 = l2.id2 ;
    2) I also checked and there is space in the database.
    3) From adctrl, I have tried restarting the jobs one by one but the worker 1 hangs at and eventually fails on several (12) attempts.
    4) The solution on Doc ID 1291064.1 is not the problem:
    SQL> select SUPPLEMENTAL_LOG_DATA_MIN, SUPPLEMENTAL_LOG_DATA_PK, SUPPLEMENTAL_LOG_DATA_UI, FORCE_LOGGING
    from v$database;
    SUPPLEME SUP SUP FOR
    NO NO NO NO
    5) Manual execution still gave ORA-04021:
    sqlplus -s APPS/apps @/u02/applfinp/apps/apps_st/appl/admin/OFPROD/out/p001invok.sql
    sqlplus -s APPS/apps @/u02/applfinp/apps/apps_st/appl/admin/OFPROD/out/p002invok.sql
    6) The alert log has no related errors
    7) I Finally, after over 6 hours of waiting, I could only get the patch to continue after by using adctrl option 8 to skip these two workers.
    After proceeding, I have yet hit two more errors and now stuck:
    I have hit another error with the same patch:
    create or replace package body FND_LOG as
    /* $Header: AFUTLOGB.pls 120 ...
    AD Worker error:
    ORA-04021: timeout occurred while waiting to lock object
    Unable to process file in PACKAGE mode.
    Not converting file for Invoker's Rights because it appears to be a package body creation script (based on the filename).
    File is: /u02/applfinp/apps/apps_st/appl/fnd/12.0.0/patch/115/sql/AFUTLOGB.pls
    AD Worker warning:
    Product Data File
       /u02/applfinp/apps/apps_st/appl/admin/xniprod.txt
       does not exist for product "xni".
      This product is registered in the database but the above file does not exist in APPL_TOP.  The product will be ignored without error
    AD Worker error:
    The following ORACLE error:
    ORA-04063: package body "APPS.FND_LOG" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "APPS.FND_LOG"
    ORA-06512: at "APPS.FND_FUNCTION", line 834
    ORA-06512: at "APPS.FND_MENU_ENTRIES_C_DELTRG", line 4
    ORA-04088: error during execution of trigger 'APPS.FND_MENU_ENTRIES_C_DELTRG'
    Can I stop and restart this patch 9239090?

    Hello,
    I later executed the failed jobs or scripts manually (successfully) for the patch to continue
    sqlplus -s APPS/apps @/u02/applfinp/apps/apps_st/appl/admin/OFPROD/out/p001invok.sql
    sqlplus -s APPS/apps @/u02/applfinp/apps/apps_st/appl/admin/OFPROD/out/p002invok.sql
    The patch ended with the following :
    The following Oracle Reports objects did not generate successfully:
    ap reports/US APXARATE.rdf
    ar reports/US ARXCTA.rdf
    fa reports/US FASRSVED.rdf
    ont reports/US OEXOEORD.rdf
    pa reports/US PAXACMPT.rdf
    pa reports/US PAXALRUN.rdf
    pa reports/US PAXACRPT.rdf
    pa reports/US PAXCPGAL.rdf
    pa reports/US PAXPCRFD.rdf
    The patch execution ended but the patch number is not record in apps.ad_bugs table:
    select TO_CHAR(CREATION_DATE,'dd-Mon-yyyy, hh24:mm:ss'), BUG_NUMBER from apps.ad_bugs where bug_number in ('9239090');
    no rows selected
    JFI
    Patches located in ad_applied_patches to which there is no a corresponding record in ad_bugs:
    SQL> SELECT a.patch_name, TO_CHAR(max(a.last_update_date),'dd-Mon-yyyy, hh24:mm:ss')
    2 FROM applsys.ad_applied_patches a
    3 WHERE NOT EXISTS (SELECT '1'
    4 FROM ad_bugs b
    5 WHERE b.bug_number = a.patch_name)
    6 group by a.patch_name;
    PATCH_NAME TO_CHAR(MAX(A.LAST_UP
    9239090 26-Oct-2013, 00:10:27
    AutoConfig 25-Oct-2013, 17:10:51
    merger9179588 25-Oct-2013, 11:10:30
    merger_post_5903765 27-Apr-2013, 23:04:45
    mergeu6678700 25-Oct-2013, 16:10:09
    What could have happened that this was not recorded in ad_bugs?
    How to I get this recorded in the ad_bugs table?
    Thanks
    Mathias

  • ORA-04021:timeout...

    Hi guys,
    I have a problem: when I try to replace or delete a package I recive
    an error message ORA-04021: timeout occurred while waiting to lock object XXX
    Of course it's becouse this package is used by another session.
    In v$access table I've found out whitch session it is, but I don't
    know how to kill or stop this session to allowed replacing of package.
    I killed the session and its status is marked as killed but the
    package is still used.
    Pls help me it's very important. Any solution how to compile this
    package is welcomed. Restart of database doesn't help, I tried :-(
    Thanx a lot.

    Most likely, the problem is that someone else in some other session is calling your procedure, which prevents you from locking it in order to run DDL against it. If this is a busy system, you'll likely have to wait for a downtime window in order to run your DDL. If this is not a busy system, you may be able to just retry the operation.
    Justin

  • Ora-04021: timeout occured while waiting to lock object.

    I have upgraded the DB From 8.1.5 to 8.1.7 then 9.0.2
    but while converting to 9i it gave a warning that
    "some uncompiled objects were found".
    now the DB works fine with every DDL and DML operation but when I edit any precedure or function it hangs for 4 to 5 mins and then show the following error
    ora-04021: timeout occured while waiting to lock object.
    when I shutdown the DB and restarts it then it allowes me to edit any founction or procedure or package only for one time,then again shows the error when I try to edit second time.
    what my be the reason , can any body help me pl.
    thankx in advance.

    If you have oracle metalink support, then, read Note:169139.1. If not, give me your email id, i will send you the note.
    SJH

  • Ora-04021 timeout occurred while waiting to lock object

    Hai All
    When adding a column into a table then an error comes error
    Error Message:
    ORA-04021: timeout occurred while waiting to lock object .....
    How it happens ...what is the solution....please help
    Shiju..

    Hi
    Identify the session that is using this object, kill it and then perform the ALTER table... or wait until the session that is accessing this table release it.
    Rgds
    Adnan

  • EXP-00056: ORACLE error 4021 encountered ORA-04021: timeout occurred while

    hi all oracle gurus ,
    i have this problem which i am facing its like this.i have a batch file that runs export every night one week back it was all okay .few days back when i looked the log files it gives me this error ---EXP-00056: ORACLE error 4021 encountered
    ORA-04021: timeout occurred while waiting to lock object
    what should i do this is a production database runing in windows platform and there is no backup pls help me .....
    export log file -------
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user PILOT
    . exporting foreign function library names for user FINANCE
    . exporting foreign function library names for user MBCNEWS
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user PILOT
    . exporting object type definitions for user FINANCE
    . exporting object type definitions for user MBCNEWS
    About to export PILOT's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    EXP-00056: ORACLE error 4021 encountered
    ORA-04021: timeout occurred while waiting to lock object
    ORA-06512: at "SYS.DBMS_METADATA", line 1511
    ORA-06512: at "SYS.DBMS_METADATA", line 1548
    ORA-06512: at "SYS.DBMS_METADATA", line 1864
    ORA-06512: at "SYS.DBMS_METADATA", line 3707
    ORA-06512: at "SYS.DBMS_METADATA", line 3689
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    robyav

    this is a production database runing in windows platform and there is no backup
    what should iWell first of all you should stop using EXP for backups, it's quite unsuitable, and start using RMAN instead. Find out more.
    If you have a Metalink account you shoudl read Note:298968.1. But teh headline is there is a bug in 10gR1 which is fixed in 10gR2. This may not help you much. The workaround is to try running the export again later, which may not be any more helpful.
    Cheers, APC

  • Package timeout error

    Hi all,
    I am trying to create a package but it throws out an error after long time (I guess 5 to 10 minutes), Any help will be greatly appreciated.
    Error message is:
    ERROR at line 1:
    ORA-04021: timeout occurred while waiting to lock object APPS.FVSF133_NOYEAR_TEST
    Thanks..BV

    All this means is that you are trying to create a Package that has some other procedure that another package is using. The system is trying to get a lock on that package, table or object that someone else is using.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Veeranji:
    Hi all,
    I am trying to create a package but it throws out an error after long time (I guess 5 to 10 minutes), Any help will be greatly appreciated.
    Error message is:
    ERROR at line 1:
    ORA-04021: timeout occurred while waiting to lock object APPS.FVSF133_NOYEAR_TEST
    Thanks..BV<HR></BLOCKQUOTE>
    null

  • Ora-04021 during import

    Hi Guys,
    I am doing an import during which i got this error .
    IMP-00017: following statement failed with ORACLE error 4021:
    "GRANT EXECUTE ON "VCP_PMC_PKG" TO "HERNANDEZO""
    IMP-00003: ORACLE error 4021 encountered
    ORA-04021: timeout occurred while waiting to lock object NCC.VCP_PMC_PKG.
    SQL> SELECT * FROM v$access WHERE object = 'VCP_PMC_PKG';
    SID OWNER
    OBJECT
    TYPE
    174 NCC
    VCP_PMC_PKG
    PACKAGE
    SQL> select oracle_username, os_user_name,locked_mode,object_name,object_type
    from v$locked_object a, dba_objects b
    where a.object_id=b.object_id;
    2 3
    no rows selected.
    how to get rid of this error?
    Thanks in advance.

    Hi, what happen if you try of execute the next statement in the directly from SQL*Plus to the database.
    GRANT EXECUTE ON "VCP_PMC_PKG" TO "HERNANDEZO"
    Are you get the same error??
    Regards
    Luck
    Have a good day.

  • ORA-04021

    Hi all,
    I am in trouble with a packaged function. Anyone could help me?
    Package A
    Function F (p1,p2,p3)
    if p1 = 'C' then return p2+p3
    else return p2-p3
    Package B
    Procedure G ()
    INSERT /*+APPEND*/ INTO <table> NOLOGGING
    (<columns>)
    (SELECT A.F(c1,c2,c3), A.F(c3,c4,c5),...
    FROM ...
    WHERE ...)
    When stored procedure B.G is executed, package A locks and procedure G dies with ...
    CREATE OR REPLACE PACKAGE BODY B IS
    ERROR at line 1:
    ORA-04021: timeout occurred while waiting to lock object
    User.B
    Surprisingly (for me) if you put only one call to function A.F in the select then works fine.
    Thanks in advance,
    Lucas.

    I'm assuming your bizarre syntax is some attempt at pseudo-code rather than what you're actually running. Alas, the devil must be in the details as what you are trying to do ought to work. Consequently you'll need to post your actual code if we are to figure out what's going wrong. The smallest possible test case that demonstrates the behaviour, please.
    Cheers, APC
    SQL> CREATE OR REPLACE PACKAGE aaa
      2  AS
      3      FUNCTION f
      4          (p1 IN VARCHAR2,p2 IN NUMBER,p3 IN NUMBER)
      5          RETURN NUMBER;
      6  END aaa;
      7  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY aaa
      2  AS
      3      FUNCTION f
      4          (p1 IN VARCHAR2,p2 IN NUMBER,p3 IN NUMBER)
      5          RETURN NUMBER
      6      IS
      7      BEGIN
      8        IF p1 = 'C' THEN
      9              RETURN p2+p3;
    10        ELSE
    11              RETURN p2-p3;
    12        END IF;
    13      END f;
    14  END aaa;
    15  /
    Package body created.
    SQL>
    SQL> DECLARE
      2      i NUMBER := 49382;
      3      j NUMBER := 2783;
      4      k NUMBER := 8293;
      5      l NUMBER := 7283;
      6  BEGIN
      7     INSERT INTO bt1 (col1, col2) VALUES ( aaa.f('C', i, j) , aaa.f('C', k, l));
      8  END;
      9  /
    PL/SQL procedure successfully completed.
    SQL>

  • ORA-04021 Issues

    Hi,
    While trying to compile a package i am receiving an error
    CREATE OR REPLACE Package BODY Etl AS
    ERROR at line 1:
    ORA-04021: timeout occurred while waiting to lock object
    OWNER.ETL
    But when i am compliling the package with a different name its getting compiled successfully.
    Why its behaving in such a fashion?
    Kindly answer?
    Thanks in advance.

    Hi Sid,
    The below query will help you check if your resource is being locked
    SELECT /*+ ordered */
         --b.kaddr,
         c.sid,
         lock_waiter.waiting_session,
         lock_blocker.holding_session,
         c.program,
         c.osuser,
         c.machine,
         c.process,
         DECODE(u.name,
              NULL,'',
              u.name||'.'||o.name
         ) OBJECT,
         c.username,
         DECODE
              b.TYPE,
              'BL', 'Buffer hash table instance lock',
              'CF', 'Control file schema global enqueue lock',
              'CI', 'Cross-instance function invocation instance lock',
              'CU', 'Cursor bind lock',
              'DF', 'Data file instance lock',
              'DL', 'direct loader parallel index create lock',
              'DM', 'Mount/startup db primary/secondary instance lock',
              'DR', 'Distributed recovery process lock',
              'DX', 'Distributed transaction entry lock',
              'FS', 'File set lock',
              'IN', 'Instance number lock',
              'IR', 'Instance recovery serialization global enqueue lock',
              'IS', 'Instance state lock',
              'IV', 'Library cache invalidation instance lock',
              'JQ', 'Job queue lock',
              'KK', 'Thread kick lock',
              'LA','Library cache lock instance lock (A..P=namespace);',
              'LB','Library cache lock instance lock (A..P=namespace);',
              'LC','Library cache lock instance lock (A..P=namespace);',
              'LD','Library cache lock instance lock (A..P=namespace);',
              'LE','Library cache lock instance lock (A..P=namespace);',
              'LF','Library cache lock instance lock (A..P=namespace);',
              'LG','Library cache lock instance lock (A..P=namespace);',
              'LH','Library cache lock instance lock (A..P=namespace);',
              'LI','Library cache lock instance lock (A..P=namespace);',
              'LJ','Library cache lock instance lock (A..P=namespace);',
              'LK','Library cache lock instance lock (A..P=namespace);',
              'LL','Library cache lock instance lock (A..P=namespace);',
              'LM','Library cache lock instance lock (A..P=namespace);',
              'LN','Library cache lock instance lock (A..P=namespace);',
              'LO','Library cache lock instance lock (A..P=namespace);',
              'LP','Library cache lock instance lock (A..P=namespace);',
              'MM', 'Mount definition global enqueue lock',
              'MR', 'Media recovery lock',
              'NA', 'Library cache pin instance lock (A..Z=namespace)',
              'NB', 'Library cache pin instance lock (A..Z=namespace)',
              'NC', 'Library cache pin instance lock (A..Z=namespace)',
              'ND', 'Library cache pin instance lock (A..Z=namespace)',
              'NE', 'Library cache pin instance lock (A..Z=namespace)',
              'NF', 'Library cache pin instance lock (A..Z=namespace)',
              'NG', 'Library cache pin instance lock (A..Z=namespace)',
              'NH', 'Library cache pin instance lock (A..Z=namespace)',
              'NI', 'Library cache pin instance lock (A..Z=namespace)',
              'NJ', 'Library cache pin instance lock (A..Z=namespace)',
              'NK', 'Library cache pin instance lock (A..Z=namespace)',
              'NL', 'Library cache pin instance lock (A..Z=namespace)',
              'NM', 'Library cache pin instance lock (A..Z=namespace)',
              'NN', 'Library cache pin instance lock (A..Z=namespace)',
              'NO', 'Library cache pin instance lock (A..Z=namespace)',
              'NP', 'Library cache pin instance lock (A..Z=namespace)',
              'NQ', 'Library cache pin instance lock (A..Z=namespace)',
              'NR', 'Library cache pin instance lock (A..Z=namespace)',
              'NS', 'Library cache pin instance lock (A..Z=namespace)',
              'NT', 'Library cache pin instance lock (A..Z=namespace)',
              'NU', 'Library cache pin instance lock (A..Z=namespace)',
              'NV', 'Library cache pin instance lock (A..Z=namespace)',
              'NW', 'Library cache pin instance lock (A..Z=namespace)',
              'NX', 'Library cache pin instance lock (A..Z=namespace)',
              'NY', 'Library cache pin instance lock (A..Z=namespace)',
              'NZ', 'Library cache pin instance lock (A..Z=namespace)',
              'PF', 'Password File lock',
              'PI', 'Parallel operation locks',
              'PS', 'Parallel operation locks',
              'PR', 'Process startup lock',
              'QA','Row cache instance lock (A..Z=cache)',
              'QB','Row cache instance lock (A..Z=cache)',
              'QC','Row cache instance lock (A..Z=cache)',
              'QD','Row cache instance lock (A..Z=cache)',
              'QE','Row cache instance lock (A..Z=cache)',
              'QF','Row cache instance lock (A..Z=cache)',
              'QG','Row cache instance lock (A..Z=cache)',
              'QH','Row cache instance lock (A..Z=cache)',
              'QI','Row cache instance lock (A..Z=cache)',
              'QJ','Row cache instance lock (A..Z=cache)',
              'QK','Row cache instance lock (A..Z=cache)',
              'QL','Row cache instance lock (A..Z=cache)',
              'QM','Row cache instance lock (A..Z=cache)',
              'QN','Row cache instance lock (A..Z=cache)',
              'QP','Row cache instance lock (A..Z=cache)',
              'QQ','Row cache instance lock (A..Z=cache)',
              'QR','Row cache instance lock (A..Z=cache)',
              'QS','Row cache instance lock (A..Z=cache)',
              'QT','Row cache instance lock (A..Z=cache)',
              'QU','Row cache instance lock (A..Z=cache)',
              'QV','Row cache instance lock (A..Z=cache)',
              'QW','Row cache instance lock (A..Z=cache)',
              'QX','Row cache instance lock (A..Z=cache)',
              'QY','Row cache instance lock (A..Z=cache)',
              'QZ','Row cache instance lock (A..Z=cache)',
              'RT', 'Redo thread global enqueue lock',
              'SC', 'System commit number instance lock',
              'SM', 'SMON lock',
              'SN', 'Sequence number instance lock',
              'SQ', 'Sequence number enqueue lock',
              'SS', 'Sort segment locks',
              'ST', 'Space transaction enqueue lock',
              'SV', 'Sequence number value lock',
              'TA', 'Generic enqueue lock',
              'TS', 'Temporary segment enqueue lock (ID2=0)',
              'TS', 'New block allocation enqueue lock (ID2=1)',
              'TT', 'Temporary table enqueue lock',
              'UN', 'User name lock',
              'US', 'Undo segment DDL lock',
              'WL', 'Being-written redo log instance lock',
              b.TYPE
         ) lock_type,
         DECODE
              b.lmode,
              0, 'None', /* Mon Lock equivalent */
              1, 'Null', /* N */
              2, 'Row-S (SS)', /* L */
              3, 'Row-X (SX)', /* R */
              4, 'Share', /* S */
              5, 'S/Row-X (SRX)', /* C */
              6, 'Exclusive', /* X */
              TO_CHAR(b.lmode)
         ) mode_held,
         DECODE
              b.request,
              0, 'None', /* Mon Lock equivalent */
              1, 'Null', /* N */
              2, 'Row-S (SS)', /* L */
              3, 'Row-X (SX)', /* R */
              4, 'Share', /* S */
              5, 'S/Row-X (SSX)', /* C */
              6, 'Exclusive', /* X */
              TO_CHAR(b.request)
         ) mode_requested
    FROM
         v$lock b
         ,v$session c
         ,sys.USER$ u
         ,sys.obj$ o
         ,( SELECT * FROM sys.dba_waiters) lock_blocker
         ,( SELECT * FROM sys.dba_waiters) lock_waiter
    WHERE
    b.sid = c.sid
    AND u.USER# = c.USER#
    AND o.obj#(+) = b.id1
    AND lock_blocker.waiting_session(+) = c.sid
    AND lock_waiter.holding_session(+) = c.sid
    AND c.username != 'SYS'
    ORDER BY kaddr, lockwait
    The query is from the following site http://www.orafaq.com/scripts/performance/lockall.txt
    Unless, the object you are trying to create/replace is being locked by another database object, i dont see how you ll get this error... are you using read write / file access or any such code? can you share your code? it may be accessing a resource that is locked..
    Do let me know if this helps

  • Ora-04021 error while compiling a stored procedure

    Hi Gurus,
    I am getting a ora-04021 timeout error while trying to compile a stored procedure. My Oracle version is 9i on Unix.
    Thanks
    Amitava.

    amitavachatterjee1975 wrote:
    Hi Gurus,
    I am getting a ora-04021 timeout error while trying to compile a stored procedure. My Oracle version is 9i on Unix.
    Thanks
    Amitava.
    my car won't go.
    tell me how to make my car go.
    How do I ask a question on the forums?
    https://forums.oracle.com/forums/thread.jspa?threadID=2174552#9360002
    [oracle@localhost ~]$ oerr ora 4021
    04021, 00000, "timeout occurred while waiting to lock object %s%s%s%s%s"
    // *Cause:  While waiting to lock a library object, a timeout occurred.
    // *Action: Retry the operation later.
    [oracle@localhost ~]$

  • ADADMIN ERROR WHILE RUNNING MRC CONVERT IN ADADMIN ORA-04021

    제품 : AOL
    작성날짜 : 2002-11-29
    ADADMIN ERROR WHILE RUNNING MRC CONVERT IN ADADMIN ORA-04021
    ============================================================
    Problem description:
    MRC convert를 위해 adadmin을 돌리던 도중 다음의
    에러 발생
    old 1: GRANT EXECUTE ON dbms_aq TO &3
    new 1: GRANT EXECUTE ON dbms_aq TO APPS_MRC
    GRANT EXECUTE ON dbms_aq TO APPS_MRC
    ERROR at line 1:
    ORA-04021: timeout occurred while waiting to lock object SYS.DBMS_AQ
    PURPOSE
    Problem Description
    Workaround
    invalid synonym WSH_SSWA_OPTIONS을 다음의 command를 사용하여
    drop한다:
    sqlplus apps/<apps_passwd>
    SQL> drop synonym WSH_SSWA_OPTIONS;
    Synonym dropped.
    Solution Description
    Customers who want to install MRC have to clean up the Validate Apps report.
    MRC를 install하기 원할경우 Validate Apps report를 먼저 clean up해야 한다. 그렇기 때문에 adadmin에서 "Convert to Multiple Reporting Currencies"
    를 돌리기전에 "Validate APPS schema(s)"을 돌려서 에러들을 clean up 해야만한다.
    Reference Documents
    Note:135756.1
    Note:185151.1

    제품 : AOL
    작성날짜 : 2002-11-29
    ADADMIN ERROR WHILE RUNNING MRC CONVERT IN ADADMIN ORA-04021
    ============================================================
    Problem description:
    MRC convert를 위해 adadmin을 돌리던 도중 다음의
    에러 발생
    old 1: GRANT EXECUTE ON dbms_aq TO &3
    new 1: GRANT EXECUTE ON dbms_aq TO APPS_MRC
    GRANT EXECUTE ON dbms_aq TO APPS_MRC
    ERROR at line 1:
    ORA-04021: timeout occurred while waiting to lock object SYS.DBMS_AQ
    PURPOSE
    Problem Description
    Workaround
    invalid synonym WSH_SSWA_OPTIONS을 다음의 command를 사용하여
    drop한다:
    sqlplus apps/<apps_passwd>
    SQL> drop synonym WSH_SSWA_OPTIONS;
    Synonym dropped.
    Solution Description
    Customers who want to install MRC have to clean up the Validate Apps report.
    MRC를 install하기 원할경우 Validate Apps report를 먼저 clean up해야 한다. 그렇기 때문에 adadmin에서 "Convert to Multiple Reporting Currencies"
    를 돌리기전에 "Validate APPS schema(s)"을 돌려서 에러들을 clean up 해야만한다.
    Reference Documents
    Note:135756.1
    Note:185151.1

  • ORA-04021 while granting sys privilege to an object

    Hello,
    While granting a system privilege to an object using the TOAD software, ORA-04021 error arised, ORA-00600 was written in the alert.log, and a new trace file appeared. Can you help understand the reason for the error
    Here is the trace file:
    mis64_ora_2210.trc
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    ORACLE_HOME = /mis64/ora/oracle
    System name:     HP-UX
    Node name:     ncdb001
    Release:     B.11.11
    Version:     U
    Machine:     9000/800
    Instance name: MIS64
    Redo thread mounted by this instance: 1
    Oracle process number: 17
    Unix process pid: 2210, image: oracle@ncdb001 (TNS V1-V3)
    *** SESSION ID:(31.923) 2004-12-03 13:04:03.754
    *** 2004-12-03 13:04:03.754
    ksedmp: internal or fatal error
    ORA-00600: internal error code, arguments: [qerfxFetch_01], [], [], [], [], [], [], []
    Current SQL statement for this session:
    SELECT
    s.username,
    s.osuser,
    S.PROGRAM "Program",
    s.serial# "Serial#",
    s.sql_address "address", s.sql_hash_value "Sql hash",
         lk.sid, DECODE(lk.TYPE,
    'MR', 'Media Recovery',
    'RT', 'Redo Thread',
    'UN', 'User Name',
    'TX', 'Transaction',
    'TM', 'DML',
    'UL', 'PL/SQL User Lock',
    'DX', 'Distributed Xaction',
    'CF', 'Control File',
    'IS', 'Instance State',
    'FS', 'File Set',
    'IR', 'Instance Recovery',
    'ST', 'Disk Space Transaction',
    'TS', 'Temp Segment',
    'IV', 'Library Cache Invalidation',
    'LS', 'Log Start or Switch',
    'RW', 'Row Wait',
    'SQ', 'Sequence Number',
    'TE', 'Extend Table',
    'TT', 'Temp Table',
    'BL','Buffer hash table instance',
    'CI','Cross-instance function invocation instance',
    'CU','Cursor bind',
    'DF','Data file instance',
    'DL','Direct loader parallel index create',
    'DM','Mount/startup db primary/secondary instance',
    'DR','Distributed recovery process',
    'HW','Space management operations on a specific segment',
    'IN','Instance number',
    'JQ','Job queue',
    'KK','Thread kick',
    'LA','Library cache lock instance lock namespace A',
    'LB','Library cache lock instance lock namespace B',
    'LC','Library cache lock instance lock namespace C',
    'LD','Library cache lock instance lock namespace D',
    'LE','Library cache lock instance lock namespace E',
    'LF','Library cache lock instance lock namespace F',
    'LG','Library cache lock instance lock namespace G',
    'LH','Library cache lock instance lock namespace H',
    'LI','Library cache lock instance lock namespace I',
    'LJ','Library cache lock instance lock namespace J',
    'LK','Library cache lock instance lock namespace K',
    'LL','Library cache lock instance lock namespace L',
    'LM','Library cache lock instance lock namespace M',
    'LN','Library cache lock instance lock namespace N',
    'LO','Library cache lock instance lock namespace O',
    'LP','Library cache lock instance lock namespace P',
    'MM','Mount definition global enqueue',
    'NA','Library cache pin instance A',
    'NB','Library cache pin instance B',
    'NC','Library cache pin instance C',
    'ND','Library cache pin instance D',
    'NE','Library cache pin instance E',
    'NF','Library cache pin instance F',
    'NG','Library cache pin instance G',
    'NH','Library cache pin instance H',
    'NI','Library cache pin instance I',
    'NJ','Library cache pin instance J',
    'NK','Library cache pin instance K',
    'NL','Library cache pin instance L',
    'NM','Library cache pin instance M',
    'NN','Library cache pin instance N',
    'NO','Library cache pin instance O',
    'NP','Library cache pin instance P',
    'NQ','Library cache pin instance Q',
    'NR','Library cache pin instance R',
    'NS','Library cache pin instance S',
    'NT','Library cache pin instance T',
    'NU','Library cache pin instance U',
    'NV','Library cache pin instance V',
    'NW','Library cache pin instance W',
    'NX','Library cache pin instance X',
    'NY','Library cache pin instance Y',
    'NZ','Library cache pin instance Z',
    'PF','Password File',
    'PI',' PS Parallel operation',
    'PR','Process startup',
    'QA','Row cache instance A',
    'QB','Row cache instance B',
    'QC','Row cache instance C',
    'QD','Row cache instance D',
    'QE','Row cache instance E',
    'QF','Row cache instance F',
    'QG','Row cache instance G',
    'QH','Row cache instance H',
    'QI','Row cache instance I',
    'QJ','Row cache instance J',
    'QK','Row cache instance K',
    'QL','Row cache instance L',
    'QM','Row cache instance M',
    'QN','Row cache instance N',
    'QO','Row cache instance O',
    'QP','Row cache instance P',
    'QQ','Row cache instance Q',
    'QR','Row cache instance R',
    'QS','Row cache instance S',
    'QT','Row cache instance T',
    'QU','Row cache instance U',
    'QV','Row cache instance V',
    'QW','Row cache instance W',
    'QX','Row cache instance X',
    'QY','Row cache instance Y',
    'QZ','Row cache instance Z',
    'SC','System commit number instance',
    'SM','SMON',
    'SN','Sequence number instance',
    'SS','Sort segment',
    'SV','Sequence number value',
    'TA','Generic enqueue',
    'US','Undo segment DDL',
    'WL','Being-written redo log instance',
    lk.TYPE) lock_type,
    DECODE(lk.lmode,
    0, 'None',
    1, 'Null',
    2, 'Row-S (SS)',
    3, 'Row-X (SX)',
    4, 'Share',
    5, 'S/Row-X (SSX)',
    6, 'Exclusive',
    TO_CHAR(lk.lmode)) mode_held,
    DECODE(request,
    0, 'None',
    1, 'Null',
    2, 'Row-S (SS)',
    3, 'Row-X (SX)',
    4, 'Share',
    5, 'S/Row-X (SSX)',
    6, 'Exclusive',
    TO_CHAR(lk.request)) mode_requested,
    TO_CHAR(lk.id1) lock_id1,
    TO_CHAR(lk.id2) lock_id2,
    s.USERNAME "DB User", s.sid,
    OWNER||'.'||OBJECT_NAME "Object"
    FROM v$lock lk, v$session s
    , DBA_OBJECTS ao
    WHERE
    lk.lmode > 1
    AND s.username is not null
    AND lk.sid = s.sid
    AND ao.OBJECT_ID(+) = lk.id1
    ORDER BY 1, "Object"
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    ksedmp()+184 ? ksedst() 80000001001B14C8 ?
    000000000 ? 000000000 ?
    000000000 ?
    ksfdmp()+32 ? ksedmp() 000007FFE ? 000000000 ?
    800000010000BD40 ?
    40000000026CE5A7 ?
    kgerinv()+152 ? ksfdmp() 800000010000BD40 ?
    40000000026CE5A7 ?
    8000000100149370 ?
    000000000 ?
    kgeasnmierr()+88 ? kgerinv() 000000000 ? 000000000 ?
    40000000004F57D0 ?
    C000000018380C38 ?
    qerfxFetch()+2760 ? kgeasnmierr() 800000010012AB70 ?
    400000000066848A ?
    400000000070A490 ?
    A900748690 ?
    rwsfcd()+120 ? qerfxFetch() 000000000 ?
    C0000000116641B8 ?
    00121EDA7 ?
    400000000156A43B ?
    qeruaFetch()+240 ? rwsfcd() 8000000100149370 ?
    000000002 ?
    800000010012C370 ?
    800003FB800653A8 ?
    qervwFetch()+160 ? qeruaFetch() 0000000E0 ?
    4000000000D9A748 ?
    800003FFFF7F6F98 ?
    100000080 ?
    rwsfcd()+120 ? qervwFetch() 8000000100149370 ?
    C000000011663EC0 ?
    800003FFFF7F6F98 ?
    800000010000 ?
    qeruaFetch()+240 ? rwsfcd() 8000000100149370 ?
    8000000100149370 ?
    000000000 ? 30001001C42E0 ?
    qervwFetch()+160 ? qeruaFetch() 8000000100143BA8 ?
    800003FB8007F5B0 ?
    8000000100144CF8 ?
    055555555 ?
    qerjoFetch()+480 ? qervwFetch() 40000000010530DB ?
    8000000100000018 ?
    4000000001400253 ?
    8000000100144CF8 ?
    rwsfcd()+120 ? qerjoFetch() 20000010C ? 000000000 ?
    000000000 ?
    400000000121EF73 ?
    qerhjFetch()+1216 ? rwsfcd() C000000010B6B898 ?
    400000000140ED7F ?
    C00000000028DB33 ?
    800003FB800603E0 ?
    qersoFetch()+696 ? qerhjFetch() 80000001001C0720 ?
    C000000000280A13 ?
    80000001001623C0 ?
    000000000 ?
    opifch2()+3304 ? qersoFetch() 000000000 ?
    8000000100149370 ?
    40000000010675DF ?
    8000000100143898 ?
    opiall0()+3584 ? opifch2() 4E1D000023A3 ?
    8000000100149370 ?
    C000000018311A98 ?
    000000000 ?
    kpoal8()+3448 ? opiall0() 8000000100149370 ?
    000000000 ? 000000000 ?
    000000000 ?
    opiodr()+2332 ? kpoal8() 000000D00 ?
    40000000015460D7 ?
    72000696F6E00 ?
    1000000000000000 ?
    ttcpip()+1880 ? opiodr() 000000000 ?
    692E7369642C2073 ?
    80000001001B19F0 ?
    000000000 ?
    opitsk()+1248 ? ttcpip() 00000001E ?
    800003FDC0002ED8 ?
    00000001E ?
    800003FC800142E0 ?
    opiino()+1464 ? opitsk() 000000000 ? 000000000 ?
    000000000 ? 000000000 ?
    opiodr()+2332 ? opiino() 000000000 ? 000000000 ?
    000000000 ?
    800003FDC0002ED8 ?
    opidrv()+752 ? opiodr() 8000000100143A24 ?
    000000000 ?
    8000000100143A24 ?
    80000001001D5AC8 ?
    sou2o()+40 ? opidrv() 800003FFBFFFF480 ?
    C0000000000218B3 ?
    000000000 ?
    C00000000030105B ?
    main()+228 ? sou2o() 000000000 ?
    C00000000030105B ?
    000000002 ? 000000230 ?
    $START$()+160 ? main() 21408130800 ?
    800003FFFF7F04AB ?
    800003FFFF7F03F3 ?
    800003FFFF7F0017 ?
    --------------------- Binary Stack Dump -----------------
    ========== FRAME [1] (ksedmp()+184 -> ksedst()) ==========
    Dump of memory from 0x800003FFFF7F7FC0 to 0x800003FFFF7F8360
    800003FFFF7F7FC0 80000001 001449DC 40000000 0041F7F8 [[email protected]..]
    800003FFFF7F7FD0 800003FF FF7F7BF0 800003FB 80065338 [......{.......S8]
    800003FFFF7F7FE0 40000000 00668488 40000000 00664980 [@[email protected].]
    800003FFFF7F7FF0 80000001 0000B870 00000000 00000140 [.......p.......@]
    800003FFFF7F8000 80000001 00144D88 00000000 0000000E [......M.........]
    800003FFFF7F8010 80000001 00143AE8 80000001 00144DC0 [......:.......M.]
    800003FFFF7F8020 00000000 00000001 80000001 001449F0 [..............I.]
    800003FFFF7F8030 00000000 00000009 C0000000 1826D1F8 [.............&..]
    ........................................................

    Hi,
    It's a possible bug id 2306106.8 (affect OEM) which fix in 9.2.0.2.
    Nicolas.

  • Remote Connection Timeouts - ORA-03113 Errors

    I have two Sun Solaris servers running Oracle 10.1.0.4. One is our production server, the other is our test server. Both servers are using the same parameters in the SQLNET.ORA file located on each server. All Oracle Net files are located under /var/opt/oracle. The TNS_ADMIN environmental variable is set to /var/opt/oracle on both servers.
    When I connect to the production server via TOAD, OEM, or SQL*Plus from my desktop, I can remain connected as long as I like. If after two hours, I want to run another SQL, I type it in and it runs.
    When I connect to the test server via TOAD, OAM, or SQL*Plus from my desktop, I can remain connected for only 30 mins of inactivity. After which, if I issue a new SQL statement, I receive an ORA-03113 end-of-file communication channel error.
    I believe I've checked everything on both servers and they appear identical. Both of these server sit behind a firewall. So my feeling is that only the firewall could be causing the idle timeout connections to be dropped on the test server.
    Anyone have any ideas on this??
    P.S. - I realize that killing idle connections is actually a good thing, but I'm trying to verify the reason for the difference and not whether this is or is not a good networking practice.

    user583592 wrote:
    I have two Sun Solaris servers running Oracle 10.1.0.4. One is our production server, the other is our test server. Both servers are using the same parameters in the SQLNET.ORA file located on each server. All Oracle Net files are located under /var/opt/oracle. The TNS_ADMIN environmental variable is set to /var/opt/oracle on both servers.
    When I connect to the production server via TOAD, OEM, or SQL*Plus from my desktop, I can remain connected as long as I like. If after two hours, I want to run another SQL, I type it in and it runs.
    When I connect to the test server via TOAD, OAM, or SQL*Plus from my desktop, I can remain connected for only 30 mins of inactivity. After which, if I issue a new SQL statement, I receive an ORA-03113 end-of-file communication channel error.
    I believe I've checked everything on both servers and they appear identical. Both of these server sit behind a firewall. So my feeling is that only the firewall could be causing the idle timeout connections to be dropped on the test server.
    Anyone have any ideas on this??
    P.S. - I realize that killing idle connections is actually a good thing, but I'm trying to verify the reason for the difference and not whether this is or is not a good networking practice.The firewall could very well be the culprit. I had that problem at a previous employer. Why not check with your network guys and find out?

Maybe you are looking for

  • My itunes wont open. Please help!

    I have a new computer, and have transferred all of my old files already etc., but when I downloaded Itunes and tried to open it, it starts up and tries to access the itunes store, then tells me there is a problem and closes it, but doesn't tell me wh

  • Re:  attaching a document to an email

    i keep getting an error message that tells me the document i am trying to attach to an email is currently in use, that i need to close it, and retry.  i can't find where it is in use, and i am unable to attach it to the email.  what do i do?  fyi, it

  • Errors

    I am getting an error message when I attempt to download my purchased tunes that reads "There was an error downloading your purchased music. The disk could not be read from or written to." "Use the Check for Purchases comand in the Advanced menue to

  • About paragraph and character format

    If You define paragraph and character formats what will be overwriting which              one?

  • XSLT error LPX-314

    I have an XSL stylesheet which is supposed to take the input as Japanese character and produce the transformed output. I am using Xml parser for c++, to be precise 2.0.7 . When I embed a query in <xsl:template match="i`b|tg1o@l\"> , the XSLT processo