Page 1 of 1

DB Sequence and State file

Posted: Wed Apr 27, 2011 8:18 am
by jagadam
Hi Everyone,

We are implementing the dimensional modelling and we have debate going on to use DB sequence (Oracle) to generate surrogate key or use the state file.

Could you guys please let me know on what factors we have to consider.

Thanks in Advance

Re: DB Sequence and State file

Posted: Wed Apr 27, 2011 10:44 am
by soumya5891
According to me it is better to use a state file for surrogate key generation.Because for DB sequence each time it hits the database.

Posted: Wed Apr 27, 2011 11:00 am
by DSguru2B
If your process is the only one that will ever load the table in question then state file should be ok. If there is a chance that other applications may start entering data, then a db sequence object if preferable.

Posted: Wed Apr 27, 2011 1:44 pm
by gateleys
DSguru2B wrote:If your process is the only one that will ever load the table in question then state file should be ok. If there is a chance that other applications may start entering data, then a db sequence object ...
I agree with DSguru2B. We use db sequence only for those that require inserts from various regions.

Posted: Wed Apr 27, 2011 3:30 pm
by jagadam
Thanks for your replys.