COGNOiSe.com - The IBM Cognos Community

ETL, App Development and other tools => COGNOS DecisionStream/Data Manager => Topic started by: CharlesS on 28 Jun 2010 01:30:16 PM

Title: adding an Oracle Sequence to a fact build
Post by: CharlesS on 28 Jun 2010 01:30:16 PM
Hello,

I'm doing a striaght transfer from an MS Access table into an oracle table using a fact build. I need to add a new field which will be the nextval of a sequence in the destination Database.

I can't figure it out, any assistance would be great.

Charles
Title: Re: adding an Oracle Sequence to a fact build
Post by: MFGF on 29 Jun 2010 04:40:42 AM
Quote from: CharlesS on 28 Jun 2010 01:30:16 PMI need to add a new field which will be the nextval of a sequence in the destination Database.

Sorry - I'm not too clear on what you need to do here.  Can you elaborate on exactly what you need?  Is it a sequentially generated number, for example?

MF.
Title: Re: adding an Oracle Sequence to a fact build
Post by: jive on 06 Jul 2010 02:59:39 PM
Hi,

In the destination database , you will insert all the data from MS, put a trigger on the insertion in the target. Define a sequence, In that trigger select nextval to store the new sequence number. I think that process is only used for the trasfert of data for old to new database.
Title: Re: adding an Oracle Sequence to a fact build
Post by: MFGF on 08 Jul 2010 04:08:57 AM
If you just need a sequentially generated number for each row delivered, you could simply go to the properties of the Fact Table delivery in your DM build and check the 'Record Identity' checkbox.

MF.