Oracle 11g R2 Live Part 2

66
Morning Break

description

This was presented at Oracle's 11g R2 Live seminars in June. It allowed customers and partners to view the benefits of implementing or upgrading to Oracle's latest version of it's database and Advanced Technology products such as Real Application Clusters, Real Application Testing and Enteprise Manager.

Transcript of Oracle 11g R2 Live Part 2

Page 1: Oracle 11g R2 Live Part 2

Morning Break

Page 2: Oracle 11g R2 Live Part 2

11g Live Infrastructure

LIVESNAP

LIVE

LIVESTBY

OEM 11g GC

Page 3: Oracle 11g R2 Live Part 2

Real Application Testing - Replay

Database Replay

Page 4: Oracle 11g R2 Live Part 2

Select Database (live)

Page 5: Oracle 11g R2 Live Part 2

Select “Software and Support”

Page 6: Oracle 11g R2 Live Part 2

Select “Database Replay”

Page 7: Oracle 11g R2 Live Part 2

Select “Replay Workload”

Page 8: Oracle 11g R2 Live Part 2

Select “Use an existing

workload”

Click “Next”

Page 9: Oracle 11g R2 Live Part 2

Pull down the “Directory

Object”

Select “Rat_Replay”

Click “Next”

Page 10: Oracle 11g R2 Live Part 2

Select “Use the default

options”

Click “Next”

Page 11: Oracle 11g R2 Live Part 2

Click “Next”

Page 12: Oracle 11g R2 Live Part 2

Select “Add Replay Client

Hosts”

Page 13: Oracle 11g R2 Live Part 2

Select “onode3.au.oracle.com”

Click “Select”

Page 14: Oracle 11g R2 Live Part 2

Select “No” in the Configured

column

Page 15: Oracle 11g R2 Live Part 2

Database User Name :- system

Database password :- oracle

Client Oracle Home :- /u01/app/oracle/product/11.2.0/db

Client Replay Directory :- /home/oracle/rat_replay

Page 16: Oracle 11g R2 Live Part 2

Column Configured is “Yes”

Click “Next”

Page 17: Oracle 11g R2 Live Part 2

Wait until “Actual Number of Client

Connections” = 1

Click “Next”

Page 18: Oracle 11g R2 Live Part 2

Click “Submit”

Page 19: Oracle 11g R2 Live Part 2

Select “Targets”

Select “Databases”

Click on “livesnap” database

Click on “Workload Replay On”

Page 20: Oracle 11g R2 Live Part 2

Workload Replaying – Click on

“Refresh”

Page 21: Oracle 11g R2 Live Part 2

Covert Snapshot Standby Back to

Physical

Page 22: Oracle 11g R2 Live Part 2

Select Database (live)

Page 23: Oracle 11g R2 Live Part 2

Select Availability

Page 24: Oracle 11g R2 Live Part 2

Select “Setup and Manage”

Page 25: Oracle 11g R2 Live Part 2

Select

“livesnap”

Click “Convert”

Page 26: Oracle 11g R2 Live Part 2

Click

“Yes”

Page 27: Oracle 11g R2 Live Part 2

Converting from Snapshot

Standby to Physical StandbyStandby to Physical Standby

Page 28: Oracle 11g R2 Live Part 2

Converted back to Physical

Standby

Page 29: Oracle 11g R2 Live Part 2

Active Data Guard Report

OffloadOffload

Page 30: Oracle 11g R2 Live Part 2

Select Database (live)

Page 31: Oracle 11g R2 Live Part 2

Select Availability

Page 32: Oracle 11g R2 Live Part 2

Select “Setup and Manage”

Page 33: Oracle 11g R2 Live Part 2

Select Real-time Query

“Disabled”

Page 34: Oracle 11g R2 Live Part 2

Select “Enable Real-time

Query”

Then “Apply”

Page 35: Oracle 11g R2 Live Part 2
Page 36: Oracle 11g R2 Live Part 2

Property changes have been

applied

Click on the “Data Guard” link

Page 37: Oracle 11g R2 Live Part 2

Active Data Guard enabled

Page 38: Oracle 11g R2 Live Part 2

Two Management Styles

for Oracle RAC

• Administrator Managed

– Specifically define where the database should run with a list

of servers

– Define where services should run within the database

• Policy Managed

– Define resource requirements of workload

– Enough instances are started to support workload

requirements

– Goal: To remove hard coding of a service to a specific

instance or node

Page 39: Oracle 11g R2 Live Part 2

Server Pool

• Logical division of the cluster into pools of servers

• Applications (including databases) run in one or more

server pools

• Managed by crsctl (applications), srvctl (Oracle)

• Defined by 3 attributes (min, max, importance) or a

defined list of nodesdefined list of nodes

– Min- minimum number of servers (default 0)

– Max – maximum number of servers (default 0 or -1)

– Importance – 0 (least important) to 1000

Page 40: Oracle 11g R2 Live Part 2

Server Pool Example – Instance Viewpublic network

cluster

interconnect

VIP1

Scan_LSNR

Oracle Clusterware

ASM

Listener

instance 1

Oracle Clusterware

instance 1

ASM

Listener

Scan_LSNR

Oracle Clusterware

instance 2

ASM

Listener

VIP4VIP3

Scan_LSNR

Redo / Archive logs all instances

shared storage

Database / Control files

OCR and Voting Disks

Managed by ASM

Operating System Operating System

Oracle Clusterware

Operating System

backoffice frontoffice

Min 1 Max 2 Imp 3 Min 1 Max 2 Imp 4

Page 41: Oracle 11g R2 Live Part 2

Cluster Managed Services with Server

Pools

• One to one mapping

– (ie. a service can only run in one server pool )

• Services are • Services are

– uniform (run on all instances in the pool)

– singleton (runs on only one instance in the pool)

Page 42: Oracle 11g R2 Live Part 2

Front_Office

Min 1 Max EC Imp 5

Back_Office

Min 1

Max EC

Imp 2

1 2 3OLTP OLTP REPORTS

Back_Office

Min 1 Max EC Imp 5

Generic

1 2 3REPORTS REPORTS

LIVE LIVESTBY

Pre Relocation

Page 43: Oracle 11g R2 Live Part 2

Front_Office

Min 1 Max EC Imp 5

1 2 3OLTP OLTP

Back_Office

Min 1 Max EC Imp 5

Generic

1 2 3REPORTS REPORTS

LIVE LIVESTBY

OLTP

Post Relocation

2

Page 44: Oracle 11g R2 Live Part 2

Sever Pools Dynamic

Re-Allocation and

Active Data GuardActive Data Guard

Page 45: Oracle 11g R2 Live Part 2

Driver Type : OCI JDBC Driver

“reports” is the connect string

Only select “Read Only”

transactions

Page 46: Oracle 11g R2 Live Part 2

Driver Type : OCI JDBC Thin

“oltp” is the service

Only select all transactions

Page 47: Oracle 11g R2 Live Part 2

Select Targets

Page 48: Oracle 11g R2 Live Part 2

Select Databases

Page 49: Oracle 11g R2 Live Part 2

Select Database (live)

Page 50: Oracle 11g R2 Live Part 2

Select “Server Pool(s)”

Page 51: Oracle 11g R2 Live Part 2

Login

Username – oracle

Password - oracle

Page 52: Oracle 11g R2 Live Part 2

Relocate Servers

Select ora.front_office

Note : Current Size 2

Page 53: Oracle 11g R2 Live Part 2

Click “onode6

(ora.back_office)

Click

“Move”

Page 54: Oracle 11g R2 Live Part 2

Onode6 now in “Selected

Servers”

Click “Submit”Click “Submit”

Page 55: Oracle 11g R2 Live Part 2

Click on “Force

Click on “Continue”

Click on “Force

Relocate”

Page 56: Oracle 11g R2 Live Part 2

Note : Current Size of

ora.front_office now 3

Page 57: Oracle 11g R2 Live Part 2

<Insert Picture Here>

Database Upgrade to 11g – Wrap Up

Page 58: Oracle 11g R2 Live Part 2

todayLifetime Support Policy

R2July 2010 July 2013

August 2012 August 2015

R2 January 2015

t2008

2003

2004

2005

2006

2007

2002

2009

2010

2011

2012

2013

2014

Sustaining SupportPremier Support

R2 July 2007

Extended SupportJuly 2010

January 2009 January 2012

R2

http://www.oracle.com/support/lifetime-support-policy.html

2015

2016

July 2008

Page 59: Oracle 11g R2 Live Part 2

Upgrade to 11g

R2R2≥≥≥≥

7.3.47.3.47.3.47.3.4≥≥≥≥

7.3.47.3.47.3.47.3.4 ≥≥≥≥

9.2.0.49.2.0.49.2.0.49.2.0.4≥≥≥≥

9.2.0.49.2.0.49.2.0.49.2.0.4

≥≥≥≥

8.0.68.0.68.0.68.0.6≥≥≥≥

8.0.68.0.68.0.68.0.68.0.68.0.68.0.68.0.68.0.68.0.68.0.68.0.6

≥≥≥≥

8.1.7.48.1.7.48.1.7.48.1.7.4≥≥≥≥

8.1.7.48.1.7.48.1.7.48.1.7.4

≥≥≥≥

9.1.0.49.1.0.49.1.0.49.1.0.4≥≥≥≥

9.1.0.49.1.0.49.1.0.49.1.0.4

R2R2

Page 60: Oracle 11g R2 Live Part 2

Upgrade is easier!• The upgrade to Oracle Database 11g is much easier

than any upgrades to earlier Oracle releases

• Size of Upgrade guides:– 8.1.7 - 512 pages

– 9.0.1 - 484 pages – 111 steps for an RDBMS with 9 components

– 9.2.0 - 344 pages

– 10.1.0 - 170 pages - only 6 stepsl!!!

– 10.2.0 - 140 pages

– 11.1.0 - 186 pages - now detailed explanations and

information about new options included

Page 61: Oracle 11g R2 Live Part 2

Upgrade Length• How long will the upgrade taketo complete?– Independent of:

– Size of the database

– Used datatypes

– Dependent on:

– The number of objects needing upgrading and recompilation

– Thus: the number of installed options/components– Thus: the number of installed options/components

– The number of synonyms – they‘ll get recompiled

– Valid and non-stale data dictionary statistics

– At a very low rate:

– Number of datafiles

– Size of redo logs

Page 62: Oracle 11g R2 Live Part 2

Documentation• Documents to study before you start?

– Note 785351.1 – Oracle 11G R2 Upgrade Companion

– Note:837570.1 - Complete Checklist for Manual Upgrades to – Note:837570.1 - Complete Checklist for Manual Upgrades to

11gR2

– Note: 421191.1 - Complete checklist for manual upgrades from X to Y

Page 63: Oracle 11g R2 Live Part 2

Further information

• 11g References:

�Customer adoption of 11g is steadily growing!

�Commonwealth Bank of Australia

�NRMA Motor Services

�Virgin Mobile

�CarSales.Com And more......

Page 64: Oracle 11g R2 Live Part 2

Guidelines

• Never ever change to many system components at once!

• Document all changes detailed and clearly into a change log!

• Always (!!!) use real word data for testing!

• Don't underestimate the test efforts. Reserve enough time and

resources for testing.

• ALWAYS collect as much performance data BEFORE the

upgrade will be started!!upgrade will be started!!

• Create a fallback strategy!

• PLEASE test your fallback strategy - does it really work??

• Please remember:

Upgrade never has been easier - but you still have to test!!!

Page 65: Oracle 11g R2 Live Part 2

For More Information

http://search.oracle.com

oracle database 11g

or

www.oracle.com/database

Page 66: Oracle 11g R2 Live Part 2