Re: sequenceS REPLICATION
- From: "Yechiel Adar" <adar76@xxxxxxxxxxxx>
- To: <oracle-l@xxxxxxxxxxxxx>
- Date: Mon, 11 Oct 2004 21:25:00 +0200
Let say you want you sequence to be 1000, so you do it by alter sequence:
spool inc_seq.sql
select 'alter sequence myseq increment by '
|| 1000 - currval.myseq || ';' from dual;
select 'select nextval.myseq from dual;' from dual;
select 'alter sequence myseq increment by 1;' from dual;
spool off
@inc_seq.sql
Do not forget all the set option off you need to get clean script in the sql
file. Also do some testing because I am sure there should be -1 somewhere in
the first alter sequence.
you can also drop the sequence and simply build a new one with MINVALUE
1000.
Yechiel Adar
Mehish
--
http://www.freelists.org/webpage/oracle-l
- References:
- sequenceS REPLICATION
- From: Seema Singh
Other related posts:
- » sequenceS REPLICATION
- » Re: sequenceS REPLICATION
- » Re: sequenceS REPLICATION
- » Re: sequenceS REPLICATION
- sequenceS REPLICATION
- From: Seema Singh