How to overcome -resource busy aquire with no wait option

how to overcome -resource busy aquire with no wait option

I am not sure What do you mean by "overcome". May be something like this ?
SQL> DECLARE
  2   CURSOR c1 IS
  3   SELECT ename FROM emp for update nowait;
  4  BEGIN
  5   OPEN c1;
  6  END;
  7  /
DECLARE
ERROR at line 1:
ORA-00054: resource busy and acquire with NOWAIT specified
ORA-06512: at line 3
ORA-06512: at line 5
SQL> set serverout on
SQL> DECLARE
  2  resource_busy EXCEPTION;
  3  PRAGMA EXCEPTION_INIT(resource_busy,-54);
  4   CURSOR c1 IS
  5   SELECT ename FROM emp for update nowait;
  6  BEGIN
  7   OPEN c1;
  8  EXCEPTION
  9   WHEN  resource_busy THEN
10    dbms_output.put_line('Please try after some time.!');
11  END;
12  /
Please try after some time.!
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • How to link the Business Partner with the SAP User ID.

    Hi,
    We are working on a scenario wherein the resources are created as Business Partners in R/3.
    now How to link the Business Partner with the SAP User ID.

    HI AP,
    Maintain the business partner in role Internet User - BUP005.
    Now assign the existing user to this BP .(you can make this assignment in tab "internet user'. Just enter the user name in the field User and save).
    You can now see the link in table HRP1001.
    Cheers,
    Rishu.

  • How to maintaing E-Business suite with latest product levels and bug/securi

    Hi All,
    How to maintaing E-Business suite with latest product levels and bug/security fixes?
    backup strataegies for database and E-BS suite?
    what is mean by gather user requirements?
    Please some one explain briefly...........
    Thanks

    Please post your question in the appropriate forum.
    E-Business Suite
    http://forums.oracle.com/forums/category.jspa?categoryID=3
    Thanks,
    Hussein

  • How to create a business card with Pages?

    I have created a card using the model, but i don't know how to fill in the page with ten cards. It,s impossible to copy and paste.
    What to do to have the same model on ten cards on the same page?

    Why do you find it impossible to Copy and Paste?
    Copy and paste is the method but you can make it easier on you by first group all objects. Arrange > Group
    There are several ways to copy and paste
    1. the "normal" one
    2. Cmd + D to duplicate
    3. Alt/Opt + drag
    When you have two card select both and do the copy and paste again and you have 4 cards. Repeat this and you have 8 cards. Add two more cards and you are done.

  • How to configure File Adapter along with OS command option

    Hello,
    I want to configure a scenario using File Adapter with OS command option.
    How to use that option in channel configuration of File Adapter.
    What is the default path where it is actually runs this OS command?
    Thanks,
    Soorya

    >
    surya venkat wrote:
    > Hello,
    > I want to configure a scenario using File Adapter with OS command option.
    > How to use that option in channel configuration of File Adapter.
    There are two ways to use the Os command in the file adapter.
    Lets talk about the sender File Adapter.
    First: Run operative system Before Message Processing
    Whenever any operation needs to be performed uppon the source file Just before XI picks it up.
    e.g. Calculate any hash code, backup the file to a given location, create a log at os level, etc...
    ... After Message Processing
    After Xi has processed the message, you can trigger a new os level command:
    e.g. Trigger a mail, check if the archiving was successful, etc.
    > What is the default path where it is actually runs this OS command?
    >
    Theres no default path, you assign the desired path in the Comm Channel configuration.
    > Thanks,
    > Soorya
    I hope it helps.

  • How many implmentation allowed of BAdi with multiple use option???

    Dear all ,
                        I have doubt in BAdi implementation -
    Case 1 -  I have create a z badi with multiple use option enabled . than i create two implementation of that BAdi . when i call it from my z program than it will call only one which was created 1st  so what is use of 2nd implementation and when it will call ???
    Case 2 - Same case for tcode VD02 their is badi CUSTOMER_ADD_DATA which is also multiple option enable Badi
                  for this also i have created 2 implementation but in this case when i create 2nd implementation it asked for migration of implementation why ???
    Thanks

    Dear deepak ,
                            i have check it both implementation showing yellow color please check my z program and tell me what is wrong in this .
    REPORT  Y_BADI_EXP1.
    CLASS cl_exithandler DEFINITION LOAD.
    DATA : l_badi TYPE REF TO ZIF_EX_MYBADI,
           email TYPE AD_SMTPADR,
           email1 TYPE AD_SMTPADR..
    PARAMETERS : p_user TYPE sy-uname.
    START-OF-SELECTION.
    CALL METHOD CL_EXITHANDLER=>GET_INSTANCE
    EXPORTING
      EXIT_NAME                     = 'ZMYBADI'
    NULL_INSTANCE_ACCEPTED        = 'X'
    CHANGING
      INSTANCE                      = l_badi               " here it will return 2 implementation  ZMYBADI_IM1 , ZMYBADI_IM2
    EXCEPTIONS
      NO_REFERENCE                  = 1
      NO_INTERFACE_REFERENCE        = 2
      NO_EXIT_INTERFACE             = 3
      CLASS_NOT_IMPLEMENT_INTERFACE = 4
      SINGLE_EXIT_MULTIPLY_ACTIVE   = 5
      CAST_ERROR                    = 6
      EXIT_NOT_EXISTING             = 7
      DATA_INCONS_IN_EXIT_MANAGEM   = 8
      OTHERS                        = 9
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD l_badi->GET_USER_EMAILID
    EXPORTING
      uname = p_user
    CHANGING
      emaill = email.
    WRITE : /5 email.       " when o/p comes it shows only 1st implementation .
    i placed break point in methods of both  implementation but as usual it stop only at first method ???

  • How to overcome thisORA-00060: deadlock detected while waiting for resource

    Hi ,
    I have table name problems(prom_number,prom_relation,prom_impact,prom_prom_number)
    Now from oracle form raltion can be set.
    parent and chil relation can be set from the form
    for ex
    first suppose row=1 prom_number=1 is set as parent.
    so the tabl is updated as prom_+relation='PARENT'
    so after first updation values are
    prom_number=1,prom_impact='xxx',prom_relation='PARENT' prom_prom_number=null
    now in form level the 2 row which is set as child is update as follow
    prom_number=2,prom_impact='yyy',prom_relation='CHILD' prom_prom_number=1
    Now my requirment is after the 2nd row is updated the prom_impact of 2 row should be pusehd to row=1 which has the pirom_relation as ='PARENT.
    the problem is i dont have the fmb of form so i cant do any changes in the form.
    So i have written a trigger which fires when row2 is updated it picks the prom_impact value and trys to push it in row=1 with prom_number=1
    however since in form level the table has not been committed it displays the following error
    ORA-00060: deadlock detected while waiting for resource
    So how can we overcome this error.
    the trigger i have written is given below.
    So how can we resolve thsis issue.
    CREATE OR REPLACE TRIGGER Parent_Child_Impact_Trg
    AFTER UPDATE OF prom_relation,prom_prom_number
    ON PROBLEMS
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    Version History:9.2.8.1
    (format: version, date, developer, description)
    1.0, 19-Dec-2008, Tanmoy Kr Moulik The "Impact" of Paren fault ticket
    will be changed upon manual creation of Parent Child relation
    Rules:
    1.0     Upon manual creation of new Parent-Child fault relation, the 'Fault Impact' of
    Child fault will be auto updated in the parent fault, if the parent fault impact matches
    with the attached list(Non Serve Affeect or Threat) or the impact of Parent Fault is blank (null).
    2.0     In case, the parent fault have fault impact matches with the attached list
    (service affect), then its impact is not changed while making the relationship.
    DECLARE
    PRAGMA autonomous_transaction;
    ecode NUMBER;
    emesg VARCHAR2(200);
    --BEGIN
    -- NULL;
    CURSOR c1--(v_prom_num NUMBER)
    IS
    SELECT PROM_IMPACT,prom_number FROM PROBLEMS WHERE prom_number=:NEW.prom_prom_number;
    v_prom_imp VARCHAR2(30) DEFAULT NULL;
    v_prom_imp_p1 NUMBER DEFAULT 0;
    v_prom_imp_p2 NUMBER DEFAULT 0;
    v_prom_num NUMBER;
    BEGIN
    IF :NEW.PROM_RELATION='CHILD' AND :NEW.PROM_PROM_NUMBER IS NOT NULL THEN
    --dbms_output.put_line(1);
    --INSERT INTO TEMP_PROM VALUES(:NEW.prom_number,:NEW.prom_prom_number,:NEW.prom_impact,:NEW.prom_relation);
    --COMMIT;
    OPEN c1;--(:NEW.prom_prom_number);
    FETCH c1 INTO v_prom_imp,v_prom_num;
    --INSERT INTO TEMP_PROM(PROM_NUM,PROM_IMPACT) VALUES(v_prom_num,v_prom_imp);
    --COMMIT;
    IF c1%NOTFOUND THEN
    v_prom_imp:=NULL;
    v_prom_num:=NULL;
    END IF;
    CLOSE c1;
    v_prom_imp:=UPPER(v_prom_imp);
    v_prom_imp_p1:=INSTR(v_prom_imp,'NON');
    v_prom_imp_p2:=INSTR(v_prom_imp,'THREAT');
    --INSERT INTO TEMP_PROM(PROM_NUM) VALUES(v_prom_imp_p1);
    --INSERT INTO TEMP_PROM(PROM_NUM) VALUES(v_prom_imp_p2);
    --COMMIT;
    IF v_prom_imp_p1>0 OR v_prom_imp_p2>0 THEN
    IF :NEW.prom_impact IS NOT NULL THEN
    /*BEGIN
    INSERT INTO TEMP_PROM(PROM_NUM,PROM_PROM_NUMBER,prom_impact,PROM_RELATION) VALUES(:NEW.prom_number,:NEW.prom_prom_number,:NEW.prom_impact,:NEW.prom_relation);
    COMMIT;
    EXCEPTION WHEN OTHERS THEN
    INSERT INTO TEMP_PROM(prom_impact,PROM_RELATION) VALUES('failed1'||ecode,emesg);
    COMMIT;
    END;
    BEGIN
    COMMIT;
    --INSERT INTO PROBLEMS(prom_number,PROM_REPORTED,PROM_REPORTEDBY,PROM_PRIORITY,PROM_DESCRIPTION,PROM_EMPE_ID,PROM_WORG_NAME,PROM_CREATED,PROM_CWORG_NAME)
    -- VALUES(50000000,SYSDATE,'TAN',1,'DASD','CLARITY','CLARITY',SYSDATE,'CLARITY');
    UPDATE PROBLEMS SET PROM_IMPACT=:NEW.PROM_IMPACT WHERE prom_number=:NEW.prom_prom_number;
    COMMIT;
    EXCEPTION WHEN OTHERS THEN
         ecode := SQLCODE;
    emesg := SQLERRM;
    COMMIT;
    BEGIN
         UPDATE PROBLEMS SET PROM_IMPACT=:NEW.PROM_IMPACT WHERE prom_number=:NEW.prom_prom_number;
         EXCEPTION WHEN OTHERS THEN
         INSERT INTO TEMP_PROM(prom_impact,PROM_RELATION) VALUES('failed'||ecode,emesg);
         END;
    --INSERT INTO TEMP_PROM(prom_impact,PROM_RELATION) VALUES('failed'||ecode,emesg);
    COMMIT;
    -- EXCEPTION WHEN OTHERS THEN*/
         NULL;
         END;
         --END;
    --END;     
    END IF;     
         /*BEGIN
         INSERT INTO TEMP_PROM(PROM_NUM,PROM_IMPACT) VALUES(:NEW.prom_prom_number,:NEW.prom_impact);
         COMMIT;
    EXCEPTION WHEN OTHERS THEN
         INSERT INTO TEMP_PROM(prom_impact) VALUES('failed1');
         NULL;
         END;
    --NULL;
    -- END;
    --COMMIT;
    --END;
    /* BEGIN
    INSERT INTO TEMP_PROM(PROM_NUM,PROM_IMPACT) VALUES(:NEW.prom_prom_number,:NEW.prom_impact);
    EXCEPTION WHEN OTHERS THEN
    --INSERT INTO TEMP_PROM(prom_impact) VALUES('failed');
    NULL;
    END;
    COMMIT;
    --COMMIT;
    /* ELSIF v_prom_imp_p2>0 THEN
    -- v_prom_imp_p2
    IF :NEW.prom_impact IS NOT NULL THEN
    BEGIN
    UPDATE PROBLEMS SET PROM_IMPACT=:NEW.PROM_IMPACT WHERE prom_number=:NEW.prom_prom_number;
    EXCEPTION WHEN OTHERS THEN
    BEGIN
         ecode := SQLCODE;
    emesg := SQLERRM;
    --BEGIN
    INSERT INTO TEMP_PROM(prom_impact,PROM_RELATION) VALUES('failed'||ecode,emesg);
    COMMIT;
    --EXCEPTION WHEN OTHERS THEN
         NULL;
         END;
    NULL;
    END;
    COMMIT;
    BEGIN
    INSERT INTO TEMP_PROM(PROM_NUM,PROM_IMPACT) VALUES(:NEW.prom_prom_number,:NEW.prom_impact);
    EXCEPTION WHEN OTHERS THEN
    NULL;
    END;
    COMMIT;*/
    --UPDATE PROBLEMS SET PROM_IMPACT=:NEW.PROM_IMPACT WHERE prom_number=:NEW.prom_prom_number;
    -- COMMIT;
    -- END IF;
    END IF;
    END IF;
    EXCEPTION WHEN OTHERS THEN
    INSERT INTO TEMP_PROM(prom_impact,PROM_RELATION) VALUES('failed2'||ecode,emesg);
    COMMIT;
    NULL;
    END;
    /

    Please do not take this the wrong way, my intention is not to be insulting, but from reading what you've posted I have no idea what you are doing or in what version of what product(s).
    What I can tell you, though, is that your explicit cursor declarations with explicit OPEN and FETCH have no business in your code. Neither do incremental commits belong in any code. Nor does the following:
    EXCEPTION WHEN OTHERS THEN
    INSERT INTO TEMP_PROM(prom_impact,PROM_RELATION) VALUES('failed2'||ecode,emesg);
    COMMIT;
    NULL;belong in any code. What is NULL doing there? And why are there any commits in your trigger? Your use of PRAGMA AUTONOMOUS TRANSACTION to allow these commits is similarly unexplainable. It is no wonder you are getting deadlocks.
    You need to push away from the keyboard and take SQL and PL/SQL courses and learn the basics. While looking for a good course in your area get a copy of any of Tom Kyte's books and start reading it and practicing with the examples.

  • How to create a Business Partner with internal number assignment

    Hello,
    We are using a CRM 7.0 system. We want to create a new Business Partner using LSMW. We chose IDoc basic type CRMXIF_PARTNER_SAVE_M03 to perform it. We want to create it with internal number assignment (we don't have BP ID or BP GUID). Unfortunatelly, when we leave PARTNER_NO and PARTNER_GUID fields empty, we get an error message that we should supply at least BP ID or BP GUID. So what values should we enter in order to create a BP with internal number assignment?
    Please put attention that we also don't want to enter any alternative external number because we don't want the end user to see after in the WebUI.
    Thanks in advance,
    Sergey Kozyrev

    Hello,
    Standard CRM PC UI application offers three options when you push 'New' button: 'Person', 'Organization' and 'Group' (combobox appears). In your case, 'Person' should be selected.
    p.s. If you don't see combobox mentioned above, it could be security issue.
    Kirill

  • How to integrate E-Business R12 with MS LDAP

    Hi experts,
    What components are required to integrate Microsoft LDAP for E-Business Suite R12 user authentication?
    We can do that with only OID?
    Regards,
    Hai Mai

    xmouse wrote:
    Hi experts,
    What components are required to integrate Microsoft LDAP for E-Business Suite R12 user authentication?
    We can do that with only OID?
    Regards,
    Hai MaiPlease refer to these docs.
    Integrating Oracle E-Business Suite Release 12 with Oracle Access Manager 11gR1 (11.1.1.5) using Oracle E-Business Suite AccessGate [ID 1309013.1]
    Integrating Oracle E-Business Suite Release 12 with Oracle Internet Directory and Oracle Single Sign-On 10gR3 (10.1.4.3) [ID 376811.1]
    Troubleshooting Oracle Application Server 10g SSO and OID with Oracle E-Business Suite Release 12 [ID 380487.1]
    Thanks,
    Hussein

  • How may I use business catalyst with a reel name of domain ?  ..

    I don't want to have mydomain.businesscatalyst.com  but mydomain.com  but I want to use the business catalyst solution because my clients will have to admin their site
    I think it's not possible if I put that site on another server
    thank you for your answer
    JC

    The instructions to do that are here:
    Business Catalyst Help | Change the domain name of your site

  • How to make an Audio library with a download option?

    I'm looking to set up an online audio library with Business Catalyst, I'm wandering how would be the best way to set it up if its at all possible?

    Hi heshy c,
    The best method to achieve this would be to upload your files as media downloads: http://helpx.adobe.com/business-catalyst/using/add-media-downloads.html. The benefit of this is that you'll be able to track the amount of downloads, etc and run various reports on these files.

  • Osb 11 : How to configure tuxedo business services in a clustered domain.

    Hi,
    We have a platform with a clustered domain Osb ( 1 admin server and 2 managed servers dispatch on several physical servers) and two Tuxedo instances offering the same service exported in 2 different gateways on each Tuxedo instance.
    How to configure a business service with tuxedo transport working on this platform with failover and load balancing ?

    Thanks for the answer but it doesn't work.
    The fact is that we work on OSB 11, not directly in WebLogic.
    And Osb always modify the WTC configuration even if we modify it before in weblogic.
    To define a business service with multiple remote access points and apply a load balancing algorythm, Osb need an URI for each remote access point (not for each imported service).

  • How to start a systemd with certain configuration options?

    Hello,
    I do not understand what wiki page at arch that can help me to understand how I can start a daemon with certain configuration options. I know I can start with
    # systemctl enable unit
    , but for example, if I whanted to start "xboxdrv" with the option [--mimic-xpad-wireless --silent], or any other custom options I might need. I presume it can be done simple by dropping a .conf file somewhere, but I do not follow what wiki page that adress this - if it at all is possible?
    Regards
    Martin

    Hello,
    I followed the drop in option now in https://wiki.archlinux.org/index.php/Sy … n_snippets
    I tried to copy the whole xboxdrv.service and replace the ExecStart, and also only with ExecStart, like this:
    [Service]
    ExecStart=
    ExecStart= ExecStart = /usr/bin/xboxdrv -D -c /etc/default/xboxdrv --mimic-xpad-wireless --silent
    The drop in examples above is in: /etc/systemd/system/xboxdrv.service.d/override.conf
    Reatarting
    I then made sure the new .conf file was loaded by:
    # systemctl daemon-reload
    # systemctl restart xboxdrv
    # system status xboxdrv
    Result
    In both cases, the service fails to restart and I recive this error
    xboxdrv.service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.
    Anyone know how I can start "xboxdrv" with my custom options "--mimic-xpad-wireless --silent" using this drop in function for systemd?
    Regards
    Martin
    Last edited by onslow77 (2015-02-01 18:27:31)

  • How to find process causing "ORA-00054: resource busy and acquire with NOWAIT specified"

    Hello there,
    ENV: Oracle 10gR2 64bit on ASM, RHEL 64bit
    Application team has reported "ORA-00054: resource busy and acquire with NOWAIT specified" during the batch process in production env. This is happening for last couple of days. When this batch process is restarted in the morning, this error does not appear.
    I understand that this error is raised when one process tries to eecute some DDL on a table while another process is performing DML (or hasn't issued COMMIT/ROLLBACK after the DDL).
    Since this error is occurring at night (around 3:00am) during the batch process, is there a way to find out on table/object is contention happening OR which process is causing this error? The batch process cannot be modified to add debug messages because it is in Production.
    Please advise.
    Best regards

    user130038 wrote:
    Hello there,
    ENV: Oracle 10gR2 64bit on ASM, RHEL 64bit
    Application team has reported "ORA-00054: resource busy and acquire with NOWAIT specified" during the batch process in production env. This is happening for last couple of days. When this batch process is restarted in the morning, this error does not appear.
    I understand that this error is raised when one process tries to eecute some DDL on a table while another process is performing DML (or hasn't issued COMMIT/ROLLBACK after the DDL).
    Since this error is occurring at night (around 3:00am) during the batch process, is there a way to find out on table/object is contention happening OR which process is causing this error? The batch process cannot be modified to add debug messages because it is in Production.
    Please advise.
    Best regards
    >The batch process cannot be modified to add debug messages because it is in Production.
    I suspect more than one job is running concurrently against the DB; otherwise not error would occur.
    Of course the batch process CAN be modified, but some PHB has decided to eliminate that option.
    The Oracle database is at the mercy of the application code.
    If the application code is poorly instrumented, then live with what exists or improved the code to facilitate isolating the bug.
    You could delay the start of one of the jobs & then hope the error no longer occurs.

  • HT4191 how do I not sync notes with my email? I have a business email on my iphone as well as his iphone. Now all of my notes are on his phone, and all of his notes are gone. We have never adjusted any settings, I only added the shared email account to hi

    How do I not sync notes with my email? I have a business email on my iphone as well as my husbands iphone. Now all of my notes are on his phone, and all of his notes he previously has on his iphone are gone. We have never adjusted any settings or hooked it up to itunes, I only added the shared email account to his phone. Help???

    Hi StoneLeadyFarms,
    Thanks for visiting Apple Support Communities.
    It sounds like notes on your devices may have synced when the email account was added, as described here:
    iOS: Syncing Notes
    http://support.apple.com/kb/HT4191
    Notes are associated with an IMAP email account or iCloud account. To sync Notes, enable Notes for each account in Settings > Mail, Contacts, Calendars or Settings > iCloud.
    You can stop syncing notes by tapping Settings > Mail, Contacts, Calendars or Settings > iCloud, tapping the email address that you added, and switching Notes to the off position.
    Additionally, if your husband has backed up his iPhone to iTunes or iCloud, the steps in this article can help with recovering the lost notes from his device:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/HT1766
    Best Regards,
    Jeremy

Maybe you are looking for

  • TA26488 My iPod Classic 160GB goes from song to song without playing.

    I have an new generation (less than 1 year old) iPod Classic 160 GB that will not play any songs.  All the artists and songs appear to be on the hard drive, but will not play.  In fact, when you press play or shuffle it just continuously goes on to t

  • Is there any way to force Sun C++ Preprocessor preserve whitespace?

    Hello! I'm preprocessing simple source file: void test()     int i; }with command: CC -E test.cpp and CC preprocessor eats all whitespace at the beginning of each line, like this: void test() int i; }Is there any way to force CC preprocessor preserve

  • Buying Ipad in US or UK for use in The Netherlands

    Hello, Looking at the prizes in US & UK with the actual currency rate it's most tempting to have someone buy me an Ipod in the US or even in the UK. Is there anything that I have to consider: - compatibility in general? - use of WIFI & 3G same techno

  • 1099-MISC Reporting Transmitter Record to IRS

    I am researching the file layout for the 1099-MISC data that is transmitted to the IRS in March of each year.  The instructions for the "T" transmitter record for field position 519 through 704 require your software vendor information in these fields

  • 8.1.6 install - Oracle 8i for Linux

    I'm trying to install the Oracle 8i for Linux installation kit from the Osborne book. You can stop laughing now. Really, we're going to buy the full deal, but until that happens, we want to get a bit of a headstart. I'm using Hummingbird eXceed v6.2.