SSIS or MSSQL Calling an Oracle Package Procedure and Select


prefix: don't have control on oracle side change or add code!

need connect oracle db, call init procedure (format: package_name.procedure_name), run select statement.
these 2 actions have done in sequence within same oracle session .

tips on how either in siss or directly on mssql db?

regards

jacco

can describe need results select statement?

in ssis, use execute sql task 2 commands imagine, , connect either oledb source or ado.net source oracle. provider used to connect oracle partially dictates if procedures can run or not. procedure return results, or prep work within database? execute sql task can handle results sets , put them variables, won't insert server/destination.

there property retainsameconnection = true on connection manager, means when 1 connection open, connection remains open , reused later component, , stays open until end of package.  scenario described @ http://blogs.conchango.com/jamiethomson/archive/2005/08/20/2048.aspx

it helpful in kind of sample reused same connection:
1. control flow - execute sql task against oracle connection (connection 1) run procedure
2. succeess precedence constraint next step (don't run else in parallel against connection)
3. dataflow task containing source against same kind of connection manager connection 1. run select there.

the theory that the connection used first connection opened in 3 technically same previous connection step 1. works, test make sure same connection.

even retainsameconnection spin many open connections in pool of connection parallel actions particular connection manager. in above example if had two sources in dataflow same connection manager, 1 of 2 reused connection, , 1 brand new connection, , both connections stay open life of package. reassignment of open connection non deterministic, can't sure 1 of 2 in future if need use same connection later.

hope helps, thx, jason

didn't enough here? submit case microsoft customer support team deeper investigation - http://support.microsoft.com/select/default.aspx?target=assistance


SQL Server  >  SQL Server Integration Services



Comments

Popular posts from this blog

Reindexing

Users List

List of charts