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 实操的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 知物由学 | 易盾SaaS系统资损防控体
- 下一篇: AutoCAD2015 下载安装教程与使