SlideShare a Scribd company logo
1 of 21
ORACLE DATABASE 12C
RESOURCE MANAGER
(Reference- Oracle documentation)
Check detailed contents on
http://dbaboss.com/ 1
Resource Manager with Container Databases (CDB) and
Pluggable Databases (PDB) in Oracle Database 12c Release 1
(12.1)
• Regulator for resource contention and cap resource usage using
Resource Manager
• Resource Manager supports all types of alliances
• –Schema consolidation
• –Server consolidation
• – IN Pluggable Databases
• • Resource Manager manages
• –CPU
• –Exadata disk I/O
• –Parallel execution
• –Runaway queries
• –And more…
Check detailed contents on
http://dbaboss.com/
2
• In a non-CDB, you can use Resource Manager to accomplish
numerous workloads that are
• competing for system and database resources. However, in a CDB,
you can have numerous workloads within multiple PDBs contending
for system and CDB resources.
• In a CDB, Resource Manager can accomplish resources on two basic
levels:
• • CDB level: Resource Manager can accomplish the workloads for
multiple PDBs that are competing for system and CDB resources.
You can stipulate how resources are allocated to PDBs, and you can
limit the resource utilization of specific PDBs.
• • PDB level: Resource Manager can manage the workloads within
each PDB.Resource Manager allocates the resources in two steps:
• 1. It allocates a slice of the system’s resources to each PDB.
• 2. In a specific PDB, it allocates a portion of system resources gained
in Step 1 to each session connected to the PDB.
Check detailed contents on
http://dbaboss.com/
3
• In a CDB with numerous PDBs, some PDBs characteristically are
more significant than others.
• Resource Manager enables you to rank the resource (CPU and I/O,
as well as distribution of parallel execution slaves in the context of
parallel statement queuing) practice of specific PDBs.
• This is done by granting different PDBs different shares of the
system resources so that more resources are allocated to the more
important PDBs.
• In addition, limits can be used to confine the system resource usage
of specific PDBs.
• When a PDB is plugged in to a CDB and no instruction is defined for
it, the PDB uses the default
• instruction for PDBs. As the CDB DBA, you can regulates default and
you can also create specific directive for each new PDB.
• Note: No consumer groups nor shares can be defined for the root
container.
Check detailed contents on
http://dbaboss.com/
4
• In a multitenant environment Resource Manager performs two separate tasks.
At the CDB level it controls the resources allocated to each PDB, allowing you
to priorities some PDBs over others. At the PDB level it controls the resources
allocated to each session connected to the PDB, allowing you to priorities
some sessions over others, just as it does in pre-12c instances
• What Explanations Does Resource Manager Provide for a
CDB?
• By default, the whole system may have the following
problems:
• - Unfitting distribution of resources among PDBs; All PDBs
have same level of priority.
• - Unfitting distribution of resources within a single PDB; All
workloads within a PDB have same level of priority.
• - Lack of resource practice data for PDBs.
• Oracle Resource Manager helps to overcome these problems.
• Oracle Resource Manager manages resources:
• - Between PDBs.
• - With a single PDBCheck detailed contents on
http://dbaboss.com/
5
• Creating a CDB Resource Plan
• 1. Create a pending area.
• 2. Create a CDB resource plan.
• 3. Create directives for the PDBs.
• 4. (Optional) Update the default PDB directives.
• 5. (Optional) Update the default autotask
directives.
• 6. Validate the pending area.
• 7. Submit the pending area.
• DBMS_RESOURCE_MANAGER
Check detailed contents on
http://dbaboss.com/
6
• Create CDB Resource Plan
• A CDB resource plan is made up of CDB resource plan directives. The plan
directives allocate shares, which define the proportion of the CDB resources
available to the PDB, and specific utilization percentages, that give a finer level of
control. CDB resource plans are managed using the DBMS_RESOURCE_MANAGER
package. Each plan directive is made up of the following elements:
• •pluggable_database : The PDB the directive relates to.
• •shares : The proportion of the CDB resources available to the PDB.
• •utilization_limit : The percentage of the CDBs available CPU that is available to
the PDB.
• •parallel_server_limit : The percentage of the CDBs available parallel servers
(PARALLEL_SERVERS_TARGET initialization parameter) that are available to the
PDB.
•
• PDBs without a specific plan directive use the default PDB directive.
• The following code creates a new CBD resource plan using the CREATE_CDB_PLAN
procedure, then adds two plan directives using the CREATE_CDB_PLAN_DIRECTIVE
procedure
Check detailed contents on
http://dbaboss.com/
7
• The following code creates a new CBD resource plan using the CREATE_CDB_PLAN procedure, then adds two plan
directives using the CREATE_CDB_PLAN_DIRECTIVE procedure.
• DECLARE
• l_plan VARCHAR2(30) := 'test_cdb_plan';
• BEGIN
• DBMS_RESOURCE_MANAGER.clear_pending_area;
• DBMS_RESOURCE_MANAGER.create_pending_area;
• DBMS_RESOURCE_MANAGER.create_cdb_plan(
• plan => l_plan,
• comment => 'A test CDB resource plan');
• DBMS_RESOURCE_MANAGER.create_cdb_plan_directive(
• plan => l_plan,
• pluggable_database => 'pdb1',
• shares => 3,
• utilization_limit => 100,
• parallel_server_limit => 100);
• DBMS_RESOURCE_MANAGER.create_cdb_plan_directive(
• plan => l_plan,
• pluggable_database => 'pdb2',
• shares => 3,
• utilization_limit => 100,
• parallel_server_limit => 100);
• DBMS_RESOURCE_MANAGER.validate_pending_area;
• DBMS_RESOURCE_MANAGER.submit_pending_area;
• END;
• / Check detailed contents on
http://dbaboss.com/
8
• Information about the available CDB resource plans can be queried using the DBA_CDB_
• RSRC_PLANS
• SELECT plan_id,
• plan,
• comments,
• status,
• mandatory
• FROM dba_cdb_rsrc_plans
• WHERE plan = 'TEST_CDB_PLAN';
• PLAN_ID PLAN COMMENTS STATUS MAN
• ---------- ------------------------------ ------------------------------ ---------- ---
• 92235 TEST_CDB_PLAN A test CDB resource plan NO
Check detailed contents on
http://dbaboss.com/
9
• Information about the CDB resource plan directives can be queried using
the DBA_CDB_RSRC_PLAN_DIRECTIVES view.
• SELECT plan,
• pluggable_database,
• shares,
• utilization_limit AS util,
• parallel_server_limit AS parallel
• FROM dba_cdb_rsrc_plan_directives
• WHERE plan = 'TEST_CDB_PLAN'
• ORDER BY pluggable_database;
•
• PLAN PLUGGABLE_DATABASE SHARES UTIL PARALLEL
• ------------------------------ ------------------------- ---------- ---------- ----------
• TEST_CDB_PLAN ORA$AUTOTASK 90 100
• TEST_CDB_PLAN ORA$DEFAULT_PDB_DIRECTIVE 1 100 100
• TEST_CDB_PLAN PDB1 3 100 100
• TEST_CDB_PLAN PDB2 3 100 100
Check detailed contents on
http://dbaboss.com/
10
• Modify CDB Resource Plan
• An existing resource plan is modified by creating, updating or deleting plan directives. The following
code uses the CREATE_CDB_PLAN_DIRECTIVE procedure to add a new plan directive to the CDB
resource plan we created previously
• DECLARE
• l_plan VARCHAR2(30) := 'test_cdb_plan';
• BEGIN
• DBMS_RESOURCE_MANAGER.clear_pending_area;
• DBMS_RESOURCE_MANAGER.create_pending_area;
• DBMS_RESOURCE_MANAGER.create_cdb_plan_directive(
• plan => l_plan,
• pluggable_database => 'pdb3',
• shares => 1,
• utilization_limit => 75,
• parallel_server_limit => 75);
• DBMS_RESOURCE_MANAGER.validate_pending_area;
• DBMS_RESOURCE_MANAGER.submit_pending_area;
• END;
• /
• SQL> @cdb_resource_plan_directives.sql TEST_CDB_PLAN
Check detailed contents on
http://dbaboss.com/
11
• Enable/Disable Resource Plan
• Enabling and disabling resource plans in a CDB is the same as it was in pre-12c instances. Enable a plan by setting
the RESOURCE_MANAGER_PLAN paramter to the name of the CDB resource plan, while connected to the root
container.
• SQL> ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = 'TEST_CDB_PLAN';
• System altered.
• SQL> SHOW PARAMETER RESOURCE_MANAGER_PLAN
• NAME TYPE VALUE
• ------------------------------------ ----------- ------------------------------
• resource_manager_plan string TEST_CDB_PLAN
• SQL>
• To disable the plan, set the RESOURCE_MANAGER_PLAN parameter to another plan, or blank it.
• SQL> ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = '';
• System altered.
• SQL> SHOW PARAMETER RESOURCE_MANAGER_PLAN
• NAME TYPE VALUE
• ------------------------------------ ----------- ------------------------------
• resource_manager_plan string
• SQL>
Check detailed contents on
http://dbaboss.com/
12
Managing Resources Within a PDB
• In a non-CDB database, workloads within a database are
• managed with resource plans.
• In a PDB, workloads are also managed with resource
• plans, also called PDB resource plans.
• The functionality is similar except for the following
• differences:
• Non-CDB Database PDB Database
• Multi-level resource plans Single-level resource plans only
• Up to 32 consumer groups Up to 8 consumer groups
• Subplans No subplans
Check detailed contents on
http://dbaboss.com/
13
• A CDB resource plan determines the amount of resources
allocated to each PDB. A PDB resource plan determines
how the resources allocated to a specific PDB are allocated
to consumer groups within that PDB. A PDB resource plan is
similar to a resource plan for a non-CDB. Specifically, a PDB
resource plan allocates resource among the consumer
groups within a PDB.
• In a CDB, the following restrictions apply to PDB resource
plans:
• • PDB resource plan cannot have a multiple-level
scheduling policy.
• • PDB resource plan can have a maximum of eight
consumer groups.
• • PDB resource plan cannot have subplans.
• Note: If you try to create a PDB plan in the root, you get an
error.
Check detailed contents on
http://dbaboss.com/
14
• Managing PDB Resource Plans
• Connect to the PDB to manage the PDB plan.
• Use exactly the same procedures as for managing a
• resource plan in a non-CDB environment.
• For CREATE_PLAN_DIRECTIVE procedure:
• – New SHARE argument
• – Replace MAX_UTILIZATION_LIMIT and
• PARALLEL_TARGET_PERCENTAGE arguments with
• UTILIZATION_LIMIT and PARALLEL_SERVER_LIMIT
• • You can view CDB and PDB resource plans using
• V$RSRC_PLAN.
Check detailed contents on
http://dbaboss.com/
15
• Limits to restrict resource utilization for specific PDB:
• A utilization limit restrains the system resource usage of a specific
PDB. You can specify utilization limits for CPU and parallel execution
servers. The limits are default to 100%.
• Limits restrict the resource utilization; you can create a Resource
Manager Plan directive using the UTILIZATION_LIMIT parameter to
limit CPU for each PDB. For example, if you create a plan directive
with a UTILIZATION_LIMIT parameter equal to 20% for a specific
PDB, the later will get 20% the maximum of CPU usage at CDB level.
• For parallel execution servers, you can override the default defined
by the UTILIZATION_LIMIT by creating a plan directive that uses the
PARALLEL_SERVER_LIMIT parameter. A PDB cannot use more than
the value of the PARALLEL_SERVERS_TARGET initialization
parameter multiplied by the value of the PARALLEL_SERVER_LIMIT
parameter in the CREATE_CDB_PLAN_DIRECTIVE procedure. For
example, if the PARALLEL_SERVERS_TARGET initialization parameter
is set to 100 and the PARALLEL_SERVER_LIMIT parameter for a PDB
is set to 20%, then utilization limit for the PDB is 20 parallel
execution servers (100 X 0.20).
Check detailed contents on
http://dbaboss.com/
16
. Creating a PDB resource plan:
• CDB resource plan determines the amount of resources allocated to each PDB within the
multitenant environment. A PDB resource plan determines how the resources allocated to a
specific PDB are allocated to consumer groups within that PDB. A PDB resource plan is similar
to a resource plan for a non-CDB, thus similar to previous versions of Oracle database.
• The following is a summary of the steps required to create a PDB resource plan:
• 1. In SQL*Plus, ensure that the current container is a PDB.
• 2. Create a pending area using the CREATE_PENDING_AREA procedure.
• 3. Create, modify, or delete consumer groups using the CREATE_CONSUMER_GROUP
procedure.
• 4. Map sessions to consumer groups using the SET_CONSUMER_GROUP_MAPPING
procedure.
• 5. Create the PDB resource plan using the CREATE_PLAN procedure.
• 6. Create PDB resource plan directives using the CREATE_PLAN_DIRECTIVE procedure.
• 7. Validate the pending area using the VALIDATE_PENDING_AREA procedure.
• 8. Submit the pending area using the SUBMIT_PENDING_AREA procedure.
Check detailed contents on
http://dbaboss.com/
17
Check detailed contents on
http://dbaboss.com/
18
Manage Memory
• Avoid excessive memory usage
• –Swapping
• –Poor performance
• –Instance eviction
• •Ensure memory for kernel, stack space, other
applications
• •Memory controls
• –sga_target
• –pga_aggregate_target
• –pga_aggregate_limit New in 12c
Check detailed contents on
http://dbaboss.com/
19
Manage PGA Usage
• pga_aggregate_target
• –Only controls “tunable” memory allocations
• –“tunable” means that the operation can opt to
use PGA or temp space
• –E.g. hash joins, sorts, etc.
• –Actual PGA usage is often much higher (3x)
since operations for “untunable” memory do not
heed this parameter
• –Particularly problematic with parallel queries
with high DOPs, badly behaved PL/SQL
Check detailed contents on
http://dbaboss.com/
20
• pga_aggregate_limit New in 12c
• –Hard PGA memory limit
• When actual PGA usage exceeds
PGA_AGGREGATE_LIMIT
• –Calls aborted for sessions using the most
memory
• –Memory consumption for parallel operations
tracked as a unit
• –SYS and fatal background processes
exempted
Check detailed contents on
http://dbaboss.com/
21

More Related Content

What's hot

Using oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archiveUsing oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archiveSecure-24
 
Reduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technologyReduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technologyKirill Loifman
 
Oracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra PasalapudiOracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra Pasalapudipasalapudi123
 
Exploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your CloudExploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your Clouddyahalom
 
Oracle 12c Multitenant architecture
Oracle 12c Multitenant architectureOracle 12c Multitenant architecture
Oracle 12c Multitenant architecturenaderattia
 
Oracle 12c Multi Tenant
Oracle 12c Multi TenantOracle 12c Multi Tenant
Oracle 12c Multi TenantRed Stack Tech
 
Database Consolidation using the Oracle Multitenant Architecture
Database Consolidation using the Oracle Multitenant ArchitectureDatabase Consolidation using the Oracle Multitenant Architecture
Database Consolidation using the Oracle Multitenant ArchitecturePini Dibask
 
Oracle 12c and its pluggable databases
Oracle 12c and its pluggable databasesOracle 12c and its pluggable databases
Oracle 12c and its pluggable databasesGustavo Rene Antunez
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationYudi Herdiana
 
SharePoint Storage Best Practices
SharePoint Storage Best PracticesSharePoint Storage Best Practices
SharePoint Storage Best PracticesMark Ginnebaugh
 
DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)Gustavo Rene Antunez
 
Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intropasalapudi
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)Gustavo Rene Antunez
 
Hbase in action - Chapter 09: Deploying HBase
Hbase in action - Chapter 09: Deploying HBaseHbase in action - Chapter 09: Deploying HBase
Hbase in action - Chapter 09: Deploying HBasephanleson
 
12cR2 Single-Tenant: Multitenant Features for All Editions
12cR2 Single-Tenant: Multitenant Features for All Editions12cR2 Single-Tenant: Multitenant Features for All Editions
12cR2 Single-Tenant: Multitenant Features for All EditionsFranck Pachot
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and ArchitectureSidney Chen
 
Product Update: EDB Postgres Platform 2017
Product Update: EDB Postgres Platform 2017Product Update: EDB Postgres Platform 2017
Product Update: EDB Postgres Platform 2017EDB
 
Why virtual private catalog?
Why virtual private catalog?Why virtual private catalog?
Why virtual private catalog?Satishbabu Gunukula
 
12 Things about Oracle WebLogic Server 12c
12 Things	 about Oracle WebLogic Server 12c12 Things	 about Oracle WebLogic Server 12c
12 Things about Oracle WebLogic Server 12cGuatemala User Group
 

What's hot (20)

Using oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archiveUsing oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archive
 
Reduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technologyReduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technology
 
Oracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra PasalapudiOracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra Pasalapudi
 
Exploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your CloudExploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your Cloud
 
Oracle 12c Multitenant architecture
Oracle 12c Multitenant architectureOracle 12c Multitenant architecture
Oracle 12c Multitenant architecture
 
Oracle 12c Multi Tenant
Oracle 12c Multi TenantOracle 12c Multi Tenant
Oracle 12c Multi Tenant
 
Database Consolidation using the Oracle Multitenant Architecture
Database Consolidation using the Oracle Multitenant ArchitectureDatabase Consolidation using the Oracle Multitenant Architecture
Database Consolidation using the Oracle Multitenant Architecture
 
Oracle 12c and its pluggable databases
Oracle 12c and its pluggable databasesOracle 12c and its pluggable databases
Oracle 12c and its pluggable databases
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for Consolidation
 
SharePoint Storage Best Practices
SharePoint Storage Best PracticesSharePoint Storage Best Practices
SharePoint Storage Best Practices
 
DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)
 
Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intro
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)
 
Oracle 12c Architecture
Oracle 12c ArchitectureOracle 12c Architecture
Oracle 12c Architecture
 
Hbase in action - Chapter 09: Deploying HBase
Hbase in action - Chapter 09: Deploying HBaseHbase in action - Chapter 09: Deploying HBase
Hbase in action - Chapter 09: Deploying HBase
 
12cR2 Single-Tenant: Multitenant Features for All Editions
12cR2 Single-Tenant: Multitenant Features for All Editions12cR2 Single-Tenant: Multitenant Features for All Editions
12cR2 Single-Tenant: Multitenant Features for All Editions
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
 
Product Update: EDB Postgres Platform 2017
Product Update: EDB Postgres Platform 2017Product Update: EDB Postgres Platform 2017
Product Update: EDB Postgres Platform 2017
 
Why virtual private catalog?
Why virtual private catalog?Why virtual private catalog?
Why virtual private catalog?
 
12 Things about Oracle WebLogic Server 12c
12 Things	 about Oracle WebLogic Server 12c12 Things	 about Oracle WebLogic Server 12c
12 Things about Oracle WebLogic Server 12c
 

Similar to Presentationday3oracle12c

12c Multi-Tenancy and Exadata IORM: An Ideal Cloud Based Resource Management
12c Multi-Tenancy and Exadata IORM: An Ideal Cloud Based Resource Management12c Multi-Tenancy and Exadata IORM: An Ideal Cloud Based Resource Management
12c Multi-Tenancy and Exadata IORM: An Ideal Cloud Based Resource ManagementFahd Mirza Chughtai
 
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...Alex Gorbachev
 
OUGN winning performnace challenges in oracle Multitenant
OUGN   winning performnace challenges in oracle MultitenantOUGN   winning performnace challenges in oracle Multitenant
OUGN winning performnace challenges in oracle MultitenantPini Dibask
 
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantWinning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantPini Dibask
 
Exploring Oracle Multitenant in Oracle Database 12c
Exploring Oracle Multitenant in Oracle Database 12cExploring Oracle Multitenant in Oracle Database 12c
Exploring Oracle Multitenant in Oracle Database 12cZohar Elkayam
 
Database Consolidation using Oracle Multitenant
Database Consolidation using Oracle MultitenantDatabase Consolidation using Oracle Multitenant
Database Consolidation using Oracle MultitenantPini Dibask
 
Collaborate 17 - Database consolidation using the oracle multitenant architec...
Collaborate 17 - Database consolidation using the oracle multitenant architec...Collaborate 17 - Database consolidation using the oracle multitenant architec...
Collaborate 17 - Database consolidation using the oracle multitenant architec...Pini Dibask
 
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle MultitenantRMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle MultitenantPini Dibask
 
Winning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle MultitenantWinning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle MultitenantPini Dibask
 
Simplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12cSimplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12cMaris Elsins
 
Taming the PDB: Resource Management and Lockdown Profiles
Taming the PDB: Resource Management and Lockdown ProfilesTaming the PDB: Resource Management and Lockdown Profiles
Taming the PDB: Resource Management and Lockdown ProfilesMarkus Flechtner
 
OOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architectureOOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architecturePini Dibask
 
Simplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable DatabasesSimplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable Databasesomnidba
 
Vijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-featuresVijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-featuresmkorremans
 
Gloc gangler 2018._v4
Gloc gangler 2018._v4Gloc gangler 2018._v4
Gloc gangler 2018._v4Secure-24
 
What SharePoint Admins need to know about SQL-Cinncinati
What SharePoint Admins need to know about SQL-CinncinatiWhat SharePoint Admins need to know about SQL-Cinncinati
What SharePoint Admins need to know about SQL-CinncinatiJ.D. Wade
 
SPS Kansas City: What SharePoint Admin need to know about SQL
SPS Kansas City: What SharePoint Admin need to know about SQLSPS Kansas City: What SharePoint Admin need to know about SQL
SPS Kansas City: What SharePoint Admin need to know about SQLJ.D. Wade
 
Consolidate and prepare for cloud efficiencies
Consolidate and prepare for cloud efficienciesConsolidate and prepare for cloud efficiencies
Consolidate and prepare for cloud efficienciesDLT Solutions
 
Active/Active Database Solutions with Log Based Replication in xDB 6.0
Active/Active Database Solutions with Log Based Replication in xDB 6.0Active/Active Database Solutions with Log Based Replication in xDB 6.0
Active/Active Database Solutions with Log Based Replication in xDB 6.0EDB
 

Similar to Presentationday3oracle12c (20)

12c Multi-Tenancy and Exadata IORM: An Ideal Cloud Based Resource Management
12c Multi-Tenancy and Exadata IORM: An Ideal Cloud Based Resource Management12c Multi-Tenancy and Exadata IORM: An Ideal Cloud Based Resource Management
12c Multi-Tenancy and Exadata IORM: An Ideal Cloud Based Resource Management
 
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
 
OUGN winning performnace challenges in oracle Multitenant
OUGN   winning performnace challenges in oracle MultitenantOUGN   winning performnace challenges in oracle Multitenant
OUGN winning performnace challenges in oracle Multitenant
 
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantWinning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenant
 
Exploring Oracle Multitenant in Oracle Database 12c
Exploring Oracle Multitenant in Oracle Database 12cExploring Oracle Multitenant in Oracle Database 12c
Exploring Oracle Multitenant in Oracle Database 12c
 
Database Consolidation using Oracle Multitenant
Database Consolidation using Oracle MultitenantDatabase Consolidation using Oracle Multitenant
Database Consolidation using Oracle Multitenant
 
Collaborate 17 - Database consolidation using the oracle multitenant architec...
Collaborate 17 - Database consolidation using the oracle multitenant architec...Collaborate 17 - Database consolidation using the oracle multitenant architec...
Collaborate 17 - Database consolidation using the oracle multitenant architec...
 
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle MultitenantRMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
 
Winning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle MultitenantWinning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle Multitenant
 
Simplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12cSimplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12c
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Taming the PDB: Resource Management and Lockdown Profiles
Taming the PDB: Resource Management and Lockdown ProfilesTaming the PDB: Resource Management and Lockdown Profiles
Taming the PDB: Resource Management and Lockdown Profiles
 
OOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architectureOOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architecture
 
Simplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable DatabasesSimplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable Databases
 
Vijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-featuresVijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-features
 
Gloc gangler 2018._v4
Gloc gangler 2018._v4Gloc gangler 2018._v4
Gloc gangler 2018._v4
 
What SharePoint Admins need to know about SQL-Cinncinati
What SharePoint Admins need to know about SQL-CinncinatiWhat SharePoint Admins need to know about SQL-Cinncinati
What SharePoint Admins need to know about SQL-Cinncinati
 
SPS Kansas City: What SharePoint Admin need to know about SQL
SPS Kansas City: What SharePoint Admin need to know about SQLSPS Kansas City: What SharePoint Admin need to know about SQL
SPS Kansas City: What SharePoint Admin need to know about SQL
 
Consolidate and prepare for cloud efficiencies
Consolidate and prepare for cloud efficienciesConsolidate and prepare for cloud efficiencies
Consolidate and prepare for cloud efficiencies
 
Active/Active Database Solutions with Log Based Replication in xDB 6.0
Active/Active Database Solutions with Log Based Replication in xDB 6.0Active/Active Database Solutions with Log Based Replication in xDB 6.0
Active/Active Database Solutions with Log Based Replication in xDB 6.0
 

Recently uploaded

VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationBoston Institute of Analytics
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/managementakshesh doshi
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 

Recently uploaded (20)

VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health Classification
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/management
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 

Presentationday3oracle12c

  • 1. ORACLE DATABASE 12C RESOURCE MANAGER (Reference- Oracle documentation) Check detailed contents on http://dbaboss.com/ 1
  • 2. Resource Manager with Container Databases (CDB) and Pluggable Databases (PDB) in Oracle Database 12c Release 1 (12.1) • Regulator for resource contention and cap resource usage using Resource Manager • Resource Manager supports all types of alliances • –Schema consolidation • –Server consolidation • – IN Pluggable Databases • • Resource Manager manages • –CPU • –Exadata disk I/O • –Parallel execution • –Runaway queries • –And more… Check detailed contents on http://dbaboss.com/ 2
  • 3. • In a non-CDB, you can use Resource Manager to accomplish numerous workloads that are • competing for system and database resources. However, in a CDB, you can have numerous workloads within multiple PDBs contending for system and CDB resources. • In a CDB, Resource Manager can accomplish resources on two basic levels: • • CDB level: Resource Manager can accomplish the workloads for multiple PDBs that are competing for system and CDB resources. You can stipulate how resources are allocated to PDBs, and you can limit the resource utilization of specific PDBs. • • PDB level: Resource Manager can manage the workloads within each PDB.Resource Manager allocates the resources in two steps: • 1. It allocates a slice of the system’s resources to each PDB. • 2. In a specific PDB, it allocates a portion of system resources gained in Step 1 to each session connected to the PDB. Check detailed contents on http://dbaboss.com/ 3
  • 4. • In a CDB with numerous PDBs, some PDBs characteristically are more significant than others. • Resource Manager enables you to rank the resource (CPU and I/O, as well as distribution of parallel execution slaves in the context of parallel statement queuing) practice of specific PDBs. • This is done by granting different PDBs different shares of the system resources so that more resources are allocated to the more important PDBs. • In addition, limits can be used to confine the system resource usage of specific PDBs. • When a PDB is plugged in to a CDB and no instruction is defined for it, the PDB uses the default • instruction for PDBs. As the CDB DBA, you can regulates default and you can also create specific directive for each new PDB. • Note: No consumer groups nor shares can be defined for the root container. Check detailed contents on http://dbaboss.com/ 4
  • 5. • In a multitenant environment Resource Manager performs two separate tasks. At the CDB level it controls the resources allocated to each PDB, allowing you to priorities some PDBs over others. At the PDB level it controls the resources allocated to each session connected to the PDB, allowing you to priorities some sessions over others, just as it does in pre-12c instances • What Explanations Does Resource Manager Provide for a CDB? • By default, the whole system may have the following problems: • - Unfitting distribution of resources among PDBs; All PDBs have same level of priority. • - Unfitting distribution of resources within a single PDB; All workloads within a PDB have same level of priority. • - Lack of resource practice data for PDBs. • Oracle Resource Manager helps to overcome these problems. • Oracle Resource Manager manages resources: • - Between PDBs. • - With a single PDBCheck detailed contents on http://dbaboss.com/ 5
  • 6. • Creating a CDB Resource Plan • 1. Create a pending area. • 2. Create a CDB resource plan. • 3. Create directives for the PDBs. • 4. (Optional) Update the default PDB directives. • 5. (Optional) Update the default autotask directives. • 6. Validate the pending area. • 7. Submit the pending area. • DBMS_RESOURCE_MANAGER Check detailed contents on http://dbaboss.com/ 6
  • 7. • Create CDB Resource Plan • A CDB resource plan is made up of CDB resource plan directives. The plan directives allocate shares, which define the proportion of the CDB resources available to the PDB, and specific utilization percentages, that give a finer level of control. CDB resource plans are managed using the DBMS_RESOURCE_MANAGER package. Each plan directive is made up of the following elements: • •pluggable_database : The PDB the directive relates to. • •shares : The proportion of the CDB resources available to the PDB. • •utilization_limit : The percentage of the CDBs available CPU that is available to the PDB. • •parallel_server_limit : The percentage of the CDBs available parallel servers (PARALLEL_SERVERS_TARGET initialization parameter) that are available to the PDB. • • PDBs without a specific plan directive use the default PDB directive. • The following code creates a new CBD resource plan using the CREATE_CDB_PLAN procedure, then adds two plan directives using the CREATE_CDB_PLAN_DIRECTIVE procedure Check detailed contents on http://dbaboss.com/ 7
  • 8. • The following code creates a new CBD resource plan using the CREATE_CDB_PLAN procedure, then adds two plan directives using the CREATE_CDB_PLAN_DIRECTIVE procedure. • DECLARE • l_plan VARCHAR2(30) := 'test_cdb_plan'; • BEGIN • DBMS_RESOURCE_MANAGER.clear_pending_area; • DBMS_RESOURCE_MANAGER.create_pending_area; • DBMS_RESOURCE_MANAGER.create_cdb_plan( • plan => l_plan, • comment => 'A test CDB resource plan'); • DBMS_RESOURCE_MANAGER.create_cdb_plan_directive( • plan => l_plan, • pluggable_database => 'pdb1', • shares => 3, • utilization_limit => 100, • parallel_server_limit => 100); • DBMS_RESOURCE_MANAGER.create_cdb_plan_directive( • plan => l_plan, • pluggable_database => 'pdb2', • shares => 3, • utilization_limit => 100, • parallel_server_limit => 100); • DBMS_RESOURCE_MANAGER.validate_pending_area; • DBMS_RESOURCE_MANAGER.submit_pending_area; • END; • / Check detailed contents on http://dbaboss.com/ 8
  • 9. • Information about the available CDB resource plans can be queried using the DBA_CDB_ • RSRC_PLANS • SELECT plan_id, • plan, • comments, • status, • mandatory • FROM dba_cdb_rsrc_plans • WHERE plan = 'TEST_CDB_PLAN'; • PLAN_ID PLAN COMMENTS STATUS MAN • ---------- ------------------------------ ------------------------------ ---------- --- • 92235 TEST_CDB_PLAN A test CDB resource plan NO Check detailed contents on http://dbaboss.com/ 9
  • 10. • Information about the CDB resource plan directives can be queried using the DBA_CDB_RSRC_PLAN_DIRECTIVES view. • SELECT plan, • pluggable_database, • shares, • utilization_limit AS util, • parallel_server_limit AS parallel • FROM dba_cdb_rsrc_plan_directives • WHERE plan = 'TEST_CDB_PLAN' • ORDER BY pluggable_database; • • PLAN PLUGGABLE_DATABASE SHARES UTIL PARALLEL • ------------------------------ ------------------------- ---------- ---------- ---------- • TEST_CDB_PLAN ORA$AUTOTASK 90 100 • TEST_CDB_PLAN ORA$DEFAULT_PDB_DIRECTIVE 1 100 100 • TEST_CDB_PLAN PDB1 3 100 100 • TEST_CDB_PLAN PDB2 3 100 100 Check detailed contents on http://dbaboss.com/ 10
  • 11. • Modify CDB Resource Plan • An existing resource plan is modified by creating, updating or deleting plan directives. The following code uses the CREATE_CDB_PLAN_DIRECTIVE procedure to add a new plan directive to the CDB resource plan we created previously • DECLARE • l_plan VARCHAR2(30) := 'test_cdb_plan'; • BEGIN • DBMS_RESOURCE_MANAGER.clear_pending_area; • DBMS_RESOURCE_MANAGER.create_pending_area; • DBMS_RESOURCE_MANAGER.create_cdb_plan_directive( • plan => l_plan, • pluggable_database => 'pdb3', • shares => 1, • utilization_limit => 75, • parallel_server_limit => 75); • DBMS_RESOURCE_MANAGER.validate_pending_area; • DBMS_RESOURCE_MANAGER.submit_pending_area; • END; • / • SQL> @cdb_resource_plan_directives.sql TEST_CDB_PLAN Check detailed contents on http://dbaboss.com/ 11
  • 12. • Enable/Disable Resource Plan • Enabling and disabling resource plans in a CDB is the same as it was in pre-12c instances. Enable a plan by setting the RESOURCE_MANAGER_PLAN paramter to the name of the CDB resource plan, while connected to the root container. • SQL> ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = 'TEST_CDB_PLAN'; • System altered. • SQL> SHOW PARAMETER RESOURCE_MANAGER_PLAN • NAME TYPE VALUE • ------------------------------------ ----------- ------------------------------ • resource_manager_plan string TEST_CDB_PLAN • SQL> • To disable the plan, set the RESOURCE_MANAGER_PLAN parameter to another plan, or blank it. • SQL> ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = ''; • System altered. • SQL> SHOW PARAMETER RESOURCE_MANAGER_PLAN • NAME TYPE VALUE • ------------------------------------ ----------- ------------------------------ • resource_manager_plan string • SQL> Check detailed contents on http://dbaboss.com/ 12
  • 13. Managing Resources Within a PDB • In a non-CDB database, workloads within a database are • managed with resource plans. • In a PDB, workloads are also managed with resource • plans, also called PDB resource plans. • The functionality is similar except for the following • differences: • Non-CDB Database PDB Database • Multi-level resource plans Single-level resource plans only • Up to 32 consumer groups Up to 8 consumer groups • Subplans No subplans Check detailed contents on http://dbaboss.com/ 13
  • 14. • A CDB resource plan determines the amount of resources allocated to each PDB. A PDB resource plan determines how the resources allocated to a specific PDB are allocated to consumer groups within that PDB. A PDB resource plan is similar to a resource plan for a non-CDB. Specifically, a PDB resource plan allocates resource among the consumer groups within a PDB. • In a CDB, the following restrictions apply to PDB resource plans: • • PDB resource plan cannot have a multiple-level scheduling policy. • • PDB resource plan can have a maximum of eight consumer groups. • • PDB resource plan cannot have subplans. • Note: If you try to create a PDB plan in the root, you get an error. Check detailed contents on http://dbaboss.com/ 14
  • 15. • Managing PDB Resource Plans • Connect to the PDB to manage the PDB plan. • Use exactly the same procedures as for managing a • resource plan in a non-CDB environment. • For CREATE_PLAN_DIRECTIVE procedure: • – New SHARE argument • – Replace MAX_UTILIZATION_LIMIT and • PARALLEL_TARGET_PERCENTAGE arguments with • UTILIZATION_LIMIT and PARALLEL_SERVER_LIMIT • • You can view CDB and PDB resource plans using • V$RSRC_PLAN. Check detailed contents on http://dbaboss.com/ 15
  • 16. • Limits to restrict resource utilization for specific PDB: • A utilization limit restrains the system resource usage of a specific PDB. You can specify utilization limits for CPU and parallel execution servers. The limits are default to 100%. • Limits restrict the resource utilization; you can create a Resource Manager Plan directive using the UTILIZATION_LIMIT parameter to limit CPU for each PDB. For example, if you create a plan directive with a UTILIZATION_LIMIT parameter equal to 20% for a specific PDB, the later will get 20% the maximum of CPU usage at CDB level. • For parallel execution servers, you can override the default defined by the UTILIZATION_LIMIT by creating a plan directive that uses the PARALLEL_SERVER_LIMIT parameter. A PDB cannot use more than the value of the PARALLEL_SERVERS_TARGET initialization parameter multiplied by the value of the PARALLEL_SERVER_LIMIT parameter in the CREATE_CDB_PLAN_DIRECTIVE procedure. For example, if the PARALLEL_SERVERS_TARGET initialization parameter is set to 100 and the PARALLEL_SERVER_LIMIT parameter for a PDB is set to 20%, then utilization limit for the PDB is 20 parallel execution servers (100 X 0.20). Check detailed contents on http://dbaboss.com/ 16
  • 17. . Creating a PDB resource plan: • CDB resource plan determines the amount of resources allocated to each PDB within the multitenant environment. A PDB resource plan determines how the resources allocated to a specific PDB are allocated to consumer groups within that PDB. A PDB resource plan is similar to a resource plan for a non-CDB, thus similar to previous versions of Oracle database. • The following is a summary of the steps required to create a PDB resource plan: • 1. In SQL*Plus, ensure that the current container is a PDB. • 2. Create a pending area using the CREATE_PENDING_AREA procedure. • 3. Create, modify, or delete consumer groups using the CREATE_CONSUMER_GROUP procedure. • 4. Map sessions to consumer groups using the SET_CONSUMER_GROUP_MAPPING procedure. • 5. Create the PDB resource plan using the CREATE_PLAN procedure. • 6. Create PDB resource plan directives using the CREATE_PLAN_DIRECTIVE procedure. • 7. Validate the pending area using the VALIDATE_PENDING_AREA procedure. • 8. Submit the pending area using the SUBMIT_PENDING_AREA procedure. Check detailed contents on http://dbaboss.com/ 17
  • 18. Check detailed contents on http://dbaboss.com/ 18
  • 19. Manage Memory • Avoid excessive memory usage • –Swapping • –Poor performance • –Instance eviction • •Ensure memory for kernel, stack space, other applications • •Memory controls • –sga_target • –pga_aggregate_target • –pga_aggregate_limit New in 12c Check detailed contents on http://dbaboss.com/ 19
  • 20. Manage PGA Usage • pga_aggregate_target • –Only controls “tunable” memory allocations • –“tunable” means that the operation can opt to use PGA or temp space • –E.g. hash joins, sorts, etc. • –Actual PGA usage is often much higher (3x) since operations for “untunable” memory do not heed this parameter • –Particularly problematic with parallel queries with high DOPs, badly behaved PL/SQL Check detailed contents on http://dbaboss.com/ 20
  • 21. • pga_aggregate_limit New in 12c • –Hard PGA memory limit • When actual PGA usage exceeds PGA_AGGREGATE_LIMIT • –Calls aborted for sessions using the most memory • –Memory consumption for parallel operations tracked as a unit • –SYS and fatal background processes exempted Check detailed contents on http://dbaboss.com/ 21