User session  connected to forms  freq get inactive in oracle

Hi
we are having oracle 10.2.0.3 on aix 5.3 RAC environment. we are having monitor database scripts to check how the session and how many long running sessions are there like this? but on last few days we found that suddenly out of two nodes one node only got session increasing(long running session) on the next node is normal and if we found most of the session were goes into inactive that too especially those who are connected to the oracle forms
terminal. i took awrrpt.sql but i m not much familiar to find the exact reasons from that report i just look the sql queries but i could not find any difference due to the query ? i m thinking of some of the questions
1.) why the sessions goes inactive when they are connected to forms?
I know its very strange thing of asking questions to someone abt my environment but i just want to know from anybody that they might had this issue earlier.
Now after looking that thing what i understood from my knowledge is
1.) Sessions more inactive
2.) esp. for forms
3.) that too on one node most freq.
4.) is this problem due to any recent time deployment on production from forms?
Pls anybody guide me ...
Thanks
M.Murali..

Hi
thanks for prompt reply.yeah these are situations but i cant predict how come all of suddenly goes into inactive session and there is no sql_id is also there to want to find where it get strucks? but someday when user logged complaints like when they are click one button it goes hangs.At tht time i traced his/her sessions from backend there is query which works fine in backend(database level) but when i m monitoring couldn't find any sql is so i dont know is the real problem with database or what?
Thanks
M.Murali..

Similar Messages

  • How to find users sessions connected in (11.1.0.7 & R12.1.1)

    We have 11.1.0.7 configured in our env with E-business suite R 12.1.1 .
    we created different users e.g John , Mark and they are connected through e-business suite application form. But when i query V$session table i dont find these users there.
    Where i can find the status of these connected users ?
    PLease reply

    Usually you start with the Oracle schema that install the application on the database. In my case, I created a schema called QC (quality control) with it own tablespace (QC) - a software from HP. From this schema, I can see all users created via this schame and in the tablepace QC.
    Another trick would be to use all_users table to check for the usernames: select * from all_users;

  • Timeout for user session/connection

    Hi All,
    We have 81741 database acessed by windowNT/2000 users connecting via formswebserver(6.0.8.21.1) using JInitiator 1.1.8.19, we use Apache server and/or webDb listener on webserver. Users are assigned different roles like engineer, technician, manager etc. As per management request, we need to timeout and close ENGINEERs connection which is idle for more than 60 min. Now, we need to kill the database session, kill the process on webserver and kill the application screen user has on his PC. I am sure, this has been implemented by some of our OTN members.
    Any suggestions would be appreciated in this regard.
    Thanks & Regards.

    You could try polling with in.available() for 5 seconds. As long as it returns 0, there is nothing to read.
    long start = System.currentTimeMillis();
    while (in.available() == 0 && System.currentTimeMillis()-start < 5000) {
      Thread.yield();
    // now the 5000 milliseconds has expired OR there is input available:
    String s;
    if (in.available()) {
      s = in.readLine();
      System.out.println(s);
      // there might be more to read, so you can check with in.available() again until you have read everything..
    } else {
      System.out.println("timeout");
    }

  • No User Sessions shown in Enterprise Manager Console !

    Hello all,
    We have Forms 11gr2 with Weblogic 10.3.6.
    When I opened console of Enterprise Manager Fusion Middleware Control, and clicks on "Forms" to check user sessions, it doesn't display
    any user sessions, although many users are connected to Forms applictaion at the time.
    Please guide how can I check the users connected to application ?
    Thanks.
    Shanky Ben.

    There is a bug in opmn.
    This is what i got from Oracle support for 11gR 11.1.2.0 version (on linux x64):
    Please do the following to apply the patches:
    1) Download and apply the patch 15948641, which upgrades FMW to 11.1.2.1.
    2) Download and apply both the patches 13055259 and 13490778 on FMw 11.1.2.1. Otherwise. both patches will fail to apply.
    If you are on 11.1.2.0 you must upgrade to 11.1.2.1 and apply patch
    13055259 (patch 13490778 is already included in 15948641).
    If you are on 11.1.2.1 try to apply patch 1305529.
    Regards

  • Killing user session & and update v$session

    i use
    alter system kill session 'sid,serial#) immediate.
    user session killed but not clean, V$session show that user connect
    i also want clean user session and remove form V$session
    Any one who can do this ...
    Thanks

    Hi,
    >>how remove on killing user session
    As I said before, you just need to wait ... Don't worry about. On the other hand, by finding the SPID, you can force the process to be killed instead of waiting for PMON to wake up and kill it, but I think that it is not necessary.
    Cheers
    Legatti

  • Long delay for ManagedEventWatcher __InstanceCreationEvent query as number of user sessions increases

    We have a Windows service that monitors for process start events and sends notifications to client applications.
    We have discovered that the delay between when a process starts and when our EventArrivedEventHandler is called gets excessively long when the number of user sessions on the Windows server gets to about 80.
    The delay gets worse as the number of user sessions gets higher.
    The delays are not consistent. Even with 100 sessions some observed delays are short but most are too long and the maximum observed delay grows with the number of sessions.
    Here is one example of the delay we are seeing.
    A client application wrote its first log record to its log file at 11:05:34.076. Our EventArrivedEventHandler did not get notified of the process start event for the client application until 18 seconds later (at 11:05:52.188 ).
    We need the delay to be less than 5 seconds to be tolerable and would like the delay to be less than 3 seconds if possible.
    Is there something we can do to reduce the delay? Below are the details of our use of WMI.
    We are using an instance of class WqlEventQuery to represent a WMI event query in WQL format.
    We are constructing an instance of ManagementEventWatcher to consume events asynchronously.
    Below is how we are instantiating and running the query. Variable m_PollingIntervalInMilliseconds is set to 1000 by default.
                    WqlEventQuery query = new WqlEventQuery("__InstanceCreationEvent", new TimeSpan(0, 0, 0, 0, m_PollingIntervalInMilliseconds), "TargetInstance isa \"Win32_Process\"");
                    m_ManagementEventWatcher = new ManagementEventWatcher(query);
                    m_ManagementEventWatcher.EventArrived += new EventArrivedEventHandler(managementEventWatcher_EventArrived);
                    m_ManagementEventWatcher.Start();
    Our Windows service is not the only user of WMI services on the server. I do not know if there is contention with other users of WMI services or if there is something about the way we are consuming WMI services that is inefficient.

    Hello RossAtWFMC,
    It seems that the services are working with a complex environment, and currently, we do not have such an environment which could reproduce this issue you described. Anyway, I would like to share whatever I found and some suggestions about this issue:
    >> called gets excessively long when the number of user sessions on the Windows server gets to about 80.
     The delay gets worse as the number of user sessions gets higher.
    This seems to show that the issue is related with the number of user sessions, it may be that when with lots of user sessions, there are something additional delay the event to be fired. As you mentions, there are other services on that server machine, if
    possible, you could make a test to run your WIM service only to see if it is still delayed.
    >> Is there something we can do to reduce the delay?
    I suggest that you could check this blog below which provide a way to debug with the .NET course code:
    http://blogs.msdn.com/b/dotnet/archive/2014/02/24/a-new-look-for-net-reference-source.aspx
    So that you could know which method inside costs most time.
    From your provided code, it is not very clear if you use multi threads in your service, if not and your event handler is short, you could have a try with it, and there is a discussion about this topic:
    https://social.msdn.microsoft.com/Forums/en-US/13f30e33-7f61-498e-a91a-ef982a63453c/event-handling-in-multithreaded-apps?forum=netfxbcl
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to connect Forms 6i & Reports 6i with oracle 10g R2?

    Hey everybody,
    I need your help in connecting both Forms 6i & Reports 6i with Oracle 10g Release 2 db, MS Access(2003, 2007) and SQL database(Microsoft Visual Studio 2008). I am a newbie. I have installed all of them on my HP notebook, with Windows 7 Ultimate(32 bit OS) installed. I want to generate forms & reports by accessing data from above mentioned databases. Please provide me with the configuration steps.
    Thanks in advance...!

    Welcome to the forum ;-)
    Please be sure to review the following:
    http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo
    First, I think it would be a good idea if we can understand why you have chosen to use a nearly new operating system yet install Oracle products that are 10 years old (i.e. Forms/Reports 6i) on it. In general, this is not a good idea. Although running such an old version on Win7 can be made to work, the possibility of having problems is likely. If you are infact new to the product, using a configuration where you are likely to have problems may not be a good starting place. Also, you should be aware that Forms/Reports 6i was desupported several years ago. Documentation and other information is gradually being replaced by newer information, so resources for this old version are going away. The latest version of Forms/Reports is part of Fusion Middleware 11R2 (version 11.1.2.0) and requires WebLogic Server 10.3.5 (or 10.3.6) in order to be installed.
    Second, if you decide to stick with F/R 6i, are you planning to run the applications you create in a browser or as a client/server application? This information is important because how you connect to a database will slightly differ depending on which option you choose. Also, if you want to connect to non-Oracle data sources you can use ODBC for client/server or Oracle Transparent Gateway. However, if you plan to deploy the applications using a browser, Gateway is your only option for connecting to non-Oracle datasources. As for connecting to MS Access, I believe ODBC is your only option, so web deployment may not be an option.
    http://docs.oracle.com/cd/B19306_01/gateways.102/b14270/ch1.htm
    There are many other references available. Try a Google search.
    As for connecting to an Oracle database, this is generally easy. For the Builder(s) and client/server runtime to connect, add the db information to the tnsnames.ora found in the Oracle Home (installation directory) \network\admin. If you are unfamiliar with what goes in the file you can copy the entries created for your database. The db will have a similar file found in a similar place in its installation directory (Oracle Home). For example, you might find something like this:
    ORCL =
    (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = YOURSERVER.COM)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    )Simply copy this information to the end of your tnsnames.ora found where Forms/Reports is installed then restart any running Forms or Builders.

  • Query to get  Forms User Session

    Can any one suggest what is the SQL query to get the detail of the user session(Forms) in 10G Application Server Rel 2?

    How EM takes the IP address of user in the user_session of forms?
    Is there any table that it takes from?
    Thanx

  • Keeping menu tree form session connected to DB, while other forms are open

    When our application starts, a menu tree module is opened, which contains a list of modules that users can open. When a user click on a module to open, the code will issue the command open_form (…,…., session). So every form is opened in its own session. The maximum idle time allowed in a session is 45 minutes. Therefore after setting idle for more than 45 minutes any module including menu tree module will lose connection to the database. So if a user open a module from the menu tree module and spend more than 45 minutes working on that module, when the user go back to the menu tree module, they get an error that menu tree module lost connection to the database. So the question is, how to keep the menu tree module session connected to the database, even if it exceed the maximum idle time as long as other modules sessions are still connected to the database.
    1. set maximum idle time allowed in the database for 5 minutes
    2. open form A
    3. open form B from form A in it own session (OPEN_FORM (...,...,SESSION)
    4. work on form B for more than 5 minutes
    5. go back to form A,
    6. fom A has been disconnected from the database
    I have tried to use the timer, but the problem with timer is when a timers fire in forms that
    do not currently have focus, and a context switch is performed. The form flickers when the context switch is made, and the current item text becomes selected when focus returns to the
    current form, which will cause problem to the users.
    Our client setup the database timeout for security reason, and therefore, it cannot be replaced by TIMEOUT PJC.
    Keep in mind that we have 600 forms and the application is already in production.
    Thanks

    Thank you Manu
    I added the following code logic to when-window-activated
    if menu-tree still connect to the DB then
    do nothing
    elsif lost of connection is due to exceeded maximum idle time then
    if the global.last_closed_forms_transaction < 45 minutes
    or if there is form that is still connected to DB then
    logout;
    login;
    else
    messagebox ( exceeded maximum ideal time allowed )
    end if;
    else
    messagebox ( lost connection due to network error)
    end if;
    Thanks
    Edited by: user7591510 on Aug 7, 2009 4:58 AM

  • How to Identify database sessions used by forms sso user sessions?

    Hi:
    When using forms with SSO, all database sessions are opened by the same OSUSER (usually oracle), from the same machine (usually the forms server) and by the same program (usually [email protected] [TNS V1-V3]).
    I need a way to identify the database session (v$session) that is beeing used by a specific SSO user. By using SSO, we say implicitly that all users using that SSO resource will be connect to the database by a specific database user.
    So, what can I do to identify the database session that a specific forms user is using ?
    Thanks
    Joao Oliveira

    You could try something like the following in a when new form instance trigger:
    declare
    authenticated_username varchar2(30);
    begin
    authenticated_username := get_application_property(`sso_userid');
    DBMS_APPLICATION_INFO.SET_CLIENT_INFO (
    client_info IN VARCHAR2);
    end;
    This will store the sso userid in the client_info field of v$session.
    I hope this works for you.
    Randy McGregor

  • Sessions/connections gets hang during update and select operations.

    A table with 3 million records, which has customer details data.
    Everyday application is executing select and update queries on that table.
    Sessions/connections gets hang during update and select operations.
    After checking ADDM report, following are the findings:
    Please suggest the solutions
    Findings and Recommendations
    Finding 1: Row Lock Waits
    Impact is 145.22 active sessions, 99.77% of total activity.
    SQL statements were found waiting for row lock waits.
    Recommendation 1: Application Analysis
    Estimated benefit is 145.22 active sessions, 99.77% of total activity.
    Action
    Significant row contention was detected in the TABLE
    "AVAYA.AIRTEL_CUSTOMER_MASTER" with object ID 82155. Trace the cause of
    row contention in the application logic using the given blocked SQL.
    Related Object
    Database object with ID 82155.
    Rationale
    The SQL statement with SQL_ID "974vg65j29pmv" was blocked on row locks.
    Related Object
    SQL statement with SQL_ID 974vg65j29pmv.
    UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
    WHERE ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
    Rationale
    The session with ID 50 and serial number 34525 in instance number 1 was
    the blocking session responsible for 100% of this recommendation's
    benefit.
    Symptoms That Led to the Finding:
    Wait class "Application" was consuming significant database time.
    Impact is 145.22 active sessions, 99.77% of total activity.
    Finding 2: Top SQL Statements
    Impact is 46.39 active sessions, 31.87% of total activity.
    SQL statements consuming significant database time were found. These
    statements offer a good opportunity for performance improvement.
    Recommendation 1: SQL Tuning
    Estimated benefit is 46.39 active sessions, 31.87% of total activity.
    Action
    Investigate the UPDATE statement with SQL_ID "974vg65j29pmv" for
    possible performance improvements. You can supplement the information
    given here with an ASH report for this SQL_ID.
    Related Object
    SQL statement with SQL_ID 974vg65j29pmv.
    UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
    WHERE ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
    Rationale
    The SQL spent only 0% of its database time on CPU, I/O and Cluster
    waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
    Look at performance data for the SQL to find potential improvements.
    Rationale
    Database time for this SQL was divided as follows: 100% for SQL
    execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
    execution.
    Rationale
    SQL statement with SQL_ID "974vg65j29pmv" was executed 212 times and had
    an average elapsed time of 2494 seconds.
    Rationale
    Waiting for event "enq: TX - row lock contention" in wait class
    "Application" accounted for 100% of the database time spent in
    processing the SQL statement with SQL_ID "974vg65j29pmv".

    **addm report **
              ADDM Report for Task 'TASK_7526'
    Analysis Period
    AWR snapshot range from 5003 to 5004.
    Time period starts at 08-JUL-13 11.00.27 AM
    Time period ends at 08-JUL-13 12.00.45 PM
    Analysis Target
    Database 'AVAYADB' with DB ID 2878789264.
    Database version 11.2.0.1.0.
    ADDM performed an analysis of instance avayadb, numbered 1 and hosted at
    NG-LA04AVAYA01.
    Activity During the Analysis Period
    Total database time was 563062 seconds.
    The average number of active sessions was 155.63.
    Summary of Findings
       Description         Active Sessions      Recommendations
                           Percent of Activity
    1  Row Lock Waits      155.44 | 99.88       1
    2  Top SQL Statements  26.67 | 17.14        1
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              Findings and Recommendations
    Finding 1: Row Lock Waits
    Impact is 155.4 active sessions, 99.88% of total activity.
    SQL statements were found waiting for row lock waits.
       Recommendation 1: Application Analysis
       Estimated benefit is 155.44 active sessions, 99.88% of total activity.
       Action
          Significant row contention was detected in the TABLE
          "AVAYA.AIRTEL_CUSTOMER_MASTER" with object ID 82155. Trace the cause of
          row contention in the application logic using the given blocked SQL.
          Related Object
             Database object with ID 82155.
       Rationale
          The SQL statement with SQL_ID "974vg65j29pmv" was blocked on row locks.
          Related Object
             SQL statement with SQL_ID 974vg65j29pmv.
             UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
             WHERE  ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
       Rationale
          The session with ID 167 and serial number 6084 in instance number 1 was
          the blocking session responsible for 100% of this recommendation's
          benefit.
       Symptoms That Led to the Finding:
          Wait class "Application" was consuming significant database time.
          Impact is 155.45 active sessions, 99.88% of total activity.
    Finding 2: Top SQL Statements
    Impact is 26.66 active sessions, 17.14% of total activity.
    SQL statements consuming significant database time were found. These
    statements offer a good opportunity for performance improvement.
       Recommendation 1: SQL Tuning
       Estimated benefit is 26.67 active sessions, 17.14% of total activity.
       Action
          Investigate the UPDATE statement with SQL_ID "974vg65j29pmv" for
          possible performance improvements. You can supplement the information
          given here with an ASH report for this SQL_ID.
          Related Object
             SQL statement with SQL_ID 974vg65j29pmv.
             UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
             WHERE  ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
       Rationale
          The SQL spent only 0% of its database time on CPU, I/O and Cluster
          waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
          Look at performance data for the SQL to find potential improvements.
       Rationale
          Database time for this SQL was divided as follows: 100% for SQL
          execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
          execution.
       Rationale
          SQL statement with SQL_ID "974vg65j29pmv" was executed 707 times and had
          an average elapsed time of 794 seconds.
       Rationale
          Waiting for event "enq: TX - row lock contention" in wait class
          "Application" accounted for 100% of the database time spent in
          processing the SQL statement with SQL_ID "974vg65j29pmv".
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              Additional Information
    Miscellaneous Information
    Wait class "Commit" was not consuming significant database time.
    Wait class "Concurrency" was not consuming significant database time.
    Wait class "Configuration" was not consuming significant database time.
    Wait class "Network" was not consuming significant database time.
    Wait class "User I/O" was not consuming significant database time.
    Session connect and disconnect calls were not consuming significant database
    time.
    Hard parsing of SQL statements was not consuming significant database time.

  • Get IP address for an portal user session

    Hi all,
    I have a requirement where i need to get the following:
    -Client's IP address from where an user is connected to the portal.
    -Client's IP address from where someone change a user password (also if the DB keeps user who made the changes will be usefull)
    -Client´s IP address from where an user blocks his account
    I have checked the NWA (WebAdminApp), and there is a session monitoring where i can see the active sessions on portals and the IP where the user is connected to. I just want to know the API used for that and some information that can guide me. I cant find an API to help me with this, if any of you know something or have any information, it will be usefull.
    Regards,
    MC

    Hi Mariana,
    You might want to check the related javadocs:
    http://help.sap.com/javadocs/NW04S/SPS09/wd/com/sap/tc/webdynpro/services/sal/adapter/api/WDProtocolAdapter.html#getProtocolAdapter()http://help.sap.com/javadocs/NW04S/SPS09/wd/com/sap/tc/webdynpro/services/sal/adapter/api/IWDRequest.html#getClientHostAddress()
    Code would look something like:
    IWDRequest request = WDProtocolAdapter.getProtocolAdapter() .getRequestObject() ;
    String clientHostAddress = request.getClientHostAddress();
    Hope it helps,
    D.

  • How to find and kill session similar to forms user session

    We have a forms and reports based system that uses the oracle sessions. Sometimes if a form takes a long time we have the need to navigate to iAS>Forms>User Sessions, find the IP of the machine where the form is not responding and kill it based on the IP of the troublesome machine.
    I want to add this into our forms environemnt so people can kill their own sessions if need be but not sure how this is handled
    is it a simple alter system kill session in the db or something different.
    also how is the ip found to match the session?
    Thanks

    hi,
    Instead Set session timeout parameters..So that user gets logged off automatically from the application after a particular interval of time
    For this you have to make changes in httpd.conf file,web.xml file and env file
    Regards
    Fabian

  • When I try to submit a form I get an error massage (An error occurred during the submit process. There was a problem connecting to the server.) it seems I only get this message on a PC

    When I try to submit a form I get an error massage (An error occurred during the submit process. There was a problem connecting to the server.) it seems I only get this message on a PC

    Read the user manual that came w/the scanner and/or contact HP Support.
    http://support.apple.com/kb/PH14141 OS X Mavericks: Reset the printing system 
    http://support.apple.com/kb/HT3669 Printer and scanner software available for download 
    A scanner driver you may wish to consider:  VueScan Scanner Software

  • Forms max user session 11gR2

    Hi,
    I have three simple questions, can anyone help me to find out the answers.
    What is the max user session for oracle forms 11.1.2.1 version?
    If the max user sessions limit reached how can we handle it?
    How can i get max user session for forms 11.1.2.1 version through sql code?
    Thank You!
    Dilli Babu. S

    What is the max user session for oracle forms 11.1.2.1 version?
    How can i get max user session for forms 11.1.2.1 version through sql code?
    Not sure what you mean by "max user session", but since you mention sql code, then I have to think that you mean database sessions. If so, you can check out SESSIONS parameter :
    SQL> sho parameter sessions
    If you mean something different, please clarify.

Maybe you are looking for