You are on page 1of 14

AGREGANDO UN NUEVO NODO EN ORACLE RAC 11G R2

INTRODUCCIN
El presente documento tiene la finalidad de mostrar los pasos para adicionar un nuevo nodo a una
infraestructura de Oracle RAC de dos nodos.
PREREQUISITOS
Antes de aadir un nuevo nodo se debe de verificar, que dicho nodo este configurado de igual
manera a los nodos anteriores. Por lo general, para lograr esto, se utilizan herramientas de
clonacin, para obtener la nueva configuracin en nuevo nodo. En nuestro caso, que estamos
trabajando con mquinas virtuales, procederemos a clonar la mquina virtual.
Una vez clonada la mquina virtual debemos realizar ciertas configuraciones como cambiar la IP,
el nombre de la mquina virtual, etc.
Instalar algunos paquetes si fuese necesario, como los que se muestra a continuacin.
[root@dbrac3 ~]# rpm -Uvh cvuqdisk-1.0.9-1.rpm
Preparing...
########################################### [100%]
Using default group oinstall to install package
1:cvuqdisk
########################################### [100%]
[root@dbrac3 ~]#
[root@dbrac3 ~]# rpm -Uvh gcc-c++-4.1.2-50.el5.i386.rpm
warning: gcc-c++-4.1.2-50.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID
37017186
Preparing...
########################################### [100%]
1:gcc-c++
########################################### [100%]
[root@dbrac3 ~]#

Verificar la configuracin de red en el tercer nodo


Se debe de verificar la nueva IP, que usar el nuevo nodo. Para ello es necesario editar el archivo
/etc/hosts. La configuracin de red debera de quedar como sigue:
#Public
192.168.130.211
192.168.130.212
192.168.130.213
#Private
192.168.0.211
192.168.0.212
192.168.0.213
#Virtual
192.168.130.231
192.168.130.232
192.168.130.233
#Scan
192.168.130.241
#NAS
192.168.130.30

dbrac1.localdomain dbrac1
dbrac2.localdomain dbrac2
dbrac3.localdomain dbrac3
dbrac1-priv.localdomain dbrac1-priv
dbrac2-priv.localdomain dbrac2-priv
dbrac3-priv.localdomain dbrac3-priv
dbrac1-vip.localdomain dbrac1-vip
dbrac2-vip.localdomain dbrac2-vip
dbrac3-vip.localdomain dbrac3-vip
dbrac-scan.localdomain dbrac-scan
nas2.localdomain nas2

Verificar los discos compartidos


Para realizar esta prueba, en nodo que se va adicionar, escribir fdisk -l, debera de mostrarnos
algo similar a la figura.

[root@dbrac3 ~]# fdisk -l


Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot
/dev/sda1
*
/dev/sda2

Start
1
14

End
13
2610

Blocks
104391
20860402+

Id
83
8e

System
Linux
Linux LVM

Disk /dev/sdb: 1073 MB, 1073741824 bytes


34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 4294 MB, 4294967296 bytes
133 heads, 62 sectors/track, 1017 cylinders
Units = cylinders of 8246 * 512 = 4221952 bytes
Device Boot
/dev/sdd1

Start
1

End
1017

Blocks
4193060

Id
83

System
Linux

Id
83

System
Linux

Disk /dev/sde: 4294 MB, 4294967296 bytes


133 heads, 62 sectors/track, 1017 cylinders
Units = cylinders of 8246 * 512 = 4221952 bytes
Device Boot
/dev/sde1

Start
1

End
1017

Blocks
4193060

Disk /dev/sdf: 1073 MB, 1073741824 bytes


34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes
Disk /dev/sdf doesn't contain a valid partition table
Disk /dev/sdg: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes
Disk /dev/sdg doesn't contain a valid partition table
...

Generar los certificados de acceso para el tercer nodo.


En el nodo3 configurar
cd $HOME
rm -Rf ~/.ssh
mkdir -p ~/.ssh
chmod 700 ~/.ssh
/usr/bin/ssh-keygen -t rsa

Luego en el nodo1 o nodo2, segn sea el caso ejecutar


cd $HOME/.ssh
scp authorized_keys dbrac3:/home/oracle/.ssh/

En el nodo 3 ejecutar
cd $HOME/.ssh
cat id_rsa.pub >> authorized_keys
cat authorized_keys
scp authorized_keys dbrac1:/home/oracle/.ssh/
scp authorized_keys dbrac2:/home/oracle/.ssh/

Luego en todos los nodos ejecutar estas pruebas de conexin.


ssh
ssh
ssh
ssh
ssh
ssh
ssh
ssh
ssh
ssh
ssh
ssh

dbrac1 date
dbrac2 date
dbrac3 date
dbrac1-priv date
dbrac2-priv date
dbrac3-priv date
dbrac1.localdomain date
dbrac2.localdomain date
dbrac3.localdomain date
dbrac1-priv.localdomain date
dbrac2-priv.localdomain date
dbrac3-priv.localdomain date

Verificar prerequisitos con cluvfy


Desde de uno de los nodos existentes procederemos a realizar las siguientes validaciones,
usando el cluvfy, que se encuentra en el directorio del clusterware.
Realizar verificaciones de software y hardware
$ $ORACLE_HOME/bin/cluvfy stage -post hwos -n dbrac3 > validate_dbrac3_01.log

Comparar el nodo candidato, con un nodo actual


$ $ORACLE_HOME/bin/cluvfy comp peer -refnode dbrac1 -n dbrac3 -orainv
oinstall -osdba dba -verbose > verify_dbrac3_02.log

Validar si cumple con todos lo requisitos para adicionar el nuevo nodo.


$ $ORACLE_HOME/bin/cluvfy stage -pre nodeadd -n dbrac3 -fixup -verbose >
verify_dbrac3_03.log

ADICIONAR EL NUEVO NODO A LA INFRAESTRUCTURA RAC


Para adicionar el nodo ejecutamos el script addnode.sh. Debemos de tener especial cuidado con
la variable CLUSTER_NEW_NODES y CLUSTER_NEW_VIRTUAL_HOSTNAME, las cuales esta
relacionadas con el hostname de la IP Pblica y de la IP Virtual.

$ export IGNORE_PREADDNODE_CHECKS=Y
$ $ORACLE_HOME/oui/bin/addNode.sh -silent "CLUSTER_NEW_NODES={dbrac3}"
"CLUSTER_NEW_VIRTUAL_HOSTNAMES={dbrac3-vip}"
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB.
Actual 3718 MB
Oracle Universal Installer, Version 11.2.0.3.0 Production
Copyright (C) 1999, 2011, Oracle. All rights reserved.

Passed

Performing tests to see whether nodes dbrac1,dbrac3 are available


............................................................... 100% Done. ..
----------------------------------------------------------------------------Cluster Node Addition Summary
Global Settings
Source: /u02/app/11.2.0/grid
New Nodes
Space Requirements
New Nodes
dbrac3
/: Required 3.67GB : Available 11.63GB
Installed Products
Product Names
Oracle Grid Infrastructure 11.2.0.3.0
Sun JDK 1.5.0.30.03
Installer SDK Component 11.2.0.3.0
Oracle One-Off Patch Installer 11.2.0.1.7
Oracle Universal Installer 11.2.0.3.0
Oracle USM Deconfiguration 11.2.0.3.0
Oracle Configuration Manager Deconfiguration 10.3.1.0.0
Enterprise Manager Common Core Files 10.2.0.4.4
Oracle DBCA Deconfiguration 11.2.0.3.0
Oracle RAC Deconfiguration 11.2.0.3.0
Oracle Quality of Service Management (Server) 11.2.0.3.0
Installation Plugin Files 11.2.0.3.0
Universal Storage Manager Files 11.2.0.3.0
Oracle Text Required Support Files 11.2.0.3.0
Automatic Storage Management Assistant 11.2.0.3.0
Oracle Database 11g Multimedia Files 11.2.0.3.0
Oracle Multimedia Java Advanced Imaging 11.2.0.3.0
Oracle Globalization Support 11.2.0.3.0
Oracle Multimedia Locator RDBMS Files 11.2.0.3.0
Oracle Core Required Support Files 11.2.0.3.0
Bali Share 1.1.18.0.0
Oracle Database Deconfiguration 11.2.0.3.0
Oracle Quality of Service Management (Client) 11.2.0.3.0
Expat libraries 2.0.1.0.1
Oracle Containers for Java 11.2.0.3.0
Perl Modules 5.10.0.0.1
Secure Socket Layer 11.2.0.3.0
Oracle JDBC/OCI Instant Client 11.2.0.3.0
Oracle Multimedia Client Option 11.2.0.3.0
LDAP Required Support Files 11.2.0.3.0
Character Set Migration Utility 11.2.0.3.0
Perl Interpreter 5.10.0.0.1
PL/SQL Embedded Gateway 11.2.0.3.0
OLAP SQL Scripts 11.2.0.3.0
Database SQL Scripts 11.2.0.3.0
Oracle Extended Windowing Toolkit 3.4.47.0.0
SSL Required Support Files for InstantClient 11.2.0.3.0
SQL*Plus Files for Instant Client 11.2.0.3.0
Oracle Net Required Support Files 11.2.0.3.0
Oracle Database User Interface 2.2.13.0.0
RDBMS Required Support Files for Instant Client 11.2.0.3.0
RDBMS Required Support Files Runtime 11.2.0.3.0
XML Parser for Java 11.2.0.3.0
Oracle Security Developer Tools 11.2.0.3.0
Oracle Wallet Manager 11.2.0.3.0
Enterprise Manager plugin Common Files

Platform Required Support Files 11.2.0.3.0


Oracle JFC Extended Windowing Toolkit 4.2.36.0.0
RDBMS Required Support Files 11.2.0.3.0
Oracle Ice Browser 5.2.3.6.0
Oracle Help For Java 4.2.9.0.0
Enterprise Manager Common Files 10.2.0.4.3
Deinstallation Tool 11.2.0.3.0
Oracle Java Client 11.2.0.3.0
Cluster Verification Utility Files 11.2.0.3.0
Oracle Notification Service (eONS) 11.2.0.3.0
Oracle LDAP administration 11.2.0.3.0
Cluster Verification Utility Common Files 11.2.0.3.0
Oracle Clusterware RDBMS Files 11.2.0.3.0
Oracle Locale Builder 11.2.0.3.0
Oracle Globalization Support 11.2.0.3.0
Buildtools Common Files 11.2.0.3.0
Oracle RAC Required Support Files-HAS 11.2.0.3.0
SQL*Plus Required Support Files 11.2.0.3.0
XDK Required Support Files 11.2.0.3.0
Agent Required Support Files 10.2.0.4.3
Parser Generator Required Support Files 11.2.0.3.0
Precompiler Required Support Files 11.2.0.3.0
Installation Common Files 11.2.0.3.0
Required Support Files 11.2.0.3.0
Oracle JDBC/THIN Interfaces 11.2.0.3.0
Oracle Multimedia Locator 11.2.0.3.0
Oracle Multimedia 11.2.0.3.0
HAS Common Files 11.2.0.3.0
Assistant Common Files 11.2.0.3.0
PL/SQL 11.2.0.3.0
HAS Files for DB 11.2.0.3.0
Oracle Recovery Manager 11.2.0.3.0
Oracle Database Utilities 11.2.0.3.0
Oracle Notification Service 11.2.0.3.0
SQL*Plus 11.2.0.3.0
Oracle Netca Client 11.2.0.3.0
Oracle Net 11.2.0.3.0
Oracle JVM 11.2.0.3.0
Oracle Internet Directory Client 11.2.0.3.0
Oracle Net Listener 11.2.0.3.0
Cluster Ready Services Files 11.2.0.3.0
Oracle Database 11g 11.2.0.3.0
----------------------------------------------------------------------------Instantiating scripts for add node (Tuesday, December 24, 2013 8:06:47 PM PET)
.
1% Done.
Instantiation of add node scripts complete
Copying to remote nodes (Tuesday, December 24, 2013 8:06:56 PM PET)
..........................................................................................
.....
96% Done.
Home copied to new nodes
Saving inventory on nodes (Tuesday, December 24, 2013 8:19:38 PM PET)
.
100% Done.
Save inventory complete
WARNING:A new inventory has been created on one or more nodes in this session. However, it
has not yet been registered as the central inventory of this system.
To register the new inventory please run the script at
'/u01/app/oraInventory/orainstRoot.sh' with root privileges on nodes 'dbrac3'.
If you do not register the inventory, you may not be able to update or patch the products
you installed.
The following configuration scripts need to be executed as the "root" user in each new
cluster node. Each script in the list below is followed by a list of nodes.
/u01/app/oraInventory/orainstRoot.sh #On nodes dbrac3
/u02/app/11.2.0/grid/root.sh #On nodes dbrac3
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts in each cluster node
The Cluster Node Addition of /u02/app/11.2.0/grid was successful.
Please check '/tmp/silentInstall.log' for more details.
[oracle@dbrac2 ~]$

Ejecutar Scripts para completar la adicin a la Infraestructura RAC.


Una vez concluido con la instalacin del clusterware en el nuevo nodo, es necesario registar el
nuevo nodo en el OCR, para ello es necesario ejecutar los scripts que se indica a continuacin
# /u01/app/oraInventory/orainstRoot.sh
Creating the Oracle inventory pointer file (/etc/oraInst.loc)
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
# /u02/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u02/app/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u02/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
OLR initialization - successful
Adding Clusterware entries to inittab
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on
node dbrac2, number 2, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
clscfg: EXISTING configuration version 5 detected.
clscfg: version 5 is 11g Release 2.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

Validamos que los servicios hayan inicializado correctamente en el nuevo nodo.


# crsctl stat res -t
-------------------------------------------------------------------------------NAME
TARGET STATE
SERVER
STATE_DETAILS
-------------------------------------------------------------------------------Local Resources
-------------------------------------------------------------------------------ora.ACFS.dg
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.CRS.dg
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.DATA.dg
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.FRA.dg
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3

ora.LISTENER.lsnr
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.asm
ONLINE ONLINE
dbrac1
Started
ONLINE ONLINE
dbrac2
Started
ONLINE ONLINE
dbrac3
Started
ora.gsd
OFFLINE OFFLINE
dbrac1
OFFLINE OFFLINE
dbrac2
OFFLINE OFFLINE
dbrac3
ora.net1.network
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.ons
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.registry.acfs
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
-------------------------------------------------------------------------------Cluster Resources
-------------------------------------------------------------------------------ora.LISTENER_SCAN1.lsnr
1
ONLINE ONLINE
dbrac1
ora.cvu
1
ONLINE ONLINE
dbrac1
ora.dbrac1.vip
1
ONLINE ONLINE
dbrac1
ora.dbrac2.vip
1
ONLINE ONLINE
dbrac2
ora.dbrac3.vip
1
ONLINE ONLINE
dbrac3
ora.oc4j
1
ONLINE ONLINE
dbrac1
ora.prd.db
1
ONLINE ONLINE
dbrac1
Open
2
ONLINE ONLINE
dbrac2
Open
ora.scan1.vip
1
ONLINE ONLINE
dbrac1
# crs_stat -t -v -c dbrac3
Name
Type
R/RA
F/FT
Target
State
Host
---------------------------------------------------------------------ora....SM3.asm application
0/5
0/0
ONLINE
ONLINE
dbrac3
ora....C3.lsnr application
0/5
0/0
ONLINE
ONLINE
dbrac3
ora.dbrac3.ons application
0/3
0/0
ONLINE
ONLINE
dbrac3
ora.dbrac3.vip ora....t1.type 0/0
0/0
ONLINE
ONLINE
dbrac3

Verificamos la configuracin Post Instalacin


Para ello tambin utilizaremos la utilidad del clusterware,cluvfy.
$ $ORACLE_HOME/bin/cluvfy stage -post nodeadd -n dbrac3 -verbose >
verify_postinstall_dbrac3_04.log

INSTALAR EL MOTOR DE BASE DE DATOS ORACLE EN NUEVO NODO


Para ello tambin utilizaremos el script adnode.sh, sin embargo se debe tener en cuenta que
antes de ejecutar este script se debe de configurar las variables de entorno de base de datos.
Asimismo la varialbe CLUSTER_NEW_NODES esta relacionado con hostaname pblico del nodo.

$ orahome
$ $ORACLE_HOME/oui/bin/addNode.sh -silent "CLUSTER_NEW_NODES={dbrac3}"
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB.
Actual 3583 MB
Oracle Universal Installer, Version 11.2.0.3.0 Production
Copyright (C) 1999, 2011, Oracle. All rights reserved.

Passed

Performing tests to see whether nodes dbrac1,dbrac3 are available


............................................................... 100% Done.
.
----------------------------------------------------------------------------Cluster Node Addition Summary
Global Settings
Source: /u01/app/oracle/product/11.2.0/db_1
New Nodes
Space Requirements
New Nodes
dbrac3
/: Required 3.80GB : Available 8.70GB
Installed Products
Product Names
Oracle Database 11g 11.2.0.3.0
Sun JDK 1.5.0.30.03
Installer SDK Component 11.2.0.3.0
Oracle One-Off Patch Installer 11.2.0.1.7
Oracle Universal Installer 11.2.0.3.0
Oracle USM Deconfiguration 11.2.0.3.0
Oracle Configuration Manager Deconfiguration 10.3.1.0.0
Oracle DBCA Deconfiguration 11.2.0.3.0
Oracle RAC Deconfiguration 11.2.0.3.0
Oracle Database Deconfiguration 11.2.0.3.0
Oracle Configuration Manager Client 10.3.2.1.0
Oracle Configuration Manager 10.3.5.0.1
Oracle ODBC Driverfor Instant Client 11.2.0.3.0
LDAP Required Support Files 11.2.0.3.0
SSL Required Support Files for InstantClient 11.2.0.3.0
Bali Share 1.1.18.0.0
Oracle Extended Windowing Toolkit 3.4.47.0.0
Oracle JFC Extended Windowing Toolkit 4.2.36.0.0
Oracle Real Application Testing 11.2.0.3.0
Oracle Database Vault J2EE Application 11.2.0.3.0
Oracle Label Security 11.2.0.3.0
Oracle Data Mining RDBMS Files 11.2.0.3.0
Oracle OLAP RDBMS Files 11.2.0.3.0
Oracle OLAP API 11.2.0.3.0
Platform Required Support Files 11.2.0.3.0
Oracle Database Vault option 11.2.0.3.0
Oracle RAC Required Support Files-HAS 11.2.0.3.0
SQL*Plus Required Support Files 11.2.0.3.0
Oracle Display Fonts 9.0.2.0.0
Oracle Ice Browser 5.2.3.6.0
Oracle JDBC Server Support Package 11.2.0.3.0
Oracle SQL Developer 11.2.0.3.0
Oracle Application Express 11.2.0.3.0
XDK Required Support Files 11.2.0.3.0
RDBMS Required Support Files for Instant Client 11.2.0.3.0
SQLJ Runtime 11.2.0.3.0
Database Workspace Manager 11.2.0.3.0
RDBMS Required Support Files Runtime 11.2.0.3.0
Oracle Globalization Support 11.2.0.3.0
Exadata Storage Server 11.2.0.1.0
Provisioning Advisor Framework 10.2.0.4.3
Enterprise Manager Database Plugin -- Repository Support 11.2.0.3.0
Enterprise Manager Repository Core Files 10.2.0.4.4
Enterprise Manager Database Plugin -- Agent Support 11.2.0.3.0
Enterprise Manager Grid Control Core Files 10.2.0.4.4
Enterprise Manager Common Core Files 10.2.0.4.4
Enterprise Manager Agent Core Files 10.2.0.4.4
RDBMS Required Support Files 11.2.0.3.0
regexp 2.1.9.0.0

Agent Required Support Files 10.2.0.4.3


Oracle 11g Warehouse Builder Required Files 11.2.0.3.0
Oracle Notification Service (eONS) 11.2.0.3.0
Oracle Text Required Support Files 11.2.0.3.0
Parser Generator Required Support Files 11.2.0.3.0
Oracle Database 11g Multimedia Files 11.2.0.3.0
Oracle Multimedia Java Advanced Imaging 11.2.0.3.0
Oracle Multimedia Annotator 11.2.0.3.0
Oracle JDBC/OCI Instant Client 11.2.0.3.0
Oracle Multimedia Locator RDBMS Files 11.2.0.3.0
Precompiler Required Support Files 11.2.0.3.0
Oracle Core Required Support Files 11.2.0.3.0
Sample Schema Data 11.2.0.3.0
Oracle Starter Database 11.2.0.3.0
Oracle Message Gateway Common Files 11.2.0.3.0
Oracle XML Query 11.2.0.3.0
XML Parser for Oracle JVM 11.2.0.3.0
Oracle Help For Java 4.2.9.0.0
Installation Plugin Files 11.2.0.3.0
Enterprise Manager Common Files 10.2.0.4.3
Expat libraries 2.0.1.0.1
Deinstallation Tool 11.2.0.3.0
Oracle Quality of Service Management (Client) 11.2.0.3.0
Perl Modules 5.10.0.0.1
JAccelerator (COMPANION) 11.2.0.3.0
Oracle Containers for Java 11.2.0.3.0
Perl Interpreter 5.10.0.0.1
Oracle Net Required Support Files 11.2.0.3.0
Secure Socket Layer 11.2.0.3.0
Oracle Universal Connection Pool 11.2.0.3.0
Oracle JDBC/THIN Interfaces 11.2.0.3.0
Oracle Multimedia Client Option 11.2.0.3.0
Oracle Java Client 11.2.0.3.0
Character Set Migration Utility 11.2.0.3.0
Oracle Code Editor 1.2.1.0.0I
PL/SQL Embedded Gateway 11.2.0.3.0
OLAP SQL Scripts 11.2.0.3.0
Database SQL Scripts 11.2.0.3.0
Oracle Locale Builder 11.2.0.3.0
Oracle Globalization Support 11.2.0.3.0
SQL*Plus Files for Instant Client 11.2.0.3.0
Required Support Files 11.2.0.3.0
Oracle Database User Interface 2.2.13.0.0
Oracle ODBC Driver 11.2.0.3.0
Oracle Notification Service 11.2.0.3.0
XML Parser for Java 11.2.0.3.0
Oracle Security Developer Tools 11.2.0.3.0
Oracle Wallet Manager 11.2.0.3.0
Cluster Verification Utility Common Files 11.2.0.3.0
Oracle Clusterware RDBMS Files 11.2.0.3.0
Oracle UIX 2.2.24.6.0
Enterprise Manager plugin Common Files 11.2.0.3.0
HAS Common Files 11.2.0.3.0
Precompiler Common Files 11.2.0.3.0
Installation Common Files 11.2.0.3.0
Oracle Help for the Web 2.0.14.0.0
Oracle LDAP administration 11.2.0.3.0
Buildtools Common Files 11.2.0.3.0
Assistant Common Files 11.2.0.3.0
Oracle Recovery Manager 11.2.0.3.0
PL/SQL 11.2.0.3.0
Generic Connectivity Common Files 11.2.0.3.0
Oracle Database Gateway for ODBC 11.2.0.3.0
Oracle Programmer 11.2.0.3.0
Oracle Database Utilities 11.2.0.3.0
Enterprise Manager Agent 10.2.0.4.3
SQL*Plus 11.2.0.3.0
Oracle Netca Client 11.2.0.3.0
Oracle Multimedia Locator 11.2.0.3.0
Oracle Call Interface (OCI) 11.2.0.3.0
Oracle Multimedia 11.2.0.3.0
Oracle Net 11.2.0.3.0
Oracle XML Development Kit 11.2.0.3.0
Database Configuration and Upgrade Assistants 11.2.0.3.0

Oracle JVM 11.2.0.3.0


Oracle Advanced Security 11.2.0.3.0
Oracle Internet Directory Client 11.2.0.3.0
Oracle Enterprise Manager Console DB 11.2.0.3.0
HAS Files for DB 11.2.0.3.0
Oracle Net Listener 11.2.0.3.0
Oracle Text 11.2.0.3.0
Oracle Net Services 11.2.0.3.0
Oracle Database 11g 11.2.0.3.0
Oracle OLAP 11.2.0.3.0
Oracle Spatial 11.2.0.3.0
Oracle Partitioning 11.2.0.3.0
Enterprise Edition Options 11.2.0.3.0
----------------------------------------------------------------------------Instantiating scripts for add node (Tuesday, December 24, 2013 8:53:41 PM PET)
.
1% Done.
Instantiation of add node scripts complete
Copying to remote nodes (Tuesday, December 24, 2013 8:53:45 PM PET)
..........................................................................................
.....
96% Done.
Home copied to new nodes
Saving inventory on nodes (Tuesday, December 24, 2013 9:11:09 PM PET)
.
100% Done.
Save inventory complete
WARNING:
The following configuration scripts need to be executed as the "root" user in each new
cluster node. Each script in the list below is followed by a list of nodes.
/u01/app/oracle/product/11.2.0/db_1/root.sh #On nodes dbrac3
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts in each cluster node
The Cluster Node Addition of /u01/app/oracle/product/11.2.0/db_1 was successful.
Please check '/tmp/silentInstall.log' for more details.

Una vez concluida con la instalacin del software de Base de Datos, proceder a ejecutar el scripts
para finalizar la configuracin.
# /u01/app/oracle/product/11.2.0/db_1/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
[root@dbrac3 ~]#

Verificamos los privilegios administrativos.


$ $ORACLE_HOME/bin/cluvfy comp admprv -o db_config -d $ORACLE_HOME -n
dbrac1,dbrac2,dbrac3 -verbose > verify_postinstalldb_dbrac3_05.log

Agregar la instancia al Cluster de Base de Datos


Para establecer una instancia de base de datos en el nuevo nodo, se debe se satisfacer todas las
dependencias de la instancia en el nodo. Dependencias como passwordfile, parametros de
init.ora, etc.
Para ello, en el nuevo nodo ejecutar los siguientes comando para crear el passwordfile, init.ora y
agregar una nueva entrada en el archivo /etc/oratab.
[oracle@dbrac3 ~]$ orahome
[oracle@dbrac3 ~]$ cd $ORACLE_HOME/dbs
[oracle@dbrac3 dbs]$ ls
hc_PRD2.dat init.ora initPRD2.ora orapwPRD2
[oracle@dbrac3 dbs]$ mv initPRD2.ora initPRD3.ora
[oracle@dbrac3 dbs]$ mv orapwPRD2 orapwPRD3
[oracle@dbrac3 dbs]$ echo "PRD:/u01/app/oracle/product/11.2.0/db_1:N
added by me" >> /etc/oratab

# line

De un nodo con una instancia existente en la base de datos, en nuestro caso PRD, ejecutar los
siguientes comandos para crear los log thread, undo tablespace y entradas en el spfile.
[oracle@dbrac2 ~]$ orahome
[oracle@dbrac2 ~]$ sqlplus / as sysdba
SQL> select thread#, group#, bytes/1024/1024 size_MB from v$log;
THREAD#
GROUP#
SIZE_MB
---------- ---------- ---------1
1
50
1
2
50
2
3
50
2
4
50
SQL> select name from v$asm_diskgroup;
NAME
-----------------------------ACFS
CRS
DATA
FRA
SQL> alter database add logfile thread 3 group 5 ('+DATA','+FRA') size 50M,
2 group 6 ('+DATA','+FRA') size 50M;
Database altered.
SQL> alter database enable public thread 3;
Database altered.
SQL> create undo tablespace undotbs3 datafile '+DATA' size 200M;
Tablespace created.
SQL> alter system set undo_tablespace=undotbs3 scope=spfile sid='PRD3';
System altered.
SQL> alter system set instance_number=3 scope=spfile sid='PRD3';
System altered.
SQL> alter system set cluster_database_instances=3 scope=spfile sid='*';
System altered.

Actualizar el Oracle Registry Cluster (OCR)


El OCR, ser actualizado para la nueva instancia que se esta adicionando, PRD3, al cluster de
base de datos.
Para ello agregamos la nueva instancia al cluster de base de datos y verificamos su estado.
[oracle@dbrac3 ~]$ srvctl status database -d PRD -v
Instance PRD1 is running on node dbrac1. Instance status: Open.
Instance PRD2 is running on node dbrac2. Instance status: Open.
[oracle@dbrac3 ~]$ srvctl add instance -d PRD -i PRD3 -n dbrac3
[oracle@dbrac3 ~]$ srvctl status database -d PRD -v
Instance PRD1 is running on node dbrac1. Instance status: Open.
Instance PRD2 is running on node dbrac2. Instance status: Open.
Instance PRD3 is not running on node dbrac3
[oracle@dbrac3 ~]$ srvctl config database -d PRD
Database unique name: PRD
Database name: PRD
Oracle home: /u01/app/oracle/product/11.2.0/db_1
Oracle user: oracle
Spfile: +DATA/PRD/spfilePRD.ora
Domain: localdomain
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: PRD
Database instances: PRD1,PRD2,PRD3
Disk Groups: DATA,FRA
Mount point paths:
Services:
Type: RAC
Database is administrator managed

Si se tuviera servicios asociados a la base de datos, aqu deberamos de aadir dicho servicio al
cluster.
Inicializar la Instancia
Una vez que todos los prerrequisitos y el OCR ha sido actualizado, se procede a iniciar la
instancia y verificar.
[oracle@dbrac3 ~]$ srvctl start instance -d PRD -i PRD3
[oracle@dbrac3 ~]$ srvctl status
Instance PRD1 is running on node
Instance PRD2 is running on node
Instance PRD3 is running on node

database -d PRD -v
dbrac1. Instance status: Open.
dbrac2. Instance status: Open.
dbrac3. Instance status: Open.

[oracle@dbrac3 ~]$ crs_stat -t


Name
Type
Target
State
Host
-----------------------------------------------------------ora.ACFS.dg
ora....up.type ONLINE
ONLINE
dbrac1
ora.CRS.dg
ora....up.type ONLINE
ONLINE
dbrac1
ora.DATA.dg
ora....up.type ONLINE
ONLINE
dbrac1
ora.FRA.dg
ora....up.type ONLINE
ONLINE
dbrac1
ora....ER.lsnr ora....er.type ONLINE
ONLINE
dbrac1
ora....N1.lsnr ora....er.type ONLINE
ONLINE
dbrac1
ora.asm
ora.asm.type
ONLINE
ONLINE
dbrac1
ora.cvu
ora.cvu.type
ONLINE
ONLINE
dbrac1
ora....SM1.asm application
ONLINE
ONLINE
dbrac1
ora....C1.lsnr application
ONLINE
ONLINE
dbrac1
ora.dbrac1.gsd application
OFFLINE
OFFLINE
ora.dbrac1.ons application
ONLINE
ONLINE
dbrac1
ora.dbrac1.vip ora....t1.type ONLINE
ONLINE
dbrac1
ora....SM2.asm application
ONLINE
ONLINE
dbrac2
ora....C2.lsnr application
ONLINE
ONLINE
dbrac2
ora.dbrac2.gsd application
OFFLINE
OFFLINE

ora.dbrac2.ons
ora.dbrac2.vip
ora....SM3.asm
ora....C3.lsnr
ora.dbrac3.gsd
ora.dbrac3.ons
ora.dbrac3.vip
ora.gsd
ora....network
ora.oc4j
ora.ons
ora.prd.db
ora....ry.acfs
ora.scan1.vip

application
ora....t1.type
application
application
application
application
ora....t1.type
ora.gsd.type
ora....rk.type
ora.oc4j.type
ora.ons.type
ora....se.type
ora....fs.type
ora....ip.type

ONLINE
ONLINE
ONLINE
ONLINE
OFFLINE
ONLINE
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE

ONLINE
ONLINE
ONLINE
ONLINE
OFFLINE
ONLINE
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE

dbrac2
dbrac2
dbrac3
dbrac3
dbrac3
dbrac3
dbrac1
dbrac1
dbrac1
dbrac1
dbrac1
dbrac1

[oracle@dbrac3 ~]$ crsctl stat res -t


-------------------------------------------------------------------------------NAME
TARGET STATE
SERVER
STATE_DETAILS
-------------------------------------------------------------------------------Local Resources
-------------------------------------------------------------------------------ora.ACFS.dg
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.CRS.dg
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.DATA.dg
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.FRA.dg
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.LISTENER.lsnr
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.asm
ONLINE ONLINE
dbrac1
Started
ONLINE ONLINE
dbrac2
Started
ONLINE ONLINE
dbrac3
Started
ora.gsd
OFFLINE OFFLINE
dbrac1
OFFLINE OFFLINE
dbrac2
OFFLINE OFFLINE
dbrac3
ora.net1.network
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.ons
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
ora.registry.acfs
ONLINE ONLINE
dbrac1
ONLINE ONLINE
dbrac2
ONLINE ONLINE
dbrac3
-------------------------------------------------------------------------------Cluster Resources
-------------------------------------------------------------------------------ora.LISTENER_SCAN1.lsnr
1
ONLINE ONLINE
dbrac1
ora.cvu
1
ONLINE ONLINE
dbrac1
ora.dbrac1.vip
1
ONLINE ONLINE
dbrac1
ora.dbrac2.vip
1
ONLINE ONLINE
dbrac2
ora.dbrac3.vip
1
ONLINE ONLINE
dbrac3

ora.oc4j
1
ora.prd.db
1
2
3
ora.scan1.vip
1

ONLINE

ONLINE

dbrac1

ONLINE
ONLINE
ONLINE

ONLINE
ONLINE
ONLINE

dbrac1
dbrac2
dbrac3

ONLINE

ONLINE

dbrac1

Open
Open
Open

You might also like