connect to oracle retrieve data and work around the data through shell script

Reply

Join Date: Dec 2008
Posts: 1
Reputation: sri4shell is an unknown quantity at this point 
Solved Threads: 0
sri4shell sri4shell is offline Offline
Newbie Poster

connect to oracle retrieve data and work around the data through shell script

 
0
  #1
Dec 28th, 2008
Can any one please let me know how to connect to oracle retrieve data and work around the data through shell script. for example i have to get salary of 5 employees and add 500 to them and print them.
thanks a ton in advance.
Sriram
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 61
Reputation: Gromit is an unknown quantity at this point 
Solved Threads: 7
Gromit's Avatar
Gromit Gromit is offline Offline
Junior Poster in Training

Re: connect to oracle retrieve data and work around the data through shell script

 
0
  #2
Dec 30th, 2008
Sure! I don't have any examples in front of me, but the Oracle command line client is sqlplus. There are others, but I think sqlplus is the one that ships with Oracle. You should be able to script something that uses sqlplus to get what you need from the database and then manipulate it with bash.

Can you add 500 to my salary while you're at it?

Thx!
-G
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 61
Reputation: Gromit is an unknown quantity at this point 
Solved Threads: 7
Gromit's Avatar
Gromit Gromit is offline Offline
Junior Poster in Training

Re: connect to oracle retrieve data and work around the data through shell script

 
0
  #3
Dec 30th, 2008
Here's a link that might get you started:

http://www.orafaq.com/wiki/SQL*Plus_...t_come_from.3F

Experiment with care!
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 1
Reputation: scripter.online is an unknown quantity at this point 
Solved Threads: 0
scripter.online scripter.online is offline Offline
Newbie Poster
 
0
  #4
24 Days Ago
step by step procedure
to Connect to oracle database from unix shell script

http://www.scripterworld.com/2009/08...from-unix.html
Reply With Quote Quick reply to this message  
Reply

Message:



Other Threads in the Shell Scripting Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC