Oracle/RAC

RAC운영중 RAC node 추가하기(3/3) ;환경 : VMware 실습환경, 11gR2, OEL(2.6.18-238.el5PAE)

에몽이ㅋ 2012. 4. 26. 20:25
참조사이트
 http://blog.grid-it.nl/index.php/2011/04/13/adding-a-new-node-to-an-oacle-11gr2-cluster/ 

1. 새 노드에 오라클엔진설치하기
운영중인 노드에서 실행하세요
$ cd $ORACLE_HOME/oui/bin
$ pwd
/u01/app/oracle/product/11.2.0/db_1/oui/bin
$ ./addNode.sh -silent CLUSTER_NEW_NODES={rac3}
[oracle@rac1 bin]$ ./addNode.sh -silent CLUSTER_NEW_NODES={rac3}
Starting Oracle Universal Installer...

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


Performing tests to see whether nodes rac2,rac3 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
      rac3
         /u01: Required 3.83GB : Available 15.65GB
Installed Products
   Product Names
      Oracle Database 11g 11.2.0.2.0
      Sun JDK 1.5.0.24.08
      Installer SDK Component 11.2.0.2.0
      Oracle One-Off Patch Installer 11.2.0.0.2
      Oracle Universal Installer 11.2.0.2.0
      Oracle USM Deconfiguration 11.2.0.2.0
      Oracle Configuration Manager Deconfiguration 10.3.1.0.0
      Oracle DBCA Deconfiguration 11.2.0.2.0
      Oracle RAC Deconfiguration 11.2.0.2.0
      Oracle Database Deconfiguration 11.2.0.2.0
      Oracle Configuration Manager Client 10.3.2.1.0
      Oracle Configuration Manager 10.3.3.1.1
      Oracle ODBC Driverfor Instant Client 11.2.0.2.0
      LDAP Required Support Files 11.2.0.2.0
      SSL Required Support Files for InstantClient 11.2.0.2.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.2.0
      Oracle Database Vault J2EE Application 11.2.0.2.0
      Oracle Label Security 11.2.0.2.0
      Oracle Data Mining RDBMS Files 11.2.0.2.0
      Oracle OLAP RDBMS Files 11.2.0.2.0
      Oracle OLAP API 11.2.0.2.0
      Platform Required Support Files 11.2.0.2.0
      Oracle Database Vault option 11.2.0.2.0
      Oracle RAC Required Support Files-HAS 11.2.0.2.0
      SQL*Plus Required Support Files 11.2.0.2.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.2.0
      Oracle SQL Developer 11.2.0.2.0
      Oracle Application Express 11.2.0.2.0
      XDK Required Support Files 11.2.0.2.0
      RDBMS Required Support Files for Instant Client 11.2.0.2.0
      SQLJ Runtime 11.2.0.2.0
      Database Workspace Manager 11.2.0.2.0
      RDBMS Required Support Files Runtime 11.2.0.2.0
      Oracle Globalization Support 11.2.0.2.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.2.0
      Enterprise Manager Repository Core Files 10.2.0.4.3
      Enterprise Manager Database Plugin -- Agent Support 11.2.0.2.0
      Enterprise Manager Grid Control Core Files 10.2.0.4.3
      Enterprise Manager Common Core Files 10.2.0.4.3
      Enterprise Manager Agent Core Files 10.2.0.4.3
      RDBMS Required Support Files 11.2.0.2.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.2.0
      Oracle Notification Service (eONS) 11.2.0.2.0
      Oracle Text Required Support Files 11.2.0.2.0
      Parser Generator Required Support Files 11.2.0.2.0
      Oracle Database 11g Multimedia Files 11.2.0.2.0
      Oracle Multimedia Java Advanced Imaging 11.2.0.2.0
      Oracle Multimedia Annotator 11.2.0.2.0
      Oracle JDBC/OCI Instant Client 11.2.0.2.0
      Oracle Multimedia Locator RDBMS Files 11.2.0.2.0
      Precompiler Required Support Files 11.2.0.2.0
      Oracle Core Required Support Files 11.2.0.2.0
      Sample Schema Data 11.2.0.2.0
      Oracle Starter Database 11.2.0.2.0
      Oracle Message Gateway Common Files 11.2.0.2.0
      Oracle XML Query 11.2.0.2.0
      XML Parser for Oracle JVM 11.2.0.2.0
      Oracle Help For Java 4.2.9.0.0
      Installation Plugin Files 11.2.0.2.0
      Enterprise Manager Common Files 10.2.0.4.3
      Expat libraries 2.0.1.0.1
      Deinstallation Tool 11.2.0.2.0
      Oracle Quality of Service Management (Client) 11.2.0.2.0
      Perl Modules 5.10.0.0.1
      JAccelerator (COMPANION) 11.2.0.2.0
      Oracle Containers for Java 11.2.0.2.0
      Perl Interpreter 5.10.0.0.1
      Oracle Net Required Support Files 11.2.0.2.0
      Secure Socket Layer 11.2.0.2.0
      Oracle Universal Connection Pool 11.2.0.2.0
      Oracle JDBC/THIN Interfaces 11.2.0.2.0
      Oracle Multimedia Client Option 11.2.0.2.0
      Oracle Java Client 11.2.0.2.0
      Character Set Migration Utility 11.2.0.2.0
      Oracle Code Editor 1.2.1.0.0I
      PL/SQL Embedded Gateway 11.2.0.2.0
      OLAP SQL Scripts 11.2.0.2.0
      Database SQL Scripts 11.2.0.2.0
      Oracle Locale Builder 11.2.0.2.0
      Oracle Globalization Support 11.2.0.2.0
      SQL*Plus Files for Instant Client 11.2.0.2.0
      Required Support Files 11.2.0.2.0
      Oracle Database User Interface 2.2.13.0.0
      Oracle ODBC Driver 11.2.0.2.0
      Oracle Notification Service 11.2.0.2.0
      XML Parser for Java 11.2.0.2.0
      Oracle Security Developer Tools 11.2.0.2.0
      Oracle Wallet Manager 11.2.0.2.0
      Cluster Verification Utility Common Files 11.2.0.2.0
      Oracle Clusterware RDBMS Files 11.2.0.2.0
      Oracle UIX 2.2.24.6.0
      Enterprise Manager plugin Common Files 11.2.0.2.0
      HAS Common Files 11.2.0.2.0
      Precompiler Common Files 11.2.0.2.0
      Installation Common Files 11.2.0.2.0
      Oracle Help for the  Web 2.0.14.0.0
      Oracle LDAP administration 11.2.0.2.0
      Buildtools Common Files 11.2.0.2.0
      Assistant Common Files 11.2.0.2.0
      Oracle Recovery Manager 11.2.0.2.0
      PL/SQL 11.2.0.2.0
      Generic Connectivity Common Files 11.2.0.2.0
      Oracle Database Gateway for ODBC 11.2.0.2.0
      Oracle Programmer 11.2.0.2.0
      Oracle Database Utilities 11.2.0.2.0
      Enterprise Manager Agent 10.2.0.4.3
      SQL*Plus 11.2.0.2.0
      Oracle Netca Client 11.2.0.2.0
      Oracle Multimedia Locator 11.2.0.2.0
      Oracle Call Interface (OCI) 11.2.0.2.0
      Oracle Multimedia 11.2.0.2.0
      Oracle Net 11.2.0.2.0
      Oracle XML Development Kit 11.2.0.2.0
      Database Configuration and Upgrade Assistants 11.2.0.2.0
      Oracle JVM 11.2.0.2.0
      Oracle Advanced Security 11.2.0.2.0
      Oracle Internet Directory Client 11.2.0.2.0
      Oracle Enterprise Manager Console DB 11.2.0.2.0
      HAS Files for DB 11.2.0.2.0
      Oracle Net Listener 11.2.0.2.0
      Oracle Text 11.2.0.2.0
      Oracle Net Services 11.2.0.2.0
      Oracle Database 11g 11.2.0.2.0
      Oracle OLAP 11.2.0.2.0
      Oracle Spatial 11.2.0.2.0
      Oracle Partitioning 11.2.0.2.0
      Enterprise Edition Options 11.2.0.2.0
-----------------------------------------------------------------------------


Instantiating scripts for add node (Thursday, April 26, 2012 8:08:08 PM KST)
.                                                                 1% Done.
Instantiation of add node scripts complete

Copying to remote nodes (Thursday, April 26, 2012 8:08:13 PM KST)
...............................................................................................                                 96% Done.
Home copied to new nodes

Saving inventory on nodes (Thursday, April 26, 2012 8:18:07 PM KST)
.                                                               100% Done.
Save inventory complete
WARNING:
The following configuration scripts need to be executed as the "root" user in each cluster node.
/u01/app/oracle/product/11.2.0/db_1/root.sh #On nodes rac3
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.


1.1 root 로 스크립트 실행하기(새로 추가된 노드에서)
[oracle@rac3 ~]$ su
Password:
[root@rac3 oracle]# /u01/app/oracle/product/11.2.0/db_1/root.sh
Running Oracle 11g root script...

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.


2. Database Instance 추가하기
아래 스크린샷을 참조하세요
새 노드에서
$ dbca실행 후


인스턴스(노드)추가시 운영중인 DB의 log에 아래 alertlog가 출력됩니다.
Reconfiguration started (old inc 4, new inc 6)
List of instances:
 1 2 3 (myinst: 2)
 Global Resource Directory frozen
 Communication channels reestablished
Thu Apr 26 20:43:24 2012
 * domain 0 valid = 1 according to instance 1
 Master broadcasted resource hash value bitmaps
 Non-local Process blocks cleaned out
Thu Apr 26 20:43:24 2012
 LMS 0: 0 GCS shadows cancelled, 0 closed, 0 Xw survived
 Set master node info
 Submitted all remote-enqueue requests
 Dwn-cvts replayed, VALBLKs dubious
 All grantable enqueues granted
 Submitted all GCS remote-cache requests
 Fix write in gcs resources
Reconfiguration complete


3. 확인
[oracle@rac3 ~]$ crs_stat -t
Name           Type           Target    State     Host
------------------------------------------------------------
ora....ER.lsnr ora....er.type ONLINE    ONLINE    rac1
ora....N1.lsnr ora....er.type ONLINE    ONLINE    rac1
ora....VOTE.dg ora....up.type ONLINE    ONLINE    rac1
ora.ORADATA.dg ora....up.type ONLINE    ONLINE    rac1
ora....LASH.dg ora....up.type ONLINE    ONLINE    rac1
ora.asm        ora.asm.type   ONLINE    ONLINE    rac1
ora.cvu        ora.cvu.type   ONLINE    ONLINE    rac1
ora.gsd        ora.gsd.type   ONLINE    ONLINE    rac1
ora....network ora....rk.type ONLINE    ONLINE    rac1
ora.ons        ora.ons.type   ONLINE    ONLINE    rac1
ora....SM1.asm application    ONLINE    ONLINE    rac1
ora....C1.lsnr application    ONLINE    ONLINE    rac1
ora.rac1.gsd   application    ONLINE    ONLINE    rac1
ora.rac1.ons   application    ONLINE    ONLINE    rac1
ora.rac1.vip   ora....t1.type ONLINE    ONLINE    rac1
ora....SM2.asm application    ONLINE    ONLINE    rac2
ora....C2.lsnr application    ONLINE    ONLINE    rac2
ora.rac2.gsd   application    ONLINE    ONLINE    rac2
ora.rac2.ons   application    ONLINE    ONLINE    rac2
ora.rac2.vip   ora....t1.type ONLINE    ONLINE    rac2
ora....SM3.asm application    ONLINE    ONLINE    rac3
ora....C3.lsnr application    ONLINE    ONLINE    rac3
ora.rac3.gsd   application    ONLINE    ONLINE    rac3
ora.rac3.ons   application    ONLINE    ONLINE    rac3
ora.rac3.vip   ora....t1.type ONLINE    ONLINE    rac3
ora.racdb.db   ora....se.type ONLINE    ONLINE    rac1
ora....ry.acfs ora....fs.type ONLINE    ONLINE    rac1
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    rac1

SQL> l
  1* SELECT inst_id, instance_name,host_name,version,startup_time,status,database_status,active_state FROM gv$instance
SQL> /

INST_ID INSTANCE_NAME    HOST_NA VERSION     STARTUP_TIME        STATUS DATABASE_STATUS   ACTIVE_ST
------- ---------------- ------- ----------- ------------------- ------ ----------------- ---------
      3 racdb3           rac3    11.2.0.2.0  2012-04-26:20:43:17 OPEN   ACTIVE            NORMAL
      2 racdb2           rac2    11.2.0.2.0  2012-04-26:15:33:29 OPEN   ACTIVE            NORMAL
      1 racdb1           rac1    11.2.0.2.0  2012-04-25:15:05:54 OPEN   ACTIVE            NORMAL



끝났습니다.! 즐거운 오라클하세요~