Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use sequence in TDS?

tiplipJul 8 2013

I have multiple DBs in a multiple threaded application, meanwhile, it's on TDS, and I'd like to enalbe each DB to increment its key automatically, what question should I be careful?

1. create sequence db for each its caller DB?

2. wrap sequence db->get like this?

begain transaction;

key = sequence_db->get;

put data into main db with key;

commit transaction;

or abort transaction

can I rollback to retry if something exception happens?

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 5 2013
Added on Jul 8 2013
0 comments
603 views