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: Getting values into SQLPLUS from Unix

Re: Getting values into SQLPLUS from Unix

From: DR <cichomitiko_at_gmail.com>
Date: Thu, 15 Dec 2005 17:14:52 +0100
Message-ID: <43a19679$0$15789$14726298@news.sunsite.dk>


<amerar_at_iwc.net> ha scritto nel messaggio news:1134662664.740210.169590_at_o13g2000cwo.googlegroups.com...
> Using the shell variables, how do I get SQLPLUS to recognize them?

SCHEMA="SCOTT"
MV="MV_1"
sqlplus /nolog <<EOF

   connect / as sysdba
   ALTER SESSION SET CURRENT_SCHEMA=${SCHEMA};    exec dbms_snapshot.refresh(UPPER('${SCHEMA}'.'${MV}'));    exit
EOF

-- 


Regards,
Dimitre Radoulov
Received on Thu Dec 15 2005 - 10:14:52 CST

Original text of this message

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