How to purge connection pool on stale on connections

Hello
Our problem is when we are required to reboot the database then we have to reboot all application servers.
Is there a way we can avoid app servers reboot.
app server code is in VB 6.0 and .NET 1.1 (using odp.net for .net)
in a sample application what we found that the ADO (using OraOLEDB) returns a connection where the connection state is open even after database reboot, but when try to use the connection object it throws an exception like end-of-line etc.
so is there a way to clean up the connection pool or reset ole db connection manger.
Any help will be greatly appreciated
Thanks

You're using both ODP and OLEDB then?
ODP has a ClearPool method on a connection you can call, useful for just this situation.
OLEDB connection pooling is done by the OLEDB framework provided by Microsoft, not by the provider itself. I dont know of any way to clear out the pool apart from restarting the application.
Hope it helps, corrections/comments welcome
Greg

Similar Messages

  • How to use Connection Pool in ADF ear file creaion from jDev 10.1.3

    Hi,
    We are developing big application in ADF with 10 different modules. We are creating ear file with data source setting.
    How to use connection pool while creating ear file from jDev. Connection pool is alreday created in Application Server 10g.
    What all the setting we need do to make use of connection pool while creating ear file jDev.
    Thanks

    User,
    If you are using ADF Business Components, you can right-click each application module, select "configurations" and edit the configuration you are using. On the initial page of the configuration dialog, you can specify to use either a JDBC URL or a Datasource - you just need to choose Datasource and then provide the name by which to access it.
    John

  • How to use connection pool of datasource to make applications run faster?

    Hi, erveryone
    I prepare to implement a servlet that access database and do sync with client.
    When I access database, I would like to configure a datasource in weblogic and use connection pool.
    In order to make servlet application run significantly faster, my servet how to use connection poo is much moreresonable?
    For example, my servlet has many times database access. Is it true that geting and close a connection whenever
    one time database access finished?
    If from the servlet begins, the db connection is hold till servlet finalize. Will the solution affect the servlet performance? Is there any official document to introduce connection pool program? I search some documents.
    <The Java EE 6Tutorial> introduce some simple intruduction about connection pool.

    1. Use WebLogic Servers Data Source for Database Connections.
    2. Open and close the connections where you need it. Dont open it in begin and close in finalise. That is bad practice.
    3. Even when you invoke Connection.close () webLogic will not close the connection. it will commit the transaction and return it back to the pool rather than physically closing the DB connection.
    4. You can tune data source for minimum, maximum and increments of connections that you need based on your application requirement.

  • How To Use Connection Pooling in Struts.

    Can Somebody have the idea how to use connection pooling. i want to use jakarta commons dbcp, pool.
    using these packages how can i implement the connection pooling for my web application. If Anybody have some idea plz contect me.
    If Somebody have sample code plz send.
    Thks in Advance,

    Read the documentation...?

  • How to use Connection pool in Reports

    Dear All,
    Please help me How to create Connection pool for Reports and How to use in Reports.
    Present i am using the report by passing parameter as P_JDBCPDS=username/password@databaseName. I thought this will not manage the coonection pool.
    For all reports and every time i am passing userName/password, how to avoid this. Please help me.
    1. How to create Connection pool for Report Server
    2. How to use that Connection pool in the Reports.
    Please help me.
    With Regards,
    Srinivas.

    Until now, I have not worked unfortunately with a connection pool, but, I have found a documentation about the Creating an Internal Connection Pool.
    http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b13593/cpdef.htm

  • How to configure connection pooling in tomcat?

    how to configure connection pooling in tomcat and how to use the connection pooling in the jsp and servlets?

    thanks for the reply, i have configured the connection pool settings in the tomcat.
    I created a class with static method, which will return the connection object.
    whenever i need the connection object, iam invoking the static method, once its usage is over iam closing thew connection..
    is it the right way of using the connection object in the web application.

  • How to configure connection pooling in WebLogic

    how to configure connection pooling in WebLogic

    You already asked this question, here:
    [http://forums.sun.com/thread.jspa?threadID=5356073&messageID=10549446#10549446|http://forums.sun.com/thread.jspa?threadID=5356073&messageID=10549446#10549446]

  • Sun One Web Server connection pool goes stale after some time

    Hi all,
    I have a few web applications running on Sun One Web Server 6.1 (SP4). I configured a connection pool via the web admin of the web server. I do not know why the connections in the connection pool are never released after some time (this happened for 3 times with a couple of months in between). I need to reboot the web server to solve this problem everytime the connection pool goes stale. I have verified that the resources are released (stream and connection are closed) with proper programming logic. Even so, I think that the connections will be timed out (the setting is 5 minutes) by the web server as a bulletproof even if the resource is not released properly as implemented in the code logic. Can anybody help on this? I have been troubled by this problem by weeks.
    Thank you in advance.

    Hi all,
    I have a few web applications running on Sun One Web Server 6.1 (SP4). I configured a connection pool via the web admin of the web server. I do not know why the connections in the connection pool are never released after some time (this happened for 3 times with a couple of months in between). I need to reboot the web server to solve this problem everytime the connection pool goes stale. I have verified that the resources are released (stream and connection are closed) with proper programming logic. Even so, I think that the connections will be timed out (the setting is 5 minutes) by the web server as a bulletproof even if the resource is not released properly as implemented in the code logic. Can anybody help on this? I have been troubled by this problem by weeks.
    Thank you in advance.

  • Connection Pooling: how many active connections?

    Hi, everybody.
    I have a very simple question about connection pooling...
    How many active connections should a database see once a connection pool has been opened?
    I mean, it should see only one connection (the pool itself) at any time, or the number of "logical" active connections in that moment?
    Thanks for any answer.

    Sorry...
    This is the wrong forum, I posted again my question in the JDBC Forum...

  • How to retain connection pool resource while exporting the application war

    hello,
    lately i have figured out how to use connection pooling. now i have another issue.
    i have to export the application war file to a remote server for deployment. i cant configure the server.xml file there due to restrictions. Now is there any way that i can retain the connection pooling with all JNDI resources while exporting the war file. what all things would i have to do. i am using tomcat 4.1 and the remote server too have the same appliaction server running.
    is this possible?
    thanks in advance

    Hi,
    you might have the problem in creating WAR files.
    lease check that first.
    thanks,
    nvseenuNo, the problem is that you shouldn't be modifying the server.xml
    The proper, portable way to do it is to create a context.xml file and put it in the META-INF directory of your WAR file. This contains your Resource definition and JDBC connection parameters. Everything's portable that way.
    I know this works on Tomcat 5.x.
    It can also work with Tomcat 4.1.x, but the way I've done it is to put the context.xml into a file whose name matches my WAR file (e.g, foo.war and foo.xml), placing both in the /webapps directory. Tomcat 4.1.x picks it up that way.
    It would be worth an experiment to see if Tomcat 4.1.x picks up the context from /META-INF, because that way your WAR file is 100% portable.
    This is precisely the reason why I advise people not to edit the server.xml. You don't always have the option to do so.
    %

  • How To create Connection Pooling in Oracle 10.1.2.0 Application Server

    Hi,
    How to create Conncetion Pooling in Oracle 10g Application Server. I am using 10.1.2.0 version.
    Thanx
    Dhans

    Hi,
    How about these tutorials?
    http://www.oracle.com/technology/tech/java/newsletter/articles/oc4j_data_sources/oc4j_ds.htm
    http://www.oracle.com/technology/products/jdev/tips/duff/mysql_and_oc4j3.html

  • How can I connect my G5 iMac to Telefonica ADSL?

    I just moved to Spain. The ADSL connection offered by telefonica seems to be set up with just PCs in mind. I do not know how I can connect my iMAc and my extreme Airport Base Station to that ADSL system. Do I need any special configuration in the Base Station? The ADSL comes with an inalambric Router.
    Many thanks for any help.

    Hola,
    Just to say I spend a fair bit of time in my house on Costa Brava. I take my Apple PB and wife's Acer Laptop each time we go out.
    I have DSL from Telefonica and it is the WiFi version modem all in one job.
    I did not set up with a AEBS or a Netgear job because we rent out for the hottest part of the year and I know they would get damaged, hence the Telefonica modem.
    What I suggest you do is got to Telefonicas website where you will find the English option. There you will find the company that provides manuals for their modems in english. Telefonica does have and should have sent you details of your password etc when you got connected. If they povided the modem it would have been set up prior to delivery to you. What I suggest is that you connect your AEBS to the modem and use it that way.
    Go here:
    http://www.telefonicainenglish.com/
    http://www.telefonicaonline.com/on/pub/servicios/onTOEntrada/1,,vsegmentoEMPR+v_idioma+es+ambitoAcceso+pub+entradaurladsl,00.html?servicio=entrada&entrada=urladsl&urlcentral=/on/es/micro/adsl/ayudainst/index.htm
    I am going to take a new Belkin which is surplus to my requirements down and set it up because it is all in English, mainly for the WiFi side of things. Once set up I will copy back to Xavi 7768 and see how it goes.
    What model of Inalámbrico do you have?
    Oh, I the forgot to say that when I first connected to modem via ethernet both laptops worked perfectly. Also one thing I place at the top of my list is that as the weather is so much better out there I spend as little time as I can on the computer. So we leave them on and connected by cable and only check when a mail arrives, that is of course if we are in earshot and not in the pool or relaxing elsewhere.
    Cheers

  • How to use connection pooliing in welogic server

    How to use connection pooliing in welogic server

    Ummmm, once you have an open connection to something, you add it to a pool so the next time you need to connect to it, you don't have to redo all of the overhead of creating the connection.
    :-)

  • How to config vpn pool on asa5510 in a Multi-hop routing lan?

    home----internet----asa5510(172.16.0.1/30)----(172.16.0.2/30)Internet behavior management(172.16.0.5/30)----(172.16.0.6/30)LAN(192.168.1.0/24)
    I want to use 'remote access ipsec vpn' to connect LAN(192.168.1.0/24),but i don't konw how to config vpn pool on asa 5510.
    Does someone kown how to do?

    Hi,
    The VPN Pool could be pretty much any network/subnet.
    The amount of routing hops on the LAN network doesnt really matter. The ASA should have a route for the LAN network so it can forward the VPN user traffic there. The return traffic from the LAN to the VPN user should be forwarded with the default route of the network devices. If your default route isnt pointing to this ASA then you naturally need to add a route for the VPN Pool on your LAN devices.
    Though I am not sure I have understood your question completely.
    - Jouni

  • How to close connection iBATIS

    hi ,
    we are using iBATIS for our application.Alhough iBATIS closes its connection on its own ,still we have certain open connection from our application which is causing issues while running the application.we are able to make connection using JDBC with Oracle thin driver in iBATIS but while establishing connection using JNDI and connection pooling it keeps connection open in database and sometimes gives out of memory error as connections are not getting closed properly.
    SqlMapConfig.xml we are using for JNDI is :
    <transactionManager type="JDBC">
    <dataSource type="JNDI">
    <property name="DataSource" value="jdbc/DataSource_Dpps" />
    <property name="JDBC.DefaultAutoCommit" value="true" />
    <property name="DefaultAutoCommit" value="true" />
    <property name="SetAutoCommitAllowed" value="true" />
    </dataSource>
    </transactionManager>
    Can any one suggest how to overcome this issue and how to close the connection in iBATIS explicitly while using JNDI and how to specify connection pool size(if any) .
    Regards,
    Anika

    TopLink and iBATIS are generally alternative solutions. Since you are posting on a TopLink forum the best I can suggest is that you consider replacing your usage of iBATIS with TopLink.
    http://www.oracle.com/technology/products/ias/toplink/index.html
    Besides that I would recommend filing a bug or starting a discussion on the iBATIS forum.
    Doug

Maybe you are looking for