Four commonly used Oracle database commands (PDB memory and CPU settings)

Memory management in PDB

show con_name
SHOW PARAMETER
Insert picture description here
sga_target ; PDB1 memory setting
ALTER SESSION SET CONTAINER=pdb1;
SHOW PARAMETER sga_target;
Insert picture description here
SHOW PARAMETER SGA_MIN_SIZE: PDB minimum SGA size
SHOW PARAMETER SGA_TARGET:
Insert picture description here
SETPDB maximum SGA size ALTER SYSTEM_SIZE 512
ALTER SYSTEM_SIZE ALTER SGA_TARGET: =1G;
Insert picture description here
set the memory of PDB2
ALTER SESSION SET CONTAINER=PDB2;
SHOW PARAMETER sga_target;
Insert picture description here
SHOW PARAMETER SGA_MIN_SIZE
SHOW PARAMETER SGA_TARGET
ALTER SYSTEM SET SGA_MIN_SIZE=256M;
ALTER SYSTEM SET sga_target=521M;
Insert picture description here
the value set in SGA_TARGET is greater than the value in the root container
Insert picture description here

PDB CPU resource management

PDB1 CPU
ALTER SESSION SET CONTAINER=pdb1;
SHOW PARAMETER resource_manager_plan
alter system set resource_manager_plan = default_plan;
Insert picture description here
Specify the number of CPUs that can be used in the Oracle database
ALTER SESSION SET CONTAINER=pdb1;
SHOW PARAMETER cpu_count
alter
Insert picture description here
Insert picture description here
SET cpu_count=1; ALTER S=ESSION SET pdb2;
SHOW PARAMETER resource_manager_plan
alter system set resource_manager_plan = default_plan;
SHOW PARAMETER cpu_count
alter system set cpu_count=2;
Insert picture description here
19C
CPU_MIN_COUNT Specifies the minimum number of CPUs required for a pluggable database (PDB) at any given time
. Decimal value from 0.1 to 0.95 , Where the decimal value is a multiple of 0.05 integer value, and the highest value of 1 is (including) CPU_COUNT
ALTER SESSION SET CONTAINER=cdb$root;
SHOW PARAMETER cpu_min_count
alter system set cpu_min_count = "0.5";
Insert picture description here
modify PDB1
CPU_MIN_COUNT: Specify the minimum number of CPUs required for a pluggable database (PDB) at any given time.
CPU_COUNT specifies the number of CPUs available for the Oracle database.
alter session set container = pdb1;
alter system set resource_manager_plan = default_plan;
alter system set cpu_min_count=1;
alter system set cpu_count=2;
SHOW PARAMETER cpu_min_count
Insert picture description here
modify PDB2
alter session set container = pdb2;
alter system set resource_manager_plan = default_plan;
alter system set cpu_min_count=2;
alter system set cpu_count=4;
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_39568073/article/details/114827964