We have N tables on Oracle server and we wanted to load all those tables from Oracle to SQL server. We are creating dynamic SSIS packages for same which will take the Oracle ServerName, DB name, schema name, tables list etc. and will load all these tables to SQL server. We have added Link Server on SQL Server (SSMS) for Oracle.
But we are not getting the efficient way to do the same. How we can achieve this in a single SSIS package. How we can handle metadata of Oracle tables and creating the same on SQL server ? This SSIS package should create tables dynamically on SQL server as well , for this we tried Temp table in SSIS package.
Since you have to do it with a large number of tables, I'd write a pl/sql procedure something, built around something like this:
declare v_sql varchar2(1024);
or, if you want to look it over before launching, use sql to write sql. In sqlplus:
then check the spooled sql file for any issues before running.
All code above is off the top of my head. There may be minor syntax issues.