The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can we call JSP file from Unix.if so how.Please help me.Im newbie to Unix mailsukumar Shell Programming and Scripting 0 05-26-2008 05:12 AM
how to call one script frm another wrapster Shell Programming and Scripting 2 04-14-2008 06:54 AM
here document to automate perl script that call script hogger84 Shell Programming and Scripting 3 10-22-2007 07:15 AM
How to call a perl script from a shell script anumkoshy Shell Programming and Scripting 2 08-30-2007 01:23 AM
How to call pl/sql in unix script YoYo Shell Programming and Scripting 6 09-01-2005 01:59 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-13-2005
Registered User
 

Join Date: Aug 2005
Posts: 43
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,
Reply With Quote
Forum Sponsor
  #2  
Old 11-13-2005
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,644
Quote:
Originally Posted by YoYo
who can show me how to call pl/sql function or precudure in unix script..

cheers,
There are examples of how to do this in several of your previous threads.
Reply With Quote
  #3  
Old 11-13-2005
Registered User
 

Join Date: Aug 2005
Posts: 43
i wanna

funciton A (p1 number)
{
return v2,
}

MM()
{
somehow call the function A and use the return value;

}
Reply With Quote
  #4  
Old 11-22-2005
Registered User
 

Join Date: Jun 2005
Location: Detroit
Posts: 24
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
Reply With Quote
  #5  
Old 11-22-2005
Registered User
 

Join Date: Jul 2005
Posts: 18
Try this...

Code:
vValue=`sqlplus -s <<-EOF                                                                           
$DB_id/$DB_pswd@$DB_server
start archive_delete.sql
exit
EOF`
Reply With Quote
  #6  
Old 11-22-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
You're actually asking an Oracle question. If you have valid PL/SQL code please post it, and I'll help you.
Reply With Quote
  #7  
Old 11-22-2005
Registered User
 

Join Date: Sep 2005
Location: Chennai
Posts: 80
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0