Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal...
Transcript of Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal...
![Page 1: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/1.jpg)
Common Exadata Mistakes Frits Hoogland
Principal Consultant, Accenture Enkitec Group
Ogh Engineered systems SIG
(slide deck prepared by Andy Colvin)
![Page 2: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/2.jpg)
About Enkitec
• Global systems integrator focused on the Oracle platform
• Established in August, 2004
• Headquartered in Dallas, Texas
• Consultants average 15+ years of Oracle experience
• Worldwide leader in Exadata implementations
![Page 3: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/3.jpg)
About Frits Hoogland
• Oracle DBA since 1996 • Working for the Accenture Enkitec Group • Oracle ACE Director • Oaktable member • http://fritshoogland.wordpress.com • @fritshoogland • Mail: [email protected]
![Page 4: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/4.jpg)
Accenture Enkitec Group
E4 The only conference with a focus on the Oracle Exadata platform
REGISTER TODAY June 1–2, 2015 Dallas, Texas www.enkitec.com/e4/register
![Page 5: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/5.jpg)
Quick Exadata Primer
• Smart scans are the secret sauce
• Smart scans kick in with full object scans
• Without smart scans, you’re probably in “The 3X Club”
![Page 6: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/6.jpg)
Common Exadata Mistakes
• Classified into 2 types
• Performance degrading issues
• Issues that make Exadata management tougher
• Rule #1 – You aren’t special
![Page 7: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/7.jpg)
SGA Sizing
![Page 8: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/8.jpg)
Improperly Sized SGAs
• Large SGAs can be counterproductive (in a warehouse)
• A determining factor for full scans is the small table
threshold (_small_table_threshold parameter)
![Page 9: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/9.jpg)
Hugepages
![Page 10: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/10.jpg)
Hugepages
• Allocates memory in bigger “chunks”
• Default page size – 4KB
• Huge page size – 2MB
• Controlled via vm.nr_hugepages kernel parameter
[root@enkx3db01 ~]# grep hugepages /etc/sysctl.conf vm.nr_hugepages=26014
![Page 11: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/11.jpg)
Over Indexing (and under indexing)
![Page 12: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/12.jpg)
Index Use on Exadata
• Index use is #1 smart scan killer
• Direct path reads required for smart scans
• Mark indexes invisible in a warehouse
• Global change at the database level
![Page 13: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/13.jpg)
Index Use on Exadata (non-OLTP)
• Look at long running queries with SQL monitoring report
• If it’s using indexes, try running with FULL hint to force
full table scans
• Try marking indexes invisible (in test)
![Page 14: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/14.jpg)
Index Use on Exadata (OLTP)
• You’ll still need many indexes in OLTP environment
• It can be a delicate balance
• Test, test, test before dropping indexes
• Start without them, add as necessary
![Page 15: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/15.jpg)
Parallelization
![Page 16: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/16.jpg)
Parallelization
• Parallel will (typically) force direct path reads
• Direct path reads are required for smart scans
• Beware allocating too many slaves
• Remember that smart scans already parallelize on I/O
![Page 17: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/17.jpg)
Disk Selection
![Page 18: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/18.jpg)
Exadata Storage Concepts
• Exadata is all about smart storage
• Offload your workload via full scans
• Single block reads come from flash
![Page 19: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/19.jpg)
Exadata Disk Types
• 3 varieties of disks
• High performance / All flash
• V2 – X3: 600GB 15,000RPM
• X4 : 1.2TB 10,000RPM
• X5 : 1.6TB Flash
• High capacity
• 2TB – 4TB 7,200RPM
• ~ 2T / X2, 3T / X3, 4T / X4+
![Page 20: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/20.jpg)
Which Disk Type?
• High performance for latency-sensitive applications
• Heavy OLTP workloads
• Write back flash cache changes this significantly
• For everything else, high capacity
• Flash cache masks slower disks
• 3.2TB of flash per cell on X4 (before compression)
![Page 21: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/21.jpg)
Patching
![Page 22: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/22.jpg)
Exadata Patching
• If you don’t patch, you WILL hit bugs
• Patching isn’t something to be scared of any more
• GI/RDBMS patch (bundle patch)
• OS/Firmware patch (Storage server patch)
• See MOS note #888828.1 for details
![Page 23: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/23.jpg)
Exadata Patching
• If you can apply a RAC PSU, you can apply an Exadata
bundle patch
• Storage server patches are infrequent
• Patches include bug fixes, new features
![Page 24: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/24.jpg)
ASR
![Page 25: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/25.jpg)
Automatic Service Request
• Free with your support contract
• No privacy issues – one way communication
• Requires external VM or host running Solaris or OEL
• Speeds up service request resolution time
![Page 26: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/26.jpg)
exachk
![Page 27: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/27.jpg)
exachk
• MOS note #1070954.1
• Checks cluster and database against Oracle “best
practices” at the time of release
• Requires root passwords for initial configuration
• As of exacheck 12.1.0.2.3, run from root!
• Generates HTML reports with scorecard
![Page 28: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/28.jpg)
exachk Recommendations
• Focus on the failures, not the score!
• Run frequent, like per month or per two months.
![Page 29: Frits Hoogland Principal Consultant, Accenture Enkitec ... · PDF fileFrits Hoogland Principal Consultant, Accenture Enkitec Group ... • See MOS note #888828.1 for details . ...](https://reader034.fdocuments.us/reader034/viewer/2022051406/5aa9eab67f8b9a90188d7096/html5/thumbnails/29.jpg)
Other Common Issues
• Not using OEM 12c
• Role separated installations
• Larger RECO vs DATA diskgroup split
• Trying to make Exadata like your old platform