trying to move data from mysql to oracle in ssis package

Sstyer 1 Reputation point
2022-01-25T13:09:19.657+00:00

I need to take data from a mysql query and insert it into a table on an oracle database in an ssis package
The oracle table has a sequence for each row.
most of the other columns would come from the mysql query

insert into misbatch.batchload_staging bs (batchload_id, file_id, creation_date, v1, v2,v3, ...)
values( misbatch.batchload_staging_seq.nextval, <file id>, sysdate, ..... );

I have experience with ssis packages, but can't seem to figure out how to get the need process to do what I'm wanting it to.

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 Reputation points
    2022-01-26T03:08:34.023+00:00

    Hi @Sstyer ,

    You may use Lookup Transformation to meet your need.

    Note that the reference dataset can be a cache file, an existing table or view, a new table, or the result of an SQL query. The Lookup transformation uses either an OLE DB connection manager or a Cache connection manager to connect to the reference dataset.

    I'd suggest that you may import the reference table to SQL Server database via SSIS first.

    lookup-transformation

    Also, here is a same thread you may take a reference.

    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/9e99162b-44a4-45e7-9f8c-e85b2e65eb16/updateinsert-records-from-oracle-to-mysql?forum=sqlintegrationservices

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.