Computing.Net > Forums > Unix > passing value from oracle to unix

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

passing value from oracle to unix

Reply to Message Icon

Name: trichyselva
Date: February 21, 2006 at 04:25:07 Pacific
OS: windows
CPU/Ram: p4
Product: pentium
Comment:

how to pass the value returned from oracle sql plus syntax to unix shell script



Sponsored Link
Ads by Google

Response Number 1
Name: mgonzalo
Date: March 9, 2006 at 02:24:45 Pacific
Reply:

I make this way it

#!/bin/csh -f
#
# Listado de codigos en produccion
#
cat > xxx$$.sql <<fin
set echo off;
set feedback off;
set pagesize 50000;
set linesize 300
column ordenador format A9;
rem
select nomb_uso,codigo,version,inf_val,estado,ordenador,taman,datesec"FECHA",control_indep
from rcodigos
where ordenador='W-HP1'
order by codigo;
rem
exit;
fin
#
sqlplus -s consulta/consulta @xxx$$ | expand > lis_hp
#
rm xxx$$.sql

"La experiencia es algo maravilloso. Nos permite reconocer un error cada vez que lo volvemos a cometer.", Franklin P. Jones


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: passing value from oracle to unix

Pass parameter from plsql to unix www.computing.net/answers/unix/pass-parameter-from-plsql-to-unix/6500.html

ftp from Win2000 to Unix www.computing.net/answers/unix/ftp-from-win2000-to-unix/4755.html

passing value between unix and sql www.computing.net/answers/unix/passing-value-between-unix-and-sql/7326.html