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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Running SQLPlus from command line

Re: Running SQLPlus from command line

From: RLN <rlntemp-newsgroup_at_yahoo.com>
Date: 11 Oct 2006 11:01:38 -0700
Message-ID: <1160589698.566021.186380@m73g2000cwd.googlegroups.com>


Thank you for the links to the syntax.

Here are the 8 lines (simplified).
Right now, line 3 runs fine and connects. Lines 4 thru 8 do not run at all unless I do these manually. I need these to run as a batch process from start to finish. Lines 4 thru 8 are outside of the SQL Plus environment in this batch process. How do I 'include' lines 4 thru 8 so that they run in succession automatically  with no manual intervention?

Startup and display SQL file that is running... 1. @echo off
2. echo Running TEST12.SQL

connect to Oracle...
3. SQLPLUS -s myUserID/myPass_at_myDBName

Get the SQL file into the buffer...
4. GET TEST12.SQL Run the SQL file....
5 . RUN Spool the output to .txt file...
6. SPOOL TEST12.txt

Turn off spooling...
7. SPOOL OFF Exit SQL Plus....
8. EXIT What am I missing here? Received on Wed Oct 11 2006 - 13:01:38 CDT

Original text of this message

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