Solved

Export one table from sqlserver to oracle 10g

Posted on 2009-04-07
14
719 Views
Last Modified: 2012-05-06
I have to export just one table from a Sql server database to Oracle.

I heard that it can be done using ODBC driver.

Can some one able to give me the steps to create.

0
Comment
Question by:ballioballi
[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
  • 5
  • 3
  • 3
  • +1
14 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 24088638
I would attempty this:
* if you have the oracle client installed on the sql server box, you can create a linked server in sql server, pointing to the oracle database
* create the table to be imported in oracle as needed.
* run a query like this in sql server
INSERT INTO OPENQUERY(your_linked_server, 'SELECT col1, col2, col3 ... FROM table_owner.table_name WHERE 1= 0 ' )
 SELECT field1, field2, field3 ...
   FROM your_sql_table
  WHERE ..

Open in new window

0
 
LVL 31

Expert Comment

by:RiteshShah
ID: 24088978
here is a little help to create linked server. example show linked server of Access but you can use same thing, change provider and credentials.

http://www.sqlhub.com/2009/03/linked-server-in-sql-server-2005-from.html
0
 

Author Comment

by:ballioballi
ID: 24088986
No, I don't have any oracle client on the sql server.

0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 31

Expert Comment

by:RiteshShah
ID: 24089005
if Oracle server is in your network, even you can create linked server and can use the same query explained in example link
0
 
LVL 57

Assisted Solution

by:Raja Jegan R
Raja Jegan R earned 350 total points
ID: 24089187
If you are using SQL Server 2000, then You can export table in Enterprise Manager using Import Export Wizard from SQL Server to Oracle easily.

If you are using SQL Server 2004, then you can Export Data by Right clicking Database in SSMS and then Choose Tasks --> Export Data.

Both of the above options opens a wizard which will help you in defining the Source and Destination databases along with tables.

Its done.
0
 

Author Comment

by:ballioballi
ID: 24089212
I like to go for the ODBC driver instead.
Appreciate if anyone used it?


0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 24089224
when I wrote "oracle client", that was referring to a "minimal install" with the ODBC part and the oracle tns client part.
0
 

Author Comment

by:ballioballi
ID: 24089321
That is an old production sql server box and No install is permitted.
I can do anything on the Oracle Box instead.
0
 
LVL 57

Assisted Solution

by:Raja Jegan R
Raja Jegan R earned 350 total points
ID: 24089355
I hope you can use the Import Export wizard from SQL Server.
Try it out.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 24089370
you could create an intermediate sql server, with a linked server to both the mssql and the oracle database...

on oracle, you could investigate on creating a heterogeneous connection, but I never yet adventured me into that (although I would like to do that once :)

the ms access can also work, if the table(s) not toooooo large.
0
 

Author Comment

by:ballioballi
ID: 24089622
The table is small table.
rrjegan17,

Export import wizard needs to use ODBC .. that is what I am asking to set it up.

Thanks,

0
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24089813
Can you kindly install Oracle ODBC driver in your windows machine from the link below:

http://www.oracle.com/technology/software/tech/windows/odbc/index.html

Once you install that you will find this ODBC driver in your Import / Export Wizard.

Hope this helps.
0
 

Accepted Solution

by:
ballioballi earned 0 total points
ID: 24210969
Thanks to all and we can close this question
0

Featured Post

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

615 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