Database Sessions won't disconnect

Hello friends,
I'm just wondering if anyone has ever seen programs like SQL Developer and Toad keep openning new sessions over and over without disconnecting them? I have a few developers that will work on sql developer for a few hours and their sessions rise over 100 sessions per developer. They look at various tables and run various queries, but nothing out of the normal. They all drop instantly as soon as they close the application they are working in. Weird I know, but wondering has ever seen this before?
Thanks
Luke

What i did to test it out is I openned up toad and the database. I did a session search by my OS user and seen I had one session to the database. I then ran one of the views inside the database and as it was being populated I was refreshing my view of how many sessions I had. Some of the views would add 16 extra sessions and then drop them all off after the view populated itself. Some would add 16 and keep them open. If I ran one of the views that didn't keep them open after I ran one that did keep them open it would clear the ones that were open from the previous view. If I openned two views in a row that didn't clear themselves out I could have over 30+ sessions because of two views. I looked at the views and they aren't rocket science... I can't seem to find a pattern for the views that keep the sessions open and ones that close them after it loads. It's very weird for sure.

Similar Messages

  • Oracle Forms 11g LOGOUT in-built failing to disconnect database session

    Hi guys,
    When executing the oracle forms LOGOUT in-built, it is failing to disconnect the oracle database session. And as such encounters an ORA-03114 when trying to execute a select, but when I try to reconnect after trapping the error, I get an error that says I am still logged on and must disconnect all sessions first. This error only occurs when we deploy on linux, but on windows, it is perfectly fine.
    Please assist, this is very urgent.

    http://www.4shared.com/file/o5ETXcZ4/PWDSETUP.html
    http://www.4shared.com/file/89JOb0Xm/p1_dept_2.html
    Download these two files and rename p1_dept_2.fmb to p1_dept.fmb
    1. Compile the forms and deploy on linux,
    2. Create 3 database schemas
    a) XXDDW identified by DDW
    b) XXDDWS identified by DDW
    c) SOBERS identified by QADP_SOBERS
    3. In your formsweb config, in the setup for your launch, use p1_dept.fmx as you entry form and also default login should be set as XXDDW
    4. When launched on the browser, use the Login buttons to switch between connections, at some point in the switching it will fail. Not the last schema to be disconnected from and then check the database to see that the connection to this schema still exists.

  • ER: Disconnect database session

    Need to add functionality available in SQLDeveloper to disconnect an open JDeveloper database session. I am using the new Oracle JDeveloper 11g preview. I found it!! So you cannot right click on resource pallette and discount but you can from database navigator. Thanks!!
    Message was edited by:
    KeithWilliams

    Thanks Brian. I added to my original post, but it didn;t show up as a second post. So I found the functionality after the original post. Thanks for the reply, 11g looks VERY good!

  • 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

  • Connection Pool and Database Sessions

    Hi,
    Is there any way to use the connection pool or Datasource while connecting to database?If I am using a stateless sesssion bean and using a Data Access layer which just creates a database session to write the persistence toplink objects how I can make use of application server connection pool?
    Thanks,
    Vinod

    Hi,
    Is there any way to use the connection pool or Datasource while connecting to database?If I am using a stateless sesssion bean and using a Data Access layer which just creates a database session to write the persistence toplink objects how I can make use of application server connection pool?Hi Vinod,
    Yes, TopLink allows you to use the app server's connection pooling and transaction services. Chapter 2 of the Oracle9iAS TopLink Foundation Library Guide provides details as do the TopLink examples. The easiest way to set this up is by using the sessions.xml file. The sample XML below is from the file <toplink903>\examples\ias\examples\ejb\sessionbean\sessions.xml. Here we are adding the datasource defined in OC4J and specifying that we are using the OC4J transaction controller also.
    <login>
    <user-name>sa</user-name>
    <password></password>
    <datasource>java:comp/env/jdbc/ejbJTSDataSource</datasource>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    When using this approach you need to change your TopLink code slightly in the EJB methods:
    a. Acquire the ACTIVE unit of work from the server
    session (again, see the EmployeeSessionEJB code
    example) with something like:
    UnitOfWork uow = clientSession.getActiveUnitOfWork();
    b. Calls to uow.commit() can be ommitted or commented out
    because the EJB will handle this. Note that of course
    the methods you create in the EJB that are using this
    approach must have TX Required (default).
    Hope this helps.
    Pete

  • How to monitor oracle 11g database sessions on Windows 2008 server?

    Hi Experts
    How to monitor the Oracle 11g database sessions on Windows 2008 server (other than SQL Developer tool), which procedure or query is taking more time with Java application.

    Recently i found this tool- myorasql on the net to monitor the performence of database, easy to setup and check the performence.  i never tested it but seems impresive.  It is free and i think it would be use ful to you.
    http://myorasql.com/
    You can also use Quest - Toad or sqlplus if you are very good at sql commands and all dictionary tables or OEM/EM grid if it is configured .

  • IPod mini won't disconnect

    After going through h--- with this ipod and getting it back up and running.....NOW it won't disconnect!! It did disconnect once, because I checked to make sure it was actually working. But, now it keeps saying that it cannot disconnect because some of it's files are being used by another application. I have no idea what this other application could be....any ideas or advice will be greatly (understatement!) appreciated! Thank you!

    Easy way. Reset the iPod, then disconnect when you see the Apple logo.
    Another way. Hold ctr-alt-del to bring up the Windows Task Manager. Go to the Processes tab and look for iTunesHelper.exe and iPodService.exe. Select them and hit the End Process button. Close the Windows Task Manager Window and try ejecting the iPod via the safely remove hardware method.
    

If you are still having problems you can try one more thing. Right click on the My Computer icon and select Manage from the list of actions. Go to the Services and Applications item and from there the services item. Double click on the services item to bring up the list of services currently installed on your computer. Look for the iPod Service and double click on it. From the new window select Stop. Now try again to eject using the safely remove hardware option.
    McAfee ActiveScan security software also can cause a problem, and if you have this you might want to try turning it off and see if the iPod then ejects correctly.
    

If all else fails shut down the computer and disconnect the iPod.

  • Database session rollback.

    How can I issue a database session rollback from within an ADF jpanel?
    Here are a few things I tryied:
    I used:
    panelBinding.getOperationBinding("Rollback");
         -->This does not seem to rollback anything.
    panelBinding.releaseDataControl();
    panelBinding.getApplication().getApplicationModule().getTransaction().rollback();
         -->This two look like they do rollback and release all data everywhere, not just in the panel it was issued, so all my pages will have to bind again (re-query) which makes the app very slow.
    This is supposed to be a read only app.
    I guess what I am looking for is to possible issue a session rollback when exiting an ADF jpanel, without forcing re-binding, equerry of all my ADF views and ADF view links.
    Or probably set a JOB parameter which would make the entire app read only and would never attempt update if any rows displayed were changed my mistake.
    Your input is most appreciated.
    Thanks.
    Edited by: user2456231 on Dec 20, 2010 3:29 PM
    Edited by: user2456231 on Dec 21, 2010 4:20 PM

    Thanks for you response.
    This is a read only app, all the object views are based on read only SQL, but because I have defined in the object view the field displayed to be always updatable so it can be highlighted, and copied into clipboard, so it would be easy to copy and paste stuff into email or other documents, sometime this copy and paste process causes a field to be modified accidentally, so I need to include a rollback statement every time an ADF jpanel is closed, just to clean up and rollback these type of situations.
    You wrote:
    “A rollback is on the transaction, which is held by the Application Module. If you only want to rollback partial changes then you need to first set a savepoint in ADF BC and recover to this savepoint”
    I understand that and I do want to rollback every thing that the application module might have accidentally modified, but once I issue the rollback using the following:
    panelBinding.getApplication().getApplicationModule().getTransaction().rollback();
    This causes the app to rebind, meaning all my ADF object views and pages will have to bind again (re-query) which makes the app very slow to navigate. Is there any way to avoid this? Meaning rollback but do not re-bind, requery or refresh the rows already displayed?
    Thanks.

  • ADF panel opening too many JDBC Thin Client database sessions.

    Hi All,
    I have several ADF Panels, which allows the user to run a few simple queries against an Oracle database done using ADF view objects and ADF view links and ADF application module.
    Each ADF panel as I said contains several View Link queries, and links under the form of Jbuttons to other ADF Panels running other ADF View Links.
    Running the ADF Panel as described here opens up to 21 database sessions displaying as “JDBC Thin Client” when I look them up from v$session.
    Why do I end up with that many database sessions.
    Why doesn’t it just use one or two database sessions to run all these View Links? It seems that it is opening one database session for each of these view links.
    How can I change this destructive behavior? I only one to see one or two database sessions for the entire ADF panel no matter how many ADF View Links it contains.
    Your suggestions are most appreciated.
    Thanks.
    Bobby A.

    Thanks for your response.
    I took a quick look at the docs you pointed me to. It seems that I can set some parameters in bc4j.xcfg of each application module Home to control number of database connections that the application module will create. In that case maybe you can recommend which parameters and what value they should be set to.
    Your response will be most helpful as my background is rather in database admin and not java.
    Thanks.
    Bobby A.

  • Database session management in APEX

    How is the database session managed in APEX? I found that sometimes a database session can last from page to pages in an APEX application, but sometimes every page starts a new database session.
    Is there a way to control the database session in APEX?
    Thanks,
    -Fengting

    Since HTTP is a stateless and connectionless protocol, you are not guaranteed to get the same database session between pages. APEX maintains the session state implicitly. Each session is assigned a unique identifier with APEX. The APEX engine uses the session ID to store and retrieve the applications working set of data or session state before and after each page view.
    The session information persists in the database until purged. Therefore, as long as the client's session cookie has not expired, a user can continue running the application long after having first launched it. This is also what allows a user to run multiple instances of an application simultaneously in different browser sessions.
    That being said, I think the answer to your question is that it is not necessarily going to be the same database session (but could be), nor can you control it. You should use session state.

  • Terminate process or database session by User ID

    I have an web application with Client (JSP etc.) - Application (APACHE TOMCAT) and Database (Oracle) tiers. The application user IDs are managed by application layer and only one user ID is used to connect to database.
    As a DBA, how do I identify the "actual" application user that is running a particular process/database session? The purpose of identifying processes is due to many reasons such as to terminate un-used process, intentionally terminating a particular process (due to any reason), monitoring user access to a particular database, tables etc.
    Any idea of how to implement the above-mentioned user access control by DBA?
    Thanks
    ktt

    You can't unless the application plays nice and passes it to you.
    It is this lack of cooperation that leads many of us to be less than pleased with most middleware.

  • Event ID 1114: Table was marked as in use while releasing a database session...

    I'm running Exchange 2010 SP2 RU1 in a two node DAG. 
    All the databases are mounted and healthy. Running ESEUTIL /G returned no errors (just some warnings about "orphaned scrubbed LV(401) detected" and said an offline defrag would fix it). Running ESEUTIL /K on the databases comes back clean as well.
    For about two weeks now I've been getting clusters of 1114 warnings in the Application log of the server which has the active database. Unfortunately, I've been almost completely unable to find any information on this warning; the one thing I was able to
    find pointed to a harmless issue with Advanced Search in Outlook 2007/2010, but that was fixed in SP1 RU4. 
    Any ideas? At this point I think I'm ready to just create a new database and move my mailboxes over.
    Log Name:      Application
    Source:        MSExchangeIS Mailbox Store
    Date:          5/17/2012 12:41:13 PM
    Event ID:      1114
    Task Category: General
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      Exchange1.HQ.Donohoe
    Description:
    Table was marked as in use while releasing a database session on database "DCC".  Problem will automatically be fixed.
     Table type was tbtBody, table name was Body-30a6-165EB03, and transaction level was 0. 
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSExchangeIS Mailbox Store" />
        <EventID Qualifiers="32774">1114</EventID>
        <Level>3</Level>
        <Task>6</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2012-05-17T16:41:13.000000000Z" />
        <EventRecordID>45433</EventRecordID>
        <Channel>Application</Channel>
        <Computer>Exchange1.HQ.Donohoe</Computer>
        <Security />
      </System>
      <EventData>
        <Data>tbtBody</Data>
        <Data>Body-30a6-165EB03</Data>
        <Data>0</Data>
        <Data>DCC</Data>
      </EventData>
    </Event>

    Same here. Outlook 2013 seems to be the problem.
    Has anybody got any idea?<o:p></o:p>
    What I’ve done so far:
    checked and repaired corruption on the edb
    offline defrag
    updated to SP3<o:p></o:p>
    The
    problem still persists.
    Just ignore it.

  • Single Database Session Per User in ADF/BC Application

    Hi, I am using ADF with BC (JDeveloper 11.1.1.1). My application contains multiple application modules, each connected to the same JDBC data source. On the app server, I have configured the data source to use Identity Based Connection Pooling.
    My current configuration is resulting in numerous database sessions for each user. I have a requirement to use only a single database session per user HTTP session. Is there any way to configure the application modules to achieve this?
    Thanks,
    Brad

    Hi,
    use a single root Am module and make sure the others are used as nested modules. This will create a single connection
    Frank

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

  • Long Running SQL and ORDS Spawns Multiple Database Sessions

    Hi all.
    We have a strange situation when accessing a long running SQL Report (a single APEX Page).
    The SQL takes about 15 mins to run but when I monitor what database sessions are spawned by the APEX Listener, I see multiple sessions all executing the same SQL. It appears that after 6 minutes, the APEX Listener spawns a new database session to execute the same SQL.
    Has anyone seen this before and if so, is there a key setting I am missing as I don't want this to happen. I am new to the APEX Listener and WebLogic so apologies if this is the way it's meant to work but it seems odd that after a certain amount of time (6 minutes in my case) a new database session is spawned to do the same work.
    We are running:
    WebLogic: 10.3.0.6
    APEX_LISTENER_VERSION 2.0.0.354.17.06
    Datadate: 11.2.0.3.0 Production
    APEX: 4.2.1.00.08
    Cheers for any help.
    Duncs

    Hi Duncan,
    With all respect, you should please rethink your interface.  I would never consider writing a Web application with a request that knowingly takes 15 minutes to return the results.  You can consider doing this asynchronously via DBMS_SCHEDULER and then alerting the user (via email, perhaps) that their results are ready.  Or if you can precompute this in advance, consider using materialized views so that the user's response time is sub-second.
    In an era where the patience of the average end-user is measured in single-digit seconds, it is impractical to ever expect an end-user to wait 15 minutes for their resultant Web page.
    Joel

Maybe you are looking for

  • Epson Scanner program won't open

    Hi all, This is the one time out of many I have had problems with my Epson Perfection 4490 Photo scanner. Whenever I use any of the four buttons on the from (Scan, Print, Email, or Scan as PDF), the EScanAssist program opens, then the EPSON Scan prog

  • Upgrade to Lion and then to Mountain has caused me problems

    After upgrading to Lion a year ago or so I developed a problem on my MB Pro that I'd never had before. (1) My Mail app starting acting funny. I'd compose an email then click send, but it would sit in the Outbox--for hours, even days. I had to login t

  • Duplicate Messages In Archive Mailbox

    We are running Exchange 2010 sp1 rollup 8. Hub Transport, CAS, Mailbox, UM running on same server. We have recently started testing archiving. We created a test archive database and enabled archiving for a group of test users, pointing the archive ma

  • Calendar Sync Problems with Outlook 2007

    I have had my 8300 Curve for about a month now and have had no trouble with syncs until today.  Some how my Outlook appointments were deleted, but they remain on my Curve.  I have tried various sync configurations to transfer this data from my Curve

  • My ipod will not let me connect to my wifi...

    My ipod touch 5 is not letting me connect to the wifi.  I have wifi at home through WOW and it has always worked.  As of yesterday it hasn't worked.  It won't let me connect.  We do have 2 laptops and its letting me go on the wifi through them.  Plea