-- you cannot use sequences directly from PL/SQL.
-- Oracle prohibits this type of usage:
i := sq_sequence.NEXTVAL; - won't work!
-- but you can use embedded SQL statements to
-- obtain sequence values:
select sq_sequence.NEXTVAL into :i from dual; -- works