签到成功

知道了

CNDBA社区CNDBA社区

RAC新增节点执行root.sh脚本报错解决

2018-12-12 17:13 4391 0 原创 数据库异常
作者: Marvinn

公司测试环境CENTOS7,因为新建虚拟机没注意网卡,导致新添加的网卡名与原RAC环境不一样,导致执行root.sh脚本报错(新增节点与原节点网卡名不同,但是IP网段是一样,导致执行root.sh脚本报错):http://www.cndba.cn/Marvinn/article/3195http://www.cndba.cn/Marvinn/article/3195

Failed to start Cluster Synchorinisation Service in clustered mode at /g01/app/grid/12.2.0/crs/install/crsconfig_lib.pm line 1285.
/g01/app/grid/12.2.0/perl/bin/perl -I/g01/app/grid/12.2.0/perl/lib -I/g01/app/grid/12.2.0/crs/install /g01/app/grid/12.2.0/crs/install/rootcrs.pl execution failedhttp://www.cndba.cn/Marvinn/article/3195

总结:新增节点最好保持与原RAC环境配置一样,否则容易导致一些节点添加错误。

[root@rac2 ~]# /g01/app/grid/12.2.0/root.sh 
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /g01/app/grid/12.2.0

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.
Using configuration parameter file: /g01/app/grid/12.2.0/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer


Start of resource "ora.cssd" failed
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac2'
CRS-2672: Attempting to start 'ora.gipcd' on 'rac2'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac2' succeeded
CRS-2676: Start of 'ora.gipcd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac2'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac2'
CRS-2676: Start of 'ora.diskmon' on 'rac2' succeeded
CRS-2674: Start of 'ora.cssd' on 'rac2' failed
CRS-2679: Attempting to clean 'ora.cssd' on 'rac2'
CRS-2681: Clean of 'ora.cssd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac2'
CRS-2677: Stop of 'ora.gipcd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac2'
CRS-2677: Stop of 'ora.cssdmonitor' on 'rac2' succeeded
CRS-5804: Communication error with agent process
CRS-4000: Command Start failed, or completed with errors.
Failed to start Oracle Grid Infrastructure stack
Failed to start Cluster Synchorinisation Service in clustered mode at /g01/app/grid/12.2.0/crs/install/crsconfig_lib.pm line 1285.
/g01/app/grid/12.2.0/perl/bin/perl -I/g01/app/grid/12.2.0/perl/lib -I/g01/app/grid/12.2.0/crs/install /g01/app/grid/12.2.0/crs/install/rootcrs.pl execution failed
[root@rac2 ~]# 

$ORACLE_HOME/cfgtoollogs/crsconfig/rootcrs_rac2.log

http://www.cndba.cn/Marvinn/article/3195

rootcrs_rac.log

CRS-4000: Command Start failed, or completed with errors.
2018-12-11 09:15:50: Failed to start Oracle Grid Infrastructure stack
2018-12-11 09:15:50: ###### Begin DIE Stack Trace ######
2018-12-11 09:15:50:     Package         File                 Line Calling   
2018-12-11 09:15:50:     --------------- -------------------- ---- ----------
2018-12-11 09:15:50:  1: main            rootcrs.pl            393 crsconfig_lib::dietrap
2018-12-11 09:15:50:  2: crsconfig_lib   crsconfig_lib.pm     1285 main::__ANON__
2018-12-11 09:15:50:  3: crsconfig_lib   crsconfig_lib.pm     1243 crsconfig_lib::start_cluster
2018-12-11 09:15:50:  4: main            rootcrs.pl            864 crsconfig_lib::perform_start_cluster
2018-12-11 09:15:50: ####### End DIE Stack Trace #######

2018-12-11 09:15:50: 'ROOTCRS_STACK' checkpoint has failed
2018-12-11 09:15:50: Running as user grid: /g01/app/grid/12.2.0/bin/cluutil -ckpt -oraclebase /g01/grid -writeckpt -name ROOTCRS_STACK -state FAIL
2018-12-11 09:15:50: s_run_as_user2: Running /bin/su grid -c ' /g01/app/grid/12.2.0/bin/cluutil -ckpt -oraclebase /g01/grid -writeckpt -name ROOTCRS_STACK -state FAIL '
2018-12-11 09:15:51: Removing file /tmp/filetiFTMc
2018-12-11 09:15:51: Successfully removed file: /tmp/filetiFTMc
2018-12-11 09:15:51: /bin/su successfully executed

2018-12-11 09:15:51: Succeeded in writing the checkpoint:'ROOTCRS_STACK' with status:FAIL
2018-12-11 09:15:51: CkptFile: /g01/grid/Clusterware/ckptGridHA_rac2.xml
2018-12-11 09:15:51: Sync the checkpoint file '/g01/grid/Clusterware/ckptGridHA_rac2.xml'
2018-12-11 09:15:51: Sync '/g01/grid/Clusterware/ckptGridHA_rac2.xml' to the physical disk

ocssd.log

http://www.cndba.cn/Marvinn/article/3195

 如下报错循环
2018-12-11 09:06:28.406: [    CSSD][3571898112]clssnmRcfgMgrThread: Local Join
2018-12-11 09:06:28.406: [    CSSD][3571898112]clssnmLocalJoinEvent: begin on node(2), waittime 193000
2018-12-11 09:06:28.406: [    CSSD][3571898112]clssnmLocalJoinEvent: set curtime (58495554) for my node
2018-12-11 09:06:28.406: [    CSSD][3571898112]clssnmLocalJoinEvent: scanning 32 nodes
2018-12-11 09:06:28.406: [    CSSD][3571898112]clssnmLocalJoinEvent: Node rac1, number 1, is in an existing cluster with disk state 3
2018-12-11 09:06:28.406: [    CSSD][3571898112]clssnmLocalJoinEvent: takeover aborted due to cluster member node found on disk
2018-12-11 09:06:28.903: [    CSSD][3576628992]clssgmWaitOnEventValue: after CmInfo State  val 3, eval 1 waited 0
2018-12-11 09:06:29.046: [    CSSD][3581359872]clssnmvDHBValidateNcopy: node 1, rac1, has a disk HB, but no network HB, DHB has rcfg 439944382, wrtcnt, 32331887, LATS 58496194, lastSeqNo 32331886, uniqueness 1544449559, timestamp 1544490229/3068785602
2018-12-11 09:06:29.903: [    CSSD][3576628992]clssgmWaitOnEventValue: after CmInfo State  val 3, eval 1 waited 0
2018-12-11 09:06:30.048: [    CSSD][3581359872]clssnmvDHBValidateNcopy: node 1, rac1, has a disk HB, but no network HB, DHB has rcfg 439944382, wrtcnt, 32331888, LATS 58497204, lastSeqNo 32331887, uniqueness 1544449559, timestamp 1544490230/3068786602
2018-12-11 09:06:30.406: [    CSSD][3573475072]clssnmSendingThread: sending join msg to all nodes
2018-12-11 09:06:30.406: [    CSSD][3573475072]clssnmSendingThread: sent 5 join msgs to all nodes
2018-12-11 09:06:30.833: [    CSSD][3592320768]clssgmpcBuildNodeList: nodename for node 0 is NULL
2018-12-11 09:06:30.903: [    CSSD][3576628992]clssgmWaitOnEventValue: after CmInfo State  val 3, eval 1 waited 0
2018-12-11 09:06:31.049: [    CSSD][3581359872]clssnmvDHBValidateNcopy: node 1, rac1, has a disk HB, but no network HB, DHB has rcfg 439944382, wrtcnt, 32331889, LATS 58498204, lastSeqNo 32331888, uniqueness 1544449559, timestamp 1544490231/3068787602
2018-12-11 09:06:31.903: [    CSSD][3576628992]clssgmWaitOnEventValue: after CmInfo State  val 3, eval 1 waited 0
2018-12-11 09:06:31.906: [GIPCHDEM][3586090752] gipchaDaemonInfRequest: sent local interfaceRequest,  hctx 0x1496b60 [0000000000000010] { gipchaContext : host 'rac2', name 'CSS_rac-cluster', luid '74a86800-00000000', numNode 1, numInf 0, usrFlags 0x0, flags 0x63 } to gipcd
2018-12-11 09:06:32.051: [    CSSD][3581359872]clssnmvDHBValidateNcopy: node 1, rac1, has a disk HB, but no network HB, DHB has rcfg 439944382, wrtcnt, 32331890, LATS 58499204, lastSeqNo 32331889, uniqueness 1544449559, timestamp 1544490232/3068788612
2018-12-11 09:06:32.903: [    CSSD][3576628992]clssgmWaitOnEventValue: after CmInfo State  val 3, eval 1 waited 0
2018-12-11 09:06:32.908: [GIPCHALO][3587667712] gipchaLowerProcessNode: no valid interfaces found to node for 58500064 ms, node 0x7f72b8028470 { host 'rac1', haName 'CSS_rac-cluster', srcLuid 74a86800-e2edff75, dstLuid 00000000-00000000 numInf 0, contigSeq 0, lastAck 0, lastValidAck 0, sendSeq [89 : 89], createTime 58411054, sentRegister 1, localMonitor 1, flags 0x4 }
2018-12-11 09:06:33.052: [    CSSD][3581359872]clssnmvDHBValidateNcopy: node 1, rac1, has a disk HB, but no network HB, DHB has rcfg 439944382, wrtcnt, 32331891, LATS 58500204, lastSeqNo 32331890, uniqueness 1544449559, timestamp 1544490233/3068789612
2018-12-11 09:06:33.903: [    CSSD][3576628992]clssgmWaitOnEventValue: after CmInfo State  val 3, eval 1 waited 0
2018-12-11 09:06:34.053: [    CSSD][3581359872]clssnmvDHBValidateNcopy: node 1, rac1, has a disk HB, but no network HB, DHB has rcfg 439944382, wrtcnt, 32331892, LATS 58501204, lastSeqNo 32331891, uniqueness 1544449559, timestamp 1544490234/3068790612
2018-12-11 09:06:34.904: [    CSSD][3576628992]clssgmWaitOnEventValue: after CmInfo State  val 3, eval 1 waited 0
2018-12-11 09:06:35.057: [    CSSD][3581359872]clssnmvDHBValidateNcopy: node 1, rac1, has a disk HB, but no network HB, DHB has rcfg 439944382, wrtcnt, 32331893, LATS 58502204, lastSeqNo 32331892, uniqueness 1544449559, timestamp 1544490235/3068791612

Centos7更改网卡名

http://www.cndba.cn/Marvinn/article/3195

CentOS7使用了“一致性网络命名方法”,这里举例,将网卡名截断为前5个字符,如eno16777736改为eno16

参考博客网址:https://www.cnblogs.com/nidey/p/6275485.html

1、更改网卡配置文件名

[root@localhost network-scripts]# ll
total 252
-rw-r--r--. 1 root root   290 Jan 11 22:41 ifcfg-eno10
-rw-r--r--. 1 root root   288 Jan 11 22:41 ifcfg-eno16
-rw-r--r--. 1 root root   288 Jan 11 22:41 ifcfg-eno33
-rw-r--r--. 1 root root   288 Jan 11 22:41 ifcfg-eno50
-rw-r--r--. 1 root root   288 Jan 11 22:41 ifcfg-eno67
-rw-r--r--. 1 root root   288 Jan 11 22:41 ifcfg-eno83
-rw-r--r--. 1 root root   254 Sep 16  2015 ifcfg-lo
lrwxrwxrwx. 1 root root    24 Jan 11 22:31 ifdown -> ../../../usr/sbin/ifdown
-rwxr-xr-x. 1 root root   627 Sep 16  2015 ifdown-bnep
[root@localhost network-scripts]# 


并更改配置文件内容,举例

[root@localhost network-scripts]# cat ifcfg-eno16 
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno16
UUID=803d2d05-493b-489b-8201-1d3fc67878aa
DEVICE=eno16
ONBOOT=yes
[root@localhost network-scripts]# 


2、关闭“一致性网络设备命名法”
更改前

[root@localhost ~]# cat /etc/sysconfig/grub 
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
[root@localhost ~]# 


添加net.ifnames=0 biosdevname=0
更改后

[root@localhost ~]# cat /etc/sysconfig/grub 
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap net.ifnames=0 biosdevname=0 rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
[root@localhost ~]# 


更新GRUB、内核配置

[root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-f034e6e19df748b7a27fad77b06e3179
Found initrd image: /boot/initramfs-0-rescue-f034e6e19df748b7a27fad77b06e3179.img
done
[root@localhost ~]# 


3、添加设备规则配置文件
修改/etc/udev/rules.d/70-persistent-net.rules,没有该文件则新建文件
内容如下

[root@localhost ~]# cat /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a3:b1:5c", ATTR{type}=="1", KERNEL=="eth*", NAME="eno16"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a3:b1:8e", ATTR{type}=="1", KERNEL=="eth*", NAME="eno10"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a3:b1:66", ATTR{type}=="1", KERNEL=="eth*", NAME="eno33"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a3:b1:70", ATTR{type}=="1", KERNEL=="eth*", NAME="eno50"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a3:b1:7a", ATTR{type}=="1", KERNEL=="eth*", NAME="eno67"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a3:b1:84", ATTR{type}=="1", KERNEL=="eth*", NAME="eno83"
[root@localhost ~]# 

注意MAC地址与NAME相匹配(可以用ip addr查看)

4、重启
[root@localhost ~]# reboot

使用

[root@localhost ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno16: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:a3:b1:5c brd ff:ff:ff:ff:ff:ff
    inet 192.168.140.128/24 brd 192.168.140.255 scope global dynamic eno16
       valid_lft 1768sec preferred_lft 1768sec
    inet6 fe80::20c:29ff:fea3:b15c/64 scope link 
       valid_lft forever preferred_lft forever
3: eno33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:a3:b1:66 brd ff:ff:ff:ff:ff:ff
    inet 192.168.140.129/24 brd 192.168.140.255 scope global dynamic eno33
       valid_lft 1768sec preferred_lft 1768sec
    inet6 fe80::20c:29ff:fea3:b166/64 scope link 
       valid_lft forever preferred_lft forever
4: eno50: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:a3:b1:70 brd ff:ff:ff:ff:ff:ff
    inet 192.168.140.130/24 brd 192.168.140.255 scope global dynamic eno50
       valid_lft 1768sec preferred_lft 1768sec
    inet6 fe80::20c:29ff:fea3:b170/64 scope link 
       valid_lft forever preferred_lft forever
5: eno67: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:a3:b1:7a brd ff:ff:ff:ff:ff:ff
    inet 192.168.140.131/24 brd 192.168.140.255 scope global dynamic eno67
       valid_lft 1768sec preferred_lft 1768sec
    inet6 fe80::20c:29ff:fea3:b17a/64 scope link 
       valid_lft forever preferred_lft forever
6: eno83: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:a3:b1:84 brd ff:ff:ff:ff:ff:ff
    inet 192.168.140.132/24 brd 192.168.140.255 scope global dynamic eno83
       valid_lft 1768sec preferred_lft 1768sec
    inet6 fe80::20c:29ff:fea3:b184/64 scope link 
       valid_lft forever preferred_lft forever
7: eno10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:a3:b1:8e brd ff:ff:ff:ff:ff:ff
    inet 192.168.140.133/24 brd 192.168.140.255 scope global dynamic eno10
       valid_lft 1768sec preferred_lft 1768sec
    inet6 fe80::20c:29ff:fea3:b18e/64 scope link 
       valid_lft forever preferred_lft forever
[root@localhost ~]# 

看见网卡名称都已经更改了

再来设置个静态ip,以eno83为例

[root@localhost network-scripts]# cat ifcfg-eno83 
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno83
UUID=919f599a-c262-4868-be7e-0646b1e98dee
DEVICE=eno83
IPADDR=192.168.140.140
PREFIX=24
ONBOOT=yes
[root@localhost network-scripts]# 


重启网络

[root@localhost network-scripts]# systemctl restart network
[root@localhost network-scripts]# 
[root@localhost network-scripts]# 
[root@localhost network-scripts]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno16: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:a3:b1:5c brd ff:ff:ff:ff:ff:ff
    inet 192.168.140.128/24 brd 192.168.140.255 scope global dynamic eno16
       valid_lft 1802sec preferred_lft 1802sec
    inet6 fe80::20c:29ff:fea3:b15c/64 scope link 
       valid_lft forever preferred_lft forever
3: eno33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:a3:b1:66 brd ff:ff:ff:ff:ff:ff
    inet 192.168.140.129/24 brd 192.168.140.255 scope global dynamic eno33
       valid_lft 1802sec preferred_lft 1802sec
    inet6 fe80::20c:29ff:fea3:b166/64 scope link 
       valid_lft forever preferred_lft forever
4: eno50: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:a3:b1:70 brd ff:ff:ff:ff:ff:ff
    inet 192.168.140.130/24 brd 192.168.140.255 scope global dynamic eno50
       valid_lft 1803sec preferred_lft 1803sec
    inet6 fe80::20c:29ff:fea3:b170/64 scope link 
       valid_lft forever preferred_lft forever
5: eno67: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:a3:b1:7a brd ff:ff:ff:ff:ff:ff
    inet 192.168.140.131/24 brd 192.168.140.255 scope global dynamic eno67
       valid_lft 1803sec preferred_lft 1803sec
    inet6 fe80::20c:29ff:fea3:b17a/64 scope link 
       valid_lft forever preferred_lft forever
6: eno83: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:a3:b1:84 brd ff:ff:ff:ff:ff:ff
    inet 192.168.140.140/24 brd 192.168.140.255 scope global eno83
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fea3:b184/64 scope link 
       valid_lft forever preferred_lft forever
7: eno10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:a3:b1:8e brd ff:ff:ff:ff:ff:ff
    inet 192.168.140.133/24 brd 192.168.140.255 scope global dynamic eno10
       valid_lft 1802sec preferred_lft 1802sec
    inet6 fe80::20c:29ff:fea3:b18e/64 scope link 
       valid_lft forever preferred_lft forever
[root@localhost network-scripts]# 


改好了~

清理root.sh环境,重新执行root.sh脚本http://www.cndba.cn/Marvinn/article/3195

http://www.cndba.cn/Marvinn/article/3195
http://www.cndba.cn/Marvinn/article/3195

root用户:
# $ORACLE_HOME/crs/install/rootcrs.pl -deconfig -verbose -force      清理
# /g01/app/grid/11.2.0/root.sh                
输出如下:
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /g01/app/grid/12.2.0

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.
Using configuration parameter file: /g01/app/grid/12.2.0/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to oracle-ohasd.service
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac1, 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...
cvuqdisk-1.0.9-1.x86_64
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

另外记录下:若是记不住相关ASM视图名,有大概印象可通过v$fixed_table匹配查询http://www.cndba.cn/Marvinn/article/3195

sqlplus / as sysasm
select * from v$fixed_table where name like '%INTER%';  --查询网络相关视图
select * from v$fixed_table where name like '%ASM%';  --查询ASM相关视图

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
Marvinn

Marvinn

关注

路漫漫其修远兮、吾将上下而求索

  • 99
    原创
  • 0
    翻译
  • 2
    转载
  • 36
    评论
  • 访问:458419次
  • 积分:449
  • 等级:中级会员
  • 排名:第12名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ