最近在三台物理服务器并接入存储让我模拟Oracle RAC 剔除节点,刚好想起来前段时间一同事遇到RAC 某一节点故障,要重新添加节点,刚好利用此机会模拟测试。
以下来自本次验证实操记录,如有对此异议的请评论区回复。
在日常RAC管理中也经常会遇到RAC某一节点故障,需先剔除节点,再重新加入集群操作
当前Oracle 11g RAC集群为两节点集群,现计划为该集群增加一个节点。
| 主机名 | public-IP | virtual-IP | scan-IP | private-IP | 操作系统版本 | 数据库版本 |
|---|---|---|---|---|---|---|
| host210 | 192.168.17.136 | 192.168.17.103 | 192.168.17.108 | 10.90.1.36 | CentOS release 6.10 (Final) | 11.2.0.4 |
| host211 | 192.168.17.137 | 192.168.17.104 | 192.168.17.108 | 10.90.1.37 | CentOS release 6.10 (Final) | 11.2.0.4 |
| 主机名 | public-IP | virtual-IP | scan-IP | private-IP | 操作系统版本 | 数据库版本 |
|---|---|---|---|---|---|---|
| host212 | 192.168.17.139 | 192.168.17.105 | 192.168.17.108 | 10.90.1.38 | CentOS release 6.10 (Final) | 11.2.0.4 |
**系统设置:**新增节点部署和原集群节点相同操作系统并完成网络等相关配置。
**用户及属组:**新增节点参照原集群节点创建相同用户及组
**环境变量:**新增节点参照原集群节点配置了oracle及grid用户环境变量
**ASM存储:**新增节点参照原集群节点配置多路径并配置了ASM磁盘
**节点互信:**新增节点oracle及grid用户已配置和原集群节点SSH互信
-- 以下操作在现有集群某节点操作,grid用户执行
[root@host210 ~]# su - grid
[grid@host210 ~]$ olsnodes -s -t
host210 Active Unpinned
host211 Active Unpinned
[grid@host210 ~]$ cluvfy comp peer -n host212
-- 上述命令输出结果如下
Verifying peer compatibility
Checking peer compatibility...
Peer comparison: Physical memory
Node Name Status
------------------------------------ ------------------------
host212 251.6721GB (2.63897324E8KB)
Peer comparison: Available memory
Node Name Status
------------------------------------ ------------------------
host212 249.89GB (2.6202864E8KB)
Peer comparison: Swap space
Node Name Status
------------------------------------ ------------------------
host212 64GB (6.710886E7KB)
Peer comparison: Free disk space for "/u01/app/11.2.0/grid"
Node Name Status
------------------------------------ ------------------------
host212 207.0596GB (2.17117696E8KB)
Peer comparison: Free disk space for "/tmp"
Node Name Status
------------------------------------ ------------------------
host212 207.0596GB (2.17117696E8KB)
Peer comparison: User existence for "grid"
Node Name Status
------------------------------------ ------------------------
host212 grid(900)
Peer comparison: Group existence for "oinstall"
Node Name Status
------------------------------------ ------------------------
host212 oinstall(900)
Peer comparison: Group existence for "dba"
Node Name Status
------------------------------------ ------------------------
host212 dba(901)
Peer comparison: Group membership for "grid" in "oinstall (Primary)"
Node Name Status
------------------------------------ ------------------------
host212 yes
Peer comparison: Group membership for "grid" in "dba"
Node Name Status
------------------------------------ ------------------------
host212 yes
Peer comparison: Run level
Node Name Status
------------------------------------ ------------------------
host212 3
Peer comparison: System architecture
Node Name Status
------------------------------------ ------------------------
host212 x86_64
Peer comparison: Kernel version
Node Name Status
------------------------------------ ------------------------
host212 2.6.32-754.el6.x86_64
Peer comparison: Kernel param "semmsl"
Node Name Status
------------------------------------ ------------------------
host212 250
Peer comparison: Kernel param "semmns"
Node Name Status
------------------------------------ ------------------------
host212 32000
Peer comparison: Kernel param "semopm"
Node Name Status
------------------------------------ ------------------------
host212 100
Peer comparison: Kernel param "semmni"
Node Name Status
------------------------------------ ------------------------
host212 128
Peer comparison: Kernel param "shmmax"
Node Name Status
------------------------------------ ------------------------
host212 4398046511104
Peer comparison: Kernel param "shmmni"
Node Name Status
------------------------------------ ------------------------
host212 4096
Peer comparison: Kernel param "shmall"
Node Name Status
------------------------------------ ------------------------
host212 4294967296
Peer comparison: Kernel param "file-max"
Node Name Status
------------------------------------ ------------------------
host212 6815744
Peer comparison: Kernel param "ip_local_port_range"
Node Name Status
------------------------------------ ------------------------
host212 between 9000.0 & 65500.0
Peer comparison: Kernel param "rmem_default"
Node Name Status
------------------------------------ ------------------------
host212 262144
Peer comparison: Kernel param "rmem_max"
Node Name Status
------------------------------------ ------------------------
host212 4194304
Peer comparison: Kernel param "wmem_default"
Node Name Status
------------------------------------ ------------------------
host212 262144
Peer comparison: Kernel param "wmem_max"
Node Name Status
------------------------------------ ------------------------
host212 1048576
Peer comparison: Kernel param "aio-max-nr"
Node Name Status
------------------------------------ ------------------------
host212 3145728
Peer comparison: Package existence for "make"
Node Name Status
------------------------------------ ------------------------
host212 make-3.81-23.el6
Peer comparison: Package existence for "binutils"
Node Name Status
------------------------------------ ------------------------
host212 binutils-2.20.51.0.2-5.48.el6_10.1
Peer comparison: Package existence for "gcc (x86_64)"
Node Name Status
------------------------------------ ------------------------
host212 gcc-4.4.7-23.el6 (x86_64)
Peer comparison: Package existence for "libaio (x86_64)"
Node Name Status
------------------------------------ ------------------------
host212 libaio-0.3.107-10.el6 (x86_64)
Peer comparison: Package existence for "glibc (x86_64)"
Node Name Status
------------------------------------ ------------------------
host212 glibc-2.12-1.212.el6_10.3 (x86_64),glibc-2.12-1.212.el6_10.3 (i686)
Peer comparison: Package existence for "compat-libstdc++-33 (x86_64)"
Node Name Status
------------------------------------ ------------------------
host212 compat-libstdc++-33-3.2.3-69.el6 (x86_64)
Peer comparison: Package existence for "elfutils-libelf (x86_64)"
Node Name Status
------------------------------------ ------------------------
host212 elfutils-libelf-0.164-2.el6 (x86_64)
Peer comparison: Package existence for "elfutils-libelf-devel"
Node Name Status
------------------------------------ ------------------------
host212 elfutils-libelf-devel-0.164-2.el6
Peer comparison: Package existence for "glibc-common"
Node Name Status
------------------------------------ ------------------------
host212 glibc-common-2.12-1.212.el6_10.3
Peer comparison: Package existence for "glibc-devel (x86_64)"
Node Name Status
------------------------------------ ------------------------
host212 glibc-devel-2.12-1.212.el6_10.3 (x86_64)
Peer comparison: Package existence for "glibc-headers"
Node Name Status
------------------------------------ ------------------------
host212 glibc-headers-2.12-1.212.el6_10.3
Peer comparison: Package existence for "gcc-c++ (x86_64)"
Node Name Status
------------------------------------ ------------------------
host212 gcc-c++-4.4.7-23.el6 (x86_64)
Peer comparison: Package existence for "libaio-devel (x86_64)"
Node Name Status
------------------------------------ ------------------------
host212 libaio-devel-0.3.107-10.el6 (x86_64)
Peer comparison: Package existence for "libgcc (x86_64)"
Node Name Status
------------------------------------ ------------------------
host212 libgcc-4.4.7-23.el6 (x86_64),libgcc-4.4.7-23.el6 (i686)
Peer comparison: Package existence for "libstdc++ (x86_64)"
Node Name Status
------------------------------------ ------------------------
host212 libstdc++-4.4.7-23.el6 (x86_64)
Peer comparison: Package existence for "libstdc++-devel (x86_64)"
Node Name Status
------------------------------------ ------------------------
host212 libstdc++-devel-4.4.7-23.el6 (x86_64)
Peer comparison: Package existence for "sysstat"
Node Name Status
------------------------------------ ------------------------
host212 sysstat-9.0.4-33.el6_9.1
Peer comparison: Package existence for "pdksh"
Node Name Status
------------------------------------ ------------------------
host212 pdksh-5.2.14-37.el5,pdksh-5.2.14-37.el5_8.1
Peer comparison: Package existence for "expat (x86_64)"
Node Name Status
------------------------------------ ------------------------
host212 expat-2.0.1-13.el6_8 (x86_64)
Verification of peer compatibility was successful.
-- 结果successful表示新增节点符合配置需求
-- 以下操作在现有集群某节点操作,grid用户执行
[root@host210 ~]# su - grid
[grid@host210 ~]$ cd $ORACLE_HOME/oui/bin
[grid@host210 bin]$ ./addNode.sh "CLUSTER_NEW_NODES={host212}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={host212-vip}" -silent
-- 输出结果如下
Performing pre-checks for node addition
Checking node reachability...
Node reachability check passed from node "host210"
Checking user equivalence...
User equivalence check passed for user "grid"
Checking CRS integrity...
Clusterware version consistency passed
CRS integrity check passed
Checking shared resources...
Checking CRS home location...
"/u01/app/11.2.0/grid" is shared
Shared resources check for node addition passed
Checking node connectivity...
Checking hosts config file...
Verification of the hosts config file successful
Check: Node connectivity for interface "em1"
Node connectivity passed for interface "em1"
TCP connectivity check passed for subnet "192.168.17.0"
Check: Node connectivity for interface "em2"
Node connectivity passed for interface "em2"
TCP connectivity check passed for subnet "10.90.1.32"
Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "192.168.17.0".
Subnet mask consistency check passed for subnet "10.90.1.32".
Subnet mask consistency check passed.
Node connectivity check passed
Checking multicast communication...
Checking subnet "192.168.17.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "192.168.17.0" for multicast communication with multicast group "230.0.1.0" passed.
Checking subnet "10.90.1.32" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "10.90.1.32" for multicast communication with multicast group "230.0.1.0" passed.
Check of multicast communication passed.
Total memory check passed
Available memory check passed
Swap space check passed
Free disk space check passed for "host212:/u01/app/11.2.0/grid,host212:/tmp"
Free disk space check passed for "host210:/u01/app/11.2.0/grid,host210:/tmp"
Check for multiple users with UID value 900 passed
User existence check passed for "grid"
Run level check passed
Hard limits check passed for "maximum open file descriptors"
Soft limits check passed for "maximum open file descriptors"
Hard limits check passed for "maximum user processes"
Soft limits check passed for "maximum user processes"
System architecture check passed
Kernel version check passed
Kernel parameter check passed for "semmsl"
Kernel parameter check passed for "semmns"
Kernel parameter check passed for "semopm"
Kernel parameter check passed for "semmni"
Kernel parameter check passed for "shmmax"
Kernel parameter check passed for "shmmni"
Kernel parameter check passed for "shmall"
Kernel parameter check passed for "file-max"
Kernel parameter check passed for "ip_local_port_range"
Kernel parameter check passed for "rmem_default"
Kernel parameter check passed for "rmem_max"
Kernel parameter check passed for "wmem_default"
Kernel parameter check passed for "wmem_max"
Kernel parameter check passed for "aio-max-nr"
Package existence check passed for "make"
Package existence check passed for "binutils"
Package existence check passed for "gcc(x86_64)"
Package existence check passed for "libaio(x86_64)"
Package existence check passed for "glibc(x86_64)"
Package existence check passed for "compat-libstdc++-33(x86_64)"
Package existence check passed for "elfutils-libelf(x86_64)"
Package existence check passed for "elfutils-libelf-devel"
Package existence check passed for "glibc-common"
Package existence check passed for "glibc-devel(x86_64)"
Package existence check passed for "glibc-headers"
Package existence check passed for "gcc-c++(x86_64)"
Package existence check passed for "libaio-devel(x86_64)"
Package existence check passed for "libgcc(x86_64)"
Package existence check passed for "libstdc++(x86_64)"
Package existence check passed for "libstdc++-devel(x86_64)"
Package existence check passed for "sysstat"
WARNING:
PRVF-7584 : Multiple versions of package "pdksh" found on node host212: pdksh(x86_64)-5.2.14-37.el5,pdksh(i386)-5.2.14-37.el5_8.1
WARNING:
PRVF-7584 : Multiple versions of package "pdksh" found on node host210: pdksh(x86_64)-5.2.14-37.el5,pdksh(i386)-5.2.14-37.el5_8.1
Package existence check passed for "pdksh"
Package existence check passed for "expat(x86_64)"
Check for multiple users with UID value 0 passed
Current group ID check passed
Starting check for consistency of primary group of root user
Check for consistency of root user's primary group passed
Checking OCR integrity...
OCR integrity check passed
Checking Oracle Cluster Voting Disk configuration...
Oracle Cluster Voting Disk configuration check passed
Time zone consistency check passed
Starting Clock synchronization checks using Network Time Protocol(NTP)...
NTP Configuration file check started...
NTP Configuration file check passed
No NTP Daemons or Services were found to be running
PRVF-5507 : NTP daemon or service is not running on any node but NTP configuration file exists on the following node(s):
host212,host210
Clock synchronization check using Network Time Protocol(NTP) failed
User "grid" is not part of "root" group. Check passed
Checking consistency of file "/etc/resolv.conf" across nodes
File "/etc/resolv.conf" does not have both domain and search entries defined
domain entry in file "/etc/resolv.conf" is consistent across nodes
search entry in file "/etc/resolv.conf" is consistent across nodes
The DNS response time for an unreachable node is within acceptable limit on all nodes
File "/etc/resolv.conf" is consistent across nodes
Checking integrity of name service switch configuration file "/etc/nsswitch.conf" ...
Check for integrity of name service switch configuration file "/etc/nsswitch.conf" passed
Checking VIP configuration.
Checking VIP Subnet configuration.
Check for VIP Subnet configuration passed.
Checking VIP reachability
Check for VIP reachability passed.
Pre-check for node addition was unsuccessful on all the nodes.
--- 输出结果unsuccessful表示预检查部分需求未满足,需进行处理,根据提示对未满足的条件进行处理
-- 待上述条件都满足后,再次执行
[grid@host210 bin]$ ./addNode.sh "CLUSTER_NEW_NODES={host212}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={host212-vip}" -silent
-- 上述命令输出结果如下所示
Performing pre-checks for node addition
Checking node reachability...
Node reachability check passed from node "host210"
Checking user equivalence...
User equivalence check passed for user "grid"
Checking CRS integrity...
Clusterware version consistency passed
CRS integrity check passed
Checking shared resources...
Checking CRS home location...
"/u01/app/11.2.0/grid" is shared
Shared resources check for node addition passed
Checking node connectivity...
Checking hosts config file...
Verification of the hosts config file successful
Check: Node connectivity for interface "em1"
Node connectivity passed for interface "em1"
TCP connectivity check passed for subnet "192.168.17.0"
Check: Node connectivity for interface "em2"
Node connectivity passed for interface "em2"
TCP connectivity check passed for subnet "10.90.1.32"
Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "192.168.17.0".
Subnet mask consistency check passed for subnet "10.90.1.32".
Subnet mask consistency check passed.
Node connectivity check passed
Checking multicast communication...
Checking subnet "192.168.17.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "192.168.17.0" for multicast communication with multicast group "230.0.1.0" passed.
Checking subnet "10.90.1.32" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "10.90.1.32" for multicast communication with multicast group "230.0.1.0" passed.
Check of multicast communication passed.
Total memory check passed
Available memory check passed
Swap space check passed
Free disk space check passed for "host212:/u01/app/11.2.0/grid,host212:/tmp"
Free disk space check passed for "host210:/u01/app/11.2.0/grid,host210:/tmp"
Check for multiple users with UID value 900 passed
User existence check passed for "grid"
Run level check passed
Hard limits check passed for "maximum open file descriptors"
Soft limits check passed for "maximum open file descriptors"
Hard limits check passed for "maximum user processes"
Soft limits check passed for "maximum user processes"
System architecture check passed
Kernel version check passed
Kernel parameter check passed for "semmsl"
Kernel parameter check passed for "semmns"
Kernel parameter check passed for "semopm"
Kernel parameter check passed for "semmni"
Kernel parameter check passed for "shmmax"
Kernel parameter check passed for "shmmni"
Kernel parameter check passed for "shmall"
Kernel parameter check passed for "file-max"
Kernel parameter check passed for "ip_local_port_range"
Kernel parameter check passed for "rmem_default"
Kernel parameter check passed for "rmem_max"
Kernel parameter check passed for "wmem_default"
Kernel parameter check passed for "wmem_max"
Kernel parameter check passed for "aio-max-nr"
Package existence check passed for "make"
Package existence check passed for "binutils"
Package existence check passed for "gcc(x86_64)"
Package existence check passed for "libaio(x86_64)"
Package existence check passed for "glibc(x86_64)"
Package existence check passed for "compat-libstdc++-33(x86_64)"
Package existence check passed for "elfutils-libelf(x86_64)"
Package existence check passed for "elfutils-libelf-devel"
Package existence check passed for "glibc-common"
Package existence check passed for "glibc-devel(x86_64)"
Package existence check passed for "glibc-headers"
Package existence check passed for "gcc-c++(x86_64)"
Package existence check passed for "libaio-devel(x86_64)"
Package existence check passed for "libgcc(x86_64)"
Package existence check passed for "libstdc++(x86_64)"
Package existence check passed for "libstdc++-devel(x86_64)"
Package existence check passed for "sysstat"
Package existence check passed for "pdksh"
Package existence check passed for "expat(x86_64)"
Check for multiple users with UID value 0 passed
Current group ID check passed
Starting check for consistency of primary group of root user
Check for consistency of root user's primary group passed
Checking OCR integrity...
OCR integrity check passed
Checking Oracle Cluster Voting Disk configuration...
Oracle Cluster Voting Disk configuration check passed
Time zone consistency check passed
Starting Clock synchronization checks using Network Time Protocol(NTP)...
NTP Configuration file check started...
NTP Configuration file check passed
Checking daemon liveness...
Liveness check passed for "ntpd"
Check for NTP daemon or service alive passed on all nodes
NTP daemon slewing option check passed
NTP daemon's boot time configuration check for slewing option passed
NTP common Time Server Check started...
PRVF-5408 : NTP Time Server "194.58.202.20" is common only to the following nodes "host212"
PRVF-5408 : NTP Time Server ".INIT." is common only to the following nodes "host212"
PRVF-5416 : Query of NTP daemon failed on all nodes
Clock synchronization check using Network Time Protocol(NTP) passed
User "grid" is not part of "root" group. Check passed
Checking consistency of file "/etc/resolv.conf" across nodes
File "/etc/resolv.conf" does not have both domain and search entries defined
domain entry in file "/etc/resolv.conf" is consistent across nodes
search entry in file "/etc/resolv.conf" is consistent across nodes
The DNS response time for an unreachable node is within acceptable limit on all nodes
File "/etc/resolv.conf" is consistent across nodes
Checking integrity of name service switch configuration file "/etc/nsswitch.conf" ...
Check for integrity of name service switch configuration file "/etc/nsswitch.conf" passed
Checking VIP configuration.
Checking VIP Subnet configuration.
Check for VIP Subnet configuration passed.
Checking VIP reachability
Check for VIP reachability passed.
Pre-check for node addition was successful.
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 65535 MB Passed
Oracle Universal Installer, Version 11.2.0.4.0 Production
Copyright (C) 1999, 2013, Oracle. All rights reserved.
Performing tests to see whether nodes host211,host212 are available
............................................................... 100% Done.
.
-----------------------------------------------------------------------------
Cluster Node Addition Summary
Global Settings
Source: /u01/app/11.2.0/grid
New Nodes
Space Requirements
New Nodes
host212
/: Required 4.60GB : Available 192.83GB
Installed Products
Product Names
Oracle Grid Infrastructure 11g 11.2.0.4.0
Java Development Kit 1.5.0.51.10
Installer SDK Component 11.2.0.4.0
Oracle One-Off Patch Installer 11.2.0.3.4
Oracle Universal Installer 11.2.0.4.0
Oracle RAC Required Support Files-HAS 11.2.0.4.0
Oracle USM Deconfiguration 11.2.0.4.0
Oracle Configuration Manager Deconfiguration 10.3.1.0.0
Enterprise Manager Common Core Files 10.2.0.4.5
Oracle DBCA Deconfiguration 11.2.0.4.0
Oracle RAC Deconfiguration 11.2.0.4.0
Oracle Quality of Service Management (Server) 11.2.0.4.0
Installation Plugin Files 11.2.0.4.0
Universal Storage Manager Files 11.2.0.4.0
Oracle Text Required Support Files 11.2.0.4.0
Automatic Storage Management Assistant 11.2.0.4.0
Oracle Database 11g Multimedia Files 11.2.0.4.0
Oracle Multimedia Java Advanced Imaging 11.2.0.4.0
Oracle Globalization Support 11.2.0.4.0
Oracle Multimedia Locator RDBMS Files 11.2.0.4.0
Oracle Core Required Support Files 11.2.0.4.0
Bali Share 1.1.18.0.0
Oracle Database Deconfiguration 11.2.0.4.0
Oracle Quality of Service Management (Client) 11.2.0.4.0
Expat libraries 2.0.1.0.1
Oracle Containers for Java 11.2.0.4.0
Perl Modules 5.10.0.0.1
Secure Socket Layer 11.2.0.4.0
Oracle JDBC/OCI Instant Client 11.2.0.4.0
Oracle Multimedia Client Option 11.2.0.4.0
LDAP Required Support Files 11.2.0.4.0
Character Set Migration Utility 11.2.0.4.0
Perl Interpreter 5.10.0.0.2
PL/SQL Embedded Gateway 11.2.0.4.0
OLAP SQL Scripts 11.2.0.4.0
Database SQL Scripts 11.2.0.4.0
Oracle Extended Windowing Toolkit 3.4.47.0.0
SSL Required Support Files for InstantClient 11.2.0.4.0
SQL*Plus Files for Instant Client 11.2.0.4.0
Oracle Net Required Support Files 11.2.0.4.0
Oracle Database User Interface 2.2.13.0.0
RDBMS Required Support Files for Instant Client 11.2.0.4.0
RDBMS Required Support Files Runtime 11.2.0.4.0
XML Parser for Java 11.2.0.4.0
Oracle Security Developer Tools 11.2.0.4.0
Oracle Wallet Manager 11.2.0.4.0
Enterprise Manager plugin Common Files 11.2.0.4.0
Platform Required Support Files 11.2.0.4.0
Oracle JFC Extended Windowing Toolkit 4.2.36.0.0
RDBMS Required Support Files 11.2.0.4.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.5
Deinstallation Tool 11.2.0.4.0
Oracle Java Client 11.2.0.4.0
Cluster Verification Utility Files 11.2.0.4.0
Oracle Notification Service (eONS) 11.2.0.4.0
Oracle LDAP administration 11.2.0.4.0
Cluster Verification Utility Common Files 11.2.0.4.0
Oracle Clusterware RDBMS Files 11.2.0.4.0
Oracle Locale Builder 11.2.0.4.0
Oracle Globalization Support 11.2.0.4.0
Buildtools Common Files 11.2.0.4.0
HAS Common Files 11.2.0.4.0
SQL*Plus Required Support Files 11.2.0.4.0
XDK Required Support Files 11.2.0.4.0
Agent Required Support Files 10.2.0.4.5
Parser Generator Required Support Files 11.2.0.4.0
Precompiler Required Support Files 11.2.0.4.0
Installation Common Files 11.2.0.4.0
Required Support Files 11.2.0.4.0
Oracle JDBC/THIN Interfaces 11.2.0.4.0
Oracle Multimedia Locator 11.2.0.4.0
Oracle Multimedia 11.2.0.4.0
Assistant Common Files 11.2.0.4.0
Oracle Net 11.2.0.4.0
PL/SQL 11.2.0.4.0
HAS Files for DB 11.2.0.4.0
Oracle Recovery Manager 11.2.0.4.0
Oracle Database Utilities 11.2.0.4.0
Oracle Notification Service 11.2.0.3.0
SQL*Plus 11.2.0.4.0
Oracle Netca Client 11.2.0.4.0
Oracle Advanced Security 11.2.0.4.0
Oracle JVM 11.2.0.4.0
Oracle Internet Directory Client 11.2.0.4.0
Oracle Net Listener 11.2.0.4.0
Cluster Ready Services Files 11.2.0.4.0
Oracle Database 11g 11.2.0.4.0
-----------------------------------------------------------------------------
Instantiating scripts for add node (Thursday, September 21, 2023 1:28:50 PM CST)
. 1% Done.
Instantiation of add node scripts complete
Copying to remote nodes (Thursday, September 21, 2023 1:28:51 PM CST)
............................................................................................... 96% Done.
Home copied to new nodes
Saving inventory on nodes (Thursday, September 21, 2023 1:30:39 PM CST)
. 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/11.2.0/grid/root.sh #On nodes host212
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/11.2.0/grid was successful.
Please check '/tmp/silentInstall.log' for more details.
--- 登录host212新增节点,使用root用户执行/u01/app/11.2.0/grid/root.sh脚本
[root@host212 ~]# /u01/app/11.2.0/grid/root.sh
-- 输出结果如下所示
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2.0/grid
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.
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: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
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 host210, 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
-- 以下操作在现有集群某节点操作,oracle用户执行
[root@host210 ~]# su - oracle
[oracle@host210 ~]$ cd $ORACLE_HOME/oui/bin
[oracle@host210 bin]$ ./addNode.sh "CLUSTER_NEW_NODES={host212}"
-- 上述命令执行输出结果如下所示
Performing pre-checks for node addition
Checking node reachability...
Node reachability check passed from node "host210"
Checking user equivalence...
User equivalence check passed for user "oracle"
WARNING:
Node "host212" 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 65535 MB Passed
Oracle Universal Installer, Version 11.2.0.4.0 Production
Copyright (C) 1999, 2013, Oracle. All rights reserved.
Performing tests to see whether nodes host211,host212 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
host212
/: Required 4.34GB : Available 188.85GB
Installed Products
Product Names
Oracle Database 11g 11.2.0.4.0
Java Development Kit 1.5.0.51.10
Installer SDK Component 11.2.0.4.0
Oracle One-Off Patch Installer 11.2.0.3.4
Oracle Universal Installer 11.2.0.4.0
Oracle USM Deconfiguration 11.2.0.4.0
Oracle Configuration Manager Deconfiguration 10.3.1.0.0
Oracle DBCA Deconfiguration 11.2.0.4.0
Oracle RAC Deconfiguration 11.2.0.4.0
Oracle Database Deconfiguration 11.2.0.4.0
Oracle Configuration Manager Client 10.3.2.1.0
Oracle Configuration Manager 10.3.8.1.0
Oracle ODBC Driverfor Instant Client 11.2.0.4.0
LDAP Required Support Files 11.2.0.4.0
SSL Required Support Files for InstantClient 11.2.0.4.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.4.0
Oracle Database Vault J2EE Application 11.2.0.4.0
Oracle Label Security 11.2.0.4.0
Oracle Data Mining RDBMS Files 11.2.0.4.0
Oracle OLAP RDBMS Files 11.2.0.4.0
Oracle OLAP API 11.2.0.4.0
Platform Required Support Files 11.2.0.4.0
Oracle Database Vault option 11.2.0.4.0
Oracle RAC Required Support Files-HAS 11.2.0.4.0
SQL*Plus Required Support Files 11.2.0.4.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.4.0
Oracle SQL Developer 11.2.0.4.0
Oracle Application Express 11.2.0.4.0
XDK Required Support Files 11.2.0.4.0
RDBMS Required Support Files for Instant Client 11.2.0.4.0
SQLJ Runtime 11.2.0.4.0
Database Workspace Manager 11.2.0.4.0
RDBMS Required Support Files Runtime 11.2.0.4.0
Oracle Globalization Support 11.2.0.4.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.4.0
Enterprise Manager Repository Core Files 10.2.0.4.5
Enterprise Manager Database Plugin -- Agent Support 11.2.0.4.0
Enterprise Manager Grid Control Core Files 10.2.0.4.5
Enterprise Manager Common Core Files 10.2.0.4.5
Enterprise Manager Agent Core Files 10.2.0.4.5
RDBMS Required Support Files 11.2.0.4.0
regexp 2.1.9.0.0
Agent Required Support Files 10.2.0.4.5
Oracle 11g Warehouse Builder Required Files 11.2.0.4.0
Oracle Notification Service (eONS) 11.2.0.4.0
Oracle Text Required Support Files 11.2.0.4.0
Parser Generator Required Support Files 11.2.0.4.0
Oracle Database 11g Multimedia Files 11.2.0.4.0
Oracle Multimedia Java Advanced Imaging 11.2.0.4.0
Oracle Multimedia Annotator 11.2.0.4.0
Oracle JDBC/OCI Instant Client 11.2.0.4.0
Oracle Multimedia Locator RDBMS Files 11.2.0.4.0
Precompiler Required Support Files 11.2.0.4.0
Oracle Core Required Support Files 11.2.0.4.0
Sample Schema Data 11.2.0.4.0
Oracle Starter Database 11.2.0.4.0
Oracle Message Gateway Common Files 11.2.0.4.0
Oracle XML Query 11.2.0.4.0
XML Parser for Oracle JVM 11.2.0.4.0
Oracle Help For Java 4.2.9.0.0
Installation Plugin Files 11.2.0.4.0
Enterprise Manager Common Files 10.2.0.4.5
Expat libraries 2.0.1.0.1
Deinstallation Tool 11.2.0.4.0
Oracle Quality of Service Management (Client) 11.2.0.4.0
Perl Modules 5.10.0.0.1
JAccelerator (COMPANION) 11.2.0.4.0
Oracle Containers for Java 11.2.0.4.0
Perl Interpreter 5.10.0.0.2
Oracle Net Required Support Files 11.2.0.4.0
Secure Socket Layer 11.2.0.4.0
Oracle Universal Connection Pool 11.2.0.4.0
Oracle JDBC/THIN Interfaces 11.2.0.4.0
Oracle Multimedia Client Option 11.2.0.4.0
Oracle Java Client 11.2.0.4.0
Character Set Migration Utility 11.2.0.4.0
Oracle Code Editor 1.2.1.0.0I
PL/SQL Embedded Gateway 11.2.0.4.0
OLAP SQL Scripts 11.2.0.4.0
Database SQL Scripts 11.2.0.4.0
Oracle Locale Builder 11.2.0.4.0
Oracle Globalization Support 11.2.0.4.0
SQL*Plus Files for Instant Client 11.2.0.4.0
Required Support Files 11.2.0.4.0
Oracle Database User Interface 2.2.13.0.0
Oracle ODBC Driver 11.2.0.4.0
Oracle Notification Service 11.2.0.3.0
XML Parser for Java 11.2.0.4.0
Oracle Security Developer Tools 11.2.0.4.0
Oracle Wallet Manager 11.2.0.4.0
Cluster Verification Utility Common Files 11.2.0.4.0
Oracle Clusterware RDBMS Files 11.2.0.4.0
Oracle UIX 2.2.24.6.0
Enterprise Manager plugin Common Files 11.2.0.4.0
HAS Common Files 11.2.0.4.0
Precompiler Common Files 11.2.0.4.0
Installation Common Files 11.2.0.4.0
Oracle Help for the Web 2.0.14.0.0
Oracle LDAP administration 11.2.0.4.0
Buildtools Common Files 11.2.0.4.0
Assistant Common Files 11.2.0.4.0
Oracle Recovery Manager 11.2.0.4.0
PL/SQL 11.2.0.4.0
Generic Connectivity Common Files 11.2.0.4.0
Oracle Database Gateway for ODBC 11.2.0.4.0
Oracle Programmer 11.2.0.4.0
Oracle Database Utilities 11.2.0.4.0
Enterprise Manager Agent 10.2.0.4.5
SQL*Plus 11.2.0.4.0
Oracle Netca Client 11.2.0.4.0
Oracle Multimedia Locator 11.2.0.4.0
Oracle Call Interface (OCI) 11.2.0.4.0
Oracle Multimedia 11.2.0.4.0
Oracle Net 11.2.0.4.0
Oracle XML Development Kit 11.2.0.4.0
Oracle Internet Directory Client 11.2.0.4.0
Database Configuration and Upgrade Assistants 11.2.0.4.0
Oracle JVM 11.2.0.4.0
Oracle Advanced Security 11.2.0.4.0
Oracle Net Listener 11.2.0.4.0
Oracle Enterprise Manager Console DB 11.2.0.4.0
HAS Files for DB 11.2.0.4.0
Oracle Text 11.2.0.4.0
Oracle Net Services 11.2.0.4.0
Oracle Database 11g 11.2.0.4.0
Oracle OLAP 11.2.0.4.0
Oracle Spatial 11.2.0.4.0
Oracle Partitioning 11.2.0.4.0
Enterprise Edition Options 11.2.0.4.0
-----------------------------------------------------------------------------
Instantiating scripts for add node (Thursday, September 21, 2023 1:43:09 PM CST)
. 1% Done.
Instantiation of add node scripts complete
Copying to remote nodes (Thursday, September 21, 2023 1:43:10 PM CST)
............................................................................................... 96% Done.
Home copied to new nodes
Saving inventory on nodes (Thursday, September 21, 2023 1:46:13 PM CST)
. 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 host212
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.
--- 使用root账号登录host212新增主机,执行上述/u01/app/oracle/product/11.2.0/db_1/root.sh脚本
[root@host212 ~]# /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.
可以使用静默方式添加,也可以通过vnc登录服务器,使用dbca工具图形添加
-- 以下操作在现有集群某节点操作,oracle用户执行
[oracle@host210 ~]$ dbca -silent -addInstance -nodeList host212 -gdbName oradb -instanceName oradb3 -sysDBAUserName sys -sysDBAPassword oracle
Adding instance
1% complete
2% complete
6% complete
13% complete
20% complete
26% complete
33% complete
40% complete
46% complete
53% complete
66% complete
Completing instance management.
76% complete
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/oradb/oradb.log" for further details.
[grid@host210 ~]$ crsctl status res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
ONLINE ONLINE host210
ONLINE ONLINE host211
ONLINE ONLINE host212
ora.DATA.dg
ONLINE ONLINE host210
ONLINE ONLINE host211
ONLINE ONLINE host212
ora.LISTENER.lsnr
ONLINE ONLINE host210
ONLINE ONLINE host211
ONLINE ONLINE host212
ora.asm
ONLINE ONLINE host210 Started
ONLINE ONLINE host211 Started
ONLINE ONLINE host212 Started
ora.gsd
OFFLINE OFFLINE host210
OFFLINE OFFLINE host211
OFFLINE OFFLINE host212
ora.net1.network
ONLINE ONLINE host210
ONLINE ONLINE host211
ONLINE ONLINE host212
ora.ons
ONLINE ONLINE host210
ONLINE ONLINE host211
ONLINE ONLINE host212
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE host210
ora.cvu
1 ONLINE ONLINE host210
ora.host210.vip
1 ONLINE ONLINE host210
ora.host211.vip
1 ONLINE ONLINE host211
ora.host212.vip
1 ONLINE ONLINE host212
ora.oc4j
1 ONLINE ONLINE host210
ora.oradb.db
1 ONLINE ONLINE host210 Open
2 ONLINE ONLINE host211 Open
3 ONLINE ONLINE host212 Open
ora.scan1.vip
1 ONLINE ONLINE host210
[grid@host210 ~]$ olsnodes -s -t
host210 Active Unpinned
host211 Active Unpinned
host212 Active Unpinned
[oracle@host210 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Thu Sep 21 14:15:52 2023
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> set long 99999 head off pages 0 lines 1000
SQL> select inst_id,instance_number,status from gv$instance;
1 1 OPEN
3 3 OPEN
2 2 OPEN
原文作者:尚雷的驿站;如有侵权,请联系管理员删除。