Sessions hang

Hi All,
Using Oracle 10gR2 (64 Bit) on RHEL 5.5. Using some customized applications.
Getting frequently blocked sessions. Understand it's a application logic issue, but from the database side we can monitor the sessions.
The holding or the blocking session is 1 or 2, The waiter/blocked sessions is many.
I have used scripts to monitor the blocking sessions and kill them. But facing some issues ;
1) When I kill the blocking/holding session - The transaction(Update) on Blocked/waiting sessions says "....rows updated"
2) The other cascading waiter sessions still hangs..and is "active"
Should I Kill both the blocking and the blocked sessions. Please advise.

Pls check is there any Bitmap Indexes on these Tables. Because Bitmap Indexes are also is one source of Locking, and not recommended to be created on transaction tables.
Rgds,
Ahmer
N.B.: To earn a good reputation on forums, and if you want that your questions will be answered timely. Kindly adopt the habit of marking your questions closed as soon as you get the answer. and be courteous to the people who trying to help.

Similar Messages

  • 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

  • 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

  • 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.

  • 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.

  • 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

  • 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?

  • 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.

  • Sessions Hanging Problem

    Dear All,
    Many of the users have requested me to kill their sessions because of not respoding/hang. Mostly this occur when they run or compile thier SPs (Stored Procedures). I noted that all procedures that contain an insert to a log (user created table) table hangs. As per my opinion table may be lock or in use by any other. But how I can find it. Please let me to know.
    Aqeel Nawaz

    Suppose session hangs during execute the procedure.
    To pass the procedure name in below query.
    select
    V$S.LOGON_TIME,
    V$S.SID,
    V$S.SERIAL#,
    V$S.USERNAME,
    V$S.PROCESS,
    V$P.SPID,
    V$S.STATUS,
    V$S.MACHINE,
    V$S.CLIENT_INFO
    from v$session V$S,
    v$process V$P
    where V$S.PADDR = V$P.ADDR
    and V$S.SID in
    (select distinct sid from v$access where object like ('%&obj%'))
    order by
    V$S.PROCESS,
    V$S.SID;
    Regards
    RajaBaskar

  • Built-in restore session hangs/freezes with too many tabs in Fx 29

    Hi, I've used the Session Manager add on for awhile, ever since a previous 'upgrade' to Firefox tended to not save sessions after a crash.
    The upgrade to version 29 has rendered Session Manager unusable, as documented here:
    https://support.mozilla.org/en-US/questions/1000544?esab=a&as=aaq
    However I've determined that this seems to be not a problem with Session Manager, but with Firefox's built-in restore functionality. This is because though Session Manager no longer shows at startup, Firefox's native session restore does, and Session Manager can still be accessed through the "Tools" menu. It simply crashes with even a couple hundred tabs, let alone the 1-3k tab sessions I normally use.
    Experimentation has demonstrated several things. (Both session restore and Session Manager work the same way, which tells me that Session Manager is probably built on the session restore function, simply adding support for multiple sessions and better autosaving.)
    1. If I try to restore a large session, even if I remove almost all of my tabs from the restore, it will start to open everything, then (apparently) hang without loading any of the default tabs, and then freeze if I try to do anything at all, including clicking on the search box, trying to scroll, or clicking on another tab.
    2. If I try to open a session with one window and one tab, it will open.
    Not sure if this is relevant, but if I clicked on another tab before it froze, when I do a session restore from the old session it will open with that one that I clicked as the default tab.
    It used to be that Firefox would only load the last tab I was on for each window, and then load others when I clicked on them. I kind of suspect that the upgrade has Firefox now trying to either load all tabs at once (rather than only when I clicked on them, as previously), or at the very least trying to get the metadata from all the pages.
    I know that the sensible solution is to not have more than a few dozen tabs at any one time. But I'm not really a sensible person I've spent the past three hours trying to downgrade. I'm dedicated enough to my silly and obsolescent browsing method that I imagine I will keep trying to downgrade, security and time wastage be damned, until the issue is fixed.
    On the other hand, it occurs that there may already be a patch or new add-on which addresses this issue, and that would be a lot easier than downgrading, which Mozilla quite intentionally makes painfully difficult. Is there an easier way to get my multi-k tab sessions back?
    Thanks,
    LK
    PS: OS is Ubuntu 12.10. I have automatic updates disabled but periodically upgrade my whole system from the Terminal. My last system-wide upgrade was yesterday, the penultimate one was sometime in April, which is why I think the problem starts with Fx 29.

    Hi, I'm a Tab junky...and I'm not changing. I have this issue also. After 2 weeks of utter frustration, not liking any of the roll backs, etc, I dove into other browsers....and found Comodo IceDragon, which is based of Firefox 26.0.... but better. I can't even describe how stable it is, even compared to FF26.
    The only glitches were bringing in my history and passwords. I had to use Password exporter to deal with passwords and had to export my bookmarks and history to Chrome, then into IceDragon because it could not do it directly. But Comodo tech support was fast and very helpful!!
    Give it a roll. It's like old home week, but better.

  • Sessions hangs with library cache lock

    Der all,
    11.1.0.7 rac on solaris 10
    Our workflow session yesterday hanged on a particular step the session was waiting on a library cache lock (by using query select event,p1,p2 from v$session where sid=<my_sid>;)
    when I checked the blocking session , using the note 122793.1 and http://oracle-study-notes.blogspot.com/2009/05/resolving-library-cache-lock-issue.html and http://oracle-study-notes.blogspot.com/2009/05/find-session-holding-library-cache-lock.html .
    I found that
    SQL> SELECT SID,USERNAME,TERMINAL,PROGRAM FROM V$SESSION
      2   WHERE SADDR in
      3    (SELECT KGLLKSES FROM X$KGLLK LOCK_A
      4     WHERE KGLLKREQ > 0
      5       AND EXISTS (SELECT LOCK_B.KGLLKHDL FROM X$KGLLK LOCK_B
                     WHERE KGLLKSES = '&SADDR_OF_BLKING_SESS'
      6    7                   AND LOCK_A.KGLLKHDL = LOCK_B.KGLLKHDL
      8                   AND KGLLKREQ = 0)
      9    );
    Enter value for saddr_of_blking_sess: 0000000770E494E0
    old   6:                  WHERE KGLLKSES = '&SADDR_OF_BLKING_SESS'
    new   6:                  WHERE KGLLKSES = '0000000770E494E0'
      SID USERNAME        TERMINAL   PROGRAM
      817 SYS             UNKNOWN    oracle@tabsdb07
                                      (J002)
      828 SYS             UNKNOWN    oracle@tabsdb07
                                      (J001)after killing the session, the library cache locks still remained.when I ran trace on the session
    select /*+ all_rows ordered */ A.rowid, :1, :2, :3
    from
    "DBMRPT"."DBM_BIAUTO_SUSP" A , "DBMRPT"."DBM_CDR_FILE_HEAD" B where(
      "A"."CDR_TYPE" is not null and "A"."FILE_ID" is not null) and(
      "B"."CDR_TYPE" (+)= "A"."CDR_TYPE" and "B"."FILE_ID" (+)= "A"."FILE_ID")
      and( "B"."CDR_TYPE" is null or "B"."FILE_ID" is null)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.01          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.01       0.01          0          0          0           0
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: SYS   (recursive depth: 3)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      row cache lock                                  5        0.00          0.00
      db file sequential read                   295932636        0.07       5066.63
      gc cr grant 2-way                          727813        0.02        233.95
      latch: gc element                              80        0.00          0.00
      latch: gcs resource hash                      870        0.00          0.00
      latch free                                      2        0.00          0.00
      gc remaster                                     9        2.00         12.91
      gcs drm freeze in enter server mode             9        0.54          2.08
      latch: object queue header operation           66        0.00          0.05
      latch: cache buffers chains                    15        0.03          0.20
      resmgr:internal state change                   63        0.10          5.30
      latch: cache buffers lru chain               1260        0.00          0.01
    ********************************************************************************Please guide
    Kai
    all this time sql_id for the session remanined in the sql :
    ALTER TABLE DBMRPT.DBM_BIAUTO_SUSP ENABLE CONSTRAINT DBS1_DCFH_FK ..

    hi..
    Go through [http://orainternals.wordpress.com/2009/06/02/library-cache-lock-and-library-cache-pin-waits/]
    Anand

  • Database Session hangs around for 20 minutes after logout

    We used HTML DB 1.6.0.00.87 to create a custom data warehouse reporting application. For some reason once you log out of HMTL_DB, the database session does not go away until 20 minutes later. I have tested it several times and it is consistent at 20 minutes. Does anyone know what controls this and how I can adjust it?

    Hi Randy,
    What you're probably seeing is the connection pooling done by the mod_plsql module. They 'hang around' because connecting to the database can be an 'expensive' overhead, if you run a query that take 0.5 seconds but your connection takes 0.25 seconds, then obviously a great way to reduce the overall time is to not recreate that connection each time, so a connection pool is used.
    Are these sessions causing you a problem?

  • BDC problem session hangs on F4.

    Hi all,
    suppose a material code has been created using mm01, know while performing
    valuation extension of this material code through  bdc call transaction method ,
    Problem arises when a wrong plant is given through flat file to a particular matnr ,
    a pop up window appears with a message , matnr is not matained for this plant,
    But know if after cancelling this pop up window and opening the search help in the plant field which shows the correct plant for which the material code matained, the system hangs here neither it allows to select this correct plant from search help,
    and nor it closes this window there after . hence after altctrldel has to be done due to which all other session and whole sap session gets close .
    Pls provide your valuable suggestions on this problem
    thanks in advance ,
    Regards,
    Vivek

    Hi!
    Try not solve this problem in BDC. Write your coding into the ABAP section.
    For example if there is a possible wrong plant, then search after it first.
    like: SELECT SINGLE werks FROM marc INTO lv_werks WHERE matnr = lv_matnr.
    If the werks (plant) is not correct, then use the plant from the select in the BDC.
    BDC is not very good for error handling.
    Regards
    Tamá

  • 3750, range command, session hang

    Hi All,
    I've noticed that when using the range command to configure multiple interfaces on a 3750 the SSH session oftens hangs.
    It's seems the more interfaces in the range command the more often it hangs. I have a feeling it also spikes up the CPU.
    Has anyone else come across this?
    Doesn't seem to be related to a specific version of code.
    Anyone know a workaround?
    I tried shutting the interfaces before hand but that made no difference.
    In some instances I could not even change 2 interfaces without my SSH session disconnecting. Its very frustrating.
    This is the typical interface config.
    Doesn't seem hang on any particular command.
    switchport mode access
    switchport port-security maximum 2
    switchport port-security
    switchport port-security aging time 1
    switchport port-security violation restrict
    switchport port-security aging type inactivity
    no logging event link-status
    srr-queue bandwidth share 10 20 60 20
    srr-queue bandwidth shape 30 0 0 0
    priority-queue out
    storm-control broadcast level 5.00
    storm-control multicast level 10.00
    storm-control unicast level 95.00
    storm-control action trap
    spanning-tree portfast
    spanning-tree bpduguard enable
    service-policy input qos-policy
    ip dhcp snooping limit rate 15
    Any help, ideas much appreciated
    Cheers

    Look, if you have no other options but to stick to the current stack structure, there's another way to "cheat".
    1.  Open a Notepad;
    2.  Type in your commands, for example:
    conf t
    interface r G1/0/1 - 48, G2/0/1 - 48 , F3/0/1 48
    no macro description
    end
    3.  Save the TXT file and run the following commands on the switch:  copy tftp:///.txt run
    This should implement your command without going into interface configuration mode.  Just make sure that you save the config when you are done.

  • DBLINK - job session hang status

    Hi all,
    I have the following problem:
    I have database 92 whom he loads give to you from a database remote through dblink.
    Between the two nodes is interposed a firewall and door 1521 turns out to be.
    Periodically opened the job of loading goes in hang.
    On the remote server is not present sessions while on database local the job it remains hung.
    I have not found no type of error on the log, but they are forced every time to kill the job and
    to throw again it subsequently.
    which he could be the cause?
    how he could be resolved?
    thanks
    Alessandro

    Friend ,
    > I found many long running background Jobs in SM37, then I checked in SM66 and found that all there are too many Jobs running on all Application Servers, and all WP were fully occupied.
    >
    It should not be the case . All workprocess fully occupied, means you need to work on to optimize distribution of work processes . Otherwise such issues will occur often, and you have to compromise on the performance.
    Refer https://cw.sdn.sap.com/cw/docs/DOC-38580?treeid=DOC-8116 .
    http://help.sap.com/saphelp_webas620/helpdata/EN/c4/3a5ef8505211d189550000e829fbbd/content.htm
    > Is there any other way to recover this situation, as the System was Productio. and we are not allowed to increase spool count > 32,000 which is it's standard value.
    >
    Avoid such situation by the perfect optimization as mentioned above . Also configure Email alerts through CCMS config to get alerts on your SPool size and other critical stuffs so that you can be proactive .
    Regards,
    Nibu Antony

Maybe you are looking for

  • How do I get iPhoto to appear in my purchases list?

    I reinstalled lion on my 2011 Macbook Air, and cannot re-download iPhoto from the App Store. It tells me that iPhoto should be appearing in my purchases list, but it's not there no matter how many times I refresh the page or log in/out. If there's no

  • Can't see HTML and Custom text format under data format tab in obiee.

    Hi, I want to add a java script to my report but I can't see HTML/Custom text format option under Data Format Tab--->"Treat Text as" menu. My report is a union report. For data column and numeric columns i can see custom option available but for text

  • Report for stocks with no movement

    Hi All, I would like to know is there a report / transaction, where i can check for all materials in a particular plant / storage location, which has stock, but there was no movement for a particular period. Eg: Mtl-A, stock - 100 nos, Period - Jan 2

  • Photo Stream syncing problem

    Photo stream refuses to remove older photos from my iPhone.  The iCloud Photo Stream service is supposed to keep photos on your devices for 30 days and then delete them.  This works fine in iPhoto on my iMac, where photos duly disappear from the Phot

  • Display brightness control not in Prefs Pane

    I'm using an Apple 23" sinema display. The brightness control used to appear in the System Prefs, but it no longer shows up. I unplugged all peripherals, but I can no longer get the slider to appear. Any thoughts?