Home Privacy Policy Feedback Link to us Site Map

Oracle/PLSQL: ORA-01002 Error


Error:

ORA-01002: fetch out of sequence

Cause:

You tried to perform a FETCH at a time when it is not allowed.

Action:

The options to resolve this Oracle error are:
  1. This error may occur if you perform a FETCH on an active cursor after all records have been fetched.
  2. This error may also occur if you perform a FETCH on a SELECT FOR UPDATE after a COMMIT has been issued.

You may want to consider utilizing cursor attributes to avoid these situations.