UPDATE /*+ parallel(d) */ my_table d SET d.flag = 'A';
Table is partitioned by range with 38 partitions. So there is nice opportunity to run this DML in parallel from read to write. So I’ve set up the environment …
ALTER SESSION ENABLE PARALLEL DML;
Checked execution plan and …
Ok, how about forcing it.
ALTER SESSION FORCE PARALLEL DML PARALLEL 4;
Ok …. We’ll …. After 1-2 hours …. Long story short:
SELECT trigger_name, trigger_type from DBA_TRIGGERS WHERE table_name='MY_TABLE';
So remember folks, you should remember your data model ... and If you don’t …. have a proper look first (http://docs.oracle.com/cd/E11882_01/server.112/e25523/parallel003.htm#BEICCEJJ).
No comments:
Post a Comment