2026-03-12 20:23:15
This commit is contained in:
18
tpt/demos/plsql_commit.sql
Normal file
18
tpt/demos/plsql_commit.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
|
||||
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
|
||||
|
||||
DROP TABLE t_commit;
|
||||
CREATE TABLE t_commit AS SELECT 1 a FROM dual;
|
||||
|
||||
-- experiment with
|
||||
ALTER SESSION SET COMMIT_LOGGING = IMMEDIATE;
|
||||
ALTER SESSION SET COMMIT_WRITE = WAIT;
|
||||
|
||||
BEGIN
|
||||
FOR i IN 1..1000000 LOOP
|
||||
UPDATE t_commit SET a=a+1;
|
||||
COMMIT;
|
||||
END LOOP;
|
||||
END;
|
||||
/
|
||||
|
||||
Reference in New Issue
Block a user