Can't modify package. Session hangs?

I am trying to modify a DB package. I copied and pasted code to the package spec and saved using SQL*Navigator "Commit Changes" button. But the SQl*Navigator gets stuck. Even restarting the DB did not help.

Kamran Agayev A. wrote:
user12240205 wrote:
Yes, same result. It SQL*Plust session hangs. My problem is, why does it happen even AFTER DB stop/start??? After stopping a DB all locks should be released, right?May be there's a user which automatically uses that package when database starts. Check V$ACCESS view and please do not shutdown the database in order to modify the package
[Kamran Agayev A. |http://kamranagayev.wordpress.com] (OCP 9i/10g)
Author of the upcoming book - *"Oracle Backup & Recovery: Expert secrets for using RMAN and Data Pump"*
http://www.rampant-books.com/book_1002_rman_backup_recovery.htm
After about 10 minutes I get this error:
7:11:10 PM  Error: ORA-04021: timeout occurred while waiting to lock object ABS.PKG_HYBRID_PP_TOPUPThere is no other Oracle user in the system but me.
V$ACCESS shows that the pkg is accessed by user ABS. It is using user ABS we are trying to modify the pkg. Thing is nobody is actually doing anything to the package and there is nothing that makes the package lock at DB startup.
Any help would be grately appreciated.

Similar Messages

  • Oracle session Hangs while calling one package function

    Hi all,
    We are a facing a interesting scenario in our code. Consider that you have 2 pakcages(A,B). Ecah packages is having more than 5 functions in it.
    1. A.function1() makes a call to B.function1() - is working fine
    2 .B.function1() calls B.function2() - is working fine
    3. B.function2() calls A.function2() - oracle session hangs in this call.
    If I copy the scropt code from A.function2() and inline (put) it in B.function1() , the execution gets completed without an issue.
    If i run the A.function2() seperatly it works fine. Only calling from B package it is failing.
    If anyone knows the rooot cause of the issue, please let me know.
    Thanks and regards,
    Vijayaraja

    Do you have/use global variables?
    Moving code from one package to another doesn’t necessarily result in logically equivalent programs. In the version of your program which “hangs” you may have crafted an infinite loop. Instrument your code and see if you really stall or just keep going on forever.
    With this kind of cross-dependencies in your libraries you almost ask for trouble.

  • Database session hangs

    Guys I am using PL/SQL developer for my sql testing/debugging .I am debugging a pl/sql procedure (inside a package) and after coming out when I try to debug it again my session hangs.I contacted my dba and did the trick for me by killing the existing sessions,but didnt give me how the session was not killed in the first place after I come out of one debugging session.He is giving me a vague answer.Please let me know if u guys have any clue about it.
    thanks
    Manohar

    It's not the problem on the Oracle side. Oracle or the DBA is not at fault.
    I personally never had that problem.
    How are you debugginhg?
    Do you finish your debug session completely?
    After finishing your debugging, Can you do a disconnect from the Developer successfully?

  • Bw web report plugin http session hangs at the server side

    Hi,
    I am having problems when closing the browser of a BW web report. After I closed the browser by going File->close, I ran SM04 and found out the Plugin HTTP session hangs at the server side.
    How can we terminate the Plugin HTTP session at the server side when user closes the internet browser?
    I did implement a logoff function at my web template, if user clicks on the logoff, the Plugin HTTP session is terminated at server side correctly. But As you know, 50% of time user will close the report by closing the internet browser instead of clicking the logoff. That leaves lots of hanging Plugin HTTP sessions at our server side.
    By the way, we actived our BEX service at the SICF.
    Thanks for help!
    JA

    Hi
    If you want to avoid a blank page with logoff button, add opener=0
    <a href="<SAP_BW_URL CMD='LOG_OFF' ~command='logoff'
    >" onClick="javascript:window.close(opener=0);">Log off</a>
    If you want to close the session via X, use this code:
    create a sapscript function
    function closeSession()
    logoff()
    window.unload=CloseSession()
    However, the Plugin HTTP session isn't killed.
    Regards

  • Set a variable in modify package - BPC 7.0 SP4 - Netweaver version

    Hi,
    can anyone tell me how to set a value (constant) for a variable in the modify package?
    In Import standard package I want to avoid to ask to user for a transformation file name:
    I want to substitute:
    PROMPT(TRANSFORMATION,%TRANSFORMATION%,"Transformation file:")
    TASK(/CPMB/CONVERT,TRANSFORMATIONFILEPATH,%TRANSFORMATION%)
    with something like:
    TASK(/CPMB/CONVERT,TRANSFORMATIONFILEPATH,\DATAMANAGER\TRANSFORMATIONFILES\import.xls)
    but when I execute the package i find an error that BPC does not find the XML file :
    "XML file (...TRANSFORMATIONFILES\IMPORT.TDM") is empty or is not found"
    Thank you
    Fabio

    You didn't validate the import.xls transformation file.
    When you are doing the validation it is created a file Import.Tdm and this it will be used after that.
    Because you didn't do the validation the Convert process type is looking about the file but is not able to find it.
    This was related to error message.
    Regarding how to setup the constant
    You can use INFO to define variable or constants for Modify Package.
    For example replace prompt with
    INFO (%MYTRANSFORMATIONFILE%, /DataManager/TransformationFiles//System Files/Import.xls)
    Of course the path has to be correct. In my case it is just an example.
    When you calll the TAsk
    TASK(/CPMB/CONVERT,TRANSFORMATIONFILEPATH,%TRANSFORMATION%)
    Using INFO you will not have that prompt message asking to input a file.
    I hope this it will help.
    Regards
    Sorin Radulescu

  • How to reduce buffer busy waits, session hanging due to buffer busy waits

    Hi,
    How to reduce buffer busy waits, session hanging due to buffer busy waits.
    Thanks,
    Sathis.

    When I see through enterprise manager I see lot of
    tables with buffer busy waits.
    Is there any way by table name we can check the
    blocks info.
    The simple way is to look at the SQL statement and corresponding table name?
    P1=file#, P2=block#. You can extract segment name(table or index) using this info.
    Query v$bh like following:
    SQL> select file#, block#, class#, objd from v$bh where file# = P1 and block# = P2;
    SQL> select object_name from all_objects where object_id = <objd>;See following doc:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1051.htm
    Or you can dump block:
    SQL> alter system dump datafie <P1> block <P2>;Some excerpts from block dump:
    scn: 0x07df.17e70782 seq: 0x01 flg: 0x04 tail: 0x07822301
    frmt: 0x02 chkval: 0x61d0 type: 0x23=PAGETABLE SEGMENT HEADER
    Map Header:: next  0x00000000  #extents: 1    obj#: 55881  flag: 0x10000000>
    Can we do something at table level that will reduce
    the waits.
    Yes, some methods are known. But before thinking of that, you must verify which block class and which access are involved.
    Typo... always. :(
    Message was edited by:
    Dion_Cho

  • XML without namespace and prefix, modified package-info.java, JAX-WS option

    Hello
    I have created a consumer business service which will be called from JDEdwards EOne, pulls data from database and send it to Fusion Middleware.
    SO, I have created proxy using JAX-WS option. And suggested in oracle doc, I created proxy outside OMW and then copied it to my project. XML payload is getting generated without namespace and prefix. After some research, I modified package-info.java. Now, I am able to send the payload and if test it locally from Jdeveloper and take xml output using marshaller I can see it has namespace and prefix as well. BUt, when I run this from server it does not have namespace and prefix.
    Please help.
    Thanks
    TK

    Just to clerify,
    The common complex types are StatusInfo, IdcProperty and IdcPropertyList. I ahve 3 more WSDL's with the exact same entires for those 3.

  • Getting session hang When calling Function from SQL query

    Hi All,
    I am using Oracle 8.1.7.4.0. I have a fucntion in a Package and I am calling it from the SQL query. When I am firing the query my oracle session is going to hang position and I am not able to any thing. I have to kill the session.
    But this same thing is working fine in Oracle 9.i.
    There are no out parameter and no DML, DDL and DCL statement in this fucntion.
    Could you please get back me what is the problem on it.
    Regards
    SUN

    Check why your session hangs.
    Just a few ideas:
    * Blocking locks?
    * Endless loop?
    * Performance (maybe it is just slow in orac8i and you have to wait a bit longer). Check the execution plans of the SQL statements in your function.
    * Don't use a function, but direct SQL, it is faster in both versions.

  • Changing Package Session's Status to Warning

    Dear Experts,
    How do I change my package session's status to warning?
    I created a package and errors handling in the package, after the package is executed it will always be flagged as Success in the ODI Operator. How do I change the package status to Warning manually within my package?
    Thanks,
    Erico

    PeakIndicators_Alastair wrote:
    Just been playing with this.
    it IS possible to flag it as Warning but you have to update the SNP_SESSION table directly.
    update SNP_SESSION set sess_status = 'M' where sess_No = '48566011'
    shows the session as warning in operator
    So you can create a proc and run something like :
    update SNP_SESSION set sess_status = 'M' where sess_No = <%=odiRef.getSession("SESS_NO")%>
    For completeness, reverse engineer the SNP_SESSION table from your work repos and use :
    update <%=odiRef.getObjectName("L","SNP_SESSION","D")%> set sess_status = 'M' where sess_No = <%=odiRef.getSession("SESS_NO")%>
    in an ODI proc set to run when your main package steps fail.
    Note - I havent tried this out as a proc, just a manual update - you might find that ODI writes the session status again AFTER you have updated it, you will have to play around - do let us know.
    I doubt this is supported but if you really want to see the Warning triangle then it works !Hi Peak,
    Thanks for the suggestion. But as you have mentioned, I think the ODI will update the Overall Session status after all the steps has been executed, so trying to set the Session Status to Warning before the session itself ended will only be overwritten by the ODI to Success status. I have tried your suggestion and it still showing success at the session status.
    So, I guess I can say that there is no API (odiref) / feature provided by ODI to manually set the Session status? Because even IF the above solution works, I might not take that route, I don't feel comfortable to directly manipulating the repository table :(
    Thanks for the suggestion!

  • Web Browser Session Hangs When Opening More Than One Query

    Let me start off with the BW environment - we are on BW release 3.50 at support pack level 12. Basis component is release 6.40 at level 12.
    We have a situation where a web browser HTTP session "hangs" while trying to execute more than one query at a time. A role based menu template is used by our end-users to run queries. The end-users execute a query and while it is running, try to execute a second query. But the web browser for the second query does not become available until the first query is complete.
    The following is the detailed steps of the process:
    1. From my user menu in BW, expand the folder for Role Z: BW_REPORTING and click on SAP_BW_TEMPLATE – Web_Role_Menu. Web browser window will open.
    2. Within the ZTPL_Role_Menu_Reporting web page, select Role Z: FUNC_DEVELOPER > BW Reporting > Controlling > Profitability Analysis > Detail query. (Role Z: FUNC_TESTER can be used in this example as well, just follow the same menu path).  Click on Detail and another web browser window will open for the query selection screen.
    3. On the selection screen for the CO-PA Detail query, enter values and execute the query.
    4. While the CO-PA Detail query is executing, go back to the first opened web browser for ZTPL_Role_Menu_Reporting and go to Role Z: FUNC_DEVELOPER > BW Reporting > Controlling > Profitability Analysis > Operating Concern query. Run the CO-PA Operating Concern query while the CO-PA Detail query is still executing. The session for the Operating Concern “hangs” and does not display the selection screen until the CO-PA Detail query has completed. Once the Detail query has finished, then the second query, CO-PA Operating Concern will then display the selection screen for the query.
    Our end-users expect the second query to display the selection screen immediately with no delay. The end-users do not want to wait for the selection screen of the second query. They want to be able to execute the queries simultaneously.
    Our Basis group as tried adjusting some parameters and has implemented OSS note 853396, but the issue still exists.
    Is it a BW issue or is it an issue with MS Internet Explorer?
    Your input and suggestions are appreciated.
    Thanks.

    Hi.
    I had a somewhat similar issue earlier when I tried closing BW Query windows, it would freeze and wouldn't close. I resolved the issue by turning off some BHO (Browser help Objects) in IE.It can be done using IE>Tools>Manage Add-Ons
    Cheers
    Anand

  • Can't modify user's attributes by the Delegated Administrator

    Hi, I've installed the JES05Q1 on Sun Fire V480. The components are Directory Server�AAccess Manager�APortal Server�AMessaging Server�AWeb Server�ADelegated Administrator. After I adding a user by DA,assigning a service package to the user, I can use it to logon the web mail and sending mail.But I can't modify it's attributes using DA. It said �goperation failed" . I found the error message "Error during user update: Service not assigned" in the log file of DA ,

    there are no operation failed message:
    [05/Aug/2005:10:12:12 +0800] conn=8159 op=1889 msgId=2474 - SRCH base="o=teamsun.com.cn,dc=teamsun,dc=com,dc=c
    n" scope=2 filter="(&(&(uid=testmail8)(&(objectClass=inetOrgPerson)(!(inetUserStatus=deleted))))(&(uid=testmai
    l8)))" attrs="departmentNumber objectClass psIncludeInGAB title givenName mailUserStatus mailForwardingAddress
    dn inetCOS postOfficeBox mailHost telephoneNumber street uid preferredLanguage postalCode mail l sn cn mailDe
    liveryOption facsimileTelephoneNumber mailEquivalentAddress inetSubscriberAccountId description mailAlternateA
    ddress st objectClass" authzid="dn:uid=admin,ou=people,o=teamsun.com.cn,dc=teamsun,dc=com,dc=cn"
    [05/Aug/2005:10:12:12 +0800] conn=8159 op=1889 msgId=2474 - RESULT err=0 tag=101 nentries=1 etime=0
    [05/Aug/2005:10:12:12 +0800] conn=8159 op=1890 msgId=2475 - SRCH base="o=teamsun.com.cn,dc=teamsun,dc=com,dc=c
    n" scope=0 filter="(|(objectClass=*)(objectClass=ldapsubentry))" attrs="sunRegisteredServiceName" authzid="dn:
    cn=dsameuser,ou=DSAME Users,dc=teamsun,dc=com,dc=cn"
    [05/Aug/2005:10:12:12 +0800] conn=8159 op=1890 msgId=2475 - RESULT err=0 tag=101 nentries=1 etime=0
    [05/Aug/2005:10:12:12 +0800] conn=8159 op=1891 msgId=2476 - SRCH base="o=teamsun.com.cn,dc=teamsun,dc=com,dc=c
    n" scope=0 filter="(|(objectClass=*)(objectClass=ldapsubentry))" attrs="sunRegisteredServiceName" authzid="dn:
    cn=dsameuser,ou=DSAME Users,dc=teamsun,dc=com,dc=cn"
    [05/Aug/2005:10:12:12 +0800] conn=8159 op=1891 msgId=2476 - RESULT err=0 tag=101 nentries=1 etime=0
    [05/Aug/2005:10:12:12 +0800] conn=8159 op=1892 msgId=2477 - SRCH base="o=teamsun.com.cn,dc=teamsun,dc=com,dc=c
    n" scope=2 filter="(&(&(uid=testmail8)(&(objectClass=inetOrgPerson)(!(inetUserStatus=deleted))))(&(uid=testmai
    l8)))" attrs="departmentNumber objectClass psIncludeInGAB title givenName mailUserStatus mailForwardingAddress
    dn inetCOS postOfficeBox mailHost telephoneNumber street uid preferredLanguage postalCode mail l sn cn mailDe
    liveryOption facsimileTelephoneNumber mailEquivalentAddress inetSubscriberAccountId description mailAlternateA
    ddress st objectClass" authzid="dn:uid=admin,ou=people,o=teamsun.com.cn,dc=teamsun,dc=com,dc=cn"
    [05/Aug/2005:10:12:12 +0800] conn=8159 op=1892 msgId=2477 - RESULT err=0 tag=101 nentries=1 etime=0

  • How to modify Packages

    Hi gurus,
    Can anybody explain in simpler way, how to modify the packages...
    I have read the sap help.. but I am not clear with the modifying it, .ie. giving task name, passing value.
    Please give me some doc... if possible.
    Thanks in advance
    Sanjay

    Hi Sanjay,
    First of all tell me what version of SAP are you using????
    If it comes to modificatio9n of packages--BPC for Excel->Manage data packages--->modify Package...this will take you to the modify package screen.
    here there is a difeerence when it comes to MS version or NW version.
    If your using MS version,can you tell why you want to modify existing package...then i can able to explain the steps.
    If your using MS version,can you tell why you want to modify existing package...then i can able to explain the steps.bcz need to modify from the NW side also like Process chain and Sql Scripting in Script window.
    So,need clarity in qestion to give any sol.
    Thanks,
    Naresh reddy.K.

  • How to user can view only allow sessions in operator

    dear all
    how to user can view only allow sessions in operator, user has a right to execute only one package.
    kindly help asap.

    What Database privilege (not EM privilege) does the new user have?

  • Can not compile package

    Hi,
    I have package and it is invalid. When I try to compile it starts to compile but not stop. I think it is locked or something else. I renamed it and compiled and it worked. Functions in package runned also.
    But I want the orginal package to run.
    Does anyone has idea about this problem?
    Thanks in advance.

    If you have killed all the session using this package, it may take sometime to rollback the transactions. Mean while also make changes in the package, so that it commits its transaction at the end of logical transaction end otherwise you will face this issue again. After sometime you can compile the package.
    Other option may be to restart the database in restricted mode. Make your changes, compile the package and then put the database in normal mode.
    Regards
    Edited by: skvaish1 on Apr 9, 2010 10:27 AM

  • Unable to modify package in pl/sql

    hi ,
    i am new to plsql,
    i want to modify package procedure, body .
    how should i proceed.
    plsql version 9.0 on local server

    Hello,
    With Forms Builder, you can expand the "database objects" node in the object navigator tree (the very last node), so that you can access your procedure and edit it.
    Francois

Maybe you are looking for

  • Got This Error While Updating My Ipod

    [img]http://web8.twitpic.com/img/119682404-694ff28d355de0d8b1537c44b19938f1.4c220c58- full.jpg[/img] HELP!

  • Migration from Flex 3.3 to Flash Builder 4 problems.

    So, I've been working on a Flex Builder 3.3 project for some time now. One of the things I had expected from Flash Builder 4 would be the ability to simply import a fully operational (bug free) 3.3 project. Wrong. My 3.3 project uses an imported FLVP

  • Classic WT To Extended WT

    Dear SAP Experts, I am working on upgrade project from SAP 4.7 to ECC 6.0. My client uses the classic withholding tax and they want to go for extended withholding tax. What would you suggest me to configure EWT from first or should I go for Migration

  • Resize and crop images to a specific width and height

    Hi, I want to convert images to thumbnails with a 'standard' format - I need all images to have the same width and height. So I need to resize and then crop the images. Is this possibe with JAI? Are there other libraries which can do this better? I'v

  • Forwarding FAX error message from SAP Connect to  user outlook e-mail ID

    Hello, We have a few POs sent by FAX to vendors using top call .Some times FAX does not transmit the PO to vendor . The status of the message is updated as error in SAP connect( t-code SOST) . The user who released the PO or recreated the   message i