当前位置:网站首页>Parallel technology of Oracle
Parallel technology of Oracle
2022-07-24 04:00:00 【Green wood and wind】
stay Oracle When dealing with big tasks , Generally, a serial process is used to execute , When the system resources are sufficient , Can handle
This big task is divided into several small tasks , Use several processes at the same time / Threads to process these small tasks in parallel , These concurrent processes
It is called parallel execution server (parallel executeion server), Coordinated by a concurrent coordinator Process to manage .
In general , Enabling concurrent processing must be done with sufficient system resources , otherwise , Multiple concurrent processes will take up a lot
System resources for , Causing other sessions to wait , Make the overall performance of the system decline .
Parallel technology is mainly applied in the following three aspects : Parallel queries , parallel DML, parallel DDL.
1. Parallel queries
Parallel queries can be used for query statements and sub statements , Not available on remotely referenced objects ( such as DBLINK).
The condition of parallel query is :
1)SQL There are Hint Tips , such as Parallel perhaps Parallel_index;
select /*+parallel(test1 4) */ * from test1;
2) stay SQL The retrieved object in the statement is retrieved after setting the parallel property :
ALTER TABLE test1 PARALLEL;
3) In the association query of multiple tables , At least one of the tables is full table scan or cross partition index range SCAN.
2. parallel DML
insert /*+ parallel(test1 4) */ into test1 select /*+ parallel(leo6
2) */ * from test1.sal_range;;
3. parallel DDL( parallel DDL operation , Such as creating tables or indexes )
Parallel operation of creating tables :
CREATE TABLE test2 parallel 4 AS SELECT * from test1;
ALTER TABLE test2 move partition part1 parallel 4;
Alter table test2 coalesce partition parallel 4;
Related operations can be done through trace File view its execution process .
Parallel execution method of index creation :
create index ind1 on test1(col1) parallel 4;
Alter index ind1 rebuild parallel 4;
Alter index index_name rebuild partition partition_name parallel 4;
Some considerations when using parallel technology :
1、RAC Database , It is recommended that parallel processes be local only instance start-up , In order to reduce cluster wait.
alter system set instance_groups='racdb1, racdb' scope=spfile
sid='racdb1';
alter system set parallel_instance_group='racdb1' scope=spfile
sid='racdb1';
2、 General setting parameters parallel_max_servers At most cpu Subtract one from the number , Not too large , Prevent different
Frequent concurrent processes lead to CPU Excessive resource consumption . stay OLTP The application of , It is not suitable to open parallel , It is easy to cause application hang
rise .
3、Oracle Do not open by default PDML, So I want to execute in parallel DML Statement must be enabled manually .
alter session enable dml parallel;
4、 if cpu Very few , There are not many benefits to using parallelism .
View parallel tasks , The commonly used views are v$px_session.
边栏推荐
- Native JS realizes the acquisition and operation of DOM
- Redis transaction learning
- 组合数(阶乘的质因子的个数,组合数的计算)
- Four characteristics of nb-iot
- What is the product and expressiveness of 113700 Xingrui? Come and have a look
- High precision phase shift (mcp41xx) program STM32F103, f407 are common, just change the pin (SPI software analog communication)
- QT ROS related operations (running Terminal instructions, publishing and subscribing to custom message topics or services, subscribing to images and displaying)
- Mongo from start to installation and problems encountered
- How to configure Ethernet network topology in canoe network based access mode
- Y74. Chapter IV Prometheus large factory monitoring system and practice -- Introduction to promql and monitoring pod resources (V)
猜你喜欢

The local picture cannot be displayed after the uniapp H5 is packaged

"Wei Lai Cup" 2022 Niuke summer multi school training camp 1 (summary of some topics)
![[development technology] spingboot database and Persistence technology, JPA, mongodb, redis](/img/fb/bb4a26699e5ec10c6881a4c95ac767.png)
[development technology] spingboot database and Persistence technology, JPA, mongodb, redis

训练赛《眼不见,心不烦,理不乱》题解

PAT甲级 1040 Longest Symmetric String

Solution to the problem of "out of sight, out of mind, out of order" in the training competition

MySQL message queue list structure

硬件知识3--IIC协议

Remember an online sql deadlock accident: how to avoid deadlock?

Matlab Simulink simulation of lithium iron phosphate battery
随机推荐
[cloud native] get to know kubernetes quickly
。 When calling, the incoming t refers to the Devi pass, which basically asks T2,
Algorithm interview high frequency problem solving guide [1]
An in-depth explanation of CAS is necessary for interview practice
Prosci Lag3 antibody: improve in vitro research and help cancer immunotherapy
How to configure Ethernet network topology in canoe network based access mode
Matlab sound signal processing frequency diagram signal filtering and playing sound
Mitsubishi Ethernet module Yuanchuang intelligent control yc8000-fx connection MCGS operation method
H7-tool serial port offline burning operation instructions, support TTL serial port, RS232 and RS485 (2022-06-30)
RTOS内功修炼记(十) | 深度解析RTOS内核上下文切换机制
How to protect JDBC applications from SQL injection
May be a little useful cold knowledge
Worthington lysozyme technical description and literature reference
Complex nested object pool (5) -- unified management and expansion of object pool
Matlab Fractional Order PID control
iPhone手机绑定163邮箱解决方案
Worthington mammalian lactate dehydrogenase study -- Characteristics and determination scheme
Leetcode (Sword finger offer) - 11. Minimum number of rotation array
Four characteristics of nb-iot
硬件知识3--IIC协议