How about doing it via a shell script? 
As below:

#!/bin/ksh
sleep 30
sqlplus -s << END
user/pass
@long.sql
exit
END

Start script in 'nohup' mode, log off while it is sleeping. 
SQL will then starts with no tty attahced to it and does what it supposed to
do. 

- Kirti

-----Original Message-----
Sent: Monday, February 04, 2002 1:31 PM
To: Multiple recipients of list ORACLE-L


Erik,

    In my experience a nohup will die with your terminal session.  Best bet
would be to use 'at'.

Dick Goulet

____________________Reply Separator____________________
Author: Erik Williams <[EMAIL PROTECTED]>
Date:       2/4/2002 11:12 AM

I am going to be executing a long running job this weekend from home. I am
going to VPN into the corp network and telnet to the server. I am affraid of
loosing my telnet terminal session and the job dying mid way through. The
plan is to use 'nohup sqlplus system/***** @long_running.sql'. Has anyone
used this or run into issues using it? Every time I assume something will
'just work', IT DOESNT!

Thanks
Erik 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Erik Williams
  INET: [EMAIL PROTECTED]
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Deshpande, Kirti
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to