Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum...

71
Rob Zoeteweij Zoeteweij Consulting

Transcript of Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum...

Page 1: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Rob Zoeteweij

Zoeteweij Consulting

Page 2: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Agenda◦ High Availability – What’s that?

◦ System monitoring and detection of errors

◦ Monitoring of Database Health

◦ Wrap Up

◦ Q & A

2

Page 3: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

What is High Availability?◦ Degree to which an application, service or

functionality is available upon user demand

◦ Measured by the perception of an application's end user!

3

Page 4: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Primary characteristics◦ Reliability

Hardware, Software – Database, Webserver etc.

◦ Recoverability

Does your architecture provide the ability to recover in the time specified in a SLA?

◦ Timely error detection

Fast detection is an essential component in recovering from a possible unexpected failure

◦ Continuous operations

Continuous access to your data is essential when very little or no downtime is acceptable

4

Page 5: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

5

Page 6: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Oracle Maximum Availability Architecture (MAA)

Best Practices (An Example)◦ Identically configured primary and secondary sites

◦ Primary Site - Multiple application servers and a production database using RAC

◦ Secondary Site - Similarly configured application servers and a physical standby database kept synchronized with the primary database by Oracle Data Guard.

6

Page 7: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Oracle Maximum Availability Architecture –MAA◦ http://www.oracle.com/technology/deploy/availabi

lity/htdocs/maa.htm

◦ HA Best Practices for Oracle Database

◦ HA Best Practices for Oracle Enterprise Application Server

◦ HA Best Practices for Oracle Applications

◦ HA Best Practices for Oracle Beehive

◦ HA Best Practices for Grid Control

◦ HA Best Practices for Oracle VM

7

Page 8: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Monitoring of Systems and

detection of errors

Page 9: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

9

Page 10: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Monitoring of Systems and detection of errors◦ Monitoring Templates – Metrics

Detect Database down or events like: corrupted blocks, missing data files, etc.

◦ Systems and Services

If a Business Service application has very bad performance, the user might consider the Service as unavailable, even if Databases, Application Server etc. are Up and Running!

10

Page 11: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

11

Page 12: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

12

Page 13: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

13

Page 14: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Recommended events to monitor◦ Status Up/Down

◦ Space Tablespace Space used (%)

Archive Hung Alert Log Error

Archive Area used (%)

Dump Area used (%)

◦ Alert Log Alert - ORA-6XX, ORA-1578 (database corruption), or

ORA-0060 (deadlock detected)

Database Block Corruption ORA-01157 and ORA-27048

14

Page 15: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Recommended events to monitor (cont)◦ Processing Capacity

Process Limit

Session Limit

◦ Think Availability!

15

Page 16: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Monitoring of Database Health

Page 17: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Database Health◦ Status

◦ Performance

◦ Configuration

Archivelog Mode

Backup

Standby Database

Etc.

◦ Vulnerability

Storage / Configuration / Security

Patching

17

Page 18: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

18

Page 19: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

19

Page 20: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

20

Page 21: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

High Availability Console◦ Availability Summary

◦ Backup/Recovery Summary

◦ Flash Recovery Area

◦ Service (RAC) Summary

◦ Data Guard Summary

21

Page 22: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

22

Page 23: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Maximum Availability Architecture (MAA) Advisor◦ Summary of possible Oracle solutions to optimize

the availability of a Database

◦ Provides Short Cuts to implement each of the suggested Oracle Solutions

23

Page 24: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

24

Page 25: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

25

Page 26: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

26

Page 27: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

27

Page 28: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

28

Page 29: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

29

Page 30: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

30

Page 31: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

31

Page 32: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

32

Page 33: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

33

Page 34: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

34

Page 35: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

35

Page 36: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

36

Page 37: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

37

Page 38: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

38

Page 39: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

39

Page 40: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

40

Page 41: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

41

Page 42: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

42

Page 43: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

43

Page 44: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

44

Page 45: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

45

Page 46: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

46

Page 47: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

47

Page 48: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

48

Page 49: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

49

Page 50: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

50

Page 51: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

51

Page 52: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

52

Page 53: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

53

Page 54: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

54

Page 55: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

55

Page 56: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

56

Page 57: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

57

Page 58: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

58

Page 59: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

59

Page 60: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

60

Page 61: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

61

Page 62: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

62

Page 63: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Policies – Policy Groups◦ Categories Configuration

Insufficient Number of Control Files / Redo Logs

Not using Spfile, Automatic Undo Management

Storage

Default Permanent Tablespace Set to a System Tablespace

Dictionary Managed Tablespaces

Security

Default Passwords

Execute Privileges on UTL_FILE To PUBLIC

63

Page 64: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

64

Page 65: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Patch Advisories◦ Based on connection with My Oracle Support

◦ RefreshFromMyOracleSupport

◦ Automatic download Patches

◦ Automated Patching

Provisioning & Automated Patching

65

Page 66: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Patch Procedures (Deployment Procedures)◦ Patch Standalone ASM

◦ Patch Hosts Linux, Windows, Solaris

◦ Application Server

◦ Oracle Database

◦ Clusterware

◦ RAC Databases

66

Page 67: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

67

Page 68: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Wrap Up

Page 69: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Monitoring & Configuring of HA Databases◦ Monitoring Templates◦ Metrics / Policies

Wizard based:◦ Creation of Standby Databases◦ Data Guard Role switch◦ Migration to ASM◦ Migration to RAC◦ Creation of additional Instances

HA Console

MAA (Advisor)

Automated Patching - Provisioning

69

Page 70: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

[email protected]

Blog: http://oemgc.wordpress.com

Linkedin Group: Oracle Enterprise Manager Grid Control http://www.linkedin.com/groups?gid=1776007&trk=hb_side_g

70

Page 71: Rob Zoeteweij Zoeteweij Consulting - What's cooking at Oracle · 10/12/2009  · Oracle Maximum Availability Architecture (MAA) Best Practices (An Example) Identically configured

Q & A

71