Solved

Export SQL SERVER 2000 DATA into ORACLE 10g

Posted on 2008-06-20
4
855 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

624 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