Populating FACT table in ORACLE

I am having a torrid time trying to populate a FACT table in ORACLE.

I have so far tried two approaches -

1. Identified the change type for records - meaning I mark the record as inserts or updates based on the availability of the key in the FACT table. I used a conditional split and then used two OLE DB destination tasks to load the FACT table. But this failed as I was pretty much inserting on both the conditions (inserts and updates). So this attempt would count as a batch update process attempt.

2. Tried to also write a stored procedure in ORACLE destination database and then use that stored procedure to execute record by record using OLE DB Transformation task. But this did not fly as well due to the fact that SSIS could not understand the oracle SP and could not parse the information out.

Thank you

[823 byte] By [yosonu] at [2007-12-22]
# 1

HI, for 1st approach
"I used a conditional split and then used two OLE DB destination tasks to load the FACT table. But this failed as I was pretty much inserting on both the conditions (inserts and updates). So this attempt would count as a batch update process attempt."

You can use conditionnal split and send one path (condition) to OLE DB destination and the other one to an OLE DB command for the update. OLE DB destinations can only insert data, for updates and delete, use OLE DB command.

For approach #2, maybe http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=437005&SiteID=1 would help. using the {call...} syntax into the SQL command.

HTH,
Ccote

ccote at 2007-8-30 > top of Msdn Tech,SQL Server,SQL Server Integration Services...

SQL Server

Site Classified