+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Note: here we are trying to insert values in a table from another user Which has access.
02289. 00000 - "sequence does not exist"
*Cause: The specified sequence does not exist, or the user does
not have the required privilege to perform this operation.
*Action: Make sure the sequence name is correct, and that you have
the right to perform the desired operation on this sequence.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
generating query is not having SCHEMA NAME suffixed before the SEQUENCE NAME. Please see below example’s for easy understanding.
Please see painted values in the below queries.
SQL> show user;
USER is "RKPYTE"
FAILING SQL:
SQL> insert into RKPYTE.TRANSACTION_IMPORT(TRANSACTION_IMPORT_ID,IMPORT_RUN_CODE,SOURCE_TRANSACTION_ID,DELIVERY_METHOD_CODE,TRANSACTION_DATE,PATRON_ACCOUNT_ID) values(TRANSACTION_IMPORT_ID_SEQ.nextval,'DEC31','6788','MAIL',sysdate,'164063');
insert into RKPYTE.TRANSACTION_IMPORT(TRANSACTION_IMPORT_ID,IMPORT_RUN_CODE,SOURCE_TRANSACTION_ID,DELIVERY_METHOD_CODE,TRANSACTION_DATE,PATRON_ACCOUNT_ID) values(TRANSACTION_IMPORT_ID_SEQ.nextval,'DEC31','6788','MAIL',sysdate,'164063')
*
ERROR at line 1:
ORA-02289: sequence does not exist
RIGHT SQL:
SQL> insert into RKPYTE.TRANSACTION_IMPORT(TRANSACTION_IMPORT_ID,IMPORT_RUN_CODE,SOURCE_TRANSACTION_ID,DELIVERY_METHOD_CODE,TRANSACTION_DATE,PATRON_ACCOUNT_ID) values(RKPYTE.TRANSACTION_IMPORT_ID_SEQ.nextval,'DEC31','6788','MAIL',sysdate,'164063');
1 row created.
Thank You!!
Comments
Post a Comment