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: UNIX-Oracle script interface help

Re: UNIX-Oracle script interface help

From: Kumar, Sai (EXCHANGE:PERPK:3374) <saikumar_at_nortel.com>
Date: 1998/12/11
Message-ID: <3671560D.75512DB6@nortel.com>#1/1

To my knowledge the ! symbol in sql*plus means calling an operating system command with in sql*plus . When u run a ! from sql*plus it will give u a $ prompt meaning, u have to enter an operating system command .

There are 2 ways to resolve your problem :-

  1. Replace your ! with exit if u are using ! to exit from sqlplus and then give an echo "TEST" command . For eg :-
        .......
        ........
       spool off
       exit
       echo "TEST"

    This way the echo "TEST" will be executed once
     the ksh script exits out of the sql*plus .

 2.  If u want to run echo "TEST" with in sql*plus
      , do the following :-

       ......
       .....
       spool off
       ! echo "TEST"
           (or)
       host echo "TEST"


Thanks
Sai Received on Fri Dec 11 1998 - 00:00:00 CST

Original text of this message

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