Solved

Export SQL SERVER 2000 DATA into ORACLE 10g

Posted on 2008-06-20
4
852 Views
Last Modified: 2008-08-06
a.I want to export SQL SERVER 2000 DATA into ORACLE 10g in every hour.
b.I want to import ORACLE DATA into SQL SERVER 2000 after this.
0
Comment
Question by:furqan_trakker
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 13

Accepted Solution

by:
MikeWalsh earned 250 total points
ID: 21830110
There are a few ways to skin this cat. A couple suggestions:

1.) Create a DTS Package with a connection to Oracle. If you get to Books Online you can look up DTS and see some samples and walkthroughs/notes on it. You would create a connection to your SQL Server database and then create a connection to your Oracle Database (You can connect in various ways. If you have the oracle client tools on the server you can use the MS ODBC for Oracle or OLE DB for Oracle. You can also use the oracle provider). You can then move the data over with a transform data task if it is a simple move of data, if you need to execute a query to get the data (i.e. you aren't bringing data straight over from table to table, you can do that also). Benefit of DTS is it is graphical, scheduleable and relatively easy to get up to speed on through playing around with it.

2.) Create a linked server to Oracle from SQL Server (You can do this through enterprise manager or Query Analyzer) and write a query to do your work (you can use openquery() which will basically send a query to the Oracle server, or you can access the Oracle tables directly using the linked server naming convention). Benefit here is you are writing the SQL and in a bit more control if you are a query writing type. You can look up Linked Server/Openquery in books online.

There are other options (like DTS to a flat file then use an Oracle tool like SQL Loader/Data Pump to bring the data into Oracle and out of Oracle and use DTS/Import/Export table wizard to bring data into SQL and then use query tools to move the data where you need it.
0
 
LVL 22

Assisted Solution

by:DrSQL
DrSQL earned 250 total points
ID: 21831414
furqan_trakker,
    Can you log onto your sqlserver database from Oracle?  It requires an entry in your Oracle TNSNAMES.ORA and an odbc configuration.  If so, you can use Oracle snapshots to do this.  You would create a snapshot on your Oracle database that would hourly grab the data.  As part of what Oracle calls a REFRESH GROUP, you would have another, dependent, snapshot that copies everything that Oracle got to a table within SQLSERVER (if you really want that to be hourly).  If you meant you want to dump it in nightly, then it would be part of a different refresh group and you'd just have it refresh once per day at an appointed time.

Here's links to Oracle snapshots(aka materialized views): http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/integrat.htm#sthref3360
http://download.oracle.com/docs/cd/B19306_01/server.102/b14226/toc.htm

Here's links to connecting Oracle to SQLSERVER via odbc: http://www.orafaq.com/wiki/ODBC_FAQ

Good luck!
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question