|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how can I call a pl/sql funciton in unix script
who can show me how to call pl/sql function or precudure in unix script..
cheers, |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
Quote:
|
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
i wanna
funciton A (p1 number) { return v2, } MM() { somehow call the function A and use the return value; } |
|
#4
|
|||
|
|||
|
The following code snippet runs a SQL file that will execute a stored procedure. The three $DB_* variables are the Oracle ID, password, and server variables. I hope this helps.
sqlplus -s <<EOF > oracle_delete.log $DB_id/$DB_pswd@$DB_server start archive_delete.sql EOF |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Try this... Code:
vValue=`sqlplus -s <<-EOF $DB_id/$DB_pswd@$DB_server start archive_delete.sql exit EOF` |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
You're actually asking an Oracle question. If you have valid PL/SQL code please post it, and I'll help you.
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Not very sure about the requirement but if you are planning to use a return value from a PL/SQL function, in a script you need to either spool the value in file or maybe use Oracles' text IO package (which basically amounts to the same thing). I would be grateful to have some helpful insights here too.
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to call unix script in informatoca thrgh cmd task | sunilamarnadh | Shell Programming and Scripting | 0 | 12-02-2010 06:18 AM |
| Call and redirect output of Oracle stored procedure from unix script | jakSun8 | Shell Programming and Scripting | 0 | 03-24-2010 05:21 PM |
| Need to call stored procedure from unix script | mac4rfree | Shell Programming and Scripting | 1 | 03-25-2009 02:44 AM |
| Call unix script through informatica mapping | Nishithinfy | UNIX for Dummies Questions & Answers | 0 | 09-11-2008 02:34 AM |
| How to call pl/sql in unix script | YoYo | Shell Programming and Scripting | 6 | 09-01-2005 04:59 PM |
|
|