![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help me in sending parameters from sqlplus script to unix shell script | Hara | Shell Programming and Scripting | 2 | 01-29-2008 03:31 PM |
| How to pass two or more parameters to the main in shell script | pinky | UNIX for Dummies Questions & Answers | 0 | 10-12-2007 11:54 AM |
| How to pass unix variable to SQLPLUS | chiru | UNIX for Advanced & Expert Users | 1 | 06-10-2006 02:11 AM |
| How to pass variable to SQLPLUS in a ksh script? | rwunwla | Shell Programming and Scripting | 6 | 05-25-2006 05:41 PM |
| passing parameters from a shell script to sqlplus | phani | Shell Programming and Scripting | 2 | 03-13-2005 08:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to pass Shell variables to sqlplus use them as parameters
Hi,
I am trying to pass some of the variables in my shell scripts to the sqlplus call and use them as parameters. For example, I would like to replace the 'SAS', and '20050612' with $var1 and $var2, respectively, how can I do that? -------------------------------------------------------- var1="ABC" var2="123" return_code=`sqlplus -s sars2d/password@kfdmlc <<end set pagesize 0 feedback off ver off heading off echo off serverout on variable rc number exec kf_pkg_load.df_validate_file('SAS','20050612' ,null,null,null,null,null,null,null,null,:RC) print rc exit; end` -------------------------------------------------------- Thanks in advance for your help John |
|
|||||
|
Check this out.
Passing variables to sql from batch shell in linux How to pass a oracle variable back to the shell script If none of those suit your purpose, then use the search feature with the keyword sqlplus. Vino |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|