Presentation is loading. Please wait.

Presentation is loading. Please wait.

6 Copyright © 2006, Oracle. All rights reserved. Oracle Clusterware.

Similar presentations


Presentation on theme: "6 Copyright © 2006, Oracle. All rights reserved. Oracle Clusterware."— Presentation transcript:

1 6 Copyright © 2006, Oracle. All rights reserved. Oracle Clusterware

2 Copyright © 2006, Oracle. All rights reserved. 6 - 2 Objectives After completing this lesson, you should be able to describe: CRS resources RAC resources Virtual IP addresses and RAC OCR architecture CRS framework Cluster Verify

3 Copyright © 2006, Oracle. All rights reserved. 6 - 3 Oracle Clusterware: Overview Portable cluster infrastructure that provides high availability to RAC databases and/or other applications: –Monitor applications’ health –Restart applications on failure –Can fail over applications on node failure Oracle Clusterware system files ORACLE_HOME ORA_CRS_HOME ORACLE_HOME ORA_CRS_HOME Listener RAC DB Inst Protected App A Listener RAC DB Inst Protected App B

4 Copyright © 2006, Oracle. All rights reserved. 6 - 4 CRS Resources A resource is a CRS-managed application. Application profile attributes are stored in OCR: –Check interval –Failure policies An action script must do a: –Start of the application –Stop of the application –Check of the application Life cycle of a resource: crs_profilecrs_register crs_start crs_stat crs_relocate crs_stop crs_unregister –Action script –Privileges –Dependencies –…

5 Copyright © 2006, Oracle. All rights reserved. 6 - 5 CRS Resources A resource is a CRS-managed application. Application profile attributes are stored in OCR: –Check interval –Failure policies An action script must do a: –Start of the application –Stop of the application –Check of the application Life cycle of a resource: crs_profilecrs_register crs_start crs_stat crs_relocate crs_stop crs_unregister –Action script –Privileges –Dependencies –…

6 Copyright © 2006, Oracle. All rights reserved. 6 - 6 RAC Resources $ $CRS_HOME/crs_stat -t Name Type Target State Host ---------------------------------------------------------------- ora.atlhp8.ASM1.asm application ONLINE ONLINE atlhp8 ora.atlhp8.LISTENER_ATLHP8.lsnr application ONLINE ONLINE atlhp8 ora.atlhp8.gsd application ONLINE ONLINE atlhp8 ora.atlhp8.ons application ONLINE ONLINE atlhp8 ora.atlhp8.vip application ONLINE ONLINE atlhp8 ora.atlhp9.ASM2.asm application ONLINE ONLINE atlhp9 ora.atlhp9.LISTENER_ATLHP9.lsnr application ONLINE ONLINE atlhp9 ora.atlhp9.gsd application ONLINE ONLINE atlhp9 ora.atlhp9.ons application ONLINE ONLINE atlhp9 ora.atlhp9.vip application ONLINE ONLINE atlhp9 ora.xwkE.JF1.cs application ONLINE ONLINE atlhp8 ora.xwkE.JF1.xwkE1.srv application ONLINE ONLINE atlhp8 ora.xwkE.JF1.xwkE2.srv application ONLINE ONLINE atlhp9 ora.xwkE.db application ONLINE ONLINE atlhp9 ora.xwkE.xwkE1.inst application ONLINE ONLINE atlhp8 ora.xwkE.xwkE2.inst application ONLINE ONLINE atlhp9

7 Copyright © 2006, Oracle. All rights reserved. 6 - 7 Virtual IP Addresses and RAC ERP=(DESCRIPTION= ((HOST=clusnode-1vip)) ((HOST=clusnode-2vip)) (SERVICE_NAME=ERP)) clnode-1 ERP=(DESCRIPTION= ((HOST=clusnode-1)) ((HOST=clusnode-2)) (SERVICE_NAME=ERP)) Timeout wait clnode-2 clnode-1clnode-2 2 5 3 7 clnode-1vip clnode-2vip 2 clnode-1vip clnode-2vip 3 4 7 Clients 14 6 15 6

8 Copyright © 2006, Oracle. All rights reserved. 6 - 8 OCR Architecture Node 1 OCR cache CRS process Client process Node 2 OCR cache CRS process Node 3 OCR cache CRS process Client process OCR primary file Shared storage OCR mirror file

9 Copyright © 2006, Oracle. All rights reserved. 6 - 9 Notes only page

10 Copyright © 2006, Oracle. All rights reserved. 6 - 10 Automatic OCR Backups The OCR content is critical to Oracle Clusterware. OCR is automatically backed up physically: –Every four hours: CRS keeps the last three. –At the end of every day: CRS keeps the last two. –At the end of every week: CRS keeps the last two. Change the default automatic backup location: $ cd $ORACLE_BASE/Crs/cdata/jfv_clus $ ls -lt -rw-r--r-- 1 root root 4784128 Jan 9 02:54 backup00.ocr -rw-r--r-- 1 root root 4784128 Jan 9 02:54 day_.ocr -rw-r--r-- 1 root root 4784128 Jan 8 22:54 backup01.ocr -rw-r--r-- 1 root root 4784128 Jan 8 18:54 backup02.ocr -rw-r--r-- 1 root root 4784128 Jan 8 02:54 day.ocr -rw-r--r-- 1 root root 4784128 Jan 6 02:54 week_.ocr -rw-r--r-- 1 root root 4005888 Dec 30 14:54 week.ocr # ocrconfig –backuploc /shared/bak

11 Copyright © 2006, Oracle. All rights reserved. 6 - 11 Third-Party Application Protection: Overview High availability framework: –Command-line tools to register applications with CRS –Calls control application agents to manage applications –OCR used to describe CRS attributes for the applications High availability C API: –Modify CRS attributes directly in OCR –Modify CRS attributes at run time Application VIPs: –Used for applications accessed by network means –NIC redundancy –NIC failover OCFS: –Store application configuration files –Share files between cluster nodes

12 Copyright © 2006, Oracle. All rights reserved. 6 - 12 Use CRS Framework: Overview 1.Create an application VIP if necessary: a)Create a profile: Network data + usrvip predefined script b)Register the application VIP. c)Set user permissions on the application VIP. d)Start the application VIP by using crs_start. 2.Write an application action script that accepts three parameters: start : Script should start the application. check : Script should confirm the application is up. stop : Script should stop the application.

13 Copyright © 2006, Oracle. All rights reserved. 6 - 13 Use CRS Framework: Overview 3.Create an application profile: Action script location Check interval Failover policies Application VIP if necessary 4.Set permissions on your application. 5.Register the profile with Oracle Clusterware. 6.Start your application using crs_start.

14 Copyright © 2006, Oracle. All rights reserved. 6 - 14 Cluster Verify: Overview To verify that you have a well-formed cluster for Oracle Clusterware and RAC, check the: –Installation –Configuration –Operation Full stack verification Non-intrusive verification Diagnostic mode seeks to establish a reason for the failure of any verification task. Easy-to-use interface: –Stage commands –Component commands

15 Copyright © 2006, Oracle. All rights reserved. 6 - 15 Cluster Verify Stages User sets up the hardware, network, & storage Sets up OCFS ( OPT ) Installs CRS Installs RAC Configures RAC DB -post hwos -post cfs -post crsinst -pre crsinst -pre dbinst -pre dbcfg -pre cfs $ cluvfy stage -list

16 Copyright © 2006, Oracle. All rights reserved. 6 - 16 Demos Apache Xclock http://www.oracle.com/technology/obe/demos/admin/demos.html

17 Copyright © 2006, Oracle. All rights reserved. 6 - 17 Summary In this lesson, you should have learned about: CRS resources RAC resources Virtual IP addresses and RAC OCR architecture CRS framework Cluster Verify

18 Copyright © 2006, Oracle. All rights reserved. 6 - 18


Download ppt "6 Copyright © 2006, Oracle. All rights reserved. Oracle Clusterware."

Similar presentations


Ads by Google