如果想更新一個序列的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.執(zhí)行一次查詢序列的語句
select seq_xxrs.nextval from dual;
3.然后將increment改回來
alter sequence seq_xxrs increment by 1;
此時的序列的值就增大了。
相關閱讀:
GoldenGate不使用數(shù)據(jù)泵完成Oracle-Oracle的雙向復制
使用GoldenGate的數(shù)據(jù)泵進行Oracle-Oracle的單向復制
如何對 Oracle 數(shù)據(jù)泵(expdp/impdp) 進行 debug
Oracle 數(shù)據(jù)庫導出數(shù)據(jù)泵(EXPDP)文件存放的位置
Oracle 10g 數(shù)據(jù)泵分區(qū)表的導出