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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Connecting to Oracle Database dreams5617 Shell Programming and Scripting 4 05-02-2008 01:37 PM
Need Shell Script to upload data from Text file to Oracle database chandrashekharj Shell Programming and Scripting 6 03-26-2007 04:21 AM
Connecting to Oracle from Shell..What Am I doing Wrong dzyr4tt Shell Programming and Scripting 1 12-21-2006 01:05 AM
How to write Flat Files by shell script using Oracle Database coolbuddy UNIX for Advanced & Expert Users 3 02-21-2006 02:50 PM
Connecting to Oracle through unix shell scripts guptan UNIX for Advanced & Expert Users 1 07-04-2005 01:16 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-29-2005
satyakiran satyakiran is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 3
Connecting to oracle database from shell script

Hi all,

I am satyakiran , i am new to the forum. i never done shell scripts for connecting to the data base (oracle) and fetching the data from the database( thru sql select statements ) i want to know
1. how to connect to the data base(oracle) using shell script
2. how to retrieve data from data base
3. how to process the data retrieved from database (i.e result set)
4. how to update the data base in turn.

Please help me out in solving this.

Thanks in advance

sincerely
satya
  #2 (permalink)  
Old 07-29-2005
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
1. how to connect to the data base(oracle) using shell script
Look at this post

2. how to retrieve data from data base
Post

3. how to process the data retrieved from database (i.e result set)
Post

4. how to update the data base in turn.
Post

Use the search to look through previous postings. They could help.

Vino
  #3 (permalink)  
Old 12-13-2007
sriku2005 sriku2005 is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 3
Hi,

Like in windows we click the pl/sql icon and we write our code or any sql query to execute.Like wise how to write in unix environemnt and execute .

Hope someone will help me out.

Thanks ...
  #4 (permalink)  
Old 12-13-2007
sriku2005 sriku2005 is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 3
Hi,

Suppose u hav written a script for scheduling job using "crontab",and u r doing ur job.
But according to requirement u need to change the execution of that job to some other time.What is the solution of that.

Actually in an interview someone asked me.I told ,i will change value for time in the crontab.

Waiting for ur reply...

Thanks ....
  #5 (permalink)  
Old 12-13-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by sriku2005 View Post
Like in windows we click the pl/sql icon and we write our code or any sql query to execute.Like wise how to write in unix environemnt and execute .
First set up the oracle environment variables, normally by . oraenv or similar.


Code:
$ORACLE_HOME/bin/sqlplus

  #6 (permalink)  
Old 07-16-2008
nandumishra nandumishra is offline
Registered User
  
 

Join Date: Jul 2007
Location: Bangalore
Posts: 9
connecting database from shell scripts

I want to know in details that what exactly we need to do to connect , retrieve and to work around the data.

I have seen several reply but no one makes me satisfied .
Please definitive.
  #7 (permalink)  
Old 03-16-2009
ultimatix ultimatix is offline
Registered User
  
 

Join Date: Oct 2008
Location: Mumbai
Posts: 55
Smile

sqlplus -s Username/Password@schemaname
Reply

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 04:25 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