SlideShare uma empresa Scribd logo
1 de 22
Oracle Resource Manager Kamus@ACOUG
About ACOUG ACOUG: All China Oracle User Group http://acoug.org
About Me 张乐奕 Kamus http://www.dbform.com Oracle -> 恩墨科技 (http://www.enmou.com) Oracle & World of Warcraft
Resource Management  USERS DBA_USERS.  INITIAL_RSRC_CONSUMER_GROUP
Simple Plan Example
Sub Plan Example
Consumer Group Mappings Specific Value Consumer Group A SYS,SYSTEM … Consumer Group B Priorities DEFAULT_CONSUMER_GROUP Specific Value
Resource Allocation Methods DBA_RSRC_PLAN_DIRECTIVES
Notes The currently active resource plan does not enforce allocation limits until CPU usage is at 100%. When limits are enforced, unused allocation by any consumer group can be used by other consumer groups It is possible for a subplan or consumer group to have more than one parent. No more than 31 resource consumer groups in any active plan At most, a plan can have 31children Plans and resource consumer groups cannot have the same name.
How to Manage Use DBMS_RESOURCE_MANAGER Use EM GUI
Resource Manager in EM Plans: Plan and Plan Directives
Resource Manager by CLI
Create Simple Plan BEGIN DBMS_RESOURCE_MANAGER.CREATE_SIMPLE_PLAN ( 	SIMPLE_PLAN => 'SIMPLE_PLAN1', 	CONSUMER_GROUP1 => 'MYGROUP1', 	GROUP1_PERCENT => 80,  	CONSUMER_GROUP2 => 'MYGROUP2', 	GROUP2_PERCENT => 20);  END; /
Create Complex Plan
Complex Plan via Oracle® Database Administrator's Guide 11g Release 2 (11.2)
Complex Plan
Privileges BEGIN  DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP (    GRANTEE_NAME   => 'KAMUS',    CONSUMER_GROUP => 'SYS_GROUP',    GRANT_OPTION   =>  TRUE); END; / BEGIN  DBMS_RESOURCE_MANAGER_PRIVS.REVOKE_SWITCH_CONSUMER_GROUP (    REVOKEE_NAME   => 'KAMUS',     CONSUMER_GROUP => 'SYS_GROUP'); END; /
How to Enable/Disiable Manually By default the Resource Manager is not enabled ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = 'mydb_plan'; DBMS_RESOURCE_MANAGER.SWITCH_PLAN By using Scheduler Windows Enable: By Oracle Scheduler Disable: ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = 'FORCE:mydb_plan';
Switch Consumer Group
Views about RSRC DBA_RSRC_CONSUMER_GROUP_PRIVS DBA_RSRC_PLANS V$RSRC_PLAN V$RSRC_CONSUMER_GROUP V$SESSION. RESOURCE_CONSUMER_GROUP V$RSRC_SESSION_INFO DBA_HIST_RSRC_*
Oracle Schedule Kamus@ACOUG
Automated Maintenance Tasks Scheduler Windows DBMS_SCHEDULER.CREATE_WINDOW Resource Plan DEFAULT_MAINTENANCE_PLAN

Mais conteúdo relacionado

Mais procurados

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
Pini Dibask
 

Mais procurados (20)

Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
ASM
ASMASM
ASM
 
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
Oracle Multitenant meets Oracle RAC - IOUG 2014 VersionOracle Multitenant meets Oracle RAC - IOUG 2014 Version
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
 
Oracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseOracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous Database
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
 
Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on Exadata
 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
 
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
 
Deep review of LMS process
Deep review of LMS processDeep review of LMS process
Deep review of LMS process
 
Oracle 12c PDB insights
Oracle 12c PDB insightsOracle 12c PDB insights
Oracle 12c PDB insights
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
 
APEX Connect 2019 - SQL Tuning 101
APEX Connect 2019 - SQL Tuning 101APEX Connect 2019 - SQL Tuning 101
APEX Connect 2019 - SQL Tuning 101
 
Oracle_Patching_Untold_Story_Final_Part2.pdf
Oracle_Patching_Untold_Story_Final_Part2.pdfOracle_Patching_Untold_Story_Final_Part2.pdf
Oracle_Patching_Untold_Story_Final_Part2.pdf
 
Anil nair rac_internals_sangam_2016
Anil nair rac_internals_sangam_2016Anil nair rac_internals_sangam_2016
Anil nair rac_internals_sangam_2016
 
TFA Collector - what can one do with it
TFA Collector - what can one do with it TFA Collector - what can one do with it
TFA Collector - what can one do with it
 
Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle
 
ASH and AWR on DB12c
ASH and AWR on DB12cASH and AWR on DB12c
ASH and AWR on DB12c
 
ODA Backup Restore Utility & ODA Rescue Live Disk
ODA Backup Restore Utility & ODA Rescue Live DiskODA Backup Restore Utility & ODA Rescue Live Disk
ODA Backup Restore Utility & ODA Rescue Live Disk
 
Oracle Database 12c : Multitenant
Oracle Database 12c : MultitenantOracle Database 12c : Multitenant
Oracle Database 12c : Multitenant
 

Semelhante a Oracle Resource Manager

new approach of inter cross an efficient multilevel cache management policy
 new approach of inter cross  an efficient multilevel cache management policy new approach of inter cross  an efficient multilevel cache management policy
new approach of inter cross an efficient multilevel cache management policy
INFOGAIN PUBLICATION
 
Cutter et al-2007-Systematic Conservation Planning Module
Cutter et al-2007-Systematic Conservation Planning ModuleCutter et al-2007-Systematic Conservation Planning Module
Cutter et al-2007-Systematic Conservation Planning Module
Peter Cutter
 
CaseStudy_I_AnubhavSinha
CaseStudy_I_AnubhavSinhaCaseStudy_I_AnubhavSinha
CaseStudy_I_AnubhavSinha
Anubhav Sinha
 

Semelhante a Oracle Resource Manager (20)

Les 16 resource
Les 16 resourceLes 16 resource
Les 16 resource
 
Dynamic Database Solutions - Mitigating Performance Degradations
Dynamic Database Solutions - Mitigating Performance DegradationsDynamic Database Solutions - Mitigating Performance Degradations
Dynamic Database Solutions - Mitigating Performance Degradations
 
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
 
Oracle Database 12c para la comunidad GeneXus - Engineered for clouds
Oracle Database 12c para la comunidad GeneXus - Engineered for cloudsOracle Database 12c para la comunidad GeneXus - Engineered for clouds
Oracle Database 12c para la comunidad GeneXus - Engineered for clouds
 
RMOUG2016 - Resource Management (the critical piece of the consolidation puzzle)
RMOUG2016 - Resource Management (the critical piece of the consolidation puzzle)RMOUG2016 - Resource Management (the critical piece of the consolidation puzzle)
RMOUG2016 - Resource Management (the critical piece of the consolidation puzzle)
 
4 pillars of OOPS CONCEPT
4 pillars of OOPS CONCEPT4 pillars of OOPS CONCEPT
4 pillars of OOPS CONCEPT
 
Apolicy achieving least privilege access in kubernetes - https://apolicy.io/
Apolicy   achieving least privilege access in kubernetes - https://apolicy.io/Apolicy   achieving least privilege access in kubernetes - https://apolicy.io/
Apolicy achieving least privilege access in kubernetes - https://apolicy.io/
 
IRJET-Framework for Dynamic Resource Allocation and Efficient Scheduling Stra...
IRJET-Framework for Dynamic Resource Allocation and Efficient Scheduling Stra...IRJET-Framework for Dynamic Resource Allocation and Efficient Scheduling Stra...
IRJET-Framework for Dynamic Resource Allocation and Efficient Scheduling Stra...
 
new approach of inter cross an efficient multilevel cache management policy
 new approach of inter cross  an efficient multilevel cache management policy new approach of inter cross  an efficient multilevel cache management policy
new approach of inter cross an efficient multilevel cache management policy
 
Introduction to DBMS.pptx
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptx
 
Cutter et al-2007-Systematic Conservation Planning Module
Cutter et al-2007-Systematic Conservation Planning ModuleCutter et al-2007-Systematic Conservation Planning Module
Cutter et al-2007-Systematic Conservation Planning Module
 
CaseStudy_I_AnubhavSinha
CaseStudy_I_AnubhavSinhaCaseStudy_I_AnubhavSinha
CaseStudy_I_AnubhavSinha
 
AutoDOPandRest
AutoDOPandRestAutoDOPandRest
AutoDOPandRest
 
Hadoop Summit San Jose 2015: Towards SLA-based Scheduling on YARN Clusters
Hadoop Summit San Jose 2015: Towards SLA-based Scheduling on YARN Clusters Hadoop Summit San Jose 2015: Towards SLA-based Scheduling on YARN Clusters
Hadoop Summit San Jose 2015: Towards SLA-based Scheduling on YARN Clusters
 
Redshift vs BigQuery lessons learned at Yahoo!
Redshift vs BigQuery lessons learned at Yahoo!Redshift vs BigQuery lessons learned at Yahoo!
Redshift vs BigQuery lessons learned at Yahoo!
 
Introduction to the Asset Description Metadata Schema Application Profile (AD...
Introduction to the Asset Description Metadata Schema Application Profile (AD...Introduction to the Asset Description Metadata Schema Application Profile (AD...
Introduction to the Asset Description Metadata Schema Application Profile (AD...
 
Chapter1
Chapter1Chapter1
Chapter1
 
Top schools in gudgaon
Top schools in gudgaonTop schools in gudgaon
Top schools in gudgaon
 
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
SAP ABAP Latest Interview Questions with Answers by Garuda TrainingsSAP ABAP Latest Interview Questions with Answers by Garuda Trainings
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
 
Data Lake - Multitenancy Best Practices
Data Lake - Multitenancy Best PracticesData Lake - Multitenancy Best Practices
Data Lake - Multitenancy Best Practices
 

Mais de Leyi (Kamus) Zhang (11)

Oracle 12.2 sharding learning more
Oracle 12.2 sharding learning moreOracle 12.2 sharding learning more
Oracle 12.2 sharding learning more
 
Oracle 12.2 sharded database management
Oracle 12.2 sharded database managementOracle 12.2 sharded database management
Oracle 12.2 sharded database management
 
Mac & Oracle
Mac & OracleMac & Oracle
Mac & Oracle
 
Vim - Amazing Editor for DBAs
Vim - Amazing Editor for DBAsVim - Amazing Editor for DBAs
Vim - Amazing Editor for DBAs
 
Hanganalyze presentation
Hanganalyze presentationHanganalyze presentation
Hanganalyze presentation
 
Vldb Statistics Gathering Strategy
Vldb Statistics Gathering StrategyVldb Statistics Gathering Strategy
Vldb Statistics Gathering Strategy
 
Exadata
ExadataExadata
Exadata
 
Kamus silde for summit
Kamus silde for summitKamus silde for summit
Kamus silde for summit
 
Understanding histogramppt.prn
Understanding histogramppt.prnUnderstanding histogramppt.prn
Understanding histogramppt.prn
 
数据库性能诊断的七种武器
数据库性能诊断的七种武器数据库性能诊断的七种武器
数据库性能诊断的七种武器
 
DTCC Rac Load Balancing Failover
DTCC Rac Load Balancing FailoverDTCC Rac Load Balancing Failover
DTCC Rac Load Balancing Failover
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 

Oracle Resource Manager

  • 2. About ACOUG ACOUG: All China Oracle User Group http://acoug.org
  • 3. About Me 张乐奕 Kamus http://www.dbform.com Oracle -> 恩墨科技 (http://www.enmou.com) Oracle & World of Warcraft
  • 4. Resource Management USERS DBA_USERS. INITIAL_RSRC_CONSUMER_GROUP
  • 7. Consumer Group Mappings Specific Value Consumer Group A SYS,SYSTEM … Consumer Group B Priorities DEFAULT_CONSUMER_GROUP Specific Value
  • 8. Resource Allocation Methods DBA_RSRC_PLAN_DIRECTIVES
  • 9. Notes The currently active resource plan does not enforce allocation limits until CPU usage is at 100%. When limits are enforced, unused allocation by any consumer group can be used by other consumer groups It is possible for a subplan or consumer group to have more than one parent. No more than 31 resource consumer groups in any active plan At most, a plan can have 31children Plans and resource consumer groups cannot have the same name.
  • 10. How to Manage Use DBMS_RESOURCE_MANAGER Use EM GUI
  • 11. Resource Manager in EM Plans: Plan and Plan Directives
  • 13. Create Simple Plan BEGIN DBMS_RESOURCE_MANAGER.CREATE_SIMPLE_PLAN ( SIMPLE_PLAN => 'SIMPLE_PLAN1', CONSUMER_GROUP1 => 'MYGROUP1', GROUP1_PERCENT => 80, CONSUMER_GROUP2 => 'MYGROUP2', GROUP2_PERCENT => 20); END; /
  • 15. Complex Plan via Oracle® Database Administrator's Guide 11g Release 2 (11.2)
  • 17. Privileges BEGIN DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP ( GRANTEE_NAME => 'KAMUS', CONSUMER_GROUP => 'SYS_GROUP', GRANT_OPTION => TRUE); END; / BEGIN DBMS_RESOURCE_MANAGER_PRIVS.REVOKE_SWITCH_CONSUMER_GROUP ( REVOKEE_NAME => 'KAMUS', CONSUMER_GROUP => 'SYS_GROUP'); END; /
  • 18. How to Enable/Disiable Manually By default the Resource Manager is not enabled ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = 'mydb_plan'; DBMS_RESOURCE_MANAGER.SWITCH_PLAN By using Scheduler Windows Enable: By Oracle Scheduler Disable: ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = 'FORCE:mydb_plan';
  • 20. Views about RSRC DBA_RSRC_CONSUMER_GROUP_PRIVS DBA_RSRC_PLANS V$RSRC_PLAN V$RSRC_CONSUMER_GROUP V$SESSION. RESOURCE_CONSUMER_GROUP V$RSRC_SESSION_INFO DBA_HIST_RSRC_*
  • 22. Automated Maintenance Tasks Scheduler Windows DBMS_SCHEDULER.CREATE_WINDOW Resource Plan DEFAULT_MAINTENANCE_PLAN