The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Recording a UNIX Session amitkhiare Shell Programming and Scripting 0 01-13-2008 03:00 AM
Running a script without a terminal session jjinno Shell Programming and Scripting 3 10-03-2007 01:50 AM
Unix Telnet session mlucas UNIX for Dummies Questions & Answers 2 08-17-2006 10:26 AM
unix session thomaso Shell Programming and Scripting 6 03-20-2006 01:38 PM
Terminate session on completing script deepsteptom Shell Programming and Scripting 4 06-08-2004 10:47 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-29-2006
435 Gavea 435 Gavea is offline
Registered User
  
 

Join Date: Oct 2003
Location: Brazil
Posts: 42
sqlplus session being able to see unix variables session within a script

Hi there.
How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly.

sqlplus << EOF
user1@db1/pass1

BEGIN
PACKAGE1.perform_updates($1,$2,$3);
END;

EOF


Thanks in advance,
Abrahao.
  #2 (permalink)  
Old 06-29-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
Code:
sqlplus user1@db1/pass1 << EOF
BEGIN
PACKAGE1.perform_updates($1,$2,$3);
END;
/

EOF
Assuming your PL/SQL works - did you try it? - I added a slash, because it could not have worked without it.
  #3 (permalink)  
Old 07-03-2006
435 Gavea 435 Gavea is offline
Registered User
  
 

Join Date: Oct 2003
Location: Brazil
Posts: 42

the slash was the problem, now the variables are getting into the package.
thanks!
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0