grid 卸载 Linux

第一步:su - grid
在这里插入图片描述
第二步:
Checking for required files and bootstrapping …
Please wait …
Location of logs /tmp/deinstall2019-12-29_09-33-34AM/logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############

######################### CHECK OPERATION START #########################
##[START] Install check configuration ##

Checking for existence of the Oracle home location /oracle/app/11.2.0.4/grid/product/db_1
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /oracle/app/grid
Checking for existence of central inventory location /oracle/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /oracle/app/11.2.0.4/grid/product/db_1
The following nodes are part of this cluster: oracle1,oracle2
Checking for sufficient temp space availability on node(s) : ‘oracle1,oracle2’

##[END] Install check configuration ##

Traces log file: /tmp/deinstall2019-12-29_09-33-34AM/logs//crsdc.log
Enter an address or the name of the virtual IP used on node “oracle1”[oracle1-vip]

回车

The following information can be collected by running “/sbin/ifconfig -a” on node “oracle1”
Enter the IP netmask of Virtual IP “192.168.168.160” on node “oracle1”[255.255.255.0]

回车
Enter the network interface name on which the virtual IP address “192.168.168.160” is active

回车

Enter an address or the name of the virtual IP used on node “oracle2”[oracle2-vip]

回车

The following information can be collected by running “/sbin/ifconfig -a” on node “oracle2”
Enter the IP netmask of Virtual IP “192.168.168.150” on node “oracle2”[255.255.255.0]

回车

Enter the network interface name on which the virtual IP address “192.168.168.150” is active

回车

Enter an address or the name of the virtual IP[]

回车

Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2019-12-29_09-33-34AM/logs/netdc_check2019-12-29_09-45-39-AM.log

Network Configuration check config END

Asm Check Configuration START

ASM de-configuration trace file location: /tmp/deinstall2019-12-29_09-33-34AM/logs/asmcadc_check2019-12-29_09-45-41-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 #########################

####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /oracle/app/11.2.0.4/grid/product/db_1
The cluster node(s) on which the Oracle home deinstallation will be performed are:oracle1,oracle2
Oracle Home selected for deinstall is: /oracle/app/11.2.0.4/grid/product/db_1
Inventory Location where the Oracle home registered is: /oracle/app/oraInventory
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/deinstall2019-12-29_09-33-34AM/logs/deinstall_deconfig2019-12-29_09-33-49-AM.out’
Any error messages from this session will be written to: ‘/tmp/deinstall2019-12-29_09-33-34AM/logs/deinstall_deconfig2019-12-29_09-33-49-AM.err’

######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2019-12-29_09-33-34AM/logs/asmcadc_clean2019-12-29_09-45-58-AM.log
ASM Clean Configuration START
ASM Clean Configuration END

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2019-12-29_09-33-34AM/logs/netdc_clean2019-12-29_09-46-29-AM.log

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

---------------------------------------->

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 “oracle1”.

/tmp/deinstall2019-12-29_09-33-34AM/perl/bin/perl -I/tmp/deinstall2019-12-29_09-33-34AM/perl/lib -I/tmp/deinstall2019-12-29_09-33-34AM/crs/install /tmp/deinstall2019-12-29_09-33-34AM/crs/install/rootcrs.pl -force -deconfig -paramfile “/tmp/deinstall2019-12-29_09-33-34AM/response/deinstall_Ora11g_gridinfrahome1.rsp”

Run the following command as the root user or the administrator on node “oracle2”.

/tmp/deinstall2019-12-29_09-33-34AM/perl/bin/perl -I/tmp/deinstall2019-12-29_09-33-34AM/perl/lib -I/tmp/deinstall2019-12-29_09-33-34AM/crs/install /tmp/deinstall2019-12-29_09-33-34AM/crs/install/rootcrs.pl -force -deconfig -paramfile “/tmp/deinstall2019-12-29_09-33-34AM/response/deinstall_Ora11g_gridinfrahome1.rsp” -lastnode

第三步:看到以上输出,用root执行以上命令
/tmp/deinstall2019-12-29_09-33-34AM/perl/bin/perl -I/tmp/deinstall2019-12-29_09-33-34AM/perl/lib -I/tmp/deinstall2019-12-29_09-33-34AM/crs/install /tmp/deinstall2019-12-29_09-33-34AM/crs/install/rootcrs.pl -force -deconfig -paramfile “/tmp/deinstall2019-12-29_09-33-34AM/response/deinstall_Ora11g_gridinfrahome1.rsp” -lastnode
Using configuration parameter file: /tmp/deinstall2019-12-29_09-33-34AM/response/deinstall_Ora11g_gridinfrahome1.rsp

Adding Clusterware entries to upstart

crsexcl failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow:
2019-12-29 10:23:42.124:
[/oracle/app/11.2.0.4/grid/product/db_1/bin/oraagent.bin
砀(77726)]CRS-5019:All OCR locations are on ASM disk groups [DATA], and none of these disk groups are mounted. Details are at “(:CLSN00100:)” in “/oracle/app/11.2.0.4/grid/product/db_1/log/oracle2/agent/ohasd/oraagent_grid/oraagent_grid.log”.
2019-12-29 10:24:12.155:
[/oracle/app/11.2.0.4/grid/product/db_1/bin/oraagent.bin
砀(77726)]CRS-5019:All OCR locations are on ASM disk groups [DATA], and none of these disk groups are mounted. Details are at “(:CLSN00100:)” in “/oracle/app/11.2.0.4/grid/product/db_1/log/oracle2/agent/ohasd/oraagent_grid/oraagent_grid.log”.
2019-12-29 10:24:42.174:
[/oracle/app/11.2.0.4/grid/product/db_1/bin/oraagent.bin
砀(77726)]CRS-5019:All OCR locations are on ASM disk groups [DATA], and none of these disk groups are mounted. Details are at “(:CLSN00100:)” in “/oracle/app/11.2.0.4/grid/product/db_1/log/oracle2/agent/ohasd/oraagent_grid/oraagent_grid.log”.
2019-12-29 10:25:12.193:
[/oracle/app/11.2.0.4/grid/product/db_1/bin/oraagent.bin
砀(77726)]CRS-5019:All OCR locations are on ASM disk groups [DATA], and none of these disk groups are mounted. Details are at “(:CLSN00100:)” in “/oracle/app/11.2.0.4/grid/product/db_1/log/oracle2/agent/ohasd/oraagent_grid/oraagent_grid.log”.
2019-12-29 10:25:42.266:
[/oracle/app/11.2.0.4/grid/product/db_1/bin/oraagent.bin
砀(77726)]CRS-5019:All OCR locations are on ASM disk groups [DATA], and none of these disk groups are mounted. Details are at “(:CLSN00100:)” in “/oracle/app/11.2.0.4/grid/product/db_1/log/oracle2/agent/ohasd/oraagent_grid/oraagent_grid.log”.
2019-12-29 10:26:12.294:
[/oracle/app/11.2.0.4/grid/product/db_1/bin/oraagent.bin
砀(77726)]CRS-5019:All OCR locations are on ASM disk groups [DATA], and none of these disk groups are mounted. Details are at “(:CLSN00100:)” in “/oracle/app/11.2.0.4/grid/product/db_1/log/oracle2/agent/ohasd/oraagent_grid/oraagent_grid.log”.
2019-12-29 10:26:42.316:
[/oracle/app/11.2.0.4/grid/product/db_1/bin/oraagent.bin
砀(77726)]CRS-5019:All OCR locations are on ASM disk groups [DATA], and none of these disk groups are mounted. Details are at “(:CLSN00100:)” in “/oracle/app/11.2.0.4/grid/product/db_1/log/oracle2/agent/ohasd/oraagent_grid/oraagent_grid.log”.
2019-12-29 10:26:45.993:
[/oracle/app/11.2.0.4/grid/product/db_1/bin/orarootagent.bin(77881)]CRS-5818:Aborted command ‘clean’ for resource ‘ora.drivers.acfs’. Details at (:CRSAGF00113:) {0:0:104} in /oracle/app/11.2.0.4/grid/product/db_1/log/oracle2/agent/ohasd/orarootagent_root/orarootagent_root.log.
2019-12-29 10:26:46.057:
[/oracle/app/11.2.0.4/grid/product/db_1/bin/orarootagent.bin(77881)]CRS-5014:Agent “/oracle/app/11.2.0.4/grid/product/db_1/bin/orarootagent.bin” timed out starting process “/oracle/app/11.2.0.4/grid/product/db_1/bin/acfsload” for action “clean”: details at “(:CLSN00009:)” in “/oracle/app/11.2.0.4/grid/product/db_1/log/oracle2/agent/ohasd/orarootagent_root/orarootagent_root.log”
2019-12-29 10:26:49.997:
[ohasd(77600)]CRS-2757:Command ‘Clean’ timed out waiting for response from the resource ‘ora.drivers.acfs’. Details at (:CRSPE00111:) {0:0:104} in /oracle/app/11.2.0.4/grid/product/db_1/log/oracle2/ohasd/ohasd.log.

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-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-2673: Attempting to stop ‘ora.ctssd’ on ‘oracle2’
CRS-2673: Attempting to stop ‘ora.asm’ on ‘oracle2’
CRS-2677: Stop of ‘ora.asm’ on ‘oracle2’ succeeded
CRS-2677: Stop of ‘ora.ctssd’ on ‘oracle2’ succeeded
CRS-2673: Attempting to stop ‘ora.cssd’ on ‘oracle2’
CRS-2677: Stop of ‘ora.cssd’ on ‘oracle2’ succeeded
CRS-2672: Attempting to start ‘ora.cssdmonitor’ on ‘oracle2’
CRS-2676: Start of ‘ora.cssdmonitor’ on ‘oracle2’ succeeded
CRS-2672: Attempting to start ‘ora.cssd’ on ‘oracle2’
CRS-2672: Attempting to start ‘ora.diskmon’ on ‘oracle2’
CRS-2676: Start of ‘ora.diskmon’ on ‘oracle2’ succeeded
CRS-2676: Start of ‘ora.cssd’ on ‘oracle2’ succeeded
This ASM diskgroup does not contain voting disks to be deleted
ASM de-configuration trace file location: /tmp/deinstall2019-12-29_09-33-34AM/logs/asmcadc_clean2019-12-29_10-28-06-AM.log
ASM Clean Configuration START
ASM Clean Configuration END

ASM with SID +ASM1 deleted successfully. Check /tmp/deinstall2019-12-29_09-33-34AM/logs/asmcadc_clean2019-12-29_10-28-06-AM.log for details.

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ‘oracle2’
CRS-2673: Attempting to stop ‘ora.ctssd’ on ‘oracle2’
CRS-2673: Attempting to stop ‘ora.asm’ on ‘oracle2’
CRS-2673: Attempting to stop ‘ora.mdnsd’ on ‘oracle2’
CRS-2677: Stop of ‘ora.mdnsd’ on ‘oracle2’ succeeded
CRS-2677: Stop of ‘ora.ctssd’ on ‘oracle2’ succeeded
CRS-2677: Stop of ‘ora.asm’ on ‘oracle2’ succeeded
CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip’ on ‘oracle2’
CRS-2677: Stop of ‘ora.cluster_interconnect.haip’ on ‘oracle2’ succeeded
CRS-2673: Attempting to stop ‘ora.cssd’ on ‘oracle2’
CRS-2677: Stop of ‘ora.cssd’ on ‘oracle2’ succeeded
CRS-2673: Attempting to stop ‘ora.gipcd’ on ‘oracle2’
CRS-2677: Stop of ‘ora.gipcd’ on ‘oracle2’ succeeded
CRS-2673: Attempting to stop ‘ora.gpnpd’ on ‘oracle2’
CRS-2677: Stop of ‘ora.gpnpd’ on ‘oracle2’ succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ‘oracle2’ has completed
CRS-4133: Oracle High Availability Services has been stopped.
WARNING: /etc/modprobe.d/dist.conf line 168: ignoring bad line starting with ‘modprobe’
WARNING: /etc/modprobe.d/dist.conf line 168: ignoring bad line starting with ‘modprobe’
WARNING: /etc/modprobe.d/dist.conf line 168: ignoring bad line starting with ‘modprobe’
Removing Trace File Analyzer
Successfully deconfigured Oracle clusterware stack on this node
出现以上说明可以在grid执行回车。

第四步:
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.

Press Enter after you finish running the above commands

<----------------------------------------

Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START

Oracle Universal Installer cleanup completed with errors.

Oracle Universal Installer clean END

##[START] Oracle install clean ##

Clean install operation removing temporary directory ‘/tmp/deinstall2019-12-29_09-34-27AM’ on node ‘oracle1’
Clean install operation removing temporary directory ‘/tmp/deinstall2019-12-29_09-34-27AM’ on node ‘oracle2’
[Worker 2] [ 2019-12-29 10:38:58.419 CST ] [ClusterConfig E x e c u t e C o m m a n d . r u n : 2991 ] E x c e p t i o n j a v a . l a n g . N u l l P o i n t e r E x c e p t i o n c a u g h t w h i l e t r y i n g t o e x e c u t e i n t h r e a d : n u l l [ W o r k e r 2 ] [ 2019 − 12 − 2910 : 38 : 58.419 C S T ] [ C l u s t e r C o n f i g ExecuteCommand.run:2991] Exception java.lang.NullPointerException caught while trying to execute in thread: null [Worker 2] [ 2019-12-29 10:38:58.419 CST ] [ClusterConfig ExecuteCommand.run:2991]Exceptionjava.lang.NullPointerExceptioncaughtwhiletryingtoexecuteinthread:null[Worker2][2019122910:38:58.419CST][ClusterConfigExecuteCommand.run:3002] Exception-STACK:
—> java.util.StringTokenizer.(StringTokenizer.java:182)
[Worker 2] [ 2019-12-29 10:38:58.419 CST ] [ClusterConfig E x e c u t e C o m m a n d . r u n : 3002 ] E x c e p t i o n − S T A C K : − − − > j a v a . u t i l . S t r i n g T o k e n i z e r . < i n i t > ( S t r i n g T o k e n i z e r . j a v a : 204 ) [ W o r k e r 2 ] [ 2019 − 12 − 2910 : 38 : 58.419 C S T ] [ C l u s t e r C o n f i g ExecuteCommand.run:3002] Exception-STACK: ---> java.util.StringTokenizer.<init>(StringTokenizer.java:204) [Worker 2] [ 2019-12-29 10:38:58.419 CST ] [ClusterConfig ExecuteCommand.run:3002]ExceptionSTACK:>java.util.StringTokenizer.<init>(StringTokenizer.java:204)[Worker2][2019122910:38:58.419CST][ClusterConfigExecuteCommand.run:3002] Exception-STACK:
—> oracle.ops.mgmt.nativesystem.NativeResult.(NativeResult.java:92)
[Worker 2] [ 2019-12-29 10:38:58.419 CST ] [ClusterConfig E x e c u t e C o m m a n d . r u n : 3002 ] E x c e p t i o n − S T A C K : − − − > o r a c l e . o p s . m g m t . c o m m a n d . C o m m a n d R e s u l t . < i n i t > ( C o m m a n d R e s u l t . j a v a : 50 ) [ W o r k e r 2 ] [ 2019 − 12 − 2910 : 38 : 58.419 C S T ] [ C l u s t e r C o n f i g ExecuteCommand.run:3002] Exception-STACK: ---> oracle.ops.mgmt.command.CommandResult.<init>(CommandResult.java:50) [Worker 2] [ 2019-12-29 10:38:58.419 CST ] [ClusterConfig ExecuteCommand.run:3002]ExceptionSTACK:>oracle.ops.mgmt.command.CommandResult.<init>(CommandResult.java:50)[Worker2][2019122910:38:58.419CST][ClusterConfigExecuteCommand.run:3002] Exception-STACK:
—> oracle.ops.mgmt.command.file.DirRemoveCommand.execute(DirRemoveCommand.java:78)
[Worker 2] [ 2019-12-29 10:38:58.419 CST ] [ClusterConfig E x e c u t e C o m m a n d . r u n : 3002 ] E x c e p t i o n − S T A C K : − − − > o r a c l e . o p s . m g m t . c l u s t e r . C l u s t e r C o n f i g ExecuteCommand.run:3002] Exception-STACK: ---> oracle.ops.mgmt.cluster.ClusterConfig ExecuteCommand.run:3002]ExceptionSTACK:>oracle.ops.mgmt.cluster.ClusterConfigExecuteCommand.run(ClusterConfig.java:2983)
[Worker 2] [ 2019-12-29 10:38:58.420 CST ] [ClusterConfig$ExecuteCommand.run:3002] Exception-STACK:
—> java.lang.Thread.run(Thread.java:637)

##[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 “oracle2”
Oracle Clusterware is stopped and successfully de-configured on node “oracle1”
Oracle Clusterware is stopped and de-configured successfully.
Oracle Universal Installer cleanup completed with errors.

Run ‘rm -rf /opt/ORCLfmap’ as root on node(s) ‘oracle1’ at the end of the session.
Run ‘rm -rf /etc/oratab’ as root on node(s) ‘oracle1’ at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################

############# ORACLE DEINSTALL & DECONFIG TOOL END #############

第五步:
[root@oracle1 ~]# rm -rf /etc/oraInst.loc
[root@oracle1 ~]# rm -rf /opt/ORCLfmap
[root@oracle1 ~]# rm -rf /etc/oratab
[root@oracle1 ~]# rm -rf /etc/oraInst.loc
[root@oracle1 ~]# rm -rf /opt/ORCLfmap
第六步:其它节点删除步骤与此大同小异,如果重装的话请创建相关目录。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值