Sequence Doesn't Exist Ora-02289
I have a problem getting my SEQUENCE. I have created a sequence as administrator and have grant select and alter privileges to the other user. CREATE SEQUENCE 'OWNER'.'TOT_SEQ'
Solution 1:
You will either have to fully qualify your sequence via:
SELECT <owner>.<sequencename>.nextval FROM dual;
Or create a public synonym for it:
CREATE PUBLIC SYNONYM TOT_SEQ for OWNER.TOT_SEQ;
SELECT TOT_SEQ.nexval FROM DUAL;
Solution 2:
Make sure that you create the sequence in uppercase, even if you use lower case in trigger / select statement.
Solution 3:
Have you tried using the fully qualified name in your code?
select <owner>.<SEQUNCE_name>.nextval from dual;
If you already have, can you edit the question to post the output of the following commands. The "OWNER", "USER" in your examples are a bit confusing.
select sequence, owner from all_sequences where sequence_name = 'TOT_SEQ'; select grantor, table_name, privilege from all_tab_privs where sequence_name = 'TOT_SEQ';
Post a Comment for "Sequence Doesn't Exist Ora-02289"