Oracle 10.2 RAC New Features Julian Dyke Independent Consultant Web Version 1 © 2005 Julian Dyke juliandyke.com CLUVFY 2 © 2005 Julian Dyke juliandyke.com CLUVFY 3 Introduced in Oracle 10.2 Read-only utility that verifies configuration of cluster at each stage of cluster installation Detects many common configuration errors Eliminates time-consuming troubleshooting Supplied with Oracle Clusterware Can be installed separately Can also be used with Oracle 10.1 Requires -r 10gR1 switch © 2005 Julian Dyke juliandyke.com CLUVFY Written in Java - requires JRE Supplied with JRE Alternatively can use existing JRE Must set CV_JDKHOME environment variable On Red Hat Linux also requires cvuqdisk package Supplied on Oracle Clusterware CD rpm --Uvh cvuqdisk-1.0.1-1.rpm 4 © 2005 Julian Dyke juliandyke.com CLUVFY Checks stages components Stage checks Verify all steps for specified stage have been completed Component checks Verify specified component has been correctly installed sh runcluvfy.sh -help sh runcluvfy.sh stage -help sh runcluvfy.sh comp -help 5 © 2005 Julian Dyke juliandyke.com CLUVFY 6 Stages include: -post hwos post check for hardware and operating system -pre cfs pre-check for CFS setup -post cfs post-check for CFS setup -pre crsinst pre-check for Oracle Clusterware installation -post crsinst post-check for Oracle Clusterware installation -pre dbinst pre-check for database installation -pre dbcfg pre-check for database configuration © 2005 Julian Dyke juliandyke.com CLUVFY 7 Components include: nodereach Checks reachability between nodes nodecon Checks node connectivity cfs Checks CFS integrity ssa Checks shared storage accessibility space Checks space availability sys Checks minimum system requirements clu Checks cluster integrity clumgr Checks cluster manager integrity ocr Checks OCR integrity crs Checks Oracle Clusterware (CRS) integrity nodeapp Checks node applications exist admprv Checks administrative privileges peer Compares properties with peers © 2005 Julian Dyke juliandyke.com CLUVFY For example, to check configuration before installing Oracle Clusterware on node1 and node2 use: sh runcluvfy.sh stage -pre crsinst -n node1,node2 8 Checks: node reachability user equivalence administrative privileges node connectivity shared stored accessibility If any checks fail append -verbose to display more information © 2005 Julian Dyke juliandyke.com Oracle Clusterware File Mirroring 9 © 2005 Julian Dyke juliandyke.com OCR and Voting Disk Mirroring 10 RAC databases contain controlfiles datafiles online redo logs server parameter files password files archive log files In addition RAC clusters contain Oracle Cluster Repository (OCR) formerly SRVM file Voting Disk formerly CSS file © 2005 Julian Dyke juliandyke.com OCR and Voting Disk Mirroring 11 In Oracle 10.1 and below only one copy of OCR and Voting Disk can be corrupted can be deleted can be inaccessible loss of either prevents access to all databases in cluster In Oracle 10.2 and above OCR can be mirrored maximum two copies Voting Disk can be mirrored recommended three copies © 2005 Julian Dyke juliandyke.com OCR and Voting Disk Mirroring Oracle 10.1 Instance 1 Instance 2 Node1 Node2 OCR Voting Disk 1 Database Files 12 © 2005 Julian Dyke Database Files Database Files juliandyke.com OCR and Voting Disk Mirroring Oracle 10.2 13 Instance 1 Instance 2 Node1 Node2 OCR OCR Mirror Voting Disk 1 Voting Disk 2 Voting Disk 3 Database Files Database Files Database Files © 2005 Julian Dyke juliandyke.com DBCA Database Cloning 14 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Creating a Clone Template Manage Templates 15 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Create database template from an existing database (structure and data) 16 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Choose database from which to create the template 17 © 2005 Julian Dyke juliandyke.com Specify name and DBCA - Database Cloning description of template Specify location where RMAN copies of datafiles will be created. 18 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Choose locations of database files 19 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning 20 Template creation completion message © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Creating a Clone Database Create Database 21 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Manage Templates Select nodes on which to create cluster database 22 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Select template (Template2) 23 © 2005 Julian Dyke Includes Datafiles = Yes => Clone juliandyke.com DBCA - Database Cloning Select Global Database Name Select SID 24 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Select SID Configure Management Options 25 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Select SID Set Passwords 26 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Select Storage Option (ASM) 27 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Select ASM Diskgroup (DISKGROUP1) 28 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Select Oracle-Managed Files (OMF) 29 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Optionally enable Flash Recovery Area and Archiving 30 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Specify optional; custom initialization scripts Optionally enable Flash Recovery Area and Archiving 31 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Add Services 32 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Set initialisation parameters 33 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Configure storage 34 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Create Database or Generate Database Creation Scripts 35 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Create Database or Generate Database Creation Scripts Log files in $ORACLE_HOME/cfgtoollogs/dbca/CLONE 36 © 2005 Julian Dyke juliandyke.com DBCA - Database Cloning Create Database or Generate Database Creation Scripts 37 © 2005 Julian Dyke juliandyke.com Thank you for listening info@juliandyke.com 38 © 2005 Julian Dyke juliandyke.com