If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > using a shell script to retrieve and insert data into databases

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-03, 10:53
bgame bgame is offline
Registered User
 
Join Date: Nov 2003
Posts: 23
using a shell script to retrieve and insert data into databases

Hello,

I am trying to write a script that retrieves data from a view in an Oracle database and then inserting that data into a Sybase database.

I need to run this script every 5 minutes and retrieve all new data. What is the best way to do this? I have been able to write scripts that have fetched one row, but not multiple rows.

Any hints?
Reply With Quote
  #2 (permalink)  
Old 12-08-03, 23:51
pooja pooja is offline
Registered User
 
Join Date: Dec 2002
Posts: 104
Re: using a shell script to retrieve and insert data into databases

Quote:
Originally posted by bgame
Hello,

I am trying to write a script that retrieves data from a view in an Oracle database and then inserting that data into a Sybase database.

I need to run this script every 5 minutes and retrieve all new data. What is the best way to do this? I have been able to write scripts that have fetched one row, but not multiple rows.

Any hints?
Hello,

I think u can take tha data out in a flat file and then with the use of format file BCP(bulk Copy) in the data into Sybase database and in unix u can make use of sleep function to introduce the wait period of 5 min.

Hope this will work for u,
--pooja
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On