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" MINVALUE 1000 MAXVALUE 1000000000 INCREMENT BY 1 START WITH 1000 CACHE 20 NOORDER NOCYCLE ;
grant select,ALTER on TOT_SEQ to user;
select sequence_name from all_sequences;
select <SEQUNCE_name>.nextval from dual;
You will either have to fully qualify your sequence via:
SELECT <owner>.<sequence name>.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;