Highlighted
Absent Member.
Absent Member.
443 views

[archive] Rollback / Read Nnext

[Migrated content. Thread originally posted on 14 January 2005]

I'm testing Acucobol 6.2.0.1 in a AIX 5.2L on a Oracle 9I database in the 64-bit mode using Acucobol 4GL, and everytime I do a "rollback"(Oracle one or with Acucobol transaction) followed by a "read next" the result it's an "ORA-01002 - Fetch out of sequence", does anyone knows why this appens and what is the soluction ?


Thx in advance.
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Rollback / Read Nnext

I do not use Acu4GL, so I can't explain what it is doing, but...

With most databases, a commit or rollback of a transaction closes all open cursors opened on that connection. So it sounds like Acu4GL was using a cursor and the rollback closed the cursor, then the simulated READ NEXT tried to get a row from the cursor and it can't because it is closed.

Just a guess though...
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Rollback / Read Nnext

Yeah ! You're right, but the same program with an Oracle 8.1.7,32 -bits doesn't have the same problem.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.