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

Home -> Community -> Mailing Lists -> Oracle-L -> Forgotten method SQL+ and DOS

Forgotten method SQL+ and DOS

From: Sinardy Xing <oracle.rdbms_at_gmail.com>
Date: Sat, 3 Feb 2007 15:14:41 +0800
Message-ID: <f52c14170702022314w2de32b1bo9bfb9dc9baaf5a2e@mail.gmail.com>


Hi guys,

How can i do following in windows

sqlplus / as sysdba << a
select sysdate from dual;
select sysdate from dual;
a

I know how to do it in just one command

echo select sysdate from dual; | sqlplus /as sysdba

The challange is I don't want to create any dummy file, just one plain bat file
echo bla > dumb.dumb
echo blas >> dumb.dumb
type dumb.dumb | sqlplus / as sysdba
del dumb.dumb

I try to just have one bat file.

Thank

--

regards,

Sinardy

--

http://www.freelists.org/webpage/oracle-l Received on Sat Feb 03 2007 - 01:14:41 CST

Original text of this message

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