Oracle sequence Mechanism

Source: Internet
Author: User

Today, I am going to process a piece of data and discover a problem in the Oracle sequence. I am prepared to clarify this problem in the spirit of discovering, solving, and asking the root question.

 

Problems and phenomena:

For sequences, seq is obtained every time according to our understanding. nextval, Which is auto-incrementing, must be larger than the first database, but one of my log tables has the following symptoms:

 

LOGID CREATETIME

1 73000915:41:14

2 729988 15:37:53

3 729978 15:34:53

4 72996115:43:22

5 729958 15:33:52

6 729951 15:31:38

7 729944 15:11:00

8 729941 15:10:30

Note the following red content to check whether the time and sequence size are misplaced. Among them, the time is correct and the execution sequence is the same as that of me.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.