Query for idle uncommited session by wait time

I'm looking to find an easy way to query sessions based on how long they've been sitting around after completing a transactions and have not commited it along with SQL. I came up with something, but somewhere in my logic, I'm getting duplicates.

user12006502 wrote:
I'm looking to find an easy way to query sessions based on how long they've been sitting around after completing a transactions and have not commited it along with SQL. I came up with something, but somewhere in my logic, I'm getting duplicates.What's the db version in 4 digits and o/s ? What's the query that you have come up with? How would you ensure that the session is really sitting idle or is waiting for some more input or info before it would end the transaction? How would you quantify it?
Aman....

Similar Messages

  • In sequence for write/read, value of wait time?

    I made a sequence for write then read on a serial port.
    Sometimes, the read string is not the entire one.
    I put some wait time of 500ms in write sequence and wait time of 500ms in read sequence. Could it be the problem ?Is it possible to change the buffer size ?

    Hi,
    The buffer size is limited by the port itself. Consequently there really is no way to increase its size. Are you using VISA or the old serial VI's? One thing you may want to try is making your read time half the time of the write sequence. Also make sure that flow cotrol is working. With flow ctrl, you should never lose any information.
    Hope this helps out.
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • Metadata query to extract each session run duration for last 10 Runs

    Here is the query:   Select  Subject_Area,Workflow_Name,Task_Name,Instance_Name,Task_Type_Name, Start_Time, End_Time  from (Select  Subject_Area,Workflow_Name,Task_Name,Instance_Name,Task_Type_Name,Cast(Start_Time As Timestamp) Start_Time, Cast(End_Time As Timestamp) End_Time, rank()over(partition by subject_area,workflow_name,instance_name,task_type_name order by Start_time desc) RFrom Rep_Task_Inst_Run Where Task_Type_Name<>'Start') where R<=10

    Hi all, Please help me with metadata query to extract each session RUN_DURTION, Start Time, end time for last 10 runs of each session at a workflow level. I know we can get information from REP_WFLOW_RUN table but i dont know table strucure and I dont have access to Repository database and we need an exact query to raise it to admin team. so please provide me an exact query.   Thanks

  • Metadata query to extract each session run duration for last 10 Runs (10 days if daily scheduled)

    Hi all, Please can anybody help me with metadata query to extract all the sessions run duration information (start time and end time, run duration)in each workflow for last 10days.I dont have access to metadata repository so need exact query so that i can raise a request to admin team(he needs exact query). I know that we can get information from REP_WFLOW_RUN , but i dont know the table structure so please provide full query. Thanks,Ravi kumar

    Hi all, Please help me with metadata query to extract each session RUN_DURTION, Start Time, end time for last 10 runs of each session at a workflow level. I know we can get information from REP_WFLOW_RUN table but i dont know table strucure and I dont have access to Repository database and we need an exact query to raise it to admin team. so please provide me an exact query.   Thanks

  • What does the option 'Settings- incorrect waiting time for status' do ?

    Hi All
    We had an infopackage that seemed to be hanging this morning . (Yellow Status) I was advised to access the option 'Settings->incorrect waiting time for status' and set the wait time to 7 minutes (from 7 hours). This changed the status to Red.
    I then re-ran the ipak and reset the ''Settings->incorrect waiting time for status'  to 7 hours. This made the red process go back to yellow and the run time started going up again.
    Can someone explain what is going on. Have I got 2 instances of the same ipak running simulateously. Why did the red one come back to life even thoug I deleted the request in data target for that ipak.
    Thanx
    HKF

    Thanks, Verdi - the first time I enabled,/ or disabled, I hadn't realised what had actually changed, as I think I'm so used to seeing my links open in Safari anyway!

  • Waiting time report in Historical Reports tool

    Hi all,
    I'm looking for a report over caller waiting time. I can't mange to find such report in the Cisco Unified CCX Historical Reports tool. What shoul I look for?
    Best regards
    Kristian

    There are two different types of Abandonded calls that you will see in reports. The first is an Application abandon call. Eseentially this is a call that comes in to your application, does it's treatment but is ended without the caller being marked as handled. This could be due to say, a redirect out of the system or the caller terminating abruptly.
    The second is a Contact Service Queue abandoned call. This is fairly straight forward, when a call enters the queue but terminates prior to being handled by an agent the call is marked abandoned.
    Some things to watch out for:
    I see this a lot, using the Call Redirect step without the Set Contact Info Step (marking the call as handled).
    Having a voicemail opt out in queue, say someone is waiting in queue for 10 minutes and you give them the option to leave a voicemail then terminate the call.
    Any time you manually terminate the caller, depending on circumstances and your script, you should mark the call as handled.
    Lastly, you may want to catch on ContactInactiveException. Wherein you can do some logic to determine if you want to mark the call as handled or not.
    HTH
    Tanner

  • How can I get the elapse time for execution of a Query for a session

    Hi ,
    How can I get the elapse time for execution of a Query for a session?
    Example - I have a report based on the procedure ,when the user execute that it takes say 3 min. to return rows.
    Is there any possible way to capture this session info. for this particular execution of query along with it's execution elapse time?
    Thanks in advance.

    Hi
    You can use the dbms_utility.get_time tool (gives binary_integer type value).
    1/ Initialize you time and date of beginning :
    v_beginTime := dbms_utility.get_time ;
    2/ Run you procedure...
    3/ Get end-time with :
    v_endTime := dbms_utility.get_time ;
    4/ Thus, calculate elapsed time by difference :
    v_elapsTime := v_endTime - v_beginTime ;
    This will give you time elapsed in of 100th of seconds...
    Then you can format you result to give correct print time.
    Hope it will help you.
    AL

  • No more than 1 sessions at a time are allowed. Please wait until open sessions expire.

    I have been unable to log into my Actiontec MI424WR router this week, The router returns the message "No more than 1 sessions at a time are allowed. Please wait until open sessions expire." every time I try to log in. This has been going on for days.  Even pulling the power to reboot it did no change.  I'm the only user in the household that would log into it, so I don't understand how this could occur.  How can I get in?
    GLN2

    I really don't want to do a hard reset as I have a handful of custon port forwarding rules that I had created. I'm not a wiz at that, so it would take me too much time to re-create!  I may have no choice. Next time I can get in I will try the backup of the config file. I hope it contains the port forwarding rules.
    The backup function should work fine, I have used it to save my Steam port  forward rules to my hard drive, after a pin hole reset I was able to restore successfully. I did configure mine to 1 session & ALWAYS   logout when I am done.  I have never had any problems logging into the router. But in your case you may need more than 1 session allowed.
    Are you using a native or 3rd party app to remember your router ID/password? IF you are do not do this, you are "defeating" the built in security of the router
    If a forum member gives an answer you like, please give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem. Thanks !!!
    http://forums.verizon.com/t5/Verizon-net-Email/Fix-for-Missing-Inbox-sent-folders-etc-with-Internet-Explorer-11/m-p/647399

  • Query identified as OracleOEM reporting a lot of CPU wait time

    We use "Ignite" by Confio to monitor the wait time on our database and I have been watching a query for a while now and it seems to be consuming a lot of resources for what it is doing.
    This is the query:
    /* OracleOEM */
    SELECT m.tablespace_name,
    m.used_percent,
    (m.tablespace_size - m.used_space)*t.block_size/1024/1024 mb_free
    FROM dba_tablespace_usage_metrics m,
    dba_tablespaces t,
    v$parameter p
    WHERE p.name='statistics_level'
    AND p.value!='BASIC'
    AND t.tablespace_name = m.tablespace_name
    And this is the execution plan:
    SELECT STATEMENT Optimizer=ALL_ROWS (Cost=152 Cardinality=17 Bytes=2193)
    NESTED LOOPS (Cost=152 Cardinality=17 Bytes=2193)
    NESTED LOOPS (Cost=152 Cardinality=17 Bytes=2125)
    MERGE JOIN (CARTESIAN) (Cost=149 Cardinality=17 Bytes=1785)
    HASH JOIN (Cost=2 Cardinality=1 Bytes=49)
    FIXED TABLE (FULL) OF X$KSPPI (TABLE (FIXED)) (Cost=1 Cardinality=1 Bytes=31)
    FIXED TABLE (FULL) OF X$KSPPCV (TABLE (FIXED)) (Cost=1 Cardinality=1897 Bytes=34146)
    BUFFER (SORT) (Cost=148 Cardinality=502 Bytes=28112)
    VIEW OF DBA_TABLESPACE_USAGE_METRICS (VIEW) (Cost=147 Cardinality=502 Bytes=28112)
    SORT (UNIQUE) (Cost=147 Cardinality=502 Bytes=19122)
    UNION-ALL
    SORT (AGGREGATE) (Cardinality=1 Bytes=8)
    TABLE ACCESS (BY INDEX ROWID) OF RECYCLEBIN$ (TABLE) (Cost=4 Cardinality=389 Bytes=3112)
    INDEX (RANGE SCAN) OF RECYCLEBIN$_TS (INDEX) (Cost=1 Cardinality=388)
    SORT (AGGREGATE) (Cardinality=1 Bytes=14)
    FIXED TABLE (FULL) OF X$KTFBHC (TABLE (FIXED)) (Cost=0 Cardinality=1 Bytes=14)
    SORT (AGGREGATE) (Cardinality=1 Bytes=8)
    TABLE ACCESS (BY INDEX ROWID) OF RECYCLEBIN$ (TABLE) (Cost=4 Cardinality=389 Bytes=3112)
    INDEX (RANGE SCAN) OF RECYCLEBIN$_TS (INDEX) (Cost=1 Cardinality=388)
    SORT (AGGREGATE) (Cardinality=1 Bytes=14)
    FIXED TABLE (FULL) OF X$KTFBHC (TABLE (FIXED)) (Cost=0 Cardinality=1 Bytes=14)
    HASH (GROUP BY) (Cost=89 Cardinality=500 Bytes=19000)
    MERGE JOIN (Cost=87 Cardinality=500 Bytes=19000)
    TABLE ACCESS (CLUSTER) OF TS$ (CLUSTER) (Cost=86 Cardinality=426 Bytes=9372)
    INDEX (FULL SCAN) OF I_TS# (INDEX (CLUSTER)) (Cost=1 Cardinality=1)
    SORT (JOIN) (Cost=1 Cardinality=501 Bytes=8016)
    FIXED TABLE (FULL) OF X$KTTEFINFO (TABLE (FIXED)) (Cost=0 Cardinality=501 Bytes=8016)
    HASH (GROUP BY) (Cost=52 Cardinality=1 Bytes=38)
    NESTED LOOPS (Cost=50 Cardinality=1 Bytes=38)
    FIXED TABLE (FULL) OF X$KTTEFINFO (TABLE (FIXED)) (Cost=0 Cardinality=251 Bytes=4769)
    TABLE ACCESS (CLUSTER) OF TS$ (CLUSTER) (Cost=1 Cardinality=1 Bytes=19)
    INDEX (UNIQUE SCAN) OF I_TS# (INDEX (CLUSTER)) (Cost=1 Cardinality=1)
    HASH (GROUP BY) (Cost=5 Cardinality=1 Bytes=84)
    HASH JOIN (Cost=3 Cardinality=1 Bytes=84)
    NESTED LOOPS
    NESTED LOOPS (Cost=3 Cardinality=1 Bytes=65)
    HASH JOIN (Cost=2 Cardinality=1 Bytes=49)
    FIXED TABLE (FULL) OF X$KSPPI (TABLE (FIXED)) (Cost=1 Cardinality=1 Bytes=31)
    FIXED TABLE (FULL) OF X$KSPPCV (TABLE (FIXED)) (Cost=1 Cardinality=1899 Bytes=34182)
    INDEX (UNIQUE SCAN) OF I_TS1 (INDEX (UNIQUE)) (Cost=1 Cardinality=1)
    TABLE ACCESS (BY INDEX ROWID) OF TS$ (CLUSTER) (Cost=1 Cardinality=1 Bytes=16)
    FIXED TABLE (FULL) OF X$KTTEFINFO (TABLE (FIXED)) (Cost=0 Cardinality=251 Bytes=4769)
    TABLE ACCESS (BY INDEX ROWID) OF TS$ (CLUSTER) (Cost=1 Cardinality=1 Bytes=20)
    INDEX (UNIQUE SCAN) OF I_TS1 (INDEX (UNIQUE)) (Cost=1 Cardinality=1)
    FIXED TABLE (FIXED INDEX) OF X$KCFISTSA (ind:1) (TABLE (FIXED)) (Cost=0 Cardinality=1 Bytes=4)
    My question is two fold... does anybody know where in OEM you can control the execution of this query? I would like to reduce the frequency it is run, or if that is not a good idea does anybody have any ideas from a tuning perspective?
    Ignite is reporting 1,440 executions, 621,776,455 buffer gets, and 2 hours of CPU wait time per day.
    Thanks in advance,
    Zack

    A typical question for this forum.
    We use Oracle, we can't remember which version, and we can't be bothered to post it.
    We don't know Oracle, so we use a third party product (Ignite from Confio) to perform redundant monitoring on our databases, which is already being performed by Oracle Enterprise Manager, for free.
    Instead of trying to use the products which come with Oracle, we would like to wreck functionality, by tampering with things like frequency, and/or even adjusting Oracle provided queries, consequently invalidating our support contract for Oracle.
    And, no, we are not aware, provided the database is doing nothing, queries like this one will automatically surface in the list of top <n> queries.
    I would suggest you start to learn Oracle and dump Ignite. It is of no use to monitor your database with two tools, and OEM is fully integrated in Oracle.
    Sybrand Bakker
    Senior Oracle DBA

  • Query performance analysis in RSRT --- event text 'Wait Time, User'  means?

    Hi All,
    I am running some queries in RSRT in 'execute + debug' mode.
    selecting 'statistics data for query' option.
    Statistics says that most of the time is taken by the event 'Wait Time, User' (event text).
    handler type is OLAP or DFLT depending on the query.
    This is taking around 90% of the query run time.
    Can any one tell me what it means ? Where is it actualy taking time?
    What does it mean by :
    Event text --> 'waiting time, User'
    Handler type DFLT
    Handler type OLAP.
    A sample record of the statistics:
    4A2Z2CFA1GLIRPIK9O2Z18GK1     4A2Z2SN22IFE3AKOL50W9DQZ5     BEX3     2     ZS233BIWDEV     11.06.2008  19:29:08          DFLT               2     1     Wait Time, User     98.467887     0     1
    Thanks in advance.
    rgds,
    Raghu.
    Edited by: Raghu tej harish reddy on Jun 11, 2008 4:19 PM

    Thank you for your immediate response.
    But i won't think it is the time taken to enter the values in the variable screen because of two reasons:
    1.There are some events starting before these events(i can say by seeing the starting time of the events)
    2.For some queries this time is around 3 minutes; and i hardly take 30 seconds to enter the variable values.
    Thanks,
    Raghu

  • IO Exception: Lock timeout exceeded for documents , wait time = 60014

    Hi,
    We are getting an error while uploading any document on portal in KM content area. The full error details as follows
    #D27E2001B003002500000D210005D0D20004520E6FF2B6FB#1216121868039#com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager#sap.com/irj#com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager#BMERRON#71986##<host name>_7664450#BMERRON#3f730c80526211ddb0fcd27e2001b003#SAPEngine_Application_Thread[impl:3]_4##0#0#Error##Plain###error while handling event - com.sapportals.wcm.WcmException: IO Exception: Lock timeout exceeded for <documents>, wait time = 60006
         at com.sapportals.wcm.repository.service.appproperties.PropertiesService.setProperty(PropertiesService.java:984)
         at com.sapportals.wcm.repository.service.appproperties.PropertiesService.setProperty(PropertiesService.java:1203)
         at com.sapportals.wcm.repository.service.appproperties.PropertiesManager.setProperty(PropertiesManager.java:176)
         at com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager.updateLastReadDate(AccessStatisticManager.java:177)
         at com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager.received(AccessStatisticManager.java:253)
         at com.sapportals.wcm.util.events.ReceiverEntry.doSend(ReceiverEntry.java:223)
         at com.sapportals.wcm.util.events.EventBroker.send(EventBroker.java:86)
         at com.sapportals.wcm.util.events.TransactionalEventBroker.send(TransactionalEventBroker.java:56)
         at com.sapportals.wcm.repository.manager.ResourceEventBroker.send(ResourceEventBroker.java:219)
         at com.sapportals.wcm.repository.manager.AbstractRepositoryManager.sendEvent(AbstractRepositoryManager.java:322)
         at com.sapportals.wcm.repository.RMAdapter.sendEvent(RMAdapter.java:342)
         at com.sapportals.wcm.repository.ResourceImpl.sendEvent(ResourceImpl.java:4206)
         at com.sapportals.wcm.repository.ContentImpl.getInputStream(ContentImpl.java:119)
         at com.sapportals.wcm.repository.ContentImpl.getInputStream(ContentImpl.java:132)
         at com.sapportals.wcm.service.xmlforms.transformation.ResourceDemultiplexer.getContentStream(ResourceDemultiplexer.java:71)
         at com.sapportals.wcm.service.xmlforms.transformation.Transformation.render(Transformation.java:209)
         at com.sapportals.wcm.app.xmlforms.PreviewServlet.sendForm(PreviewServlet.java:165)
         at com.sapportals.wcm.app.xmlforms.PreviewServlet.doGetAction(PreviewServlet.java:130)
         at com.sapportals.wcm.app.xmlforms.XFBaseServlet.doGet(XFBaseServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sapportals.wcm.app.xmlforms.XFBaseServlet.service(XFBaseServlet.java:134)
         at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:333)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sapportals.portal.prt.core.broker.ServletComponentItem$ServletWrapperComponent.doContent(ServletComponentItem.java:110)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(AccessController.java:242)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Any Help?
    Regards,
    Sree

    Hi sreedhar Gunda,
    Check whether the repositories are in active and running mode or not. If they are running fine. then check the authorization is sufficient from BASIS people.
    points if useful
    Thanks
    Suresh

  • Database Error: RSR0009: Resource not available for pool. Wait-time expired

    i am occassionally receiving the following error during database connections in my servlet:
    Database Error: RSR0009: Resource not available for pool [webAdvisorTestPool]. Wait-time expired
    i understand that this is a result of a connection leak from improper closure of my Connection object, but i thought that i was properly closing my connection.
    i can get the error if i do the following steps:
    1) access my login page and enter login credentials.
    2) submit the login which then hits the Authentication servlet.
    3) Authentication servlet authenticates and takes me to home page.
    4) hit the back button to get back to the login page.
    5) repeat this process until i hit the Max Pool Size (from web server).
    6) then i get the error message
    here are some details:
    i have an Authentication servlet; here is the pertinent code from that servlet:
    try {     // retrieve the user and add the User object to the session     DAO dao = new DAO();     Person authenticUser = dao.getPerson(userID, password);     session.setAttribute("validUser", authenticUser);     redirectPage = mapping.findForward("success"); }
    i also have a DAO object that handles all of my DB transactions (and you can see from my code above that the Authentication servlet is using that object); here is the pertinant code from that servlet:
    public DAO() {     datasource = "java:comp/env/jdbc/webAdvisorTest"; } public Person getPerson(String userID, String password)     throws ObjectNotFoundException {     // JDBC variables     DataSource ds = null;     Connection conn = null;     PreparedStatement stmt = null;     ResultSet results = null;     // User variables     Person validUser = null;     try     {         // Retrieve the DataSource from JNDI         InitialContext ctx = new InitialContext();         // if this statement fails, NamingException is thrown         ds = (DataSource)ctx.lookup(datasource);         // get DB connection and perform SQL operations         conn = ds.getConnection();         // User variables         String validUserID = null;         String validFName = null;         String validLName = null;         String validEmail = null;         // get DB connection and perform SQL operations         conn = ds.getConnection();         stmt = conn.prepareStatement(PERSON_QUERY);         stmt.setString(1, userID);         stmt.setString(2, password);         results = stmt.executeQuery();         // iterate through the results         if (results.next())         {             validUserID = results.getString("id");             validFName = results.getString("first_name");             validLName = results.getString("last_name");             validUser = new Person(validUserID, validFName, validLName);         }     }     // handle SQL errors     catch(SQLException e)     {         e.printStackTrace(System.err);         throw new RuntimeException("Database Error: " + e.getMessage());     }     // handle JNDI errors     catch(NamingException e)     {         throw new RuntimeException("JNDI Error: " + e.getMessage());     }     // clean up resources     finally     {         doClosure(results, stmt, conn);     }     // if the user was not found, throw ObjectNotFoundException     if(validUser == null)     {         throw new ObjectNotFoundException();     }     return validUser; } protected void doClosure(ResultSet results, PreparedStatement stmt,     Connection conn) {     if (results != null)     {         try { results.close(); }         catch (SQLException e) { e.printStackTrace(System.err); }     }     if (stmt != null)     {         try { stmt.close(); }         catch (SQLException e) { e.printStackTrace(System.err); }     }     if (conn != null)     {         try         {             System.out.println("R18Resources.conn before close: " + conn);             conn.close();             System.out.println("R18Resources.conn after close: " + conn);             System.out.println("R18Resources.conn is closed? " +                 conn.isClosed());         }         catch (SQLException e)         {             System.out.println("R18Resource conn close error: " +                 e.getMessage());         }     } }
    as you can see, i've added some print statements in my connection closure block. based on my output log, each connection is being properly closed and i am not encountering any errors during that closing block.
    any ideas???
    Message was edited by:
    millerand

    Please try the following code in your doClosure method. Replace your code with the following code.
    public void doClosure(ResultSet pResultSet, Statement pStmt, Connection pConn) throws Exception {
    try {
                   if (pResultSet != null) {
                        pResultSet.close();
                        pResultSet = null;
              } catch (SQLException se) {
              logger.error( se );
              } finally {
                   try {
                        if (pStmt != null) {
                             pStmt.close();
                             pStmt = null;
                   } catch (SQLException se) {
                   logger.error(se);
                   } finally {
                        try {
                             if (pConn != null) {
                                  pConn.close();
                                  pConn = null;
                        } catch (SQLException se) {
                        logger.error(se);
    And let me know if you still face this issue. What is the application server you are using?

  • How to find the cpu usage per query for a time period

    Hi All,
    Is there a way to find the cpu used per query for a given time period?
    DB:10.2.0.5
    OS:AIX
    Thanks

    user13364377 wrote:
    if there are multiple queries starting at the same time, then what to do?Handle:      user13364377
    Status Level:      Newbie (10)
    Registered:      Jul 5, 2010
    Total Posts:      264
    Total Questions:      113 (84 unresolved)
    why so many unanswered questions?
    clarify your question
    same SQL multiple times from different sessions?
    or
    different SQLs from different sessions?

  • Same query different timings , different sessions at the same time

    I am running exactly the same query from 2 different sessions almost simultaneously and in one session it is taking 2 seconds and in the other it is taking 20 seconds. The explain plans in both the sessions (by set autotrace on) are exactly the same. The timing is almost same for succesive runs of the query in the same sessions. That is when I run the query again in the "slow session" it is always around 20 seconds and when I run the query again in the "fast session" it is always fast. The queries are being run within a few seconds of each other so the load on the database is almost same.
    My hunch is that it is a database parameter that needs to be changed to solve this problem, can someone guide me with this ....which parameters I should ask our DBAs to adjust ? Our database is Oracle 10G.
    Regards
    Amitabha

    Duplicate thread
    Same query different timings , different sessions at the same time
    Gints Plivna
    http://www.gplivna.eu

  • Long wait time for /sap/webcuif/uif_callback

    STAD shows following record indicating a very long wait time. Seems the application /sap/webcuif/uif_callback mentioned in the record is a CRM WebClient UI framework related service defined in transaction SICF. I did not observe such long wait time on other HTTP requests and applications. Why could this happen? How to analyze further? The system is CRM703 SP03.
    CPU time                       0 ms
    RFC+CPIC time                  0 ms
    Total time in workprocs        3 ms
       Response time           49.658 ms
    Wait for work process     49.655 ms
    Processing time                2 ms
    Load time                      0 ms
    Generating time                0 ms
    Roll (in+wait) time            0 ms
    Database request time          0 ms
    Enqueue time                   0 ms
    Number      Roll ins            1
                 Roll outs           1
                 Enqueues            0
    Load time   Program             0  ms
                 Screen              0  ms
                 CUA interf.         0  ms
    Roll time   Out                 0  ms
                 In                  0  ms
                 Wait                0  ms
    Frontend    No.roundtrips       0
                 GUI time            0  ms
                 Net time            0  ms
    Call number                                         6
    Connection-Id          6CAE8B34B9581ED49BF5441DA68E2F2A
    Communication step     Send/Receive
    Timestamp              20141119 131100 CST
    Host                   XXXXXXXXX
    Port                   8001
    Path                   /sap/webcuif/uif_callback
    Status phrase          OK
    Status code              200
    Protocol               HTTP
    Method                 POST
    Virtual host               0
    Calling time                                        2  ms
    Remote exec. time                                   0  ms
    Data send time                                      0  ms
    Data receive time                                   0  ms
    Idle time                                           1  ms
    Sent data                                         107  Bytes
    Received data                                   2.682  Bytes
    Thanks.
    Regards,
    Jason

    Hello Jason,
    the "Wait for work process" means the request was at the dispatcher queue waiting for a work process.
    Probably at that time all  the DIA work processes in that instance were occupied.
    was that the case?
    kind regards,
    Mercedes

Maybe you are looking for

  • Error when activate transfer structure

    Dear Experts I Have problem with transfer structure activation with start routine If I check the start routine it's ok, no error but if i activate transfer routine, there is an error bellow: Syntax error "' '" and "TRAN_STRUCTURE" are not comparable

  • How to get Personal Hotspot working consistently?

    Hi All, I have an iPhone 5s 16gb and an iPad Air 32gb (non cellular). I'm having issues with the personal hotspot working/not working intermittently.  It never connects first time, even though wireless,Bluetooth and hotspot are all turned on, I have

  • Renaming a document in Pages under Lion

    There's a couple of features in Pages under Lion that I can't figure out and don't like. I do up invoices for my husband's business. Instead of starting a whole new invoice, I like to grab an old one and plug in the new information. I used to simply

  • How to retrieve deleted items?

    I have Tungsten E2 on WinXP Home. When I delete items on my handheld, I check the option "Save archive copy on PC". How can I view what has been previously ? If I use File > Open Archive, there are no files to open. If I use Windows Explorer, the "Ar

  • How do I stop iTunes automatically downloading tunes onto my iPad each time I play them from iCloud?

    I am a new iPad user (IOS 7.0.2) but have used iTunes for many years on both an iPod and a PC. My iTunes library is in iCloud and I have also been using AirPlay to play music from my PC through my HiFi system with no problems. Now I have the iPad I c