Solved

breaking of oracle connection

Posted on 2001-06-05
4
239 Views
Last Modified: 2010-03-31
HI ALL:
I have a very common problem
When my program sits idle for more than 30 or more minutes (no communication with Oracle server)
Than my connection breaks up,
Offcourse i do make a check before executing  query but than it make the process a bit slow and i do want to avoid this.
Any ideas??
Hemant
0
Comment
Question by:corgi1000
4 Comments
 
LVL 5

Expert Comment

by:Calron
Comment Utility
Have a separate thread send a simple query every 10 few mintues (less than 30). In taht way you can keep your connection open.
0
 

Expert Comment

by:gmhegde
Comment Utility
HI
this is probably because the setting in Oracle is that a client gets disconnected if idle for 30minutes
If you are using Database pooling for you application the setting could be for half hour

Ganu
0
 
LVL 3

Accepted Solution

by:
shyamkumarreddy earned 10 total points
Comment Utility
Hi Corgi

Hi I am suggestion for you.

Check your dba for user to have more idle time. Oracle itself will close the connection.

Before u query any object use con.isClosed() before checking it.

I say please check the oracle documentation or dba to increase the idle time
U don't have anything in your hand

Cheers
Shyam
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:


--  points to shyamkumarreddy


Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
sudhakar_koundinya
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Exchange and Third Party application. 8 59
mapAB Challlenge 35 84
firstChar challenge 13 82
Strange loading of website behaviour 3 22
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now