SlideShare une entreprise Scribd logo
1  sur  60
Télécharger pour lire hors ligne
Virtualizing Mission Critical Oracle RAC
with vSphere and vCOPS
Steven Jones, VMware
Charles Kim, Viscosity North America
Kannan Mani, VMware
George Trujillo, Hortonworks
VAPP5834
#VAPP5834
iBook available: Free for session attendees ONLY
Please email ckim@viscosityna.com for the URL
• Oracle ACE Director
• VMware vExpert
• Over 22 years of Oracle Expertise, Exadata, RAC, Data
Guard, ASM, RMAN, Shareplex / Golden Gate
• IOUG Cloud Computing SIG Executive Committee
• Blog Site: http://oravm.com + http://dbaexpert.com
• Oracle Certified RAC Expert
Charles Kim @racdba
George Trujillo
• Master Principal Big Data Specialist - Hortonworks
• Tier One BigData, Oracle and BCA Specialist - VMware
• Oracle Double ACE
• 20+ years Oracle DBA: DW, BI, RAC, Streams, Data Guard, Perf, B/R
• Sun Microsystem's Ambassador for Application Middleware
• Oracle Fusion Council & Oracle Beta Leadership Council
• Two terms Independent Oracle Users Group Board of Directors
• Recognized as one of the “Oracles of Oracle” by IOUG
• MySQL Certified DBA
• VMware Certified Instructor (VCI)
• VMware 4X and 5.X Certified Professional
• VCI VMware Certified Instructor
• CompTIA Cloud Certified
• Principal Instructor – Oracle Corporation
• Master Consultant Distinction - Sun Microsystems
• Solaris 8 , 9, 10 Certified System Administrator
• Solaris 8,9 Certified Network Administrator
• Certified MySQL DBA
Steven Jones
6
Kannan Mani
 15+ years Oracle experience : Oracle RAC, ASM, Clustering,
CRM, ERP, Business Intelligence, Performance and Scalable
Enterprise Application Architecture, Benchmark and Performance,
Technical solutions marketing and management, Virtualization
and Cloud solutions
 Oracle ACE – Applications, DB
 Speakers @ Oracle Open World, IOUG, VMworld, VMware Partner
Exchange, EMC World and Webinars
 Industry recognized expert in Oracle and Virtualization
technologies.
 Blog: http://blogs.vmware.com/apps/oracle
7
Agenda Business Drivers
• Best Practices for Virtualizing Oracle
• Oracle 12c Rapid RAC Deployment
• Creating and preparing our Golden Image
Template
• Cloning RAC Clusters
• Adding and Removing node(s) to/from the
cluster
• vCOPs Metrics and Monitoring
8
Business Drivers
• Leveraging the advantages of virtual servers over physical servers.
• Virtual infrastructure advantages:
• Availability, Platform Consistency, Flexibility, Speed, Elasticity,
Networking
• Standardizing on a Single Common Hardware Platform (software
stack)
• Reduction of infrastructure costs (CapEx and OpEX)
• Enabling Oracle as a service in a public or private cloud
• Movement towards the Software Defined Data Center
9
Evolution of the DBA
Kind of DBA Timeline
CLI DBA Early 90’s DBAs
GUI DBA Late 90’s and Dot Com
Google DBA Dot Com and 2000’s
iDBA Dot Com, IOUG iDBA Master Curriculum
RAC DBAs 2000+ after 9.2 (but major spike with 10.2)
DMA 2010+ Database Machine Administrator
vDBA / vRAC DBA 2010+
Evolving role of a DBA in the virtual world
Cloud DBA 2011+ Database Consolidation with Private Database Cloud
Oracle Database 12c Launches June 2013
Agenda
10
• Business Drivers
 Best Practices for Virtualizing Oracle
• Oracle 12c Rapid RAC Deployment
• Creating and preparing our Golden Image
Template
• Cloning RAC Clusters
• Adding and Removing node(s) to/from the
cluster
• vCOPs Metrics and Monitoring
11
• Use10GigE network is active/passive
• Should sustain the interconnect traffic
• Use RAC Services placement to limit internode traffic
• Use Jumbo frames for private interconnect network for
payload efficiency
• Use VMXNET3
• Disable NIC interrupt coalescing for RAC private interconnect
Resource Sizing Network
12
• Use Thick Eager-zero disks as first priority
• Use RDMs as a last resort
• Set the memory reservation equal to (or slightly higher than) the size of the Oracle SGA
• Use Para-virtualized SCSI adapters for demanding workloads.
• Use VMware Virtual Hardware version 9
• Do not over-commit CPU for RAC databases
• Do not over-commit memory
VM Recommendations
• Disable devices that are not needed in the VM
• Disable processes that are not needed for a database server
• Use Huge pages in the VM
ESXi General Recommendations VM
Agenda
13
• Business Drivers
• Best Practices for Virtualizing Oracle
 Oracle 12c Rapid RAC Deployment
 Creating and preparing our Golden Image
Template
• Cloning RAC Clusters
• Adding and Removing node(s) to/from the
cluster
• vCOPs Metrics and Monitoring
14
VM Template - Red Hat 6.4+ ASMLIB Support
• As of May 2013
• ASMLib requires kmod-oracleasm (RHEL Supplementary Channel),
oracleasmlib and oracleasm-support packages
• Convert from udev to ASMLIB – http://dbaexpert.com/blog/
15
VM Template - ssh setup – The Alternative Way
http://www.dbaexpert.com/blog/ssh-setup-the-oracle-way/
http://www.dbaexpert.com/blog/sshsetup-on-a-7-node-rac/
$ pwd
/nfs/software/12c/grid/sshsetup
$ ./sshUserSetup.sh -user oracle -hosts "rac1 rac2" 
-noPromptPassphrase -advanced –exverify
The output of this script is also logged into
/tmp/sshUserSetup_2013-07-09-16-31-50.log
Space
16
VM Template - OS Watcher – The Alternative Way
Install OS Watcher Service RPM:
sudo rpm -ihv oswbb-service-1.1.5-1.noarch.rpm
Modify /etc/oswbb.conf
# Set OSW_HOME to the directory where you unpacked OSW or
OSWbba
OSW_HOME='/u01/app/oracle/oswbb'
# Set OSW_INTERVAL to the number of seconds between collections
OSW_INTERVAL='30'
# Set OSW_RETENTION to the number of hours logs are to be retained
OSW_RETENTION='168'
# Set OSW_USER to the owner of the OSW_HOME directory
OSW_USER='root'
# Set OSW_COMPRESSION to the desired compression facility
OSW_COMPRESSION='gzip’
http://www.dbaexpert.com/blog/the-better-way-to-configure-oswatcher/
How To Start OSWatcher Black Box (OSWBB) Every System Boot [ID 580513.1]
Start OSWatcher:
sudo /sbin/service oswbb start
Setup Auto-Start:
sudo /sbin/chkconfig on
17
Prepare Grid and Oracle Home
Unlock the Grid Home
# cd $GRID_HOME/crs/install
# perl rootcrs.pl –unlock –crshome $GRID_HOME
Create TAR ball of GI Home
•Exclude directories, logfiles, text files
# export GRID_HOME=/u01/app/grid/12.1.0
# cd ${GRID_HOME}
# tar cpfX - ${EXCLUDE_LIST} * > ${NFS_DIR}/Grid.tar
${GRID_HOME}/host_name
${GRID_HOME}/rdbms/audit/*
${GRID_HOME}/log/host_name
${GRID_HOME}/gpnp/host_name
${GRID_HOME}/log/diag/asmcmd/*
${GRID_HOME}/log/diag/tnslsnr/*
${GRID_HOME}/ccr/hosts/*
${GRID_HOME}/cdata/*
${GRID_HOME}/crs/install/*.txt
${GRID_HOME}/evm/log/*
${GRID_HOME}/install/*.log
${GRID_HOME}/network/admin/*.ba
k.*
${GRID_HOME}/network/admin/*.ora
${GRID_HOME}/ohasd/init/*
${GRID_HOME}/root.sh
${GRID_HOME}/*ouibak*
*.ouibak
*.log
18
Agenda• Business Drivers
• Best Practices for Virtualizing Oracle
 Oracle 12c Rapid RAC Deployment
• Creating and preparing our Golden Image
Template
 Cloning RAC Clusters
• Adding and Removing node(s) to/from the
cluster
• vCOPs Metrics and Monitoring
Execute root.sh
on each node
* All the Magic
happens here
Configure
Cluster Stack
* Spend all the
time here
performing
automation
Execute root.sh
on each node
Clone Grid Home
on each node
Prepare Source
Environment
(Exclude Misc
Dirs and Logs)
19
Clone Grid Home Topology
Un-TAR Grid TARUn-TAR Grid TAR
20
Clone Database Home Topology Create Golden
Image Database
Un-TAR DB TAR
Execute root.sh
on each node
* All the Magic
happens here
Configure
Cluster Stack
* Spend all the
time here
performing
automation
Execute root.sh
on each node
Clone Grid Home
on each node
Prepare Source
Environment
(Exclude Misc
Dirs and Logs)
Un-TAR Grid TARUn-TAR Grid TAR
Clone DB Home
on each node
Execute root.sh
on each node
Create RAC DB
from Golden
Image
21
Clone Grid Home on Each Node
cd ${GI_HOME}/clone/bin
perl ${GI_HOME}/clone/bin/clone.pl -silent 
ORACLE_HOME=${GI_HOME} 
ORACLE_HOME_NAME=OraGridHome1 
ORACLE_BASE=$ORACLE_BASE 
-O'"CLUSTER_NODES={rac1,rac2,rac3}"' 
-O'"LOCAL_NODE=$(hostname -s)"' 
CRS=TRUE INVENTORY_LOCATION=${INVENTORY_LOCATION}
22
config.sh in GUI mode
23
config.sh in silent mode
export DIR=$(pwd)
FN=`echo $0 | sed s/.*[/]//`
${GRID_HOME}/crs/config/config.sh -silent -responseFile 
${DIR}/${CLUSTER_NAME}.rsp 
-ignorePrereq -ignoreSysPrereqs
24
Clone DB Home on Each Node
JAVA_HOME=${ORACLE_DB_HOME}/jdk/bin/java
PATH=$PATH:${JAVA_HOME}
cd ${ORACLE_DB_HOME}/clone/bin
perl ${ORACLE_DB_HOME}/clone/bin/clone.pl -silent 
ORACLE_HOME=${ORACLE_DB_HOME}
ORACLE_HOME_NAME=OraDBHome1 
ORACLE_BASE=$ORACLE_BASE 
-O'"CLUSTER_NODES={rac1,rac2,rac3}"' 
-O'"LOCAL_NODE=$(hostname -s)"' CRS=TRUE 
INVENTORY_LOCATION=${INVENTORY_LOCATION}
1. Create Golden Image DB Template
export BKUP_DIR=/bkups/templates
dbca -silent -createCloneTemplate 
-sourceSID RACDB 
-templateName db_gold_01 
-sysDBAUserName sys 
-sysDBAPassword oracle123 
-maintainFileLocations false 
-datafileJarLocation $BKUP_DIR
2. Locate the the tempate xml file in the format of .dbc 
$ cd $ORACLE_HOME
$ find . -name '*.dbc'
./assistants/dbca/templates/General_Purpose.dbc
./assistants/dbca/
templates/Data_Warehouse.dbc
./assistants/dbca/templates/db_gold_01.dbc
3. Copy to the target $ORACLE_HOME/assistants/dbca/templates
db_gold_01.dbc
-- to /bkups/templates (or NFS)
$ ls -l /bkups/templates
total 282784
-rw-r----- 1 oracle
oinstall 18497536 May 8 08:37 gb_gold_01.ctl
-rw-r----- 1 oracle oinstall 270778368 May 8
08:37 gb_gold_01.dfb
25
Source DB
dbca backup
dbca cold
backup piece
Copy .dbc file to
$ORACLE_HOME on
Target
Copy dbca backup to
target
Create symbolic link
to NFS Mount
Create Golden Image Template of Database
26
Clone Database From Template
dbca -silent 
-createDatabase 
-templateName db_gold_01.dbc 
-gdbName racdb 
-sid racdb 
-SysPassword oracle123 
-SystemPassword oracle123 
-emConfiguration NONE 
-redoLogFileSize 500 
-recoveryAreaDestination FRA 
-storageType ASM 
-asmSysPassword oracle123 
-diskGroupName DATA 
-listeners LISTENER_RAC 
-characterSet AL32UTF8 
-nationalCharacterSet AL16UTF16 
-databaseType MULTIPURPOSE 
-nodelist rac1,rac2,rac3 
-initparams audit_file_dest=’/oraacfs/trace/racdb/adump' 
-initparams compatible='11.2.0.3' 
-initparams db_create_file_dest='+DATA' 
-initparams db_create_online_log_dest_1='+DATA' 
-initparams db_create_online_log_dest_2='+FRA' 
-initparams diagnostic_dest=’/oraacfs' 
-initparams parallel_max_servers=32 
-initparams pga_aggregate_target=524288000 
-initparams processes=400 
-initparams sga_target=4294967296 
-initparams db_recovery_file_dest='+FRA' 
-initparams db_recovery_file_dest_size=2097152000
Source DB
dbca backup
Target DB
restore/config from
dbca
dbca cold
backup piece
dbca cold backup
piece + template
.dbc file
Copy .dbc file to
$ORACLE_HOME on Target
Copy dbca backup to target
Create symbolic link
to NFS Mount
27
Putting it all together
How do we do it:
Clone GRID Homes on all RAC nodes – Template script and
replace Homes and Nodes
Setup 2 Configuration files
1. Primary config file that has only the relevant information
(Hostname, VIPs, SCAN, Private Subnet, Listener Name, DB
Name)
2. Generic config file that applies to every build
(OFA related directories, DB Home, Grid Home, Oracle Base,
OraInventory Loc, etc)
Generate Response File and tag PLACEHOLDERS within the
response file
 Globally search and replace PLACEHOLDERS
Clone DB Homes on all RAC nodes – Template script and
replace Homes and Nodes
28
Agenda• Business Drivers
• Best Practices for Virtualizing Oracle
 Oracle 12c Rapid RAC Deployment
• Creating and preparing our Golden Image
Template
• Cloning RAC Clusters
 Adding and Removing node(s) to/from
the cluster
• vCOPs Metrics and Monitoring
29
Add Node – 4 Step Process
1. From one node (First Node)
export ORACLE_HOME=/u01/app/11.2.0/grid
export PATH=$ORACLE_HOME/bin:$PATH
export IGNORE_PREADDNODE_CHECKS=Y
${ORACLE_HOME}/oui/bin/addNode.sh -silent "CLUSTER_NEW_NODES={rac4}" 
"CLUSTER_NEW_VIRTUAL_HOSTNAMES={rac4-vip}" 
"CLUSTER_NEW_PRIVATE_NODE_NAMES={rac4-priv}” -noCopy
2. Target Node Only:
cd /u01/app/oracle/product/11.2.0/db/clone/bin
perl /u01/app/oracle/product/11.2.0/db/clone/bin/clone.pl -silent 
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db ORACLE_HOME_NAME=OraDBHome1 
ORACLE_BASE=/u01/app/oracle -O'"CLUSTER_NODES={rac1,rac2,rac3,rac4}"' 
-O'"LOCAL_NODE=$(hostname -s)"' CRS=TRUE
INVENTORY_LOCATION=/u01/app/oraInventory}
3. Original Nodes:
/u01/app/oracle/product/11.2.0/db/oui/bin/runInstaller -updateNodeList
CLUSTER_NODES=rac1,rac2,rac3,rac4 
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db -local
30
Add Instance (Easy Way) – Last Step
export ORACLE_SID=racdb1
export ORACLE_HOME=$ORACLE_DB_HOME
export PATH=$ORACLE_DB_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
dbca -silent -addInstance -gdbName racdb -nodelist rac4 -instanceName racdb4 
-sysDBAUsername sys -sysDBAPassword oracle123
srvctl config database –d racdb
31
Delete Instance – 3 Step Process (Fist Step)
1.
export ORACLE_SID=racdb1
export ORACLE_HOME=$ORACLE_DB_HOME
export PATH=$ORACLE_DB_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
dbca -silent -DeleteInstance -gdbName racdb -nodelist rac4 
-instanceName racdb4 -sysDBAUsername sys -sysDBAPassword oracle123
srvctl config database -d racdb
32
Delete Node
2. From one of the nodes:
export ORACLE_SID=+ASM1
export ORAENV_ASK=NO
. oraenv
export ORACLE_HOME=$ORACLE_CRS_HOME
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
${ORACLE_CRS_HOME}/bin/crsctl delete node -n ${NODE_TO_BE_DELETED}
3. Remaining nodes:
/u01/app/11.2.0/grid/oui/bin/runInstaller -updateNodeList
CLUSTER_NODES=rac1,rac2 
ORACLE_HOME=/u01/app/11.2.0/grid -local
/u01/app/oracle/product/11.2.0/db/oui/bin/runInstaller -updateNodeList
CLUSTER_NODES=rac1,rac2 
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db -local
33
Agenda• Business Drivers
• Best Practices for Virtualizing Oracle
• Oracle 12c Rapid RAC Deployment
• Creating and preparing our Golden Image
Template
• Cloning RAC Clusters
• Adding and Removing node(s) to/from the
cluster
 vCOPs Metrics and Monitoring
34
Easy?
Partial information can often
lead to inaccurate
conclusions and results.
We Need Easy visibility
into the entire stack from the application level
to the guest operating system and
underlying virtual layer.
35
Zombie Sharks! Easy Oracle RAC day to day?
Color?
Number?
Type?
Consistent Clear Critical
36
vCOPs Mgr. Architected for Ease
37
Easy to Answers the Big
Questions
38
Pervasive or Isolated?
Easy Access End to End
Depth of Detail-Root Cause
39
1.
2.
3.
Root Analysis
Gives
Oracle DBAs
Easy Resolutions
40
Let’s Review
Reduced time for troubleshooting
Visibility to entire environment
Improved monitoring efficiency
Proactive response to problems
Easy Management of Oracle RAC !!
41
vCenter Operations Can Easily Reach Into Oracle
42
Performance Management – vCenter
Operations Manager(OEM Adapter)
43
Monitoring: VMware vCenter Operations Enterprise Edition
Benefits:
 Provides Operational status and the
ability to drill down on a data center,
cluster, VM & storage
 Identifies waste : Provides workload
usage to application owners
requesting unnecessary CPU &
memory
 Health check with Short & Long Term
Capacity Planning
 Oracle Enterprise Manager Adapter
 Single pane view for DBA and VI-
Admins
44
vC OPs Oracle OEM Adapter – High Level Architecture
OpenVPN
Postgres DB
vSphere
WebApp
Custom
WebApp
Admin
WebApp
vCenter Operations Manager vApp
UI VM
Rolled up
capacity data
Capacity Analytics
FSDB
Postgres DB
Collector
ActiveMQ
Performance Analytics
Analytics VM
Metric
Data
Oracle Database Virtual
Environment
vSphere
vC Ops Mgr vSphere UI
Oracle OEM
Adapter
vCenter
Communications
over SSL
vC Ops Mgr Custom Dashboard – Oracle
jdbc:oracle:thin:@host:port:SID
45
Install and Configure Oracle Enterprise Manager Adapter
https://<machine>/admin: upload .pak https://<machine>/custom : Add a Credential
Add a adapter instanceValidate
1 2
34
46
vCOPS – Custom Interface
 Reached by https://<machine->/vcops-custom
 Enabled by the Enterprise or Enterprise Plus Key
 Same Data as vCOPS-vSphere
 Independent Access Control from VCOPS-vSphere (Configured later)
• Add Adapters
• Modify KPI’s
• Create Relationships
• Create Super Metrics
• Create Dashboards
• Access Control
47
Create a Custom Oracle Admin Dashboard
Three Column
Layout
Drag the
Required Widget
48
Configuring Metric Graph Widget – CPU metrics from OEM Adapter
Widget
Title
Select OEM
Resources
Selected
Resource List
Select Metrics
Here
Selected Metrics
Added Here
49
Configuring Scoreboard Widget – Memory metrics from OEM Adapter
Widget
Title
Select OEM
Resources
Selected
Resource List
Select Metrics
Here
Selected Metrics
Added Here
Specify Ranges
Here
50
Oracle Database – Final Dashboard Overview
1 2 3
4 5 6
51
Oracle Database – Final Dashboard Overview
1 2 3
4 5 6
Health tree shows all
the Oracle DB Server
related components
52
Oracle Database – Final Dashboard
1 2 3
4 5 6
Cache Hit
Ratio Dropped
CPU Utilization
and Physical I/O Read
Similar during
Consistent Workload
53
Oracle Enterprise Manager – All Metrics
DB Instance
PRD
All Metrics
Download http://goo.gl/29IMHaMonitoring Business Critical Applications with VMware vCenter™ Operations Manager™
54
PLACEHOLDER -
vCOPs Plug-in for
OEM 12c Cloud Control
55
Questions
Email ckim@viscosityNA.com
Charles @racdba
56
More detailed information is available at
viscosityna.com or by talking to a real
person at 469.444.1380
@ViscosityNA
57
Other VMware Activities Related to This Session
 HOL:
HOL-SDC-1304 and HOL-SDC-1317
vSphere Performance Optimization
vCloud Suite Use Cases - Business Critical Applications
 Group Discussions:
VAPP1007-GD
Oracle/Storage with Mark Achtemichuk
THANK YOU
Virtualizing Mission Critical Oracle RAC
with vSphere and vCOPS
Steven Jones, VMware
Charles Kim, Viscosity North America
Kannan Mani, VMware
George Trujillo, Hortonworks
VAPP5834
#VAPP5834

Contenu connexe

Tendances

Tendances (20)

LVOUG meetup #2 - Forcing SQL Execution Plan Instability
LVOUG meetup #2 - Forcing SQL Execution Plan InstabilityLVOUG meetup #2 - Forcing SQL Execution Plan Instability
LVOUG meetup #2 - Forcing SQL Execution Plan Instability
 
MySQL features missing in MariaDB Server
MySQL features missing in MariaDB ServerMySQL features missing in MariaDB Server
MySQL features missing in MariaDB Server
 
Database as a Service on the Oracle Database Appliance Platform
Database as a Service on the Oracle Database Appliance PlatformDatabase as a Service on the Oracle Database Appliance Platform
Database as a Service on the Oracle Database Appliance Platform
 
Oracle OpenWorld 2016 Review - High Level Overview of major themes and grand ...
Oracle OpenWorld 2016 Review - High Level Overview of major themes and grand ...Oracle OpenWorld 2016 Review - High Level Overview of major themes and grand ...
Oracle OpenWorld 2016 Review - High Level Overview of major themes and grand ...
 
Differences between MariaDB 10.3 & MySQL 8.0
Differences between MariaDB 10.3 & MySQL 8.0Differences between MariaDB 10.3 & MySQL 8.0
Differences between MariaDB 10.3 & MySQL 8.0
 
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
 
Oracle OpenWorld 2016 Review - Focus on Data, BigData, Streaming Data, Machin...
Oracle OpenWorld 2016 Review - Focus on Data, BigData, Streaming Data, Machin...Oracle OpenWorld 2016 Review - Focus on Data, BigData, Streaming Data, Machin...
Oracle OpenWorld 2016 Review - Focus on Data, BigData, Streaming Data, Machin...
 
Meet MariaDB Server 10.1 London MySQL meetup December 2015
Meet MariaDB Server 10.1 London MySQL meetup December 2015Meet MariaDB Server 10.1 London MySQL meetup December 2015
Meet MariaDB Server 10.1 London MySQL meetup December 2015
 
MySQL High Availability Solutions
MySQL High Availability SolutionsMySQL High Availability Solutions
MySQL High Availability Solutions
 
Extreme Replication - RMOUG Presentation
Extreme Replication - RMOUG PresentationExtreme Replication - RMOUG Presentation
Extreme Replication - RMOUG Presentation
 
Databases in the hosted cloud
Databases in the hosted cloud Databases in the hosted cloud
Databases in the hosted cloud
 
Choosing a MySQL High Availability solution - Percona Live UK 2011
Choosing a MySQL High Availability solution - Percona Live UK 2011Choosing a MySQL High Availability solution - Percona Live UK 2011
Choosing a MySQL High Availability solution - Percona Live UK 2011
 
Best practices for MySQL High Availability Tutorial
Best practices for MySQL High Availability TutorialBest practices for MySQL High Availability Tutorial
Best practices for MySQL High Availability Tutorial
 
Best practices for MySQL/MariaDB Server/Percona Server High Availability
Best practices for MySQL/MariaDB Server/Percona Server High AvailabilityBest practices for MySQL/MariaDB Server/Percona Server High Availability
Best practices for MySQL/MariaDB Server/Percona Server High Availability
 
How to upgrade like a boss to my sql 8.0?
How to upgrade like a boss to my sql 8.0?How to upgrade like a boss to my sql 8.0?
How to upgrade like a boss to my sql 8.0?
 
Oracle Traffic Director - a vital part of your Oracle infrastructure
Oracle Traffic Director - a vital part of your Oracle infrastructureOracle Traffic Director - a vital part of your Oracle infrastructure
Oracle Traffic Director - a vital part of your Oracle infrastructure
 
Oow2016 review-db-dev-bigdata-BI
Oow2016 review-db-dev-bigdata-BIOow2016 review-db-dev-bigdata-BI
Oow2016 review-db-dev-bigdata-BI
 
MariaDB 10.1 what's new and what's coming in 10.2 - Tokyo MariaDB Meetup
MariaDB 10.1   what's new and what's coming in 10.2 - Tokyo MariaDB MeetupMariaDB 10.1   what's new and what's coming in 10.2 - Tokyo MariaDB Meetup
MariaDB 10.1 what's new and what's coming in 10.2 - Tokyo MariaDB Meetup
 
MySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB Cluster
 
The True State of the Oracle Public Cloud - Dutch Oracle Architects Platform ...
The True State of the Oracle Public Cloud - Dutch Oracle Architects Platform ...The True State of the Oracle Public Cloud - Dutch Oracle Architects Platform ...
The True State of the Oracle Public Cloud - Dutch Oracle Architects Platform ...
 

Similaire à VMworld 2013: Virtualizing Mission Critical Oracle RAC with vSphere and vCOPS

8. od maximum availability-sparc-v1.1-fb
8. od maximum availability-sparc-v1.1-fb8. od maximum availability-sparc-v1.1-fb
8. od maximum availability-sparc-v1.1-fb
Doina Draganescu
 

Similaire à VMworld 2013: Virtualizing Mission Critical Oracle RAC with vSphere and vCOPS (20)

Oracle dba rac 11g training
Oracle dba rac 11g trainingOracle dba rac 11g training
Oracle dba rac 11g training
 
2019 - OOW - Database Migration Methods from On-Premise to Cloud
2019 - OOW - Database Migration Methods from On-Premise to Cloud2019 - OOW - Database Migration Methods from On-Premise to Cloud
2019 - OOW - Database Migration Methods from On-Premise to Cloud
 
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
2019 - GUOB Tech Day / Groundbreakers LAD Tour - Database Migration Methods t...
 
Oracle RAC - New Generation
Oracle RAC - New GenerationOracle RAC - New Generation
Oracle RAC - New Generation
 
2020 - OCI Key Concepts for Oracle DBAs
2020 - OCI Key Concepts for Oracle DBAs2020 - OCI Key Concepts for Oracle DBAs
2020 - OCI Key Concepts for Oracle DBAs
 
Oracle GoldenGate 21c New Features and Best Practices
Oracle GoldenGate 21c New Features and Best PracticesOracle GoldenGate 21c New Features and Best Practices
Oracle GoldenGate 21c New Features and Best Practices
 
Expert performance tuning tips for Oracle RAC
Expert performance tuning tips for Oracle RACExpert performance tuning tips for Oracle RAC
Expert performance tuning tips for Oracle RAC
 
Presentation building an oracle stack for maximum performance and availability
Presentation   building an oracle stack for maximum performance and availabilityPresentation   building an oracle stack for maximum performance and availability
Presentation building an oracle stack for maximum performance and availability
 
8. od maximum availability-sparc-v1.1-fb
8. od maximum availability-sparc-v1.1-fb8. od maximum availability-sparc-v1.1-fb
8. od maximum availability-sparc-v1.1-fb
 
Getting Started with MariaDB with Docker
Getting Started with MariaDB with DockerGetting Started with MariaDB with Docker
Getting Started with MariaDB with Docker
 
MariaDB on Docker
MariaDB on DockerMariaDB on Docker
MariaDB on Docker
 
Getting started with MariaDB with Docker
Getting started with MariaDB with DockerGetting started with MariaDB with Docker
Getting started with MariaDB with Docker
 
VMworld 2013: Virtualizing Databases: Doing IT Right
VMworld 2013: Virtualizing Databases: Doing IT Right VMworld 2013: Virtualizing Databases: Doing IT Right
VMworld 2013: Virtualizing Databases: Doing IT Right
 
Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories.
Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories. Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories.
Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories.
 
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
 
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast SlidesOracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
 
How Development Teams Cut Costs with ScyllaDB.pdf
How Development Teams Cut Costs with ScyllaDB.pdfHow Development Teams Cut Costs with ScyllaDB.pdf
How Development Teams Cut Costs with ScyllaDB.pdf
 
WebLogic on ODA - Oracle Open World 2013
WebLogic on ODA - Oracle Open World 2013WebLogic on ODA - Oracle Open World 2013
WebLogic on ODA - Oracle Open World 2013
 
MV2ADB - Move to Oracle Autonomous Database in One-click
MV2ADB - Move to Oracle Autonomous Database in One-clickMV2ADB - Move to Oracle Autonomous Database in One-click
MV2ADB - Move to Oracle Autonomous Database in One-click
 
BDTC2015 hulu-梁宇明-voidbox - docker on yarn
BDTC2015 hulu-梁宇明-voidbox - docker on yarnBDTC2015 hulu-梁宇明-voidbox - docker on yarn
BDTC2015 hulu-梁宇明-voidbox - docker on yarn
 

Plus de VMworld

Plus de VMworld (20)

VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep Dive
 
VMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Troubleshooting 101 for HorizonVMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Troubleshooting 101 for Horizon
 
VMworld 2016: Advanced Network Services with NSX
VMworld 2016: Advanced Network Services with NSXVMworld 2016: Advanced Network Services with NSX
VMworld 2016: Advanced Network Services with NSX
 
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: How to Deploy VMware NSX with Cisco InfrastructureVMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
 
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI AutomationVMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
 
VMworld 2016: What's New with Horizon 7
VMworld 2016: What's New with Horizon 7VMworld 2016: What's New with Horizon 7
VMworld 2016: What's New with Horizon 7
 
VMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Virtual Volumes Technical Deep DiveVMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Virtual Volumes Technical Deep Dive
 
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
 
VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: The KISS of vRealize Operations! VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: The KISS of vRealize Operations!
 
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
 
VMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Ask the vCenter Server Exerts PanelVMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Ask the vCenter Server Exerts Panel
 
VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Virtualize Active Directory, the Right Way! VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Virtualize Active Directory, the Right Way!
 
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
 
VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Troubleshooting for vSphere 6VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Troubleshooting for vSphere 6
 
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
 
VMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Advanced SQL Server on vSphereVMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Advanced SQL Server on vSphere
 
VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!
 
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
 
VMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Building a Business Case for Virtual SANVMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Building a Business Case for Virtual SAN
 
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2015: Explaining Advanced Virtual Volumes ConfigurationsVMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
 

Dernier

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
FIDO Alliance
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 

Dernier (20)

Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 

VMworld 2013: Virtualizing Mission Critical Oracle RAC with vSphere and vCOPS

  • 1. Virtualizing Mission Critical Oracle RAC with vSphere and vCOPS Steven Jones, VMware Charles Kim, Viscosity North America Kannan Mani, VMware George Trujillo, Hortonworks VAPP5834 #VAPP5834
  • 2. iBook available: Free for session attendees ONLY Please email ckim@viscosityna.com for the URL
  • 3. • Oracle ACE Director • VMware vExpert • Over 22 years of Oracle Expertise, Exadata, RAC, Data Guard, ASM, RMAN, Shareplex / Golden Gate • IOUG Cloud Computing SIG Executive Committee • Blog Site: http://oravm.com + http://dbaexpert.com • Oracle Certified RAC Expert Charles Kim @racdba
  • 4. George Trujillo • Master Principal Big Data Specialist - Hortonworks • Tier One BigData, Oracle and BCA Specialist - VMware • Oracle Double ACE • 20+ years Oracle DBA: DW, BI, RAC, Streams, Data Guard, Perf, B/R • Sun Microsystem's Ambassador for Application Middleware • Oracle Fusion Council & Oracle Beta Leadership Council • Two terms Independent Oracle Users Group Board of Directors • Recognized as one of the “Oracles of Oracle” by IOUG • MySQL Certified DBA • VMware Certified Instructor (VCI)
  • 5. • VMware 4X and 5.X Certified Professional • VCI VMware Certified Instructor • CompTIA Cloud Certified • Principal Instructor – Oracle Corporation • Master Consultant Distinction - Sun Microsystems • Solaris 8 , 9, 10 Certified System Administrator • Solaris 8,9 Certified Network Administrator • Certified MySQL DBA Steven Jones
  • 6. 6 Kannan Mani  15+ years Oracle experience : Oracle RAC, ASM, Clustering, CRM, ERP, Business Intelligence, Performance and Scalable Enterprise Application Architecture, Benchmark and Performance, Technical solutions marketing and management, Virtualization and Cloud solutions  Oracle ACE – Applications, DB  Speakers @ Oracle Open World, IOUG, VMworld, VMware Partner Exchange, EMC World and Webinars  Industry recognized expert in Oracle and Virtualization technologies.  Blog: http://blogs.vmware.com/apps/oracle
  • 7. 7 Agenda Business Drivers • Best Practices for Virtualizing Oracle • Oracle 12c Rapid RAC Deployment • Creating and preparing our Golden Image Template • Cloning RAC Clusters • Adding and Removing node(s) to/from the cluster • vCOPs Metrics and Monitoring
  • 8. 8 Business Drivers • Leveraging the advantages of virtual servers over physical servers. • Virtual infrastructure advantages: • Availability, Platform Consistency, Flexibility, Speed, Elasticity, Networking • Standardizing on a Single Common Hardware Platform (software stack) • Reduction of infrastructure costs (CapEx and OpEX) • Enabling Oracle as a service in a public or private cloud • Movement towards the Software Defined Data Center
  • 9. 9 Evolution of the DBA Kind of DBA Timeline CLI DBA Early 90’s DBAs GUI DBA Late 90’s and Dot Com Google DBA Dot Com and 2000’s iDBA Dot Com, IOUG iDBA Master Curriculum RAC DBAs 2000+ after 9.2 (but major spike with 10.2) DMA 2010+ Database Machine Administrator vDBA / vRAC DBA 2010+ Evolving role of a DBA in the virtual world Cloud DBA 2011+ Database Consolidation with Private Database Cloud Oracle Database 12c Launches June 2013
  • 10. Agenda 10 • Business Drivers  Best Practices for Virtualizing Oracle • Oracle 12c Rapid RAC Deployment • Creating and preparing our Golden Image Template • Cloning RAC Clusters • Adding and Removing node(s) to/from the cluster • vCOPs Metrics and Monitoring
  • 11. 11 • Use10GigE network is active/passive • Should sustain the interconnect traffic • Use RAC Services placement to limit internode traffic • Use Jumbo frames for private interconnect network for payload efficiency • Use VMXNET3 • Disable NIC interrupt coalescing for RAC private interconnect Resource Sizing Network
  • 12. 12 • Use Thick Eager-zero disks as first priority • Use RDMs as a last resort • Set the memory reservation equal to (or slightly higher than) the size of the Oracle SGA • Use Para-virtualized SCSI adapters for demanding workloads. • Use VMware Virtual Hardware version 9 • Do not over-commit CPU for RAC databases • Do not over-commit memory VM Recommendations • Disable devices that are not needed in the VM • Disable processes that are not needed for a database server • Use Huge pages in the VM ESXi General Recommendations VM
  • 13. Agenda 13 • Business Drivers • Best Practices for Virtualizing Oracle  Oracle 12c Rapid RAC Deployment  Creating and preparing our Golden Image Template • Cloning RAC Clusters • Adding and Removing node(s) to/from the cluster • vCOPs Metrics and Monitoring
  • 14. 14 VM Template - Red Hat 6.4+ ASMLIB Support • As of May 2013 • ASMLib requires kmod-oracleasm (RHEL Supplementary Channel), oracleasmlib and oracleasm-support packages • Convert from udev to ASMLIB – http://dbaexpert.com/blog/
  • 15. 15 VM Template - ssh setup – The Alternative Way http://www.dbaexpert.com/blog/ssh-setup-the-oracle-way/ http://www.dbaexpert.com/blog/sshsetup-on-a-7-node-rac/ $ pwd /nfs/software/12c/grid/sshsetup $ ./sshUserSetup.sh -user oracle -hosts "rac1 rac2" -noPromptPassphrase -advanced –exverify The output of this script is also logged into /tmp/sshUserSetup_2013-07-09-16-31-50.log Space
  • 16. 16 VM Template - OS Watcher – The Alternative Way Install OS Watcher Service RPM: sudo rpm -ihv oswbb-service-1.1.5-1.noarch.rpm Modify /etc/oswbb.conf # Set OSW_HOME to the directory where you unpacked OSW or OSWbba OSW_HOME='/u01/app/oracle/oswbb' # Set OSW_INTERVAL to the number of seconds between collections OSW_INTERVAL='30' # Set OSW_RETENTION to the number of hours logs are to be retained OSW_RETENTION='168' # Set OSW_USER to the owner of the OSW_HOME directory OSW_USER='root' # Set OSW_COMPRESSION to the desired compression facility OSW_COMPRESSION='gzip’ http://www.dbaexpert.com/blog/the-better-way-to-configure-oswatcher/ How To Start OSWatcher Black Box (OSWBB) Every System Boot [ID 580513.1] Start OSWatcher: sudo /sbin/service oswbb start Setup Auto-Start: sudo /sbin/chkconfig on
  • 17. 17 Prepare Grid and Oracle Home Unlock the Grid Home # cd $GRID_HOME/crs/install # perl rootcrs.pl –unlock –crshome $GRID_HOME Create TAR ball of GI Home •Exclude directories, logfiles, text files # export GRID_HOME=/u01/app/grid/12.1.0 # cd ${GRID_HOME} # tar cpfX - ${EXCLUDE_LIST} * > ${NFS_DIR}/Grid.tar ${GRID_HOME}/host_name ${GRID_HOME}/rdbms/audit/* ${GRID_HOME}/log/host_name ${GRID_HOME}/gpnp/host_name ${GRID_HOME}/log/diag/asmcmd/* ${GRID_HOME}/log/diag/tnslsnr/* ${GRID_HOME}/ccr/hosts/* ${GRID_HOME}/cdata/* ${GRID_HOME}/crs/install/*.txt ${GRID_HOME}/evm/log/* ${GRID_HOME}/install/*.log ${GRID_HOME}/network/admin/*.ba k.* ${GRID_HOME}/network/admin/*.ora ${GRID_HOME}/ohasd/init/* ${GRID_HOME}/root.sh ${GRID_HOME}/*ouibak* *.ouibak *.log
  • 18. 18 Agenda• Business Drivers • Best Practices for Virtualizing Oracle  Oracle 12c Rapid RAC Deployment • Creating and preparing our Golden Image Template  Cloning RAC Clusters • Adding and Removing node(s) to/from the cluster • vCOPs Metrics and Monitoring
  • 19. Execute root.sh on each node * All the Magic happens here Configure Cluster Stack * Spend all the time here performing automation Execute root.sh on each node Clone Grid Home on each node Prepare Source Environment (Exclude Misc Dirs and Logs) 19 Clone Grid Home Topology Un-TAR Grid TARUn-TAR Grid TAR
  • 20. 20 Clone Database Home Topology Create Golden Image Database Un-TAR DB TAR Execute root.sh on each node * All the Magic happens here Configure Cluster Stack * Spend all the time here performing automation Execute root.sh on each node Clone Grid Home on each node Prepare Source Environment (Exclude Misc Dirs and Logs) Un-TAR Grid TARUn-TAR Grid TAR Clone DB Home on each node Execute root.sh on each node Create RAC DB from Golden Image
  • 21. 21 Clone Grid Home on Each Node cd ${GI_HOME}/clone/bin perl ${GI_HOME}/clone/bin/clone.pl -silent ORACLE_HOME=${GI_HOME} ORACLE_HOME_NAME=OraGridHome1 ORACLE_BASE=$ORACLE_BASE -O'"CLUSTER_NODES={rac1,rac2,rac3}"' -O'"LOCAL_NODE=$(hostname -s)"' CRS=TRUE INVENTORY_LOCATION=${INVENTORY_LOCATION}
  • 23. 23 config.sh in silent mode export DIR=$(pwd) FN=`echo $0 | sed s/.*[/]//` ${GRID_HOME}/crs/config/config.sh -silent -responseFile ${DIR}/${CLUSTER_NAME}.rsp -ignorePrereq -ignoreSysPrereqs
  • 24. 24 Clone DB Home on Each Node JAVA_HOME=${ORACLE_DB_HOME}/jdk/bin/java PATH=$PATH:${JAVA_HOME} cd ${ORACLE_DB_HOME}/clone/bin perl ${ORACLE_DB_HOME}/clone/bin/clone.pl -silent ORACLE_HOME=${ORACLE_DB_HOME} ORACLE_HOME_NAME=OraDBHome1 ORACLE_BASE=$ORACLE_BASE -O'"CLUSTER_NODES={rac1,rac2,rac3}"' -O'"LOCAL_NODE=$(hostname -s)"' CRS=TRUE INVENTORY_LOCATION=${INVENTORY_LOCATION}
  • 25. 1. Create Golden Image DB Template export BKUP_DIR=/bkups/templates dbca -silent -createCloneTemplate -sourceSID RACDB -templateName db_gold_01 -sysDBAUserName sys -sysDBAPassword oracle123 -maintainFileLocations false -datafileJarLocation $BKUP_DIR 2. Locate the the tempate xml file in the format of .dbc 
$ cd $ORACLE_HOME $ find . -name '*.dbc'
./assistants/dbca/templates/General_Purpose.dbc
./assistants/dbca/ templates/Data_Warehouse.dbc
./assistants/dbca/templates/db_gold_01.dbc 3. Copy to the target $ORACLE_HOME/assistants/dbca/templates
db_gold_01.dbc -- to /bkups/templates (or NFS)
$ ls -l /bkups/templates
total 282784
-rw-r----- 1 oracle oinstall 18497536 May 8 08:37 gb_gold_01.ctl
-rw-r----- 1 oracle oinstall 270778368 May 8 08:37 gb_gold_01.dfb 25 Source DB dbca backup dbca cold backup piece Copy .dbc file to $ORACLE_HOME on Target Copy dbca backup to target Create symbolic link to NFS Mount Create Golden Image Template of Database
  • 26. 26 Clone Database From Template dbca -silent -createDatabase -templateName db_gold_01.dbc -gdbName racdb -sid racdb -SysPassword oracle123 -SystemPassword oracle123 -emConfiguration NONE -redoLogFileSize 500 -recoveryAreaDestination FRA -storageType ASM -asmSysPassword oracle123 -diskGroupName DATA -listeners LISTENER_RAC -characterSet AL32UTF8 -nationalCharacterSet AL16UTF16 -databaseType MULTIPURPOSE -nodelist rac1,rac2,rac3 -initparams audit_file_dest=’/oraacfs/trace/racdb/adump' -initparams compatible='11.2.0.3' -initparams db_create_file_dest='+DATA' -initparams db_create_online_log_dest_1='+DATA' -initparams db_create_online_log_dest_2='+FRA' -initparams diagnostic_dest=’/oraacfs' -initparams parallel_max_servers=32 -initparams pga_aggregate_target=524288000 -initparams processes=400 -initparams sga_target=4294967296 -initparams db_recovery_file_dest='+FRA' -initparams db_recovery_file_dest_size=2097152000 Source DB dbca backup Target DB restore/config from dbca dbca cold backup piece dbca cold backup piece + template .dbc file Copy .dbc file to $ORACLE_HOME on Target Copy dbca backup to target Create symbolic link to NFS Mount
  • 27. 27 Putting it all together How do we do it: Clone GRID Homes on all RAC nodes – Template script and replace Homes and Nodes Setup 2 Configuration files 1. Primary config file that has only the relevant information (Hostname, VIPs, SCAN, Private Subnet, Listener Name, DB Name) 2. Generic config file that applies to every build (OFA related directories, DB Home, Grid Home, Oracle Base, OraInventory Loc, etc) Generate Response File and tag PLACEHOLDERS within the response file  Globally search and replace PLACEHOLDERS Clone DB Homes on all RAC nodes – Template script and replace Homes and Nodes
  • 28. 28 Agenda• Business Drivers • Best Practices for Virtualizing Oracle  Oracle 12c Rapid RAC Deployment • Creating and preparing our Golden Image Template • Cloning RAC Clusters  Adding and Removing node(s) to/from the cluster • vCOPs Metrics and Monitoring
  • 29. 29 Add Node – 4 Step Process 1. From one node (First Node) export ORACLE_HOME=/u01/app/11.2.0/grid export PATH=$ORACLE_HOME/bin:$PATH export IGNORE_PREADDNODE_CHECKS=Y ${ORACLE_HOME}/oui/bin/addNode.sh -silent "CLUSTER_NEW_NODES={rac4}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={rac4-vip}" "CLUSTER_NEW_PRIVATE_NODE_NAMES={rac4-priv}” -noCopy 2. Target Node Only: cd /u01/app/oracle/product/11.2.0/db/clone/bin perl /u01/app/oracle/product/11.2.0/db/clone/bin/clone.pl -silent ORACLE_HOME=/u01/app/oracle/product/11.2.0/db ORACLE_HOME_NAME=OraDBHome1 ORACLE_BASE=/u01/app/oracle -O'"CLUSTER_NODES={rac1,rac2,rac3,rac4}"' -O'"LOCAL_NODE=$(hostname -s)"' CRS=TRUE INVENTORY_LOCATION=/u01/app/oraInventory} 3. Original Nodes: /u01/app/oracle/product/11.2.0/db/oui/bin/runInstaller -updateNodeList CLUSTER_NODES=rac1,rac2,rac3,rac4 ORACLE_HOME=/u01/app/oracle/product/11.2.0/db -local
  • 30. 30 Add Instance (Easy Way) – Last Step export ORACLE_SID=racdb1 export ORACLE_HOME=$ORACLE_DB_HOME export PATH=$ORACLE_DB_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH dbca -silent -addInstance -gdbName racdb -nodelist rac4 -instanceName racdb4 -sysDBAUsername sys -sysDBAPassword oracle123 srvctl config database –d racdb
  • 31. 31 Delete Instance – 3 Step Process (Fist Step) 1. export ORACLE_SID=racdb1 export ORACLE_HOME=$ORACLE_DB_HOME export PATH=$ORACLE_DB_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH dbca -silent -DeleteInstance -gdbName racdb -nodelist rac4 -instanceName racdb4 -sysDBAUsername sys -sysDBAPassword oracle123 srvctl config database -d racdb
  • 32. 32 Delete Node 2. From one of the nodes: export ORACLE_SID=+ASM1 export ORAENV_ASK=NO . oraenv export ORACLE_HOME=$ORACLE_CRS_HOME export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH ${ORACLE_CRS_HOME}/bin/crsctl delete node -n ${NODE_TO_BE_DELETED} 3. Remaining nodes: /u01/app/11.2.0/grid/oui/bin/runInstaller -updateNodeList CLUSTER_NODES=rac1,rac2 ORACLE_HOME=/u01/app/11.2.0/grid -local /u01/app/oracle/product/11.2.0/db/oui/bin/runInstaller -updateNodeList CLUSTER_NODES=rac1,rac2 ORACLE_HOME=/u01/app/oracle/product/11.2.0/db -local
  • 33. 33 Agenda• Business Drivers • Best Practices for Virtualizing Oracle • Oracle 12c Rapid RAC Deployment • Creating and preparing our Golden Image Template • Cloning RAC Clusters • Adding and Removing node(s) to/from the cluster  vCOPs Metrics and Monitoring
  • 34. 34 Easy? Partial information can often lead to inaccurate conclusions and results. We Need Easy visibility into the entire stack from the application level to the guest operating system and underlying virtual layer.
  • 35. 35 Zombie Sharks! Easy Oracle RAC day to day? Color? Number? Type? Consistent Clear Critical
  • 37. 37 Easy to Answers the Big Questions
  • 38. 38 Pervasive or Isolated? Easy Access End to End Depth of Detail-Root Cause
  • 40. 40 Let’s Review Reduced time for troubleshooting Visibility to entire environment Improved monitoring efficiency Proactive response to problems Easy Management of Oracle RAC !!
  • 41. 41 vCenter Operations Can Easily Reach Into Oracle
  • 42. 42 Performance Management – vCenter Operations Manager(OEM Adapter)
  • 43. 43 Monitoring: VMware vCenter Operations Enterprise Edition Benefits:  Provides Operational status and the ability to drill down on a data center, cluster, VM & storage  Identifies waste : Provides workload usage to application owners requesting unnecessary CPU & memory  Health check with Short & Long Term Capacity Planning  Oracle Enterprise Manager Adapter  Single pane view for DBA and VI- Admins
  • 44. 44 vC OPs Oracle OEM Adapter – High Level Architecture OpenVPN Postgres DB vSphere WebApp Custom WebApp Admin WebApp vCenter Operations Manager vApp UI VM Rolled up capacity data Capacity Analytics FSDB Postgres DB Collector ActiveMQ Performance Analytics Analytics VM Metric Data Oracle Database Virtual Environment vSphere vC Ops Mgr vSphere UI Oracle OEM Adapter vCenter Communications over SSL vC Ops Mgr Custom Dashboard – Oracle jdbc:oracle:thin:@host:port:SID
  • 45. 45 Install and Configure Oracle Enterprise Manager Adapter https://<machine>/admin: upload .pak https://<machine>/custom : Add a Credential Add a adapter instanceValidate 1 2 34
  • 46. 46 vCOPS – Custom Interface  Reached by https://<machine->/vcops-custom  Enabled by the Enterprise or Enterprise Plus Key  Same Data as vCOPS-vSphere  Independent Access Control from VCOPS-vSphere (Configured later) • Add Adapters • Modify KPI’s • Create Relationships • Create Super Metrics • Create Dashboards • Access Control
  • 47. 47 Create a Custom Oracle Admin Dashboard Three Column Layout Drag the Required Widget
  • 48. 48 Configuring Metric Graph Widget – CPU metrics from OEM Adapter Widget Title Select OEM Resources Selected Resource List Select Metrics Here Selected Metrics Added Here
  • 49. 49 Configuring Scoreboard Widget – Memory metrics from OEM Adapter Widget Title Select OEM Resources Selected Resource List Select Metrics Here Selected Metrics Added Here Specify Ranges Here
  • 50. 50 Oracle Database – Final Dashboard Overview 1 2 3 4 5 6
  • 51. 51 Oracle Database – Final Dashboard Overview 1 2 3 4 5 6 Health tree shows all the Oracle DB Server related components
  • 52. 52 Oracle Database – Final Dashboard 1 2 3 4 5 6 Cache Hit Ratio Dropped CPU Utilization and Physical I/O Read Similar during Consistent Workload
  • 53. 53 Oracle Enterprise Manager – All Metrics DB Instance PRD All Metrics Download http://goo.gl/29IMHaMonitoring Business Critical Applications with VMware vCenter™ Operations Manager™
  • 54. 54 PLACEHOLDER - vCOPs Plug-in for OEM 12c Cloud Control
  • 56. 56 More detailed information is available at viscosityna.com or by talking to a real person at 469.444.1380 @ViscosityNA
  • 57. 57 Other VMware Activities Related to This Session  HOL: HOL-SDC-1304 and HOL-SDC-1317 vSphere Performance Optimization vCloud Suite Use Cases - Business Critical Applications  Group Discussions: VAPP1007-GD Oracle/Storage with Mark Achtemichuk
  • 59.
  • 60. Virtualizing Mission Critical Oracle RAC with vSphere and vCOPS Steven Jones, VMware Charles Kim, Viscosity North America Kannan Mani, VMware George Trujillo, Hortonworks VAPP5834 #VAPP5834