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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Piping Unix output to SQL*plus

Re: Piping Unix output to SQL*plus

From: Doug O'Leary <dkoleary_at_mediaone.net>
Date: Tue, 23 Jan 2001 17:42:32 -0800
Message-ID: <MPG.14d7d2e735ea920298975d@news.randori.com>

In article <94l2ue$onc$1_at_nnrp1.deja.com>, venkat_rajagopal_at_my-deja.com says...

> $ cat test.sql
>
> SET FEEDBACK OFF
>
> SELECT value
> FROM v$parameter
> WHERE name = '&&X';
 

>
> I want the script to prompt for x, then exit.

I know someone else has already asked this, but it's scrolled since I last looked. Why can't you simply?

sqlplus -s / @test.sql

?

If I remember right, that was the part of the app you said couldn't be reworked. Can you give a little more details on the app itself? If it's general shell scripting, I can certainly help make any needed mods...

Doug

-- 
-------------------
Douglas K. O'Leary
Senior System Admin
dkoleary_at_mediaone.net
Received on Tue Jan 23 2001 - 19:42:32 CST

Original text of this message

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