erez alsheich - gridcontrol

58
<Insert Picture Here> [email protected] RAC, ASM and Linux Forum, October 12, 2010 Erez Alsheich C.E.O Managing Your RAC with OEM Grid Control

Upload: gridcontrol

Post on 06-May-2015

545 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Erez Alsheich - GridControl

<Insert Picture Here>

[email protected]

RAC, ASM and Linux Forum, October 12, 2010

Erez Alsheich C.E.O

Managing Your RAC with

OEM – Grid Control

Page 2: Erez Alsheich - GridControl

[email protected]

• Leading database service provider

• Merged with on July 2010

• All major databases

• Gold Partners

• OEM – Grid Control expertise and leadership

• Currently looking for talented DBAs: [email protected]

- Introduction

Page 4: Erez Alsheich - GridControl

[email protected]

About OEM – Grid Control

Agenda

RAC Administration

RAC Monitoring

RAC Performance Diagnostics & Tuning

RAC Configuration Management

Page 5: Erez Alsheich - GridControl

[email protected]

About OEM – Grid Control

Page 6: Erez Alsheich - GridControl

[email protected]

OEM & RAC

• Entire stack: cluster, hosts, database,

database instances,, ASM instances,

listeners

• All aspects: Administration,

Monitoring,

Performance diagnostics

Performance tuning

Configuration management

Page 7: Erez Alsheich - GridControl

[email protected]

RAC Administration

Page 8: Erez Alsheich - GridControl

[email protected]

Cluster Administration

Page 9: Erez Alsheich - GridControl

[email protected]

Manage Resources

Page 10: Erez Alsheich - GridControl

[email protected]

Resource Information

Page 11: Erez Alsheich - GridControl

[email protected]

Resource Advanced Settings

Page 12: Erez Alsheich - GridControl

[email protected]

Manage Resource Types

Page 13: Erez Alsheich - GridControl

[email protected]

Cluster - Interconnects

Page 14: Erez Alsheich - GridControl

[email protected]

Topology & Status

Page 15: Erez Alsheich - GridControl

[email protected]

Dashboards – Cluster Database

Page 16: Erez Alsheich - GridControl

[email protected]

Dashboards – Host

Page 17: Erez Alsheich - GridControl

[email protected]

Dashboards – ASM

Page 18: Erez Alsheich - GridControl

[email protected]

RAC Monitoring

Page 19: Erez Alsheich - GridControl

[email protected]

Monitoring Highlights

• OOTB metrics for all target types

• OOTB thresholds and sample frequencies

• Over-Time graphs for each metric!!

• Automatic Corrective Actions

• User Defined Monitoring metrics

• Built-in Email notification

• SNMP traps to Manager-of-Managers (MoM)

• Built-in connectivity with leading MoM solutions

Page 20: Erez Alsheich - GridControl

[email protected]

Database OOTB Metrics

Page 21: Erez Alsheich - GridControl

[email protected]

Host OOTB Metrics

Page 22: Erez Alsheich - GridControl

[email protected]

Cluster OOTB Metrics

Page 23: Erez Alsheich - GridControl

[email protected]

ASM OOTB Metrics

Page 24: Erez Alsheich - GridControl

[email protected]

Metric Data over Time

- Diagnostics

- Trend Analysis

- Capacity

Planning

- Comparison

Page 25: Erez Alsheich - GridControl

[email protected]

RAC Performance

Diagnostics & Tuning

Page 26: Erez Alsheich - GridControl

[email protected]

Host Performance Dashboard

Page 27: Erez Alsheich - GridControl

[email protected]

ASM Performance Dashboard

Page 28: Erez Alsheich - GridControl

[email protected]

Database Performance Dashboard

Page 29: Erez Alsheich - GridControl

[email protected]

ADDM – Automatic Diagnostics

Page 30: Erez Alsheich - GridControl

[email protected]

Automatic Tuning Advisor

Page 31: Erez Alsheich - GridControl

[email protected]

RAC Configuration Management

Page 32: Erez Alsheich - GridControl

[email protected]

View Configuration:

HW,SW,Patches,Params

Page 33: Erez Alsheich - GridControl

[email protected]

Compare Configurations

Page 34: Erez Alsheich - GridControl

[email protected]

Comparison Results - Summary

Page 35: Erez Alsheich - GridControl

[email protected]

Comparison Results - HW

Page 36: Erez Alsheich - GridControl

[email protected]

Comparison Report - OS

Page 37: Erez Alsheich - GridControl

[email protected]

Change Tracking

Page 38: Erez Alsheich - GridControl

[email protected]

Thanks

Page 39: Erez Alsheich - GridControl

<Insert Picture Here>

[email protected]

RAC, ASM and Linux Forum, October 12, 2010

Avi Apelbaum DBA & System engineer

Real Life Experience with

RAC 11GR2

Page 40: Erez Alsheich - GridControl

[email protected]

Upgrading 10g cluster to 11gR2 grid

Agenda

Moving ASM to extended RAC

Questions

Page 41: Erez Alsheich - GridControl

[email protected]

Upgrading 10g cluster to 11gR2 GI

• Technique 1 :

Creating a new cluster.

Page 42: Erez Alsheich - GridControl

[email protected]

Technique 1 : Creating a new cluster

Step 1 : If your db is 10.2.0.1 or below so first

upgrade it to 10.2.0.4

Step 2 : Taking (of course) a full backup of the db

(rman or storage snapshot).

The following steps are if you are using

the same machine:

Step 3 : Backup spfile (if not in asm)/init.ora

Step 4 : Take notes of the current services

(prefered nodes,TAF policies,etc…)

Page 43: Erez Alsheich - GridControl

[email protected]

Step 5 : Uninstall rdbms software (both ASM and

DB if separated) and cluster software.

Step 6 : Uninstall clusterware and cleanup the

machine (use metalink:239998.1)

Step 7 : Install 11gR2 Grid Infrastructure

Step 8 : Install 10.2.0.1 rdbms software and

upgrade it to 10.2.0.4 (or the version of

your DB).

Technique 1 : Creating a new cluster

Page 44: Erez Alsheich - GridControl

[email protected]

Step 9 : Copy the backed up spfile/init.ora to it‟s new

place.

Step 10 : Add the DB to the new cluster by using

“srvctl add database” and add then add

instances by using “srvctl add instance”

Step 11 : Add services by using srvctl add service.

Technique 1 : Creating a new cluster

Page 45: Erez Alsheich - GridControl

[email protected]

If you choose to do it on a new machine

you have 3 possibilities:

• After shutdown the DB, unmap LUNs from old

machines and map them to the new machine

(has to be same OS).

If using linux run the command oracleasm

scandisks as root user and then oracleasm

listdisks. In other case you can use the following

command “kfod disks=all dscvgroup=TRUE”

Technique 1 : Creating a new cluster

Page 46: Erez Alsheich - GridControl

[email protected]

• Export the data and then import it into a newly

created database.

• Using Transportable database to move it to a new

machine. In this case the DB can me moved

between platforms (look at oracle documentation

for limitations).

Technique 1 : Creating a new cluster

Page 47: Erez Alsheich - GridControl

[email protected]

Upgrading 10g cluster to 11gR2 GI

• Technique 2 :

Upgrading the existing cluster.

Page 48: Erez Alsheich - GridControl

[email protected]

This technique is well documented in oracle but I‟ve

choose to build a new one for the following

reasons/issues:

• When beginning the upgrade we had only 1 votedisk.

After running rootUpgrade.sh on the first node this

node changed/upgraded the only votedisk available

and the second node upgrade (of course) failed.

Technique 2 :

Upgrading the existing cluster

Page 49: Erez Alsheich - GridControl

[email protected]

Technique 2 :

Upgrading the existing cluster

• After a second retry, which succeeded, at the final

step we‟ve made a restart to the cluster but it failed to

start because for some unknown reason the

interconnect and public interface configuration were

changed in such a way the cluster was not able to

start anymore and it was unable to get to a state were

the reconfiguration was possible (using oifcfg ).

Page 50: Erez Alsheich - GridControl

[email protected]

Upgrading 10g cluster to 11gR2 GI

• Using ASM for Extended RAC.

Page 51: Erez Alsheich - GridControl

[email protected]

Moving ASM to Extended RAC

Extended ASM is actually a diskgroup in normal or high redundancy in

which each Failure Group is on a separate storage machines

in different locations.

Page 52: Erez Alsheich - GridControl

[email protected]

I used the following main steps to migrate our 11gR2 asm

to extended RAC:

• Step 1 : Map new volumes from both storage

machines to all the cluster nodes. The same number

and size of volume should be use in both storages.

• Step 2 :Create a new Diskgroup/s with normal

redundancy when each failgroup is on a different

storage.

Moving ASM to Extended RAC

Page 53: Erez Alsheich - GridControl

[email protected]

• Step 2a: Create a normal redundancy diskgroup with

at least 3 disks for the votedisks and OCR.

• Step 3 Move votedisks to new DG (“crsctl replace

votedisk +<NEW DG NAME>”)

• Step 4 Move ocr disks (ocrconfig)

• Step 5 Move controlfiles to new DG‟s

Moving ASM to Extended RAC

Page 54: Erez Alsheich - GridControl

[email protected]

• Step 6 When DB is in mount state copy datafiles to

new DG by using the command: “backup as copy

database format +<NEW DATA DG”

• Step 7 After succsessfully competion of the copy

perform the following to update control file with the

copied datafiles :”switch database to copy” and then

“alter database open”

Moving ASM to extended RAC

Page 55: Erez Alsheich - GridControl

[email protected]

• Step 8 : Create a new temp TBS or add a new file to

the current one and then delete the old file from that

temp TBS(alter database tempfile „path to file‟ drop;)

• DONE.

Moving ASM to extended RAC

Page 56: Erez Alsheich - GridControl

[email protected]

Q&A

Upgrading 10g cluster to 11gR2 GI

Page 57: Erez Alsheich - GridControl

[email protected]

[email protected]

Upgrading 10g cluster to 11gR2 GI

Page 58: Erez Alsheich - GridControl