Oracle Solution for Error ora-08002

Solution for Oracle Error ORA-08002

ORA-08002: sequence string.CURRVAL is not yet defined in this session

What triggered the Error:

sequence CURRVAL has been selected before sequence NEXTVAL

What should we do to fix it:

select NEXTVAL from the sequence before selecting CURRVAL