1 © 2005 Julian Dyke Oracle 10.2 RAC New Features Julian Dyke Independent Consultant Web Version juliandyke.com
© 2005 Julian Dyke juliandyke.com 2 CLUVFY
© 2005 Julian Dyke juliandyke.com 3 CLUVFY 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 4 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 rpm
© 2005 Julian Dyke juliandyke.com 5 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
© 2005 Julian Dyke juliandyke.com 6 CLUVFY Stages include: -post hwospost check for hardware and operating system -pre cfspre-check for CFS setup -post cfspost-check for CFS setup -pre crsinstpre-check for Oracle Clusterware installation -post crsinstpost-check for Oracle Clusterware installation -pre dbinstpre-check for database installation -pre dbcfgpre-check for database configuration
© 2005 Julian Dyke juliandyke.com 7 CLUVFY Components include: nodereachChecks reachability between nodes nodeconChecks node connectivity cfsChecks CFS integrity ssaChecks shared storage accessibility spaceChecks space availability sysChecks minimum system requirements cluChecks cluster integrity clumgrChecks cluster manager integrity ocrChecks OCR integrity crsChecks Oracle Clusterware (CRS) integrity nodeappChecks node applications exist admprvChecks administrative privileges peerCompares properties with peers
© 2005 Julian Dyke juliandyke.com 8 CLUVFY For example, to check configuration before installing Oracle Clusterware on node1 and node2 use: sh runcluvfy.sh stage -pre crsinst -n node1,node2 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 9 Oracle Clusterware File Mirroring
© 2005 Julian Dyke juliandyke.com 10 OCR and Voting Disk Mirroring 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 11 OCR and Voting Disk Mirroring 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 12 OCR and Voting Disk Mirroring Database Files Instance 2 Node2 Instance 1 Node1 Database Files OCR Voting Disk 1 Oracle 10.1
© 2005 Julian Dyke juliandyke.com 13 OCR and Voting Disk Mirroring OCR Mirror Voting Disk 2 Database Files Instance 2 Node2 Instance 1 Node1 Database Files OCR Voting Disk 1 Voting Disk 3 Oracle 10.2
© 2005 Julian Dyke juliandyke.com 14 DBCA Database Cloning
© 2005 Julian Dyke juliandyke.com 15 DBCA - Database Cloning Creating a Clone Template Manage Templates
© 2005 Julian Dyke juliandyke.com 16 DBCA - Database Cloning Create database template from an existing database (structure and data)
© 2005 Julian Dyke juliandyke.com 17 DBCA - Database Cloning Choose database from which to create the template
© 2005 Julian Dyke juliandyke.com 18 DBCA - Database Cloning Specify location where RMAN copies of datafiles will be created. Specify name and description of template
© 2005 Julian Dyke juliandyke.com 19 DBCA - Database Cloning Choose locations of database files
© 2005 Julian Dyke juliandyke.com 20 DBCA - Database Cloning Template creation completion message
© 2005 Julian Dyke juliandyke.com 21 DBCA - Database Cloning Creating a Clone Database Create Database
© 2005 Julian Dyke juliandyke.com 22 DBCA - Database Cloning Manage Templates Select nodes on which to create cluster database
© 2005 Julian Dyke juliandyke.com 23 DBCA - Database Cloning Select template (Template2) Includes Datafiles = Yes => Clone
© 2005 Julian Dyke juliandyke.com 24 DBCA - Database Cloning Select Global Database Name Select SID
© 2005 Julian Dyke juliandyke.com 25 DBCA - Database Cloning Select SID Configure Management Options
© 2005 Julian Dyke juliandyke.com 26 DBCA - Database Cloning Select SID Set Passwords
© 2005 Julian Dyke juliandyke.com 27 DBCA - Database Cloning Select Storage Option (ASM)
© 2005 Julian Dyke juliandyke.com 28 DBCA - Database Cloning Select ASM Diskgroup (DISKGROUP1)
© 2005 Julian Dyke juliandyke.com 29 DBCA - Database Cloning Select Oracle-Managed Files (OMF)
© 2005 Julian Dyke juliandyke.com 30 DBCA - Database Cloning Optionally enable Flash Recovery Area and Archiving
© 2005 Julian Dyke juliandyke.com 31 DBCA - Database Cloning Optionally enable Flash Recovery Area and Archiving Specify optional; custom initialization scripts
© 2005 Julian Dyke juliandyke.com 32 DBCA - Database Cloning Add Services
© 2005 Julian Dyke juliandyke.com 33 DBCA - Database Cloning Set initialisation parameters
© 2005 Julian Dyke juliandyke.com 34 DBCA - Database Cloning Configure storage
© 2005 Julian Dyke juliandyke.com 35 DBCA - Database Cloning Create Database or Generate Database Creation Scripts
© 2005 Julian Dyke juliandyke.com 36 DBCA - Database Cloning Create Database or Generate Database Creation Scripts Log files in $ORACLE_HOME/cfgtoollogs/dbca/CLONE
© 2005 Julian Dyke juliandyke.com 37 DBCA - Database Cloning Create Database or Generate Database Creation Scripts
© 2005 Julian Dyke juliandyke.com 38 Thank you for listening