how to export sybase 12.0 database tables into .csv file and import into oracle 10g database tables

Posted on 2008-11-18
Last Modified: 2012-05-05
I would like to export sybase 12.0 database tables into .csv  so that i can use oracle10g built in utility tool sql Loader to import into oracle workspace.Can you please tell me the process how should i go about this exporting and importing from sybase database into oracle 10g database.Any links,resources,ideas are highly appreciated.Thanks in advance.
Question by:gudii9
    LVL 19

    Accepted Solution

    The tool you use with Sybase is called BCP (Bulk CoPy).  It can either import or export (unlike SQL*Loader) data and can do it in native or character format.  You can even use a SQL query to write all of the BCP out commands you need.

    The real issue is how you are going to build your Oracle table and how you are going to deal with data type incompatibilities.  There was another recent question on this in EE something to the effect of looking for an open source tool to do all this automatically.  Let me see if I can find it....

    Well a similar question was answered with

    More general information on trying to convert from Sybase to Oracle with

    The short answer is that moving the data is easy.  It is all the other stuff you are going to run into that will make this job tough.

    BTW, if you are looking for a GUI tool to develop jobs to move data and do things like type conversions on the fly, I would look at Talend.  It is an open source ETL (Extraction, Transformation, and Loading) tool that can do this kind of thing on a repetitive basis.

    LVL 7

    Author Comment

    I am using Embarcadero Rapid SQL 7.5.5 to connect to sybase 12.0 database and i can see all the tables there.How to export those tables into .csv file.Can you please tell me the step by step procedure to export within RapidSql tool.
    LVL 19

    Assisted Solution

    I think I just answered this in another one of your questions.

    The answer is:
    1)  There is no easy way to do it in bulk in RapidSQL
    2)  RapidSQL will take a long time and will just fail on tables of significant size.

    BCP is THE tool for this job.  See the details in the other question.


    PS, I use RapidSQL all the time so it is not an issue of not knowing how to solve it with that tool.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Oracle 12c 10 85
    error I/O in copying in linux redhat 12 53
    Stored proc to create user table via file import 9 40
    Oracle Pivot 2 23
    Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
    Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
    This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now