안녕하세요
Insert시에 enq: TM - contention 이벤트가 발생하여 문의드립니다.
해당 테이블은 index가 없으며
일자별로 파티션되어 있습니다.
그리고 여러개의 session에서 일자별로 insert합니다.
append hint를 사용하지 않고 insert를 하는데도 enq: TM - contention가 대량발생합니다.
다수의 session에서 동일한 테이블에 insert시에 enq: TM - contention를 회피할수 있는 방법은 없는지요
-- tabA, tabB는 모두 dj_date 컬럼을 중심으로 일파티션 되어 있습니다.
inset /*+ parallel(4) */ into tabA select /*+ parallel(4) */ * from tabB where dj_date='20160601';
inset /*+ parallel(4) */ into tabA select /*+ parallel(4) */ * from tabB where dj_date='20160602';
inset /*+ parallel(4) */ into tabA select /*+ parallel(4) */ * from tabB where dj_date='20160603';
inset /*+ parallel(4) */ into tabA select /*+ parallel(4) */ * from tabB where dj_date='20160604';
inset /*+ parallel(4) */ into tabA select /*+ parallel(4) */ * from tabB where dj_date='20160605';
inset /*+ parallel(4) */ into tabA select /*+ parallel(4) */ * from tabB where dj_date='20160606';
--
inset /*+ parallel(4) */ into tabA select /*+ parallel(4) */ * from tabB where dj_date='20160630';