Home  >  Article  >  Database  >  ORA-02283: 无法变更启动序列号

ORA-02283: 无法变更启动序列号

WBOY
WBOYOriginal
2016-06-10 15:12:141903browse

如果想更新一个序列的start with值,是不可以直接更改的,会报错:SQLgt; alter sequence seq_xxrs start with 1000;alter sequ

如果想更新一个序列的start with值,是不可以直接更改的,会报错:

SQL> alter sequence seq_xxrs start with 1000;

alter sequence seq_xxrs start with 1000

ORA-02283: 无法变更启动序列号

那么,,如何增加一个序列的值呢?可以采用更改increment by的方式更改:

1.更改increment为一个你想让序列增加到的值

alter sequence seq_xxrs increment by 1000;

2.执行一次查询序列的语句

select seq_xxrs.nextval from dual;

3.然后将increment改回来

alter sequence seq_xxrs increment by 1;

此时的序列的值就增大了。

相关阅读:

GoldenGate不使用数据泵完成Oracle-Oracle的双向复制

使用GoldenGate的数据泵进行Oracle-Oracle的单向复制

如何对 Oracle 数据泵(expdp/impdp) 进行 debug

Oracle 数据库导出数据泵(EXPDP)文件存放的位置

Oracle 10g 数据泵分区表的导出

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn