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


卸载的时候报错,原来密码过期导致的互信问题,修改密码后互信好了就可以继续执行了。













 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值