Advertisement

Oracle >= 11g 支持并行更新与平行执行

阅读量:

在Oracle 11g及其后续版本中采用了数据内部并发机制来进行更新操作,并显著提升了执行效率

1.创建task:
exec DBMS_PARALLEL_EXECUTE.create_task (task_name => ‘my_task’);

  1. 查询创建task
    Retrieve all records from the table named user_parallel_execute_tasks;
    Obtain task details, including task name and current status, from the table where table_name is set to 'test';

执行生成任务名称操作由dbms_parallel_execute负责;--默认值为taskName

  1. 将一张大表分割为多个chunks的方法共有三种。
    (1)根据ROWID创建chunks
    (2)基于NUMBER_COL生成chunks
    (3)通过SQL实现chunk划分

下面是rowId 分段:
exec DBMS_PARALLEL_EXECUTE.create_chunks_by_rowid(task_name => ‘my_tas’,table_owner => ‘test’,table_name => ‘test’,b

全部评论 (0)

还没有任何评论哟~