If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > client timeout

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-20-02, 04:47
Breen Breen is offline
Registered User
 
Join Date: Mar 2002
Location: Ireland
Posts: 181
client timeout

Hi,

Is there a parameter I can set in oracle that will drop user connections after a set period of inactivity (I'm sure there is, I just don't know of it).

Thanks in advance for any help.

Shoe,
Breen.
Reply With Quote
  #2 (permalink)  
Old 06-21-02, 03:37
dmitry dmitry is offline
Registered User
 
Join Date: May 2002
Location: Moscow, Russia
Posts: 34
Re: client timeout

Put this line in your sqlnet.ora:

sqlnet.expire_time = <seconds of inactivity>,
where <seconds of inactivity> - interval to check if client session is alive

I would also recommend you to consider profiles where you can limit both idle and total time for user connections.
Resource parameters you need to set in profiles are
CONNECT_TIME, IDLE_TIME.
After that you need to assign new profile to the user(s)
whose connect time you need to limit.
Reply With Quote
  #3 (permalink)  
Old 06-21-02, 05:06
Breen Breen is offline
Registered User
 
Join Date: Mar 2002
Location: Ireland
Posts: 181
Thanks Dmitry,
There was one thing I noticed about the sqlnet.expire_time:
'Dead connection detection is not allowed on bequeathed connections'
I use MTS and was wondering what they mean by 'bequeathed connections'?
I'll start making the changes anyway.
Thanks for your reply,
Breen.
Reply With Quote
  #4 (permalink)  
Old 06-21-02, 05:32
dmitry dmitry is offline
Registered User
 
Join Date: May 2002
Location: Moscow, Russia
Posts: 34
Bequeth protocol is used for local connections, so in this case (with local connections) dead connection detection will not work. In your case with MTS there is no limitation for DCD (dead connection detection), so you may safely use it.
Reply With Quote
  #5 (permalink)  
Old 06-21-02, 05:42
Breen Breen is offline
Registered User
 
Join Date: Mar 2002
Location: Ireland
Posts: 181
Thanks for your help Dmitry.
Cheers,
Breen.
Reply With Quote
  #6 (permalink)  
Old 01-22-03, 15:06
polgur polgur is offline
Registered User
 
Join Date: Jan 2003
Posts: 1
Smile

Just a little correction:

sqlnet.expire_time is in minutes, not seconds.
Here is what Oracle docs say:

SQLNET.EXPIRE_TIME
Purpose: Determines time interval to send a probe to verify the session is alive

Default: None
Minimum Value: 0 minutes
Recommended Value: 10 minutes
Example:
sqlnet.expire_time=10
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On