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: sqlplus within the unix shell

Re: sqlplus within the unix shell

From: <vinduc_at_my-deja.com>
Date: Thu, 06 Jan 2000 16:02:54 GMT
Message-ID: <852eb2$vqd$1@nnrp1.deja.com>


You can use the following syntax in your Shell Script : DATESYSDATE=`sqlplus -s scott/tiger <<EOF set heading off
set pagesize 0
set termout on
set wrap on
set feedback off
set echo off
set serveroutput on
select sysdate from dual;
exit
EOF` Which put the date in the Unix Shell variable DATESYSDATE

Hope it will help

Regards

vinduc_at_hotmail.com

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Thu Jan 06 2000 - 10:02:54 CST

Original text of this message

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