ORA-02283: 無法變更啟動(dòng)序列號(hào)

如果想更新一個(gè)序列的start with值,是不可以直接更改的,會(huì)報(bào)錯(cuò):SQLgt; alter sequence seq_xxrs start with 1000;alter sequ

如果想更新一個(gè)序列的start with值,是不可以直接更改的,會(huì)報(bào)錯(cuò):

SQL> alter sequence seq_xxrs start with 1000;

alter sequence seq_xxrs start with 1000

ORA-02283: 無法變更啟動(dòng)序列號(hào)

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

1.更改increment為一個(gè)你想讓序列增加到的值

alter sequence seq_xxrs increment by 1000;

2.執(zhí)行一次查詢序列的語句

select seq_xxrs.nextval from dual;

3.然后將increment改回來

alter sequence seq_xxrs increment by 1;

此時(shí)的序列的值就增大了。

相關(guān)閱讀:

GoldenGate不使用數(shù)據(jù)泵完成Oracle-Oracle的雙向復(fù)制

使用GoldenGate的數(shù)據(jù)泵進(jìn)行Oracle-Oracle的單向復(fù)制

如何對(duì) Oracle 數(shù)據(jù)泵(expdp/impdp) 進(jìn)行 debug

Oracle 數(shù)據(jù)庫導(dǎo)出數(shù)據(jù)泵(EXPDP)文件存放的位置

Oracle 10g 數(shù)據(jù)泵分區(qū)表的導(dǎo)出

ORA-02283: 無法變更啟動(dòng)序列號(hào)

? 版權(quán)聲明
THE END
喜歡就支持一下吧
點(diǎn)贊12 分享