当前位置:网站首页>Oracle: Practice of CDB restricting PDB resources
Oracle: Practice of CDB restricting PDB resources
2022-07-07 01:08:00 【Weisi xmws】
DBA Necessary certification for database management :ORACLE OCP 19C
Textbook download ORACLE OCP 19C Official electronic textbook
Oracle12.2 New characteristics , In the multi tenant database ,Resource Manager Resources can be managed at two levels .
CDB Grade Resource Plan
Resource Manager Can manage contention systems and CDB Multiple resources PDB Workload for . You can specify how to PDB Allocate resources , You can also limit specific PDB Resource utilization of .
PDB Grade Resource Plan
Resource Manager Can manage each PDB Workload in , It's similar to not CDB. namely , Resources are allocated in two steps . The resource manager first assigns a portion of the system resources to each in the container database PDB. then , In specific PDB in , It will get part of the system resources ( Previous step ) Assigned to connect to PDB Every session of .
from 12.1 Start ,CDB level resource plans You can use . Use CDB level resource plans, We can limit certain PDB The use of resources , for example :
(1) Limit specific PDB Of CPU Usage rate .
(2) Limit specific PDB Parallel execution that can be used Server The number of .
(3) Limit specific PDB Memory usage .
(4) Restrict connections to a single PDB Resource usage of different sessions .
(5) Limit specific PDB Generated I/O.
For databases with thousands of pluggable (PDB) Multi tenant container database (CDB), by CDB level resource plan Configure memory and others Resource Manager Indicators will become very troublesome .
12.2 Introduced in Performance Profiles and Mandatory PDB Profiles It can be a group PDB Rather than a single PDB To configure CDB resource plan indicators . You can use similar resource requirements PDB Divided into one group , And create... For them performance profile.CDB resource plan The indicators are aimed at these performance profile( Or this group PDB) Created . have access to DB_PERFORMANCE_PROFILE Initialization parameters specify each PDB Of performance profile.
have access to CREATE_CDB_PROFILE_DIRECTIVE The process is PDB performance profiles Set up shares,utilization_limit and parallel_server_limit Equal attribute .
Use PDB Performance Profile establish CDB Resource Plan Steps for :
ad locum , I assume that a person named newcdb Of CDB establish CDB resource plan Scene . The plan includes a project called gold,silver,bronze Each PDB performance profiles Indicators of . And then put these PDB performance profiles Assigned to CDB Medium PDB Or inserted in the future PDB.
1) Use CREATE_PENDING_AREA Process creation pending area
cdb perform
exec DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA();
Use CREATE_CDB_PLAN Process creation CDB resource plan
BEGIN
DBMS_RESOURCE_MANAGER.CREATE_CDB_PLAN(
plan => 'newcdb_plan',
comment => 'CDB resource plan for newcdb');
END;
/
Use CREATE_CDB_PROFILE_DIRECTIVE The process is PDB performance profiles Create indicators
<PDB profile Of plan indicators ,gold>
BEGIN
DBMS_RESOURCE_MANAGER.CREATE_CDB_PROFILE_DIRECTIVE(
plan => 'newcdb_plan',
profile => 'gold',
shares => 3,
utilization_limit => 100,
parallel_server_limit => 100);
END;
/
<PDB profile Of plan indicators ,silver>
BEGIN
DBMS_RESOURCE_MANAGER.CREATE_CDB_PROFILE_DIRECTIVE(
plan => 'newcdb_plan',
profile => 'silver',
shares => 2,
utilization_limit => 40,
parallel_server_limit => 40);
END;
/
<PDB profile Of plan indicators , bronze>
BEGIN
DBMS_RESOURCE_MANAGER.CREATE_CDB_PROFILE_DIRECTIVE(
plan => 'newcdb_plan',
profile => 'bronze',
shares => 1,
utilization_limit => 20,
parallel_server_limit => 20);
END;
/
2) Use VALIDATE_PENDING_AREA Process validation pending area
exec DBMS_RESOURCE_MANAGER.VALIDATE_PENDING_AREA();
3) Use SUBMIT_PENDING_AREA Process submission pending area
exec DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA();
4) Enable CDB Resource Plan
cdb perform
ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = 'newcdb_plan' scope=both;
5) stay PDB It is specified in Performance Profiles
alter session set container=PDB1;
alter system set db_performance_profile=‘gold’ scope=spfile;
alter session set container=PDB2;
alter system set db_performance_profile=‘silver’ scope=spfile;
alter session set container=PDB3;
alter system set db_performance_profile=‘bronze’ scope=spfile;
restart PDB
conn /as sysdba
alter pluggable database all close immediate;
alter pluggable database all open;
see PDB Performance Profiles:
alter session set container=CDB$ROOT;
select inst_id, name, con_id, value, ispdb_modifiable from gv$system_parameter2 where name = 'db_performance_profile' order by 1,2,3,4;
To see the difference PDB Details of indicators :
alter session set container=CDB$ROOT;
select p.name, shares, utilization_limit, profile from v$rsrc_plan r, v$pdbs p where r.con_id = p.con_id
边栏推荐
- Configuring OSPF basic functions for Huawei devices
- Building a dream in the digital era, the Xi'an station of the city chain science and Technology Strategy Summit ended smoothly
- Levels - UE5中的暴雨效果
- Meet the level 3 requirements of ISO 2.0 with the level B construction standard of computer room | hybrid cloud infrastructure
- 通过串口实现printf函数,中断实现串口数据接收
- 详解OpenCV的矩阵规范化函数normalize()【范围化矩阵的范数或值范围(归一化处理)】,并附NORM_MINMAX情况下的示例代码
- BFS realizes breadth first traversal of adjacency matrix (with examples)
- mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
- "Exquisite store manager" youth entrepreneurship incubation camp - the first phase of Shunde market has been successfully completed!
- Niuke cold training camp 6B (Freund has no green name level)
猜你喜欢
Configuring the stub area of OSPF for Huawei devices
批量获取中国所有行政区域经边界纬度坐标(到县区级别)
Periodic flash screen failure of Dell notebook
Dell Notebook Periodic Flash Screen Fault
[Niuke] [noip2015] jumping stone
windows安装mysql8(5分钟)
Return to blowing marshland -- travel notes of zhailidong, founder of duanzhitang
[hfctf2020]babyupload session parsing engine
【批處理DOS-CMD命令-匯總和小結】-字符串搜索、查找、篩選命令(find、findstr),Find和findstr的區別和辨析
pyflink的安装和测试
随机推荐
Installation of torch and torch vision in pytorch
How do novices get started and learn PostgreSQL?
Rainstorm effect in levels - ue5
动态规划思想《从入门到放弃》
Explain in detail the matrix normalization function normalize() of OpenCV [norm or value range of the scoped matrix (normalization)], and attach norm_ Example code in the case of minmax
Mongodb client operation (mongorepository)
[C language] dynamic address book
[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
Let's talk about 15 data source websites I often use
Set (generic & list & Set & custom sort)
《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
Deep learning framework TF installation
Chenglian premium products has completed the first step to enter the international capital market by taking shares in halber international
pyflink的安装和测试
C# 计算农历日期方法 2022
from . cv2 import * ImportError: libGL. so. 1: cannot open shared object file: No such file or direc
Address information parsing in one line of code
View remote test data and records anytime, anywhere -- ipehub2 and ipemotion app
Come on, don't spread it out. Fashion cloud secretly takes you to collect "cloud" wool, and then secretly builds a personal website to be the king of scrolls, hehe
C Primer Plus Chapter 14 (structure and other data forms)