Home » Infrastructure » Unix » How to send an sqlplus output to shell variable
How to send an sqlplus output to shell variable [message #137767] Fri, 16 September 2005 11:59 Go to next message
sinbyrne
Messages: 2
Registered: September 2005
Junior Member
Hi I am running the following bsh script.

sqlplus -S $elw_id/$elw_password@uat << STOP > S1

set heading on pagesize 100 linesize 100 tab off
set feedback off
Select count(*) from cv_welcome where market = 'SFE'
/
quit
STOP

this sends the output to a file S1 in my working directory.
What I really want is to send this to a shell variable.

Any ideas?

Thanks

[Updated on: Fri, 16 September 2005 12:00]

Report message to a moderator

Re: How to send an sqlplus output to shell variable [message #137870 is a reply to message #137767] Sun, 18 September 2005 02:59 Go to previous message
tarundua
Messages: 1080
Registered: June 2005
Location: India
Senior Member
just few topics below ur post .

http://www.orafaq.com/forum/t/51095/72347/

same discussion , it might help u.

[Updated on: Sun, 18 September 2005 03:04]

Report message to a moderator

Previous Topic: How to send the result of a sqlplus query to a shell variable
Next Topic: Sun server vs Sun workstation for Oracle server
Goto Forum:
  


Current Time: Mon Nov 25 19:35:44 CST 2024