Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
How to increase database Sequence via Agent in Cloud? — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to increase database Sequence via Agent in Cloud?

Accepted answer
19
Views
2
Comments
edited Apr 29, 2021 1:30AM in Transportation Management 2 comments

Content

Hi all,

Certain tables are designed with a sequence as Primary Key, e.g. In table GTM_TR_PROD_CLASSIFICATION, GTM_TR_PROD_CLASSIFICATION_GID is the primary key and is apparently a sequence. 

In certain use cases, we have to use Direct SQL Update in an agent to insert records in this table. But if we do that, the sequence has to keep up with the latest value. Any advice to reset the sequence to latest value?

Of course we can use a string like "A0001" to have our own set of GTM_TR_PROD_CLASSIFICATION_GID. But I am not sure if that will break any logic within system.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!