Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: NOHUP SQLPLUS

RE: NOHUP SQLPLUS

From: Browett, Darren <dbrowett_at_city.coquitlam.bc.ca>
Date: Mon, 04 Feb 2002 12:34:23 -0800
Message-ID: <F001.004055F7.20020204121528@fatcity.com>

You should have no problems using nohup, I use it all the time, and it will continue to run, regardless of whether you terminate your telnet session.

One change I would make it

nohup sqlplus system/******* @long_running.sql > /ora/log/logfile.log &

  1. Add the "> /ora/log/logfile.log" to capture any output from the process
  2. Add the ampersand (&) to push the process into the background.

To check the process is running, either do a cat on the log file, or check for processes running, or issue the "jobs" command

If you are still not sure, test it with a small sql that runs for a couple of minutes
and outputs to a log file.

Sql file could be like

select sysdate from dual;
execute dbms_lock.sleep(900);
select sysdate from dual;

That way you could terminate you telnet session, log in again in a couple of minutes
and check to see if the process is running, and in fact completes.

Darren

-----Original Message-----
Sent: February 4, 2002 11:13 AM
To: Multiple recipients of list ORACLE-L

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: ewilliams_at_brownco.com

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: ListGuru_at_fatcity.com (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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Browett, Darren
  INET: dbrowett_at_city.coquitlam.bc.ca
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: ListGuru_at_fatcity.com (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). Received on Mon Feb 04 2002 - 14:34:23 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US