I am facing a problem while using sequence
in Oracle 11g Express Edition. It's neither accessible nor created.
I tried this query to get NEXTVAL
of sequence.
select SEQ_PATIENT.nextval from dual;
It displays error
ORA-02289: sequence does not exist
Then I tried to CREATE
the SYNONYM
for above sequence as below
create synonym SEQ_PATIENT
for scott.SEQ_PATIENT;
and it returns
ORA-00955: name is already used by an existing object
Why is it so?