Solved

breaking of oracle connection

Posted on 2001-06-05
4
242 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
ID: 6156027
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
ID: 6156035
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
ID: 6158537
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
ID: 8975401
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

863 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

25 Experts available now in Live!

Get 1:1 Help Now