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

Home -> Community -> Usenet -> c.d.o.server -> Re: Calling sqlplus or plsql code from ksh

Re: Calling sqlplus or plsql code from ksh

From: Stephan Bressler <sbresslerx_no_spam_at_arcor.de>
Date: Fri, 20 Feb 2004 08:24:44 +0100
Message-ID: <c14cn3$kdf$1@news.mch.sbs.de>


  > sqlplus -s >/dev/null 2>&1 <<EOF
> monitor/oramon
> whenever sqlerror exit 1
> select * from dual;
> -- If we can not connect or select, we will not return 0!!!
> exit 0
> EOF
>

Or this way:
sqlplus -s /nolog >/dev/null 2>&1 <<EOF
connect monitor/oramon
_your_sql_statements_
EOF Received on Fri Feb 20 2004 - 01:24:44 CST

Original text of this message

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