Sequence values in SQL statements can be referred as follows:
You must qualify CURRVAL and NEXTVAL with the name of the sequence, for example:
Example:
select mysequence.nextval;
insert into mytable values (mysequence.nextval, 'aaa');
TOCIndex