Sunteți pe pagina 1din 23

KNOWLEDGE SHARING

RAC – ADD NODE using addNode.sh

PRECHECK: -

Before prechecks establish user equivalence with SSH setup between new node and the old nodes.
Perform below steps to do precheck before starting to add node.

Below 2 steps to run using runcluvfy which can be found in installation software.

cd /orasoft/stage/linux_x86_64bit/database_112030/grid
./runcluvfy.sh stage -pre crsinst -n flpd450,flpd451,flph733 -fixup –verbose

./runcluvfy.sh stage -post hwos -n flph733 –verbose

Below 2 commands to be run from installed ORACLE_HOME of Oracle grid.

cd $ORACLE_HOME/bin
./cluvfy comp peer -refnode flpd450 -n flph733 -orainv oinstall -osdba asmdba -
verbose
check if any kernel parameter mismatch

./cluvfy stage -pre nodeadd -n flph733 -fixup -fixupdir /home/oragrid -verbose


check any major mismatch

All errors, mismatch should be resolved before proceeding to add Node.

For avoiding JAVA heap errors when performing addNode.sh

After this create all directories on 3rd node same as node 1 or 2. Update below file with parameter as
below in both Grid as well as database home to avoid Java heap errors. This is memory parameter for
JRE.

$ORACLE_HOME/oui/oraparam.ini

Change below line

JRE_MEMORY_OPTIONS=" -mx150m"

To

JRE_MEMORY_OPTIONS=" -mx2048m"

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh
GRID STEPS: -

Add 3rd node to cluster using addNode.sh as below, but before proceeding export the environment
variable as below. Below command to be run from Grid user of existing cluster nodes (-flpd450)

$ export IGNORE_PREADDNODE_CHECKS=Y

$ cd $ORACLE_HOME/oui/bin

$ ./addNode.sh -silent "CLUSTER_NEW_NODES={flph733}"


"CLUSTER_NEW_VIRTUAL_HOSTNAMES={p1cdt2d3.ffdc.sbc.com}"
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 16383 MB Passed
Oracle Universal Installer, Version 11.2.0.3.0 Production
Copyright (C) 1999, 2011, Oracle. All rights reserved.

Performing tests to see whether nodes flpd451,flph733 are available


............................................................... 100% Done.

.
-----------------------------------------------------------------------------
Cluster Node Addition Summary
Global Settings
Source: /opt/app/oragrid/oracle/product/11.2.0
New Nodes
Space Requirements
New Nodes
flph733
/opt/app/oragrid: Required 24.76GB : Available 47.25GB
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

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh
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.2
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 11.2.0.3.0
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

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh
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 (Sunday, December 20, 2015 10:16:25 PM PST)
. 1% Done.
Instantiation of add node scripts complete

Copying to remote nodes (Sunday, December 20, 2015 10:16:28 PM PST)


......................................................................................
.........
^[[C 96% Done.
Home copied to new nodes

Saving inventory on nodes (Sunday, December 20, 2015 11:27:48 PM PST)


. 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.
/opt/app/oragrid/oracle/product/11.2.0/root.sh #On nodes flph733
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 /opt/app/oragrid/oracle/product/11.2.0 was successful.


Please check '/tmp/silentInstall.log' for more details.
oragrid@flpd450(3904) +ASM1 /opt/app/oragrid/oracle/product/11.2.0/oui/bin

As indicated above run root.sh from node being added (3rd node in our case – flph733)

$ sudo /opt/app/oragrid/oracle/product/grid/root.sh
Check /opt/app/oragrid/oracle/product/11.2.0/install/root_flph733_2015-12-20_23-31-
19.log for the output of root script

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh
Root.sh generated below log file which we can tail to check status continuously.

$ tail -f /opt/app/oragrid/oracle/product/11.2.0/install/root_flph733_2015-12-20_23-
31-19.log

Performing root user operation for Oracle 11g

The following environment variables are set as:


ORACLE_OWNER= oragrid
ORACLE_HOME= /opt/app/oragrid/oracle/product/11.2.0

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.
Relinking oracle with rac_on option
Using configuration parameter file:
/opt/app/oragrid/oracle/product/11.2.0/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
OLR initialization - successful
Adding Clusterware entries to upstart
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon
on node flpd450, number 1, 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.
Preparing packages for installation...
cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
oragrid@flph733(307) +ASM3 /home/oragrid

Grid Installation is completed

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh
Validation steps for Grid installation
$ crsctl check cluster -all
**************************************************************
flpd450:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
flpd451:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
flph733:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
oragrid@flph733(307) +ASM3 /home/oragrid

$ srvctl status nodeapps


VIP p1cdt2d1 is enabled
VIP p1cdt2d1 is running on node: flpd450
VIP p1cdt2d2 is enabled
VIP p1cdt2d2 is running on node: flpd451
VIP p1cdt2d3.ffdc.sbc.com is enabled
VIP p1cdt2d3.ffdc.sbc.com is running on node: flph733
Network is enabled
Network is running on node: flpd450
Network is running on node: flpd451
Network is running on node: flph733
GSD is disabled
GSD is not running on node: flpd450
GSD is not running on node: flpd451
GSD is not running on node: flph733
ONS is enabled
ONS daemon is running on node: flpd450
ONS daemon is running on node: flpd451
ONS daemon is running on node: flph733
oragrid@flph733(314) +ASM3 /home/oragrid

$ srvctl status scan


SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node flpd451
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node flph733
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node flpd450
oragrid@flph733(316) +ASM3 /home/oragrid

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh
$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node flpd451
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node flph733
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node flpd450
oragrid@flph733(317) +ASM3 /home/oragrid

$ srvctl status asm


ASM is running on flpd451,flph733,flpd450
oragrid@flph733(318) +ASM3 /home/oragrid

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh
DATABASE STEPS: -

Check if our database is administrator managed & status of database as below

check status of database

$ srvctl status database -d p1cdt2d


Instance p1cdt2d1 is running on node flpd450
Instance p1cdt2d2 is running on node flpd451
p1cdt2d@flpd450(1123) p1cdt2d1 /opt/app/p1cdt2d

$ srvctl config database -d p1cdt2d


Database unique name: p1cdt2d
Database name: p1cdt2d
Oracle home: /opt/app/p1cdt2d/oracle/product/11.2.0.3
Oracle user: p1cdt2d
Spfile: +P1CDT2D_ORADATA/p1cdt2d/spfilep1cdt2d.ora
Domain: db.att.com
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: p1cdt2d
Database instances: p1cdt2d1,p1cdt2d2
Disk Groups: P1CDT2D_ORADATA,P1CDT2D_ORAFLSH,P1CDT2D_ORAREDO01,P1CDT2D_ORAREDO02
Mount point paths:
Services: p1cdt2d_ETL01,p1cdt2d_HK01,p1cdt2d_PN01,p1cdt2d_WS01
Type: RAC
Database is administrator managed

Extend the oracle database home to node3 (flph733) as below. Run this from existing nodes (->flpd450)

$ cd $ORACLE_HOME/oui/bin
$ ./addNode.sh -silent "CLUSTER_NEW_NODES={flph733}"

Performing pre-checks for node addition

Checking node reachability...


Node reachability check passed from node "flpd450"

Checking user equivalence...


User equivalence check passed for user "p1cdt2d"

WARNING:
Node "flph733" already appears to be part of cluster

Pre-check for node addition was successful.


Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 16383 MB Passed
Oracle Universal Installer, Version 11.2.0.3.0 Production

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh
Copyright (C) 1999, 2011, Oracle. All rights reserved.

Performing tests to see whether nodes flpd451,flph733 are available


............................................................... 100% Done.

.
-----------------------------------------------------------------------------
Cluster Node Addition Summary
Global Settings
Source: /opt/app/p1cdt2d/oracle/product/11.2.0.3
New Nodes
Space Requirements
New Nodes
flph733
/opt/app/p1cdt2d: Required 4.79GB : Available 47.25GB
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

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh
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.2
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

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh
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 (Sunday, December 20, 2015 11:49:47 PM PST)
. 1% Done.
Instantiation of add node scripts complete

Copying to remote nodes (Sunday, December 20, 2015 11:49:49 PM PST)


......................................................................................
......... 96% Done.
Home copied to new nodes

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh

Saving inventory on nodes (Sunday, December 20, 2015 11:53:34 PM PST)


. 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.
/opt/app/p1cdt2d/oracle/product/11.2.0.3/root.sh #On nodes flph733
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 /opt/app/p1cdt2d/oracle/product/11.2.0.3 was successful.


Please check '/tmp/silentInstall.log' for more details.

Ask SA to run root.sh from $ORACLE_HOME of database on newly added node (->flph733)

The log for this operation will be present in below directory.

$ORACLE_HOME/install

The log will contain below information

$ cat root_flph733_2015-12-20_23-58-15.log

Performing root user operation for Oracle 11g

The following environment variables are set as:


ORACLE_OWNER= p1cdt2d
ORACLE_HOME= /opt/app/p1cdt2d/oracle/product/11.2.0.3
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.
p1cdt2d@flph733(114) +ASM3 /opt/app/p1cdt2d/oracle/product/11.2.0.3/install

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh
INSTANCE STEPS: -

As our database is administrator managed please add instance using dbca as below (from user p1cdt2d)
from node1 flpd450

There are 2 methods for the same (silent & using GUI)

Silent method will use command as below (not sure in this case if we will need to add UNDOTBS3
tablespace & redo logs manually

DBCA using Silent command (Always run from existing node)

$ORACLE_HOME/bin/dbca -silent -addInstance -nodeList flph733 -gdbName p1cdt2d -


instanceName p1cdt2d3 -sysDBAUserName sys -sysDBAPassword high5me123

DBA using GUI method (Always run from existing node)

$ cd $ORACLE_HOME/bin

$ ./dbca

Then follow the Window instructions as below

Welcome: - Select Oracle Real Application Clusters (RAC) database as the database type that you would
like to create or administer.

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh

Operations: - Select Instance Management.

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh

Instance Management: - Select Add an instance.

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh

List of cluster databases: - Enter the sys username and password.

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh

List of cluster database instances: - Verify the existing database instances.

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh

Instance naming and node selection: - Verify the instance name (p1cdt2d3) to be added and the node
(flph733) on which to add the instance.

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh

Instance Storage: - Verify the storage configuration. (you can view undotbs3 & its datafile & redo
logfiles being added

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh

Summary: - Verify the set up and click on OK.

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh

Below Window will show the status of instance addition.

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh

Once it adds and ask if to perform another operation, click no.

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015
KNOWLEDGE SHARING
RAC – ADD NODE using addNode.sh

Database & Instance Validation: -


$ crsctl stat res -w "TYPE = ora.database.type" -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.p1cdt2d.db
1 ONLINE ONLINE flpd450 Open
2 ONLINE ONLINE flpd451 Open
3 ONLINE ONLINE flph733 Open

$ srvctl status database -d p1cdt2d


Instance p1cdt2d1 is running on node flpd450
Instance p1cdt2d2 is running on node flpd451
Instance p1cdt2d3 is running on node flph733
oragrid@flph733(386) +ASM3 /home/oragrid

SQL> SELECT INSTANCE_NUMBER,INSTANCE_NAME,HOST_NAME,STATUS,THREAD#,INSTANCE_ROLE,ACTIVE_STATE


from gv$instance order by 1;

INSTANCE_NUMBER INSTANCE_NAME HOST_NAME STATUS THREAD# INSTANCE_ROLE ACTIVE_ST


--------------- ---------------- ---------- ------------ ---------- ------------------ ---------
1 p1cdt2d1 flpd450 OPEN 1 PRIMARY_INSTANCE NORMAL
2 p1cdt2d2 flpd451 OPEN 2 PRIMARY_INSTANCE NORMAL
3 p1cdt2d3 flph733 OPEN 3 PRIMARY_INSTANCE NORMAL

TECH MAHINDRA - ODBA NILESH MAHADIK


12/21/2015

S-ar putea să vă placă și