ORA-02283: unable to change startup serial number

Source: Internet
Author: User
If you want to update the startwith value of a sequence, you cannot directly change it. the following error occurs: SQLgt; altersequenceseq_xxrsstartwith1000; altersequ.

If you want to update the start with value of a sequence, you cannot directly change it. the following error occurs: SQLgt; alter sequence seq_xxrs start with 1000; alter sequ.

If you want to update the start with value of a sequence, you cannot directly change it. An error is returned:

SQL> alter sequence seq_xxrs start with 1000;

Alter sequence seq_xxrs start with 1000.

ORA-02283: unable to change startup serial number

So, how to add a sequence value? You can change the increment by using the following methods:

1. Change increment to a value that you want to add to the sequence.

Alter sequence seq_xxrs increment by 1000;

2. Execute a query sequence statement.

Select seq_xxrs.nextval from dual;

3. Change the increment back.

Alter sequence seq_xxrs increment by 1;

The value of the sequence increases.

Related reading:

GoldenGate performs two-way Oracle-Oracle replication without using a Data Pump

One-way Oracle-Oracle Replication Using the GoldenGate Data Pump

How to debug Oracle Data Pump (expdp/impdp)

Oracle Database Export data pump (EXPDP) file storage location

Export of Oracle 10g Data Pump Partition Table

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.