![]() |
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 |
| Invoking Oracle stored procedure in unix shell script | hidnana | Shell Programming and Scripting | 1 | 10-15-2008 07:37 AM |
| Calling an Oracle Stored Procedure from Unix shell script | Leojhose | Shell Programming and Scripting | 2 | 08-06-2007 06:00 AM |
| Execute an Oracle stored procedure from a shell scrip | mh53j_fe | Shell Programming and Scripting | 1 | 06-03-2005 03:17 PM |
| calling stored procedure from shell script. | priyamurthy2005 | Shell Programming and Scripting | 2 | 04-21-2005 07:10 PM |
| Oracle stored procedure. | kamil | UNIX for Advanced & Expert Users | 2 | 11-05-2003 01:39 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
The answer is: that depends.
Not taking into account command line restrictions, which may prevent large arrays from being expanded to the command line without error; further not taking into account if an interface for such a huge amount of passed variables is possible to realize in sqlplus or whatever you use to trigger the stored procedure; you could use the variable expansion of the ksh to expand the content of an array: Code:
# myarr[1]="foo"
# myarr[2]="bar"
# print - ${myarr[*]}
foo bar
#
|
|
||||
|
Bottom line is that you are not going to be able to pass the array by making a simple assignment to an Oracle stored procedure parameter or variable.
You can do one of the following:
Thomas |
|
||||
|
Another way to do this:
1. write the contents of the array to something like a pipe-delimited file 2. Write a PL/SQL wrapper for your SP that calls UTL_FILE to read in the file, and create an array out of it, then pass the array (table actually) to the SP. There is no shortcut. |
|
||||
|
Quote:
), and is counter intuitive when reading the input lines.Thomas |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|