![]() |
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 |
| Passing Filename as a Parameter to Another script | ravisg | Shell Programming and Scripting | 1 | 05-07-2008 11:28 PM |
| url calling and parameter passing to url in script | gander_ss | UNIX for Advanced & Expert Users | 1 | 05-07-2008 12:34 PM |
| Passing a parameter while calling a script | Rafael.Buria | Shell Programming and Scripting | 2 | 02-13-2008 06:27 AM |
| passing parameter 4m shell script to a DB stored procedure | hema2026 | Shell Programming and Scripting | 0 | 11-16-2007 06:55 AM |
| Passing Date as parameter with sh script | pankajkrmishra | Shell Programming and Scripting | 1 | 08-15-2006 06:38 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
passing parameter from Shell-script to Sql-script
Dear Friends,
Please help me to achieve the following: I want to pass one parameter from Shell-script to Sql-script. Example: My ShellScript.sh is calling report.sql like this: /bin/sqlplus /reports.sql And My report.sql is calling many Stored-Procedures like this: exec SP_REPORT_1( TO_DATE('20070921', 'YYYYMMDD') ); exec SP_REPORT_2( TO_DATE('20070921', 'YYYYMMDD') ); exec SP_REPORT_2( TO_DATE('20070921', 'YYYYMMDD') ); So I want to passs this date ('20070921') from ShellScript.sh to report.sql, somthing like this: /bin/sqlplus /reports.sql '20070921' Please tell me how can I achieving this, I am very poor in Shell and SQL scripting. Many Thanks, Subodh Bansal |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|