I want to call a sequence number from my Oracle Database 10g by using MyBatis, but I only get an error message like the following:
ORA-02289: Sequence is not av
I think you use nextval for inserting.Try following:
SELECT nextVal('mySeq') INSERT INTO person (personId,PersonName) VALUES (#{personId},#{personName})
Also instead of SELECT nextVal('mySeq') you can use this SELECT mySeq.nextVal from dual
SELECT nextVal('mySeq')
SELECT mySeq.nextVal from dual