Have queries on Natural/Oracle under Unix platform. Curious if ET (END TRANSACTION) is really needed for Oracle database?
I wrote a simple code:
DEFINE DATA
LOCAL
1 EMP VIEW OF EMPLOYEE
2 EMP_ID
END-DEFINE
SELECT * INTO VIEW EMP
FROM EMPLOYEE
WHERE ACCOUNT_ID = 1234567890
DISPLAY EMP
*
MOVE 2222222222 TO EMP_ID
UPDATE
END-SELECT
SELECT * INTO VIEW EMP
FROM EMPLOYEE
WHERE ACCOUNT_ID = 1234567890
DISPLAY EMP
END-SELECT
*
END
Output:
In 1st DISPLAY I got EMP_ID as 1111111111 (the initial database value)
In 2nd DISPLAY I received EMP_ID = 2222222222
Means the value was updated in Oracle database without ET (I queried dabase as well thru other software and got the updated value).
Can anyone throw some light on this as curious on why our past programmers have coded ET logic in every UPDATE? And how will it cost as far as CPU usage is concern.
Also,
Since there is no ADABAS, no TT will come in picture so how does HOLD queue time and record limit etc comes in picture for this case? or how does UPDATE works for Oracle?
Hi Ats,
I don’t have an (ancient;-) 511 available, and neither the documentation…
but in your screenshot above there is a "Database Management System "
menu item - have you explored that ?
Finn
PS Current Natural version is 6.3.7 - considering an upgrade ?!