Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Copy data of table from sybase to oracle

Posted on 2006-06-26
6
Medium Priority
?
656 Views
Last Modified: 2009-07-29
Hi,
 I have a table in Sybase with data in it, also I have the same table in Oracle DB without data in it.
how do I copy the data of the Sybase table to the Oracle table

thanks.
0
Comment
Question by:madmare
  • 2
6 Comments
 
LVL 16

Expert Comment

by:MohanKNair
ID: 16983203
Oracle generic connectivity is a solution. Create an ODBC link to Sybase database. Using Oracle Heterogeneous services it is possible to link to Sybase schema from Oracle DB Link.

See this link for a worked out example for transferring data from Excel to Oracle via ODBC
http://asktom.oracle.com/pls/ask/f?p=4950:8:9636653191842517523::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:4406709207206#18830681837358
0
 
LVL 14

Expert Comment

by:sathyagiri
ID: 16996975
Another way would be to create a comma separated list of your data from sysbase into a text file.
Then use SQLLOADER to load into ORACLE.
0
 

Author Comment

by:madmare
ID: 16997780
sathyagiri , how do I create comma separated list of data from sysbase into a text file ?
0
 
LVL 14

Accepted Solution

by:
sathyagiri earned 2000 total points
ID: 16998074
You could write a sql command to do that, something like

select col1||','||col2||','||coln from <tname> ;

and spool the output into a text file.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
What we learned in Webroot's webinar on multi-vector protection.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

927 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