【Oracle】 RAC 环境删除oracle 之二

简介: oracle 11GR2提供了一个自动删除工具deinstall 在$ORACLE_HOME 的deinstall 目录下,使用此工具可以实现卸载oracle 软件,Clusterware 软件和数据库。
oracle 11GR2提供了一个自动删除工具deinstall 在$ORACLE_HOME 的deinstall 目录下,使用此工具可以实现卸载oracle 软件,Clusterware 软件和数据库。
删除了数据库和软件以后,再删除Clusterware 软件。
删除之前集群软件正常运行。直接运行deinstall
grid@rac1:/opt/11202/11.2.0/grid/deinstall>./deinstall
Checking for required files and bootstrapping ...
Please wait ...
日志的位置 /opt/rac/oraInventory/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
安装检查配置开始
检查 Oracle 主目录位置是否存在 /opt/11202/11.2.0/grid
选择进行卸载的 Oracle 主目录类型为: CRS
选择进行卸载的 Oracle 基目录为: /opt/rac/grid
检查主产品清单位置是否存在 /opt/rac/oraInventory
检查 Oracle Grid Infrastructure 主目录是否存在 /opt/11202/11.2.0/grid
以下节点属于此集群: rac1,rac2
安装检查配置结束
跳过 Windows 和 .NET 产品配置检查
检查 Windows 和 .NET 产品配置结束
Traces log file: /opt/rac/oraInventory/logs//crsdc.log
网络配置检查配置开始
网络取消配置跟踪文件位置: /opt/rac/oraInventory/logs/netdc_check2011-09-24_12-20-01-PM.log
指定要取消配置的所有 RAC 监听程序 (不包括 SCAN 监听程序) [LISTENER]:
网络配置检查配置结束
Asm 检查配置开始
ASM 取消配置跟踪文件位置: /opt/rac/oraInventory/logs/asmcadc_check2011-09-24_12-26-36-PM.log
在此 Oracle 主目录 /opt/11202/11.2.0/grid 中检测到了自动存储管理 (ASM) 实例。
ASM 诊断目标: /opt/rac/grid
ASM 磁盘组: +DATA1,+DATA2
ASM 磁盘字符串:
将删除磁盘组
如果取消配置 ASM, 则将在清除时删除所有磁盘组及其内容。这将影响使用此 ASM 实例的所有数据库和 ACFS。
 如果要保留现有磁盘组, 或者检测到的任何信息有误, 则可以输入 'y' 进行修改。是否要修改上述信息 (y|n) [n]: 

######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure 主目录为: /opt/11202/11.2.0/grid
将执行 Oracle 主目录卸载的集群节点包括:rac1,rac2
选择进行卸载的 Oracle 主目录为: /opt/11202/11.2.0/grid
Oracle 主目录注册到的产品清单位置为: /opt/rac/oraInventory
跳过 Windows 和 .NET 产品配置检查
将取消配置以下 RAC 监听程序: LISTENER
将从此 Oracle 主目录中取消配置 ASM 实例
是否要继续 (是 - 是, 否 - 否)? [否]: 是
此会话的日志将写入: '/opt/rac/oraInventory/logs/deinstall_deconfig2011-09-24_12-19-55-PM.out'
此会话的任何错误消息都将写入: '/opt/rac/oraInventory/logs/deinstall_deconfig2011-09-24_12-19-55-PM.err'
######################## CLEAN OPERATION START ########################
ASM 取消配置跟踪文件位置: /opt/rac/oraInventory/logs/asmcadc_clean2011-09-24_12-27-17-PM.log
ASM 清除配置开始
ASM 清除配置结束
网络配置清除配置开始
网络取消配置跟踪文件位置: /opt/rac/oraInventory/logs/netdc_clean2011-09-24_12-28-21-PM.log
取消配置 RAC 监听程序: LISTENER
取消配置监听程序: LISTENER
    停止监听程序: LISTENER
    监听程序已成功停止。
    注销监听程序: LISTENER
    监听程序已成功注销。
监听程序已成功取消配置。
正在取消配置所有节点上的命名方法配置文件...
命名方法配置文件已成功取消配置。
正在取消配置所有节点上的本地网络服务名配置文件...
本地网络服务名配置文件已成功取消配置。
正在取消配置所有节点上的目录使用配置文件...
目录使用配置文件已成功取消配置。
正在取消配置所有节点上的备份文件...
备份文件已成功取消配置。
网络配置已成功清除。
网络配置清除配置结束
---------------------------------------->
下面的 deconfig 命令可以在所有远程节点上并行执行。在所有远程节点上执行完毕后, 在本地节点上执行该命令。
以 root 用户或管理员身份在节点 "rac2" 上运行以下命令。
/tmp/deinstall2011-09-24_00-19-14PM/perl/bin/perl -I/tmp/deinstall2011-09-24_00-19-14PM/perl/lib -I/tmp/deinstall2011-09-24_00-19-14PM/crs/install /tmp/deinstall2011-09-24_00-19-14PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2011-09-24_00-19-14PM/response/deinstall_Ora11g_gridinfrahome2.rsp"
以 root 用户或管理员身份在节点 "rac1" 上运行以下命令。
/tmp/deinstall2011-09-24_00-19-14PM/perl/bin/perl -I/tmp/deinstall2011-09-24_00-19-14PM/perl/lib -I/tmp/deinstall2011-09-24_00-19-14PM/crs/install /tmp/deinstall2011-09-24_00-19-14PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2011-09-24_00-19-14PM/response/deinstall_Ora11g_gridinfrahome2.rsp" -lastnode
完成运行上述命令后按 Enter

在节点2上操作

[root@rac2 ~]# /tmp/deinstall2011-09-24_00-19-14PM/perl/bin/perl -I/tmp/deinstall2011-09-24_00-19-14PM/perl/lib -I/tmp/deinstall2011-09-24_00-19-14PM/crs/install /tmp/deinstall2011-09-24_00-19-14PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2011-09-24_00-19-14PM/response/deinstall_Ora11g_gridinfrahome2.rsp"
Using configuration parameter file: /tmp/deinstall2011-09-24_00-19-14PM/response/deinstall_Ora11g_gridinfrahome2.rsp
网络存在: 1/10.250.7.0/255.255.255.0/eth0, 类型 static
VIP 存在: /rac1-vip/10.250.7.246/10.250.7.0/255.255.255.0/eth0, 托管节点 rac1
VIP 存在: /rac2-vip/10.250.7.200/10.250.7.0/255.255.255.0/eth0, 托管节点 rac2
GSD 已存在
ONS 存在: 本地端口 6100, 远程端口 6200, EM 端口 2016
ACFS-9459: ADVM/ACFS is not supported on this OS version: 'error: file /etc/SuSE-release: 没有那个文件或目录
ACFS-9201: Not Supported
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac2'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac2'
CRS-2790: 正在启动关闭 'rac2' 上集群就绪服务管理的资源的操作
CRS-2673: 尝试停止 'ora.asm' (在 'rac2' 上)
CRS-2677: 成功停止 'ora.asm' (在 'rac2' 上)
CRS-2792: 关闭 'rac2' 上集群就绪服务管理的资源的操作已完成
CRS-2677: Stop of 'ora.crsd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac2'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac2'
CRS-2673: Attempting to stop 'ora.asm' on 'rac2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac2'
CRS-2677: Stop of 'ora.mdnsd' on 'rac2' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac2'
CRS-2677: Stop of 'ora.evmd' on 'rac2' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac2'
CRS-2677: Stop of 'ora.cssd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'rac2'
CRS-2673: Attempting to stop 'ora.crf' on 'rac2'
CRS-2677: Stop of 'ora.crf' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac2'
CRS-2677: Stop of 'ora.diskmon' on 'rac2' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac2'
CRS-2677: Stop of 'ora.gpnpd' on 'rac2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle clusterware stack on this node
[root@rac2 ~]# 


在节点1上运行
[root@rac1 ~]# /tmp/deinstall2011-09-24_00-19-14PM/perl/bin/perl -I/tmp/deinstall2011-09-24_00-19-14PM/perl/lib -I/tmp/deinstall2011-09-24_00-19-14PM/crs/install /tmp/deinstall2011-09-24_00-19-14PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2011-09-24_00-19-14PM/response/deinstall_Ora11g_gridinfrahome2.rsp" -lastnode
Using configuration parameter file: /tmp/deinstall2011-09-24_00-19-14PM/response/deinstall_Ora11g_gridinfrahome2.rsp

网络存在: 1/10.250.7.0/255.255.255.0/eth0, 类型 static
VIP 存在: /rac1-vip/10.250.7.246/10.250.7.0/255.255.255.0/eth0, 托管节点 rac1
GSD 已存在
ONS 存在: 本地端口 6100, 远程端口 6200, EM 端口 2016
ACFS-9459: ADVM/ACFS is not supported on this OS version: 'error: file /etc/SuSE-release: 没有那个文件或目录
'
ACFS-9201: Not Supported
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2790: 正在启动关闭 'rac1' 上集群就绪服务管理的资源的操作
CRS-2673: 尝试停止 'ora.oc4j' (在 'rac1' 上)
CRS-2673: 尝试停止 'ora.asm' (在 'rac1' 上)
CRS-2677: 成功停止 'ora.asm' (在 'rac1' 上)
CRS-2677: 成功停止 'ora.oc4j' (在 'rac1' 上)
CRS-2792: 关闭 'rac1' 上集群就绪服务管理的资源的操作已完成
CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac1'
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
CRS-2677: Stop of 'ora.evmd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac1'
CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'rac1'
CRS-2673: Attempting to stop 'ora.crf' on 'rac1'
CRS-2677: Stop of 'ora.crf' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
CRS-2677: Stop of 'ora.diskmon' on 'rac1' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle clusterware stack on this node


删除 Windows 和 .NET 产品配置结束
Oracle Universal Installer 清除开始
从本地节点上的主产品清单中分离 Oracle 主目录 '/opt/11202/11.2.0/grid' : 完成
删除本地节点上的目录 '/opt/11202/11.2.0/grid' : 完成
将不会删除本地节点上的 Oracle 基目录 '/opt/rac/grid'。Oracle 主目录 '/opt/rac/11.2.0/grid' 正在使用该目录。
从远程节点 'rac2' 上的主产品清单中分离 Oracle 主目录 '/opt/11202/11.2.0/grid' : 完成
删除远程节点 'rac2' 上的目录 '/opt/11202/11.2.0/grid' : 完成
将不会删除节点 'rac2' 上的 Oracle 基目录 '/opt/rac/grid'。Oracle 主目录 '/opt/rac/11.2.0/grid' 正在使用该目录。
Oracle Universal Installer 清除成功。
Oracle Universal Installer 清除结束
Oracle 安装清除开始
清除安装操作将在节点 'rac1' 上删除临时目录 '/tmp/deinstall2011-09-24_00-19-14PM'
清除安装操作将在节点 'rac2' 上删除临时目录 '/tmp/deinstall2011-09-24_00-19-14PM'
Oracle 安装清除结束
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
已成功从 Oracle 主目录取消配置 ASM 实例
以下 RAC 监听程序已成功取消配置: LISTENER
Oracle Clusterware 在节点 "rac1" 上已停止, 并且已成功取消配置
Oracle Clusterware 在节点 "rac2" 上已停止, 并且已成功取消配置
Oracle Clusterware 已成功停止并取消配置。
跳过 Windows 和 .NET 产品配置清除
已成功地从本地节点上的主产品清单中分离 Oracle 主目录 '/opt/11202/11.2.0/grid'。
已成功地删除本地节点上的目录 '/opt/11202/11.2.0/grid'。
已成功地从远程节点 'rac2' 上的主产品清单中分离 Oracle 主目录 '/opt/11202/11.2.0/grid'。
已成功地删除远程节点 'rac2' 上的目录 '/opt/11202/11.2.0/grid'。
Oracle Universal Installer 清除成功。
Oracle 卸载工具已成功清除临时目录。
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
整个删除过程很顺利。不过在删除之后,检查asmdisk:
[root@rac1 ~]# /etc/init.d/oracleasm  scandisks
Scanning the system for Oracle ASMLib disks:               [  OK  ]
[root@rac1 ~]# /etc/init.d/oracleasm  listdisks
VOL101
VOL102
VOL103
VOL104
VOL201
VOL202
VOL203
VOL204
发现asm磁盘依然存在。可以使用 deletedisk 进行删除。。
[root@rac1 ~]# /etc/init.d/oracleasm  deletedisk VOL101
Removing ASM disk "VOL101":                                [  OK  ]
[root@rac1 ~]# /etc/init.d/oracleasm  deletedisk VOL102
Removing ASM disk "VOL102":                                [  OK  ]
[root@rac1 ~]# /etc/init.d/oracleasm  deletedisk VOL103
Removing ASM disk "VOL103":                                [  OK  ]
[root@rac1 ~]# /etc/init.d/oracleasm  deletedisk VOL104
Removing ASM disk "VOL104":                                [  OK  ]
[root@rac1 ~]# /etc/init.d/oracleasm  deletedisk VOL201
Removing ASM disk "VOL201":                                [  OK  ]
[root@rac1 ~]# /etc/init.d/oracleasm  deletedisk VOL202
Removing ASM disk "VOL202":                                [  OK  ]
[root@rac1 ~]# /etc/init.d/oracleasm  deletedisk VOL203
Removing ASM disk "VOL203":                                [  OK  ]
[root@rac1 ~]# /etc/init.d/oracleasm  deletedisk VOL204
Removing ASM disk "VOL204":                                [  OK  ]
[root@rac1 ~]# /etc/init.d/oracleasm  scandisks 
Scanning the system for Oracle ASMLib disks:               [  OK  ]
[root@rac1 ~]# /etc/init.d/oracleasm  listdisks
[root@rac1 ~]# 
阅读(2000) | 评论(0) | 转发(0) |
目录
相关文章
|
7月前
|
Oracle 关系型数据库 流计算
flink cdc 同步oracle idea启动可以全量同步,服务器环境不同步。standalone模式
flink cdc 同步oracle idea启动可以全量同步,服务器环境不同步。standalone模式
|
1月前
|
存储 运维 Oracle
Oracle系列十八:Oracle RAC
Oracle系列十八:Oracle RAC
|
2月前
|
Oracle 关系型数据库
oracle Hanganalyze no RAC
oracle Hanganalyze no RAC
15 0
|
2月前
|
Oracle 关系型数据库
oracle rac 手工安装补丁,不适用auto
oracle rac 手工安装补丁,不适用auto
25 3
|
3月前
|
SQL Oracle 关系型数据库
Linux环境下oracle切换用户并查询数据库命令
Linux环境下oracle切换用户并查询数据库命令
|
3月前
|
Oracle 关系型数据库
【Oracle报错】[INS-13001] 环境不满足最低要求。
【Oracle报错】[INS-13001] 环境不满足最低要求。
|
5月前
Win10系统安装Oracle11g时遇到INS-13001环境不满足最低要求
Win10系统安装Oracle11g时遇到INS-13001环境不满足最低要求
|
6月前
|
Oracle 关系型数据库 Java
分享一个 Oracle RAC 模式下客户端建立JDBC初始连接时因ONS造成应用启动时卡顿30秒问题的排查分析案例
分享一个 Oracle RAC 模式下客户端建立JDBC初始连接时因ONS造成应用启动时卡顿30秒问题的排查分析案例
|
8月前
|
Oracle Java 关系型数据库
RAC 环境中 gc block lost 和私网通信性能问题的诊断
对于每个节点,以及集群汇总统计信息中的global cache数据块丢失的统计信息("gc cr block lost" 和/或 "gc current block lost") 代表了私网通信的包处理效率低或者包的处理存在异常。
199 0
|
10月前
|
Oracle 关系型数据库 数据库
查询listener的日志排除不能登录的错误使用Oracle官方提供的ova文件建立Oracle 19c学习环境
Oracle官方提供了安装好的Oracle 19c虚拟机,打包成ova文件。可以使用这个文件建立一个oracle 19c的学习环境。
121 0

推荐镜像

更多