SET TRANSACTION...Read Consistency
Date: 1995/08/11
Message-ID: <DD5w8z.4KM_at_txnews.amd.com>#1/1
COMMIT;
SET TRANSACTION READ ONLY;
SELECT * FROM MOTHER_SHIP; /* Assume Mother_ship is HUGE */
SECTION 1:
From the scripts above, please describe the benefit of using READ ONLY vs. USE ROLLBACK SEGMENT RS_HUGE where RS_HUGE is a huge rollback segment.
SECTION 2:
On the same note, consider the following code;
COMMIT; <pl/sql code>
Let's assume that the pl/sql code includes code for inserting, updating, or deleting BUT for the purpose of this discussion, never satisfies the conditions to do so and only performs SELECTs. In terms of processing, these transactions should behave, with respect to Rollback Segment management, like any other SELECT script because the conditions to perform DMLs are never met and the need for facilitating read-consistency is still required. I would NEVER be successful if I utilized 'SET TRANSACTION READ ONLY' because the pl/sql code may, one day, perform a DML. The RDBMS will 'randomly'(?) assign this transaction to a Rollback segment and process the pl/sql.
-D Received on Fri Aug 11 1995 - 00:00:00 CEST