dbTalk Databases Forums  

extend the timeout for the SQLPLUS

comp.databases.oracle.server comp.databases.oracle.server


Discuss extend the timeout for the SQLPLUS in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
happy
 
Posts: n/a

Default extend the timeout for the SQLPLUS - 02-27-2010 , 04:09 PM






How can I extend the timeout for the SQLPLUS sql commands entry ?

Reply With Quote
  #2  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: extend the timeout for the SQLPLUS - 02-27-2010 , 06:27 PM






On Sat, 27 Feb 2010 13:09:16 -0800, happy wrote:

Quote:
How can I extend the timeout for the SQLPLUS sql commands entry ?
You can create profile with the limit on CONNECT_TIME, something like this

SQL> create profile myprof limit connect_time 30;

Profile created.

Elapsed: 00:00:00.38
SQL>

That will drop the connection after 30 minutes, along with any query that
might be executing at that time. You can also limit CPU_PER_CALL which is
not the exact time limit but will usually kill all the queries that take
longer than 5*CPU limit. It does take a little experimenting, though.

--
http://mgogala.freehostia.com

Reply With Quote
  #3  
Old   
Mark D Powell
 
Posts: n/a

Default Re: extend the timeout for the SQLPLUS - 02-27-2010 , 07:54 PM



On Feb 27, 4:09*pm, happy <ehabaziz2... (AT) gmail (DOT) com> wrote:
Quote:
How can I extend the timeout for the SQLPLUS sql commands entry ?
happy, by default SQLPlus itself does not have a timeout. If your
sessions are being timed out then there are several ways it can be
done. mgogala identified database user profiles as one method. The
Oracle database resouce manager can also be used to time out sessions
and kill queries that exceed resource limits.

Many DBA set up dead/idle connection detection scripts that identify
and kill sessions that have not done any work in X time.

Also many Firewalls will close connections throught he firewall that
have not been active for X time.

If mgogala's solution does not appear to fit whatever unposted actual
message you are getting then maybe one of these other items fit.

HTH -- Mark D Powell --

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.