grid 安装失败 卸载grid 实操
在grid软件的home目录$ORACLE_HOME下找到deinstall目录,进去执行脚本deinstall
Last login: Tue Apr 24 19:12:17 2018 from 10.128.250.41
Authorized users only.All activity may be monitored and reported
[oracle@dqynj027081 ~]$
[oracle@dqynj027081 ~]$ su - grid
Password:
[grid@dqynj027081 ~]$ cd $ORACLE_HOME
[grid@dqynj027081 11.2.0]$ cd deinstall/
[grid@dqynj027081 deinstall]$ ls
bootstrap.pl deinstall deinstall.pl deinstall.xml jlib readme.txt response sshUserSetup.sh
[grid@dqynj027081 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2018-04-25_08-50-35AM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /app/u01/product/11.2.0
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /app/u01/grid
Checking for existence of central inventory location /app/u01/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /app/u01/product/11.2.0
The following nodes are part of this cluster: dqynj027081,dqynj027082
Checking for sufficient temp space availability on node(s) : 'dqynj027081,dqynj027082'
## [END] Install check configuration ##
###################
###################这里都是直接回车
###################
Traces log file: /tmp/deinstall2018-04-25_08-50-35AM/logs//crsdc.log
Enter an address or the name of the virtual IP used on node "dqynj027081"[dqynj027081-vip]
>
The following information can be collected by running "/sbin/ifconfig -a" on node "dqynj027081"
Enter the IP netmask of Virtual IP "10.251.27.175" on node "dqynj027081"[255.255.255.0]
>
Enter the network interface name on which the virtual IP address "10.251.27.175" is active
>
Enter an address or the name of the virtual IP used on node "dqynj027082"[dqynj027082-vip]
>
The following information can be collected by running "/sbin/ifconfig -a" on node "dqynj027082"
Enter the IP netmask of Virtual IP "10.251.27.179" on node "dqynj027082"[255.255.255.0]
>
Enter the network interface name on which the virtual IP address "10.251.27.179" is active
>
Enter an address or the name of the virtual IP[]
>
###################
###################这里还是直接回车
###################
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2018-04-25_08-50-35AM/logs/netdc_check2018-04-25_08-51-06-AM.log
Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER,LISTENER_SCAN1]:
Network Configuration check config END
###################
###################这里输入y,然后回车,接下来都是回车
###################
Asm Check Configuration START
ASM de-configuration trace file location: /tmp/deinstall2018-04-25_08-50-35AM/logs/asmcadc_check2018-04-25_08-55-17-AM.log
ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: y
Specify the ASM Diagnostic Destination [ ]:
Specify the diskstring []:
Specify the diskgroups that are managed by this ASM instance []:
######################### CHECK OPERATION END #########################
###################
###################这里输入y
###################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /app/u01/product/11.2.0
The cluster node(s) on which the Oracle home deinstallation will be performed are:dqynj027081,dqynj027082
Oracle Home selected for deinstall is: /app/u01/product/11.2.0
Inventory Location where the Oracle home registered is: /app/u01/oraInventory
Following RAC listener(s) will be de-configured: LISTENER,LISTENER_SCAN1
ASM instance will be de-configured from this Oracle home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/tmp/deinstall2018-04-25_08-50-35AM/logs/deinstall_deconfig2018-04-25_08-50-40-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2018-04-25_08-50-35AM/logs/deinstall_deconfig2018-04-25_08-50-40-AM.err'
######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2018-04-25_08-50-35AM/logs/asmcadc_clean2018-04-25_08-56-50-AM.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2018-04-25_08-50-35AM/logs/netdc_clean2018-04-25_08-56-51-AM.log
De-configuring RAC listener(s): LISTENER,LISTENER_SCAN1
De-configuring listener: LISTENER
Stopping listener: LISTENER
Warning: Failed to stop listener. Listener may not be running.
Listener de-configured successfully.
De-configuring listener: LISTENER_SCAN1
Stopping listener: LISTENER_SCAN1
Listener stopped successfully.
Listener de-configured successfully.
De-configuring Naming Methods configuration file on all nodes...
Naming Methods configuration file de-configured successfully.
De-configuring Local Net Service Names configuration file on all nodes...
Local Net Service Names configuration file de-configured successfully.
De-configuring Directory Usage configuration file on all nodes...
Directory Usage configuration file de-configured successfully.
De-configuring backup files on all nodes...
Backup files de-configured successfully.
The network configuration has been cleaned up successfully.
Network Configuration clean config END
###################
###################这里需要在各节点使用root用户下执行以下脚本,注意按照顺序执行,执行完成回到该页面敲回车
###################
---------------------------------------->
The deconfig command below can be executed in parallel on all the remote nodes. Execute the command on the local node after the execution completes on all the remote
nodes.
Run the following command as the root user or the administrator on node "dqynj027082".
/tmp/deinstall2018-04-25_08-50-35AM/perl/bin/perl -I/tmp/deinstall2018-04-25_08-50-35AM/perl/lib -I/tmp/deinstall2018-04-25_08-50-35AM/crs/install /tmp/deinstall2018-
04-25_08-50-35AM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2018-04-25_08-50-35AM/response/deinstall_Ora11g_gridinfrahome1.rsp"
Run the following command as the root user or the administrator on node "dqynj027081".
/tmp/deinstall2018-04-25_08-50-35AM/perl/bin/perl -I/tmp/deinstall2018-04-25_08-50-35AM/perl/lib -I/tmp/deinstall2018-04-25_08-50-35AM/crs/install /tmp/deinstall2018-
04-25_08-50-35AM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2018-04-25_08-50-35AM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode
Press Enter after you finish running the above commands
<----------------------------------------
########################################################################################
#####按照脚本顺序执行,以下为节点dqynj027082执行过程,执行过程不是很快,耐心等待以下,我执行了10分钟#######
#####按照脚本顺序执行,以下为节点dqynj027082执行过程#############################################
########################################################################################
l2018-04-25_08-50-35AM/crs/install /tmp/deinstall2018-04-25_08-50-35AM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2018-04-25_08-50-
35AM/response/deinstall_Ora11g_gridinfrahome1.rsp"
Using configuration parameter file: /tmp/deinstall2018-04-25_08-50-35AM/response/deinstall_Ora11g_gridinfrahome1.rsp
Network exists: 1/10.251.26.0/255.255.254.0/eth0, type static
VIP exists: /dqynj027081-vip/10.251.27.175/10.251.26.0/255.255.254.0/eth0, hosting node dqynj027081
VIP exists: /dqynj027082-vip/10.251.27.179/10.251.26.0/255.255.254.0/eth0, hosting node dqynj027082
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'dqynj027082'
CRS-2673: Attempting to stop 'ora.crsd' on 'dqynj027082'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'dqynj027082'
CRS-2673: Attempting to stop 'ora.oc4j' on 'dqynj027082'
CRS-2673: Attempting to stop 'ora.CRS.dg' on 'dqynj027082'
CRS-2677: Stop of 'ora.oc4j' on 'dqynj027082' succeeded
CRS-2677: Stop of 'ora.CRS.dg' on 'dqynj027082' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'dqynj027082'
CRS-2677: Stop of 'ora.asm' on 'dqynj027082' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'dqynj027082' has completed
CRS-2677: Stop of 'ora.crsd' on 'dqynj027082' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'dqynj027082'
CRS-2673: Attempting to stop 'ora.ctssd' on 'dqynj027082'
CRS-2673: Attempting to stop 'ora.evmd' on 'dqynj027082'
CRS-2673: Attempting to stop 'ora.asm' on 'dqynj027082'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'dqynj027082'
CRS-2677: Stop of 'ora.crf' on 'dqynj027082' succeeded
CRS-2677: Stop of 'ora.evmd' on 'dqynj027082' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'dqynj027082' succeeded
CRS-2677: Stop of 'ora.asm' on 'dqynj027082' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'dqynj027082'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'dqynj027082' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'dqynj027082' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'dqynj027082'
CRS-2677: Stop of 'ora.cssd' on 'dqynj027082' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'dqynj027082'
CRS-2677: Stop of 'ora.gipcd' on 'dqynj027082' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'dqynj027082'
CRS-2677: Stop of 'ora.gpnpd' on 'dqynj027082' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'dqynj027082' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Removing Trace File Analyzer
Successfully deconfigured Oracle clusterware stack on this node
[root@dqynj027082 ~]#
########################################################################################
###按照脚本顺序执行,以下为节点dqynj027081执行过程,执行过程不是很快,耐心等待以下,我执行了10分钟########
######按照脚本顺序执行,以下为节点dqynj027081执行过程#########################################
########################################################################################
[root@dqynj027081 ~]# /tmp/deinstall2018-04-25_08-50-35AM/perl/bin/perl -I/tmp/deinstall2018-04-25_08-50-35AM/perl/lib -I/tmp/deinstall2018-04-25_08-50-
35AM/crs/install /tmp/deinstall2018-04-25_08-50-35AM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2018-04-25_08-50-
35AM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode
Using configuration parameter file: /tmp/deinstall2018-04-25_08-50-35AM/response/deinstall_Ora11g_gridinfrahome1.rsp
CRS-2672: Attempting to start 'ora.gpnpd' on 'dqynj027081'
CRS-5017: The resource action "ora.gpnpd start" encountered the following error:
Start action for daemon aborted. For details refer to "(:CLSN00107:)" in "/app/u01/product/11.2.0/log/dqynj027081/agent/ohasd/oraagent_grid/oraagent_grid.log".
CRS-2674: Start of 'ora.gpnpd' on 'dqynj027081' failed
CRS-2679: Attempting to clean 'ora.gpnpd' on 'dqynj027081'
CRS-2681: Clean of 'ora.gpnpd' on 'dqynj027081' succeeded
CRS-4000: Command Start failed, or completed with errors.
CSS startup failed with return code 1
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1119 : Failed to look up CRS resources of ora.cluster_vip_net1.type type
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.gsd is registered
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.ons is registered
Cannot communicate with crsd
CRS-4689: Oracle Clusterware is already stopped
CRS-2672: Attempting to start 'ora.gpnpd' on 'dqynj027081'
CRS-5017: The resource action "ora.gpnpd start" encountered the following error:
Start action for daemon aborted. For details refer to "(:CLSN00107:)" in "/app/u01/product/11.2.0/log/dqynj027081/agent/ohasd/oraagent_grid/oraagent_grid.log".
CRS-2674: Start of 'ora.gpnpd' on 'dqynj027081' failed
CRS-2679: Attempting to clean 'ora.gpnpd' on 'dqynj027081'
CRS-2681: Clean of 'ora.gpnpd' on 'dqynj027081' succeeded
CRS-4000: Command Start failed, or completed with errors.
CSS startup failed with return code 1
Unable to communicate with the Cluster Synchronization Services daemon.
CRS-4000: Command Delete failed, or completed with errors.
crsctl delete for vds in CRS ... failed
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'dqynj027081'
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'dqynj027081'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'dqynj027081'
CRS-2677: Stop of 'ora.cssdmonitor' on 'dqynj027081' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'dqynj027081' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'dqynj027081' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Removing Trace File Analyzer
Successfully deconfigured Oracle clusterware stack on this node
[root@dqynj027081 ~]#
########################################################################################
#####执行完以上脚本回到之前的grid用户执行deinstall界面敲回车###################################
#####执行完以上脚本回到之前的grid用户执行deinstall界面敲回车,继续执行删除#############################
########################################################################################
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START
Detach Oracle home '/app/u01/product/11.2.0' from the central inventory on the local node : Done
Delete directory '/app/u01/product/11.2.0' on the local node : Done
Delete directory '/app/u01/oraInventory' on the local node : Done
Delete directory '/app/u01/grid' on the local node : Done
Detach Oracle home '/app/u01/product/11.2.0' from the central inventory on the remote nodes 'dqynj027082' : Done
Delete directory '/app/u01/product/11.2.0' on the remote nodes 'dqynj027082' : Done
Delete directory '/app/u01/oraInventory' on the remote nodes 'dqynj027082' : Done
Delete directory '/app/u01/grid' on the remote nodes 'dqynj027082' : Done
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2018-04-25_08-50-35AM' on node 'dqynj027081'
Clean install operation removing temporary directory '/tmp/deinstall2018-04-25_08-50-35AM' on node 'dqynj027082'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Following RAC listener(s) were de-configured successfully: LISTENER,LISTENER_SCAN1
Oracle Clusterware is stopped and successfully de-configured on node "dqynj027082"
Oracle Clusterware is stopped and successfully de-configured on node "dqynj027081"
Oracle Clusterware is stopped and de-configured successfully.
Successfully detached Oracle home '/app/u01/product/11.2.0' from the central inventory on the local node.
Successfully deleted directory '/app/u01/product/11.2.0' on the local node.
Successfully deleted directory '/app/u01/oraInventory' on the local node.
Successfully deleted directory '/app/u01/grid' on the local node.
Successfully detached Oracle home '/app/u01/product/11.2.0' from the central inventory on the remote nodes 'dqynj027082'.
Successfully deleted directory '/app/u01/product/11.2.0' on the remote nodes 'dqynj027082'.
Successfully deleted directory '/app/u01/oraInventory' on the remote nodes 'dqynj027082'.
Successfully deleted directory '/app/u01/grid' on the remote nodes 'dqynj027082'.
Oracle Universal Installer cleanup was successful.
Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'dqynj027081,dqynj027082' at the end of the session.
Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'dqynj027081,dqynj027082' at the end of the session.
Run 'rm -rf /etc/oratab' as root on node(s) 'dqynj027081' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
[grid@dqynj027081 deinstall]$
执行完成,按照提示再使用root在各节点别执行,注意第三个删除命令只在一节点执行,我没注意看,直接两个节点都执行了,但是节点2好像也没有这个文件
[root@dqynj027081 ~]# rm -rf /etc/oraInst.loc
[root@dqynj027081 ~]# rm -rf /opt/ORCLfmap
[root@dqynj027081 ~]# rm -rf /etc/oratab
[root@dqynj027082 ~]# rm -rf /etc/oraInst.loc
[root@dqynj027082 ~]# rm -rf /opt/ORCLfmap
以上就删除完成,重新安装的话,还是要创建目录等操作。
排错:
####################### CHECK OPERATION SUMMARY #######################
Following RAC listener(s) will be de-configured: LISTENER
ASM instance will be de-configured from this Oracle home
A log of this session will be written to: '/app/u01/oraInventory/logs/deinstall_deconfig2021-12-03_02-27-13-PM.out'
Any error messages from this session will be written to: '/app/u01/oraInventory/logs/deinstall_deconfig2021-12-03_02-27-13-PM.err'
ERROR: The deconfiguration and deinstallation tool has detected runtime errors when checking the existing configuration due to which the tool cannot continue with clean up operation. Please check the log files for more information. Rerun the tool after fixing the errors to proceed with the ORACLE_HOME clean up.
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
[grid@dqynj027029 deinstall]$
[grid@dqynj027029 deinstall]$ more /app/u01/oraInventory/logs/deinstall_deconfig2021-12-03_02-27-13-PM.err
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at oracle.install.db.deinstall.wrapper.clusterDeconfig.callCheckImpl(clusterDeconfig.java:1029)
at oracle.install.db.deinstall.wrapper.clusterDeconfig.main(clusterDeconfig.java:477)
Caused by: oracle.ops.util.FatalException: Exited from Program.
at oracle.install.db.deinstall.core.CheckInstall.checkConfig(CheckInstall.java:433)
... 6 more
卸载的时候报错,原来密码过期导致的互信问题,修改密码后互信好了就可以继续执行了。
grid 安装失败 卸载grid 实操相关推荐
- Debian11安装Proxmox VE 7实操记录
目录 Debian11安装Proxmox VE 7,以下皆为作者借鉴官网教程实操并记录 IP 地址添加 /etc/hosts 使用hostname --ip-address命令测试设置是否正常 设置D ...
- centos7 安装mysql5.7.37 实操说明
检查是否有自带MySQL [root@192 ~]# rpm -qa | grep mysql [root@192 ~]# rpm -qa | grep mariadb mariadb-libs-5. ...
- mysql 安装失败 卸载不了了_mysql安装失败,卸载方法
---------删除mysql卸载残留/彻底删除mysql------------ 1.win+r,弹出框填入 regedit,进入注册表页面,执行以下操作 删除HKEY_LOCAL_MACHINE ...
- linux命令行安装vnc_Linux Centos7.x下安装部署VNC的实操详述
VNC (Virtual Network Console)是虚拟网络控制台的缩写.它 是一款优秀的远程控制工具软件,由著名的AT&T的欧洲研究实验室开发的.VNC 是在基于 UNIX和 Lin ...
- [orin] nvidia orin 上安装 pytorch 和 torchvision 实操
请看这个博主写的链接,写的非常好,目前我已经安装成功了,不同的是我是在Anaconda虚拟环境中安装的. 原博客链接:https://blog.csdn.net/beautifulback/artic ...
- SLAM实操入门(三):Ubuntu20.04安装Turtlebot3并运行SLAM例程仿真
文章目录 前言 在Turtlebot3进行SLAM仿真 1 安装Turtlebot3依赖包 2 创建项目并安装Turtlebot3 3 使用Turtlebot3进行建图 4 使用扫描地图进行自动导航仿 ...
- SLAM实操入门(五):无里程计仅使用激光雷达建图(GMapping算法)
文章目录 前言 1 Gmapping算法 2 laser_scan_matcher库 2.1 安装laser_scan_matcher库 2.2 修改demo_gmapping.launch文件 3 ...
- SLAM实操入门(六):连接Velodyne的16线激光雷达并可视化
文章目录 前言 1 Velodyne激光雷达 2 配置网络 3 创建ROS工程 4 启动并可视化 5 录包与播放 总结 前言 好久没更新这部分了,最近在搞中期答辩的东西,简单补充一部分多线激光雷达建图 ...
- 理论+实操:docker入门初体验,申请阿里镜像加速器
文章目录 一:Docker概述 1.1 docker概念: 1.2 docker设计的目标: 1.3 docker的组成: 1.4 docker的使用场景 1.5 docker版本: 二: docke ...
- SLAM实操入门(七):使用Velodyne16线激光雷达与A-Loam进行三维SLAM
文章目录 前言 1 A-LOAM 2 预备条件 2.1 Ubuntu和ROS 2.2 Ceres Solver(Ceres求解器) 2.3 PCL(Point Cloud Library) 3 创建A ...
最新文章
- Redis 之布隆过滤器与布谷鸟过滤器
- CBS电信项目中的三户一品总结
- 逻辑设计中复位的稳妥处理方法?
- Middleware课程01-概述
- 保存数组类型数据_JS基本数据类型和引用数据类型的区别及深浅拷贝
- 4行代码AC——L1-026 I Love GPLT (5分)
- phpcms 加载php文件,PHPCMS配置文件的读取
- Cloud Native 介绍
- idea mybatis generator插件_SpringBoot+MyBatis+Druid整合demo
- oracle对查询结果求和_Oracle 闪回技术详解
- python输出字母金字塔可以输入字母和行数的_python实现输入任意一个大写字母生成金字塔的示例...
- 思科6509的详细配置---加注释
- 毕业三五年,怎么拿到百万年薪?
- 【BZOJ 1050】1050: [HAOI2006]旅行comf (动态SPFA)
- 最全中文停用词表(可直接复制)
- IDEA自动生成功能
- webm格式怎么转换成mp4
- matlab向量自回归代码实现,结构向量自回归(SVAR)模型(二):操作步骤与结果解读...
- 求2+22+222+2222+.....的N项之和
- ERROR: Failed to resolve: com.github.Jay-Goo:AndroidMP3Recorder:v1.0.7