A Second Look at Oracle RAC 12c

23
Copyright © 2013 World Wide Technology, Inc. All rights reserved. Leighton L. Nelson Lead DBA World Wide Technology, Inc. A second look at Oracle RAC 12c

Transcript of A Second Look at Oracle RAC 12c

Page 1: A Second Look at Oracle RAC 12c

Copyright © 2013 World Wide Technology, Inc. All rights reserved.

Leighton L. Nelson Lead DBAWorld Wide Technology, Inc.

A second look at Oracle RAC 12c

Page 2: A Second Look at Oracle RAC 12c

About me• Oracle DBA• Oracle ACE• Speaker • Co-Author – Expert Oracle Enterprise

Manager Cloud Control 12c• RAC Attack Ninja

http://blogs.griddba.com

linkedin.com/pub/leighton-nelson/4/6b8/a7a

@leight0nn

Page 3: A Second Look at Oracle RAC 12c

Agenda• Oracle RAC 12c Features• Management Tools

• SRVCTL• CRSCTL

• Support Tools• ORAchk• TFA• ADR

• PDBs and Services in RAC• What’s New in 12.1.0.2

Page 4: A Second Look at Oracle RAC 12c

Oracle RAC 12c Overview• The sexy stuff

Page 5: A Second Look at Oracle RAC 12c

Oracle RAC 12c Overview• Flex Cluster• Flex ASM• Application Continuity and Transaction Guard• Oracle Multi-tenant

Page 6: A Second Look at Oracle RAC 12c

Management Tools• SRVCTL enhanced to accept full-word options

• New SRVCTL commands have full-word options only• Existing SRVCTL commands support single letters for backwards compatibility

• More intuitive• Single letter options confusing at times• Inconsistent

• Allows for more options

Page 7: A Second Look at Oracle RAC 12c

Management Toolssrvctl modify service –s oltp –d orcl –r orcl1 –a orcl2 –P BASIC –e SELECT –m BASIC –w 60 –j –SHORT –B SERVICE_TIME

Page 8: A Second Look at Oracle RAC 12c

Management Toolssrvctl modify service –s oltp –d orcl –r orcl1 –a orcl2 –P BASIC –e SELECT –m BASIC –w 60 –j –SHORT –B SERVICE_TIME

srvctl modify service –service oltp –db orcl –preferred orcl1 –available orcl2 –tafpolicy BASIC –failovermethod NONE –timeout 60 –clbgoal SHORT –rlbgoal SERVICE_TIME

• Show single letter options using the –compatibile option after -help

Page 9: A Second Look at Oracle RAC 12c

Management Tools• Specify input file for passing lengthy options using –file option>cat services.in-service radwwt_basic -db radwwt -serverpool wwt_sp -cardinality uniform -clbgoal SHORT -rlbgoal SERVICE_TIME -role PRIMARY -policy AUTOMATIC –verbose

>srvctl add service -file services.in

Page 10: A Second Look at Oracle RAC 12c

Management ToolsWhat-If Command Evaluation• The –eval option allows commands to be simulated without modifying the

system• Available for both SRVCTL and CRSCTL• Supported SRVCTL Commandssrvctl add databasesrvctl add servicesrvctl add srvpoolsrvctl modify databasesrvctl start databasesrvctl start servicesrvctl stop databasesrvctl stop service

Page 11: A Second Look at Oracle RAC 12c

Management ToolsWhat-If Command Evaluation

Page 12: A Second Look at Oracle RAC 12c

Management ToolsWhat-If Command Evaluation

Page 13: A Second Look at Oracle RAC 12c

Management Tools• Using CRSCTL some attributes can be modified online without a restart• Modification of ora.* resources enforced

• crsctl modify ora.* resource fails with CRS-4995 in 12.1.0.2 and above (Doc ID 1918102.1)

• Only user-defined resources can be modified • There are exceptions

• CRS_STAT commands deprecated as of 11.2 • Replaced with CRSCTL status resource

Page 14: A Second Look at Oracle RAC 12c

Management ToolsBack to the future

Page 15: A Second Look at Oracle RAC 12c

Management ToolsShow what would happen if a resource failed and cannot be restarted on the local node• SRVCTL predict

• CRSCTL eval fail

Page 16: A Second Look at Oracle RAC 12c

Support Tools• ORAchk aka RACcheck• Trace File Analyzer (TFA) Collector• Automatic Diagnostics Repository (ADR)

Page 17: A Second Look at Oracle RAC 12c

Support Tools• ORAchk provides health checks for Oracle stack

• Databases (Single Instance and RAC)• Enterprise Manager Repository• E-Business Suite

• ORAchk now included in 12c binaries• $ORACLE_HOME/suptools

• Latest version can be downloaded from MOS • ORAchk - Health Checks for the Oracle Stack (Doc ID 1268927.2)

Page 18: A Second Look at Oracle RAC 12c

Support Tools• Trace File Analyzer• Also included in

$ORACLE_HOME/suptools• Collects diagnostics, traces, log files

for DB, Clusterware, OS across the cluster

• Can be configured to trigger collection automatically

Page 19: A Second Look at Oracle RAC 12c

Support Tools• Automatic Diagnostics Repository for G.I.• Clusterware log files managed and treated like database

related logs, trace• $GI_BASE/diag/• adrci interface

Page 20: A Second Look at Oracle RAC 12c

Support Tools

Page 21: A Second Look at Oracle RAC 12c

PDBs and Services in RAC• PDBs can only be accessed remotely using service names

• A single CDB can have 0 or more PDBs• Each PDB has 1 or more services

• PDBs are mounted by default• Starting a service opens the PDB• SINGLETON service opens PDB on the node it runs on• Use UNIFORM service to access PDB on more than one node

• Stopping a service doesn’t close the PDB• PDB remains open but inaccessible

Page 22: A Second Look at Oracle RAC 12c

What’s new in 12.1.0.2• Ping Targets

• Probe nodes in Virtual Cluster for network failure• Detects reachability for targets on public network

• Rapid Home Cloning• Store gold images of database software in RHP server• Deploy images to dev/test environments

• GIMR mandatory• Single instance CDB with 1 PDB• Collect diagnostics for Cluster Health Monitor (CHM)

Page 23: A Second Look at Oracle RAC 12c

References• Oracle RAC 12c http

://www.oracle.com/technetwork/database/options/clustering/rac-wp-12c-1896129.pdf

• Oracle® Clusterware Administration and Deployment Guide 12c Release 1 (12.1)

• Oracle RAC 12c Operational Best Practices http://www.slideshare.net/MarkusMichalewicz

• Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle Multitenant http://www.ludovicocaldara.net/dba/maa-multitenant-presentation/