Blocking forms sessions

Hi,
I am trying to find out and kill locks that arise thru forms (locks generated while 2 people trying to access same form that are 30 min old),
below script is not yielding any result,
SQL> select /*+RULE*/
'SID=' || s1.sid || ' (' || s1.MODULE || '-' || s1.action ||
') is blocking ' || 'SID=' || s2.sid || ' (' || s2.MODULE || '-' ||
s2.action || ')' AS blocking_status,
l2.CTIME time_blocked,
s1.MODULE,
s1.action,
s1.sid,
s1.SERIAL#,
s1.sid||'-'||s2.sid SID_BLOCK
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
and l1.request = 0
and l1.ctime > 30*60
and l2.ctime > 30*60
and s1. action like '%FRM%'
any modifications needed for this?

Hussein,
I have gone thru that doc and select spid, sid, a.serial#, b.username from v$session a, v$process b where a.serial# = b.serial#; It's not giving form related sessiosn info.
Our requirement is to kill blocking locks that arise from forms sessions and >30 min.
Regards

Similar Messages

  • Logging broken / crashes  Forms-session in AS10g

    we have running DB10gR2 and Forms+reports-Services
    and somtimes problems with blockings in the DB
    (it seems blocking a main Table ,no user can work )
    I want to check , if forms-session is broken
    by lost LAN-Connection or crashing the applicatin-users browser
    I visit the forms_application.log in
    C:\oracle\OASFORMS\OASFORMSHome_1\j2ee\
    OC4J_BI_Forms\application-deployments\formsapp\OC4J_BI_Forms_default_island_1
    but nothing to see about that.
    how can I logging broken / crashes Forms-session in AS10g ?
    thx Norbert

    duplicate post: Oracle forms session crashes.

  • Identifing which session is blocking which session

    Dear All,
    We are having 500 user we don't have Database administrator.
    All of us are Form6i/Report6i developers.
    We do basic DBA activities liking creation of user, taking backup etc.
    Recently we have started facing follwoing problem:
    1) Our HR department uses 5-10 different types of report.
    Other departments uses 1-5 types of reports.
    HR & Other department even though refering to different reports are using some common tables which are used in HR as wel as Other department's report.
    Report of HR gets hanged.
    What we observe in "Enterprise Manager Console" in session that there are non HR user which are also running report.
    The information we see is "Memory Usage","I/O reads","CPU time","Session","User" and so on. We just see who is using maximum memory or CPU time or I/O reads and on basis of that we kill the user (which may be inappropriate)
    What we are enable to understand is at that point of time which user SQL is blocking which user.
    e.g: user "PKP0001" session is inactive and he calls us and tells my report is hanged. We want to identify which user if we kill will allow "PKP0001" user's report to get executed.
    2) User executes there report and get the result on the screen. User gets what he wants but when we see in Enterprise Manager Console" in session even though his task is complete it shows status as inactive with his high "I/O reads","Memory", "CPU" time. so we have to identify and call that user confirm whether he is running any form or report if not then kill his session or ask him to close the application.
    In this case how would we identify without asking the user whether he doing something or not.
    Any mehtod we need to implement in our form6i and report 6i which will take care of that.
    Kindly suggest as soon as possible.
    Thanking You in anticipation.
    Devendra .

    Devendra,
    It is fairly easy to determine which session is blocking another session. Take a look at the SQL statements in this thread (the SQL statements are not well explained, but the output might be understandable):
    enq TX  locked row
    The first, which queries V$SESSION_WAIT and V$SESSION, shows the wait event (on 10g and above, provides a better clue as to the reason session is waiting), the number of seconds waiting, SQL_ADDR and SQL_HASH_VALUE (may be used to find the SQL statement the session submitted), and details potentially describing the object being waited on, the specific absolute data file number, the block number, and the row within the block (DBMS_ROWID.ROWID_CREATE may be used to generate a ROWID to use to query the table in order to determine the actual contents of the row being waited on). The definition of P1, P2, and P3 vary by the type of wait event. In this case, lock mode and lock type for the waiting session may be derived from the P1 value.
    The second, which queries V$LOCK and V$SESSION, shows the two sessions involved in the lock. SID 150, in all cases is blocking SID 143 (as indicated by the BLOCK column). The other columns returned may be used to determine the SQL statements executed by each session (the SQL statement should have retrieved SQL_ADDR also on 10g and above), and the type of locks involved by both sessions.
    Other examples:
    Thorough example of using the information from V$LOCK:
    http://jonathanlewis.wordpress.com/2008/02/06/trouble-shooting-2/
    "How do you find out who is locking a specific row in a table?"
    http://www.jlcomp.demon.co.uk/faq/row_locker.html
    "Enqueue Waits and Locks" by Kyle Hailey:
    http://www.nocoug.org/download/2006-08/unit5_enqueues.ppt
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Urgent:: Not able to open/lauch forms session

    Hi All,
    I had cloned our production instance to create a new instance.
    But now I'm not able to open the form session. We are having apps 11.5.10.2.
    The dbc file is perfect.. I even checked ICX parameters & related profile values.. seems to be ok..
    I can login through /dev60cgi/f60cgi. But can not lauch forms from personal home page.
    Can anyone plz suggect wht might be wrong?
    Regards..
    Edited by: user10200748 on Aug 30, 2008 10:25 PM

    Hi Kali,
    Thanks for the response.
    I'm not getting any sort of error.. It just dont proceed after clicking the menus.. Even I try to check the error from java console, but even no errors are listed in it..
    Moreover , I m getting successful AOLjtest run on the cloned instance.
    The inputs I can give is -
    The error_log shows -
    [Sun Aug 31 07:19:54 2008] [error] [client 160.95.202.46] client denied by server configuration: /fh02/BON/oraapps/common/java/java
    [Sun Aug 31 22:22:13 2008] [error] [client 160.95.202.46] client denied by server configuration: proxy:http://severname:8212/pls/BON/f
    nd_icx_launch.launch
    ~
    The access_log shows -
    160.95.202.46 - - [31/Aug/2008:22:22:11 -0500] "GET /OA_HTML/RF.jsp?function_id=271&resp_id=20456&resp_appl_id=160&security_group_id=0&lang_code=US&oas=NvqKw
    EsSQW1RppGR5XrWdw..&formsLink=yes HTTP/1.1" 302 376
    lb57gpb1.ced.corp.cummins.com - - [31/Aug/2008:22:22:13 -0500] "GET /pls/BON/fnd_icx_launch.launch?resp_app=ALR&resp_key=ALERT_MANAGER&secgrp_key=STANDARD&s
    tart_func=ALR_ALRALERT&other_params= HTTP/1.1" 403 240
    ~
    Regards,
    Edited by: user10200748 on Aug 31, 2008 8:36 PM

  • WHEN-VALIDATE-ITEM results at a block/form

    Hello friends at www.oracle.com ,
    as we know, WHEN-VALIDATE-ITEM is a trigger used for item validation. But if I use WHEN-VALIDATE-ITEM at a block, or even at a form (since Oracle Forms editor allows me to add a WHEN-VALIDATE-ITEM trigger at a block/form), what's the effect of it? How will WHEN-VALIDATE-ITEM behave in such situation?
    Thanks, and best regards,
    Franklin Gongalves Jr.

    From forms documentation (ever considered to read it?):
    A trigger must be attached to a specific object in the form, either an item, a block, or the form itself. The object to which a trigger is attached defines the scope of the trigger, and so helps Form Builder decide which trigger to fire when the corresponding event occurs. Not all triggers are relevant to all objects. For example a When-Button-Pressed trigger would not be attached to a display item.
    That means, a when-validate-item-trigger at block level fires for ALL items of the block,
    except those ones who have an own when-validate-item-trigger at item level that has the
    property "Execution hierarchy" set to "override".

  • DB Trigger firing issue in case of oracle forms session crash

    Hi All,
    Oracle DB version: Oracle Database 10g Release 10.2.0.2.0 - Production
    Oracle Forms version: (Oracle Developer Suite 10g) 10.1.2.0.2 Production
    I am entering some data in the oracle forms and committed the data to database. This form is still open.
    By some reasons i get a error as "FRM-92101: There is error during forms server startup" and the forms session gets crashed.
    When this event happens i wanted to update the records which are inserted before this error occurred. For this purpose i created a BEFORE LOGOFF ON DATABASE trigger (in SYS user) and declared that transaction as autonomous and performed update and then commit.
    But when i get this error in forms runtime session, this trigger doesn't fire and also the records don't get updated.
    If i query to v$session view, the session entry is gone because the forms session is crashed.
    Can anyone please tell me why this trigger don't get fire when oracle forms session gets crashed? Or is there is any other way to run update statement as soon as the forms session gets crashes?
    Thanks.

    Hi,
    please check java runtime console for more issue information.
    Windows:
    SystemControl->Java Plugin Ver XXXX -> Standard -> Check "Show Java Console"
    In Systray, check the console for information about errors in java after the form error.
    Attackwave

  • Recording forms session -output file specification?

    In Oracle applications you can set the value of ICX Forms Launcher to have the parameter "&record=FILE" and the session will then record the form activity to the file you provided (directory depends on your apps version).
    Now there are tools out there to manipulate this file for setting up repetitive data loads however they don't quite meet our needs in one way or another and also the licencing costs for many users can be high. I would therefore like to write a bespoke process that manipulates this file.
    I have gained a pretty good understanding of it just by recording different forms sessions and seeing how the file changes, what actions cause various entries in the record file etc.
    What I woudl really like though is some kind of technical document which describes the output in this file. Ie, what fields are possible in what column position, just so I don't miss anything out.
    I've searched high and low, done a search in Metalink etc and turned up nothing.
    Any help would be very much appreciated.
    Thanks,
    John

    What OS is running on your PC? I'm having the same issue with a Windows 7 PC, but not with a Windows XP PC.
    What I think is happening is that after you hit "Stop" there's a process called "iTutorCleanup" that's run to post-process the .sim file. On a Windows XP machine I can see this running, and I end up with a working .sim file afterwards. I suspect on a Windows 7 PC this cleanup process is failing and that is why the .sim file disappears.
    I'm still playing with compatibility mode settings, but haven't found anything yet that makes it all work. If anyone has any suggestions I'd be very grateful!
    Thanks,
    Steve.

  • Need to find the SID of a forms session.

    Hi,
    I need to find the SID of a form session. How to find the same.
    Eg:- If a user connected to our EBS system, Then automatically one sid will be generated to that user. I need to find the SID for this user. If given detailed steps it would be great help.
    Regards
    SR.

    Hello,
    Although I am a bit unclear about the question. But please see if the following helps;
    I can query the v$session to know about the SID. Here is a simple example;
    select  sid,
    substr(username,1,15) "DB UserName",
    substr(osuser,1,15) "OS UserName",
    substr(command,1,3) CMD,
    substr(machine,1,10) Machine,
    terminal, process, status,
    substr(program,1,50) "OS Program Name"
    from v$session
    where type = 'USER'
    order by usernameHere is a sample output;
                SID DB UserName     OS UserName     CMD MACHINE    TERMINAL         PROCESS      STATUS   OS Program Name
                  7                 SYSTEM          0   ORAAPPPROD ORAAPPPROD       976          ACTIVE   ORACLE.EXE
                  8                 SYSTEM          0   ORAAPPPROD ORAAPPPROD       3548         ACTIVE   ORACLE.EXE
    Additionally you can also review Oracle Metalink Script: How To Identify The apps User Using The O/S PID For Forms Users In 11i Doc ID: Note:185762.1.
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:38346007578631471::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,185762.1,1,1,1,helvetica
    Hope it helps. Maybe others might add in this.
    Adith

  • How to find the invalid form session in oracle Apps

    Oracle Apps R12
    Hai All
    How to find the invalid form session in oracle Apps R12 and How to Kill the that.
    Thanks & Regards
    Srikkanth.M

    Hi,
    Please refer to these docs (for 11i and R12).
    How to Kill Inactive Sessions Based on the Information in the Monitor User Form [ID 103516.1]
    Script: How To Identify The apps User Using The O/S PID For Forms Users In 11i [ID 185762.1]
    Thanks,
    Hussein

  • How to find the First block....in a multi block form

    hi
    How i can find which is the first block in a multi block form....
    ( there are n number of forms with multi blocks...so
    i need to generalise the code to find the first block in all of
    the forms)
    regards
    Kris

    If you searched in the on-line help for "First", you would find that the Get_Form_Property built-in provides two: First_Block and First_Navigation_Block.

  • Unable to exit forms session deployed through application server10G R2

    Hi all,
    I'm having an issue where I'm unable to exit the forms session.
    1) Installed Oracle Application Server 10g R2 on Windows 2003
    2) Upgraded custom forms from 6i to 10g
    3) Created a forms configuration for the custom forms
    4) Deployed forms.
    5) Accessed the main startup form from the server / client machine
    Browser : Internet Explorer 7.0
    Sun JRE : Java Plug-in 1.5.0_14
    6) Form works fine, but when Action => Exit or Forms window is closed, it
    hangs. Have to close form session by going to task manager and clicking end
    task.
    No issues are there whatsoever with test.fmx and a sample form created with EMP table.
    I'm not sure whether this is an issue with the Java plugin, upgraded forms or with the application server settings.
    Pls help !!
    Regards,
    Sam

    i am also facing the same problem
    pls guide
    ragards
    Ravi

  • How to open multiple Forms sessions

    How do I open multiple sessions of Oracle Forms on the same Client machine. Right now if I have a Forms session open, when I open a new browser session and type in the URL it takes me back to the Oracle Forms session which I have open. I am running Forms 6i on 9iAS on a Solaris machine. Thanks in advance for any suggestions.

    Rajesh,
    Your question will be answered rightly in the Oracle - Forms discussion formums.
    Thanks,
    Bala.

  • Mutiple forms session cannot be opened from same client

    We are running 6i on WIN NT4.0. Our client PCs cannot run multiple forms sessions. There got to be some parameter in config file that's not right. Can anyoen who came across this problem suggest something that could fix the problem?
    Thanks
    Peo

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sudha Bhagavatula ([email protected]):
    The FORMS60_SESSION must be set to TRUE for the forms to be opened up in multiple sessions. Set this variable in your registry.<HR></BLOCKQUOTE>
    Hi, I did set FORMS60_SESSION to true but still doesn't work. We are running forms over web, wondering if that is different than client server. Any more suggesstions?
    Thanks
    Peo

  • Javabean-Timer to control the whole Forms-Session

    Hello !
    I am looking forr a solution to supervise the whole Forms-session with a javabean-Timer.
    I know the available javabean-timer on [http://forms.pjc.bean.over-blog.com|http://forms.pjc.bean.over-blog.com/].
    But i am searching for an answer/solution to define a timer once in a Forms-Dialog
    which fires for the whole Forms-Session and not only in the Forms-Dialog where he is defined/activated !
    I am pleased to see your suggestions...
    Thanks - Thomas

    Please post your question to the forms forum.
    otn.oracle.com/products/form and click on the discussion forums.
    Regards
    Grant Ronald

  • Number of Forms sessions not visible

    We have forms running using 9ias (9.0.2).
    when a user logs in to a Form via his browser, I do not see it in the number of sessions in the enterprise manager under Forms, nor do I see it in CPU USage/Memory Usage.
    Is this a configuration issue. How can I see the sesssions, Kill a Forms session etc via Enterprise Manager?

    In formsweb.cfg you must set em_mode=1 to enable session statistics.

Maybe you are looking for