Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and...
Transcript of Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and...
![Page 1: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/1.jpg)
Virtualizando Banco de DadosOracle
Tradicional & Hiperconvergente
![Page 2: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/2.jpg)
![Page 3: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/3.jpg)
Virtualizando Banco de Dados OracleTradicional e Hiperconvergente
Thiago Ferreira and Brian Yeomans
Oracle Senior System Engineer
![Page 4: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/4.jpg)
Agenda
• Benefícios;
• Ambiente Tradicional & Hiperconvergente;
• Boas Práticas vSAN com Oracle ;
• Boa Práticas Oracle com Vmware;
• Suporte;
• Oracle Assessment;
• Size;
![Page 5: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/5.jpg)
Benefícios Oracle com Vmware• License and Support Considerations
– Segment Oracle VMs
– Maximize CPU Utilization
– Licensable Cores
• Administration
– Fewer Manual Steps
– Enforced Standardization
• Built-in High Availability
• Improved Efficiency/Utilization
• Distributed Resource Scheduler
• Site Recovery Manager (VMware only)
• Rapid Provisioning
![Page 6: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/6.jpg)
Tradicional & Hiperconvergente;
HiperConvergente
SAN
Servers
Storage
Tradicional
![Page 7: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/7.jpg)
Hiperconvergente Vmware vSAN
Fast Network
Virtual
SAN
Now
![Page 8: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/8.jpg)
Boas Praticas Oracle Vmware vSAN
•vSAN is distributed object-store datastore formed from locally attached devices from the ESXi host. It uses disk groups to pool together flash devices as single management constructs. Therefore, it is recommended to use similarly configured and sized ESXi hosts for vSANCluster to avoid imbalance. For scale-ups, consider an initial deployment with enough cache tier to accommodate future requirements. For future capacity addition, create disk groups with similar configuration and sizing. This ensures a balance of virtual machine storage components across the cluster of disks and hosts.
https://storagehub.vmware.com/t/vmware-vsan/oracle-database-12c-on-vmware-virtual-san-6-2-all-flash/best-practices-of-oracle-database-on-all-flash-virtual-san/
![Page 9: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/9.jpg)
Boas Praticas Oracle Vmware vSAN
• Design for availability. Depending on the Protection (FTT) setting, design with additional host and capacity that enable the cluster to be automatically recovered in the event of a failure and to be able to maintain a desired level of performance.
https://storagehub.vmware.com/t/vmware-vsan/oracle-database-12c-on-vmware-virtual-san-6-2-all-flash/best-practices-of-oracle-database-on-all-flash-virtual-san/
![Page 10: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/10.jpg)
Boas Praticas Oracle Vmware vSAN
• vSAN SPBM(storage policy-based management) provides storage policy management at virtual machine object level. Leverage it to turn on specific features like checksum, erasure coding, and QoS for required objects.
• In case of very latency-sensitive application, use RAID 1 (Mirror) for data and redo disks. Otherwise, use RAID 5 (erasure coding) for data disk and RAID 1 for redo to provide the balance between space efficiency and performance. Erasure coding can be independently applied to different virtual machine objects, which provides simplicity and flexibility to configure database workloads.
https://storagehub.vmware.com/t/vmware-vsan/oracle-database-12c-on-vmware-virtual-san-6-2-all-flash/best-practices-of-oracle-database-on-all-flash-virtual-san/
https://blogs.vmware.com/virtualblocks/2018/11/30/managing-your-data-on-vsan-with-spbm/
![Page 11: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/11.jpg)
Boas Praticas Oracle Vmware vSAN
• Deduplication and compression in vSAN can help provide space efficiency and can be used in case application-level compression was not used. The space saving obtained due to deduplication and compression is specific to the application workload and data set composition. Since the domain for deduplication is at the disk group level, smaller number of large disk groups typically yield higher overall deduplication ratios than larger number of smaller disk groups do.
https://storagehub.vmware.com/t/vmware-vsan/oracle-database-12c-on-vmware-virtual-san-6-2-all-flash/best-practices-of-oracle-database-on-all-flash-virtual-san/
![Page 12: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/12.jpg)
Boas Praticas Oracle Vmware vSAN
• With the increase in stripe width, you may notice IO performance improvement because objects spread across more vSAN disk groups and disks. However, in a solution like Oracle where we recommend multiple VMDKs for the database, the database is spread across vSAN Cluster components even with the default stripe width of 1 for each of the VMDKs, essentially achieving the same objective of a larger stripe width for one large VMDK holding the entire database. So increasing the vSAN stripe width might not provide tangible benefits. Moreover, there is an additional Oracle ASM striping at the Oracle VM level as well. Therefore, it is recommended to use the default stripe width of 1 unless there are performance issues observed during the destaging process.
https://storagehub.vmware.com/t/vmware-vsan/oracle-database-12c-on-vmware-virtual-san-6-2-all-flash/best-practices-of-oracle-database-on-all-flash-virtual-san/
![Page 13: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/13.jpg)
Boa Praticas Oracle com Vmware;
• Recomendação de Hardware• Bios Settings – 22 Recommendations;• VMware vSphere Client CPU/MMU Virtualization
Automatic;
Hyperthreading
> Xeon 5500 series processors - Enable
https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/solutions/vmware-oracle-databases-on-vmware-best-practices-guide.pdf
![Page 14: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/14.jpg)
Virtual CPU Recomendação✓ VMware recommends not over-allocating vCPUs but matching the exact workload based on the actual
Oracle workload;
✓ After the workload is established, vCPU over commitment can be done with caution;
✓ If the application is commercial, follow published guidelines where appropriate;
✓ If the application is custom-written, work with the application developers to determine resource
requirements;
✓ For Tier 1 production BCA databases, the recommendation is to avoid over commitment of processor
resources (maintain 1:1 ratio of physical cores to vCPUs);
✓ CPU over commitment should be based upon actual performance data to avoid adversely affecting
virtual machine performance;
https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/solutions/vmware-oracle-databases-on-vmware-best-practices-guide.pdf
![Page 15: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/15.jpg)
Memoria Virtual
![Page 16: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/16.jpg)
Memoria Virtual
![Page 17: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/17.jpg)
Huge Page✓ Note 361323.1 – Huge Pages on Linux: What It Is... and What It Is Not... ;
✓Note 361468.1 – Huge Pages on 64-bit Linux ;
✓ Note 401749.1 – Shell Script to Calculate Values Recommended Huge
Pages/Huge TLB Configuration ;
✓ Note 46001.1 – Oracle Database and the Windows NT memory architecture,
Technical Bulletin ;
✓Note 46053.1 – Windows NT Memory Architecture Overview;
✓https://docs.oracle.com/database/121/UNXAR/appi_vlm.htm#UNXAR391;
![Page 18: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/18.jpg)
Vmware Storage✓ Enable jumbo frames for IP-based storage using iSCSI and NFS;
✓ Create dedicated datastores to service database workloads;
✓ Use VMware vSphere VMFS for Oracle database deployments;
✓ Align VMFS properly;
✓ Use Oracle Automatic Storage Management;
✓ Use your storage vendor’s best practices documentation when laying out the Oracle
database;
✓ Avoid silos when designing the storage architecture;
✓ Use paravirtualized SCSI adapters for Oracle data files with demanding workloads;
![Page 19: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/19.jpg)
Vmware Storage Layers
![Page 20: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/20.jpg)
VMFS x RDM
![Page 21: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/21.jpg)
Vmware Network
![Page 22: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/22.jpg)
Vmware Oracle RAC Network
![Page 23: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/23.jpg)
Performance
https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/solutions/vmware-oracle-databases-on-vmware-best-practices-guide.pdf
![Page 24: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/24.jpg)
Vmware Oracle RAC Limitações multwrite Lun
https://docs.vmware.com/en/VMware-Cloud-on-AWS/solutions/VMware-Cloud-on-AWS.df6735f8b729fee463802083d46fdc75/GUID-A7642A82B3D6C5F7806DB40A3F2766D9.html
![Page 25: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/25.jpg)
LicenciamentoOLSA – “Installed and/or Running”
![Page 26: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/26.jpg)
Licenciamento Oracle com Vmware
• VMware CPU Affinity + VMware Log insight;
• Cluster Dedicado ;
![Page 27: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/27.jpg)
Suporte Oracle Vmware
Oracle Support Note 249212.1
![Page 28: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/28.jpg)
http://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/solutions/oracle/vmware-oracle-support-affirmation.pdf
Palo Alto, California
VMware’s business mission is to reduce complexity, lower costs, and improve information technology service delivery for
customers. Our extended support policy supports this mission by driving resolution of customer technology issues that involve
multiple product vendors. VMware is committed to its customers’ success and supports their choice to run Oracle software in
modern, virtualized environments.
VMware Support will accept accountability for any Oracle-related issue reported by a customer. By being accountable, VMware
Support will drive the issue to resolution regardless of which vendor (VMware, Oracle, or others) is responsible for the resolution.
In most cases, reported issues can be resolved via configuration changes, bug fixes, or feature enhancements by one of the
involved vendors.
In the rare situation that another vendor is unable or unwilling to provide a satisfactory technical resolution, VMware Support will
immediately notify the customer, assist in escalation and explore other potential technical workarounds with the customer.
VMware will also assist its customers with technical issues for other Oracle software products, besides the Oracle Database and
provide similar escalation assistance if needed.
Signed: ____________________
Scott Bajtos, Senior Vice President
Global Support Services and Customer Advocacy
VMware
![Page 29: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/29.jpg)
Vmware Oracle Support
![Page 30: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/30.jpg)
Oracle Assessment
• Dell Live Optcis
• Oracle AWR
![Page 31: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/31.jpg)
Oracle Assessment Exemplo - LiveOptics
![Page 32: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/32.jpg)
Oracle Assessment Exemplo - LiveOptics
![Page 33: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/33.jpg)
Oracle Assessment Exemplo - LiveOptics
![Page 34: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/34.jpg)
Oracle Assessment ExemploServidor Processador QT Proc Core Memoria GB Storage TB Specint Aplicação Utilização % SpecUtilizado Observação
XXX01 E5-2620 v3 @ 2.40GHz 2 4 190 5 519 Dev-DB 45 233.55
XXX02 E5-2620 v3 @ 2.40GHz 2 4 190 519 Dev-DB 48 249.12
XXX03 X5675 @ 3.07GHz 2 10 96 11 383 Oracle-DB 52 199.16
XXX04 X5675 @ 3.07GHz 2 10 96 383 Oracle-DB 46 176.18
XXX05 X5690 @ 3.47GHz 346 GHz 2 4 98 0.335 409 Dev-Portal 26 106.34
XXX06 E5-2620 v2 @ 2.10GHz 210 GHz 2 12 196 18 384 SOA 25 96
XXX07 E5-2620 v2 @ 2.10GHz 210 GHz 2 12 196 384 SOA 25 96
Total 14 56 1062 34.335 2981 1156.35
Processador com
core Desativado
Quantidade de licenças informadas pelo cliente:✓ Aplicação
✓ SOA - 4 Licenças + 20 usuarios do SOA;✓ Web logics - 12 licenças;✓ Portal - 10 licenças;
✓ Banco de Dados✓ 4 Desenvolvimento;✓ 8 Produção;✓ 2 Contigenciatotal 14 licenças;
![Page 35: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/35.jpg)
Comparativo de CPU Aplicação
![Page 36: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/36.jpg)
Comparativo de CPU Banco de Dados
![Page 37: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/37.jpg)
Resultado Aplicação
![Page 38: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/38.jpg)
Resultado banco de dados
![Page 39: Virtualizando Banco de Dados Oracle - DBA BRASIL...Benefícios Oracle com Vmware •License and Support Considerations –Segment Oracle VMs –Maximize CPU Utilization –Licensable](https://reader030.fdocuments.in/reader030/viewer/2022041002/5ea3951da1b5c80f805534bb/html5/thumbnails/39.jpg)