프린트 하기

OS환경 : Oracle Linux 7.4 (64bit)


DB 환경 : Oracle Database 11.2.0.4 RAC


방법 : Oracle Linux 7.4에 Oracle 11g R2 RAC 삭제 가이드

기존 구성 확인

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       rac1                                         
               ONLINE  ONLINE       rac2                                         
ora.OCR_VOTE.dg
               ONLINE  ONLINE       rac1                                         
               ONLINE  ONLINE       rac2                                         
ora.ORADATA.dg
               ONLINE  ONLINE       rac1                                         
               ONLINE  ONLINE       rac2                                         
ora.ORAFRA.dg
               ONLINE  ONLINE       rac1                                         
               ONLINE  ONLINE       rac2                                         
ora.asm
               ONLINE  ONLINE       rac1                     Started             
               ONLINE  ONLINE       rac2                     Started             
ora.gsd
               OFFLINE OFFLINE      rac1                                         
               OFFLINE OFFLINE      rac2                                         
ora.net1.network
               ONLINE  ONLINE       rac1                                         
               ONLINE  ONLINE       rac2                                         
ora.ons
               ONLINE  ONLINE       rac1                                         
               ONLINE  ONLINE       rac2                                         
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac2                                         
ora.cvu
      1        ONLINE  ONLINE       rac2                                         
ora.rac1.vip
      1        ONLINE  ONLINE       rac1                                         
ora.rac2.vip
      1        ONLINE  ONLINE       rac2                                         
ora.racdb.db
      1        ONLINE  ONLINE       rac1                     Open                
      2        ONLINE  ONLINE       rac2                     Open                
ora.scan1.vip
      1        ONLINE  ONLINE       rac2 

2node rac로 구성되어 있음



DB 삭제

dbca 실행

1
$ dbca



Oracle Real Application Cluster (RAC) database 선택 후 Next



Delete a Database 선택 후 Next



삭제 대상 데이터베이스 선택 후 Finish



데이터베이스의 인스턴스 및 데이터 파일을 모두 삭제하겠냐고 물어보는 메세지 Yes



삭제중



삭제 완료 후 No 선택


DB 삭제 확인

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       rac1                                         
               ONLINE  ONLINE       rac2                                         
ora.OCR_VOTE.dg
               ONLINE  ONLINE       rac1                                         
               ONLINE  ONLINE       rac2                                         
ora.ORADATA.dg
               ONLINE  ONLINE       rac1                                         
               ONLINE  ONLINE       rac2                                         
ora.ORAFRA.dg
               ONLINE  ONLINE       rac1                                         
               ONLINE  ONLINE       rac2                                         
ora.asm
               ONLINE  ONLINE       rac1                     Started             
               ONLINE  ONLINE       rac2                     Started             
ora.gsd
               OFFLINE OFFLINE      rac1                                         
               OFFLINE OFFLINE      rac2                                         
ora.net1.network
               ONLINE  ONLINE       rac1                                         
               ONLINE  ONLINE       rac2                                         
ora.ons
               ONLINE  ONLINE       rac1                                         
               ONLINE  ONLINE       rac2                                         
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac2                                         
ora.cvu
      1        ONLINE  ONLINE       rac2                                         
ora.rac1.vip
      1        ONLINE  ONLINE       rac1                                         
ora.rac2.vip
      1        ONLINE  ONLINE       rac2                                         
ora.scan1.vip
      1        ONLINE  ONLINE       rac2

기존에 존재하던 ora.racdb.db 부분이 없어진 것을 확인 할 수 있음



DBMS (엔진) 삭제

deinstall 실행

1
2
3
4
$ cd $ORACLE_HOME/deinstall
$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...



상세 로그

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
$ cd $ORACLE_HOME/deinstall
$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /app/oraInventory/logs/
 
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
 
 
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
 
 
Checking for existence of the Oracle home location /app/oracle/product/11.2.0/db_1
Oracle Home type selected for deinstall is: Oracle Real Application Cluster Database
Oracle Base selected for deinstall is: /app/oracle
Checking for existence of central inventory location /app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /app/grid/product/11.2.0/grid
The following nodes are part of this cluster: rac1,rac2
Checking for sufficient temp space availability on node(s) : 'rac1,rac2'
 
## [END] Install check configuration ##
 
 
Network Configuration check config START
 
Network de-configuration trace file location: /app/oraInventory/logs/netdc_check2020-07-10_10-57-32-AM.log
 
Network Configuration check config END
 
Database Check Configuration START
 
Database de-configuration trace file location: /app/oraInventory/logs/databasedc_check2020-07-10_10-57-33-AM.log
 
Use comma as separator when specifying list of values as input
 
Specify the list of database names that are configured in this Oracle home []:  [엔터 입력]
Database Check Configuration END
 
Enterprise Manager Configuration Assistant START
 
EMCA de-configuration trace file location: /app/oraInventory/logs/emcadc_check2020-07-10_10-58-14-AM.log 
 
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /app/oraInventory/logs//ocm_check2704.log
Oracle Configuration Manager check END
 
######################### CHECK OPERATION END #########################
 
 
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /app/grid/product/11.2.0/grid
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac1,rac2
Oracle Home selected for deinstall is: /app/oracle/product/11.2.0/db_1
Inventory Location where the Oracle home registered is: /app/oraInventory
No Enterprise Manager configuration to be updated for any database(s)
No Enterprise Manager ASM targets to update
No Enterprise Manager listener targets to migrate
Checking the config status for CCR
rac1 : Oracle Home exists with CCR directory, but CCR is not configured
rac2 : Oracle Home exists with CCR directory, but CCR is not configured
CCR check is finished
Do you want to continue (y - yes, n - no)? [n]: y  [Y 입력]
A log of this session will be written to: '/app/oraInventory/logs/deinstall_deconfig2020-07-10_10-57-27-AM.out'
Any error messages from this session will be written to: '/app/oraInventory/logs/deinstall_deconfig2020-07-10_10-57-27-AM.err'
 
######################## CLEAN OPERATION START ########################
 
Enterprise Manager Configuration Assistant START
 
EMCA de-configuration trace file location: /app/oraInventory/logs/emcadc_clean2020-07-10_10-58-14-AM.log 
 
Updating Enterprise Manager ASM targets (if any)
Updating Enterprise Manager listener targets (if any)
Enterprise Manager Configuration Assistant END
Database de-configuration trace file location: /app/oraInventory/logs/databasedc_clean2020-07-10_10-59-24-AM.log
 
Network Configuration clean config START
 
Network de-configuration trace file location: /app/oraInventory/logs/netdc_clean2020-07-10_10-59-24-AM.log
 
De-configuring Listener configuration file on all nodes...
Listener configuration file 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
 
Oracle Configuration Manager clean START
OCM clean log file location : /app/oraInventory/logs//ocm_clean2704.log
Oracle Configuration Manager clean END
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START
 
Detach Oracle home '/app/oracle/product/11.2.0/db_1' from the central inventory on the local node : Done
 
Delete directory '/app/oracle/product/11.2.0/db_1' on the local node : Done
 
The Oracle Base directory '/app/oracle' will not be removed on local node. The directory is in use by Oracle Home '/app/grid/product/11.2.0/grid'.
 
Detach Oracle home '/app/oracle/product/11.2.0/db_1' from the central inventory on the remote nodes 'rac2' : Done
 
Delete directory '/app/oracle/product/11.2.0/db_1' on the remote nodes 'rac2' : Done
 
The Oracle Base directory '/app/oracle' will not be removed on node 'rac2'. The directory is in use by Oracle Home '/app/grid/product/11.2.0/grid'.
 
Oracle Universal Installer cleanup was successful.
 
Oracle Universal Installer clean END
 
 
## [START] Oracle install clean ##
 
Clean install operation removing temporary directory '/tmp/deinstall2020-07-10_10-57-23AM' on node 'rac1'
Clean install operation removing temporary directory '/tmp/deinstall2020-07-10_10-57-23AM' on node 'rac2'
 
## [END] Oracle install clean ##
 
 
######################### CLEAN OPERATION END #########################
 
 
####################### CLEAN OPERATION SUMMARY #######################
Cleaning the config for CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
Successfully detached Oracle home '/app/oracle/product/11.2.0/db_1' from the central inventory on the local node.
Successfully deleted directory '/app/oracle/product/11.2.0/db_1' on the local node.
Successfully detached Oracle home '/app/oracle/product/11.2.0/db_1' from the central inventory on the remote nodes 'rac2'.
Successfully deleted directory '/app/oracle/product/11.2.0/db_1' on the remote nodes 'rac2'.
Oracle Universal Installer cleanup was successful.
 
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
 
 
############# ORACLE DEINSTALL & DECONFIG TOOL END #############



DBMS 삭제 확인(양쪽 노드)

1
2
$ ls -al $ORACLE_HOME
ls: cannot access /app/oracle/product/11.2.0/db_1: No such file or directory

$ORACLE_HOME 인 /app/oracle/product/11.2.0/db_1 디렉토리 자체가 없어진것을 확인 가능함



GRID 삭제

deinstall 실행

1
2
3
4
$ cd $GRID_HOME/deinstall
$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...



상세 로그

30, 44 50 줄 메세지 확인

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
$ cd $GRID_HOME/deinstall
$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2020-07-10_02-00-53PM/logs/
 
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
 
 
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
 
 
Checking for existence of the Oracle home location /app/grid/product/11.2.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /app/oracle
Checking for existence of central inventory location /app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /app/grid/product/11.2.0/grid
The following nodes are part of this cluster: rac1,rac2
Checking for sufficient temp space availability on node(s) : 'rac1,rac2'
 
## [END] Install check configuration ##
 
Traces log file: /tmp/deinstall2020-07-10_02-00-53PM/logs//crsdc.log
 
Network Configuration check config START
 
Network de-configuration trace file location: /tmp/deinstall2020-07-10_02-00-53PM/logs/netdc_check2020-07-10_02-01-01-PM.log
 
Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER]: [엔터 입력]
 
Network Configuration check config END
 
Asm Check Configuration START
 
ASM de-configuration trace file location: /tmp/deinstall2020-07-10_02-00-53PM/logs/asmcadc_check2020-07-10_02-02-01-PM.log
 
Automatic Storage Management (ASM) instance is detected in this Oracle home /app/grid/product/11.2.0/grid.
ASM Diagnostic Destination : /app/oracle
ASM Diskgroups : +OCR_VOTE,+ORADATA,+ORAFRA
ASM diskstring : <Default>
Diskgroups will be dropped
De-configuring ASM will drop all the diskgroups and it's contents at cleanup time. This will affect all of the databases and ACFS that use this ASM instance(s).
 If you want to retain the existing diskgroups or if any of the information detected is incorrect, you can modify by entering 'y'. Do you  want to modify above information (y|n) [n]: n
[N 입력] 
######################### CHECK OPERATION END #########################
 
 
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /app/grid/product/11.2.0/grid
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac1,rac2
Oracle Home selected for deinstall is: /app/grid/product/11.2.0/grid
Inventory Location where the Oracle home registered is: /app/oraInventory
Following RAC listener(s) will be de-configured: LISTENER
ASM instance will be de-configured from this Oracle home
Do you want to continue (y - yes, n - no)? [n]: y [Y 입력]
A log of this session will be written to: '/tmp/deinstall2020-07-10_02-00-53PM/logs/deinstall_deconfig2020-07-10_02-00-56-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2020-07-10_02-00-53PM/logs/deinstall_deconfig2020-07-10_02-00-56-PM.err'
 
######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2020-07-10_02-00-53PM/logs/asmcadc_clean2020-07-10_02-03-13-PM.log
ASM Clean Configuration START
ASM Clean Configuration END
 
Network Configuration clean config START
 
Network de-configuration trace file location: /tmp/deinstall2020-07-10_02-00-53PM/logs/netdc_clean2020-07-10_02-03-41-PM.log
 
De-configuring RAC listener(s): LISTENER
 
De-configuring listener: LISTENER
    Stopping listener: LISTENER
    Listener stopped successfully.
    Unregistering listener: LISTENER
    Listener unregistered 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
 
 
---------------------------------------->
 
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 "rac2".
 
/tmp/deinstall2020-07-10_02-00-53PM/perl/bin/perl -I/tmp/deinstall2020-07-10_02-00-53PM/perl/lib -I/tmp/deinstall2020-07-10_02-00-53PM/crs/install /tmp/deinstall2020-07-10_02-00-53PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2020-07-10_02-00-53PM/response/deinstall_Ora11g_gridinfrahome1.rsp"
 
Run the following command as the root user or the administrator on node "rac1".
 
/tmp/deinstall2020-07-10_02-00-53PM/perl/bin/perl -I/tmp/deinstall2020-07-10_02-00-53PM/perl/lib -I/tmp/deinstall2020-07-10_02-00-53PM/crs/install /tmp/deinstall2020-07-10_02-00-53PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2020-07-10_02-00-53PM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode
 
Press Enter after you finish running the above commands
 
<----------------------------------------



97 번째 줄 메세지 확인

deconfig 명령을 모든 노드에서 실행해야하며 병렬로 실행가능함

모든 노드에서 실행이 완료된 후 현재 노드(1번 노드)에서 엔터를 입력해야함

2번노드에서 root 유저로 새로운 세션을 열어서 실행

1
/tmp/deinstall2020-07-10_02-00-53PM/perl/bin/perl -I/tmp/deinstall2020-07-10_02-00-53PM/perl/lib -I/tmp/deinstall2020-07-10_02-00-53PM/crs/install /tmp/deinstall2020-07-10_02-00-53PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2020-07-10_02-00-53PM/response/deinstall_Ora11g_gridinfrahome1.rsp"



1번노드에서 root 유저로 새로운 세션을 열어서 실행

1
/tmp/deinstall2020-07-10_02-00-53PM/perl/bin/perl -I/tmp/deinstall2020-07-10_02-00-53PM/perl/lib -I/tmp/deinstall2020-07-10_02-00-53PM/crs/install /tmp/deinstall2020-07-10_02-00-53PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2020-07-10_02-00-53PM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode

위의 명령 실행을 완료 한 후 엔터를 입력



2번노드 명령 실행 로그

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/tmp/deinstall2020-07-10_02-00-53PM/perl/bin/perl -I/tmp/deinstall2020-07-10_02-00-53PM/perl/lib -I/tmp/deinstall2020-07-10_02-00-53PM/crs/install /tmp/deinstall2020-07-10_02-00-53PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2020-07-10_02-00-53PM/response/deinstall_Ora11g_gridinfrahome1.rsp"
Using configuration parameter file: /tmp/deinstall2020-07-10_02-00-53PM/response/deinstall_Ora11g_gridinfrahome1.rsp
Network exists1/192.168.137.0/255.255.255.0/ens33, type static
VIP exists/rac1-vip/192.168.137.52/192.168.137.0/255.255.255.0/ens33, hosting node rac1
VIP exists/rac2-vip/192.168.137.53/192.168.137.0/255.255.255.0/ens33, hosting node rac2
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 'rac2'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac2'
CRS-2673: Attempting to stop 'ora.asm' on 'rac2'
CRS-2677: Stop of 'ora.asm' on 'rac2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac2' has completed
CRS-2677: Stop of 'ora.crsd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac2'
CRS-2673: Attempting to stop 'ora.crf' on 'rac2'
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-2677: Stop of 'ora.crf' on 'rac2' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'rac2' succeeded
CRS-2677: Stop of 'ora.evmd' on 'rac2' succeeded
CRS-2677: Stop of 'ora.ctssd' 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.cluster_interconnect.haip' 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.gipcd' on 'rac2'
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



1번노드 명령 실행 로그

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/tmp/deinstall2020-07-10_02-00-53PM/perl/bin/perl -I/tmp/deinstall2020-07-10_02-00-53PM/perl/lib -I/tmp/deinstall2020-07-10_02-00-53PM/crs/install /tmp/deinstall2020-07-10_02-00-53PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2020-07-10_02-00-53PM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode
Using configuration parameter file: /tmp/deinstall2020-07-10_02-00-53PM/response/deinstall_Ora11g_gridinfrahome1.rsp
Network exists1/192.168.137.0/255.255.255.0/ens33, type static
VIP exists/rac1-vip/192.168.137.52/192.168.137.0/255.255.255.0/ens33, hosting node rac1
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac1' has completed
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-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.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-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-4611: Successful deletion of voting disk +OCR_VOTE.
ASM de-configuration trace file location: /tmp/deinstall2020-07-10_02-00-53PM/logs/asmcadc_clean2020-07-10_02-07-58-PM.log
ASM Clean Configuration START
ASM Clean Configuration END
 
ASM with SID +ASM1 deleted successfully. Check /tmp/deinstall2020-07-10_02-00-53PM/logs/asmcadc_clean2020-07-10_02-07-58-PM.log for details.
 
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac1' succeeded
CRS-2677: Stop of 'ora.mdnsd' 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.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.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



2, 1번 노드 모두 실행 후 기존 노드(1번노드)로 와서 엔터 입력(22 번째 줄)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
$ ./deinstall
.
.
(중간 생략)
.
.
---------------------------------------->
 
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 "rac2".
 
/tmp/deinstall2020-07-10_02-00-53PM/perl/bin/perl -I/tmp/deinstall2020-07-10_02-00-53PM/perl/lib -I/tmp/deinstall2020-07-10_02-00-53PM/crs/install /tmp/deinstall2020-07-10_02-00-53PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2020-07-10_02-00-53PM/response/deinstall_Ora11g_gridinfrahome1.rsp"
 
Run the following command as the root user or the administrator on node "rac1".
 
/tmp/deinstall2020-07-10_02-00-53PM/perl/bin/perl -I/tmp/deinstall2020-07-10_02-00-53PM/perl/lib -I/tmp/deinstall2020-07-10_02-00-53PM/crs/install /tmp/deinstall2020-07-10_02-00-53PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2020-07-10_02-00-53PM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode
 
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
 
Detach Oracle home '/app/grid/product/11.2.0/grid' from the central inventory on the local node : Done
 
Delete directory '/app/grid/product/11.2.0/grid' on the local node : Done
 
Delete directory '/app/oraInventory' on the local node : Done
 
The Oracle Base directory '/app/oracle' will not be removed on local node. The directory is not empty.
 
Detach Oracle home '/app/grid/product/11.2.0/grid' from the central inventory on the remote nodes 'rac2' : Done
 
Delete directory '/app/grid/product/11.2.0/grid' on the remote nodes 'rac2' : Done
 
Delete directory '/app/oraInventory' on the remote nodes 'rac2' : Done
 
The Oracle Base directory '/app/oracle' will not be removed on node 'rac2'. The directory is not empty.
 
Oracle Universal Installer cleanup was successful.
 
Oracle Universal Installer clean END
 
 
## [START] Oracle install clean ##
 
Clean install operation removing temporary directory '/tmp/deinstall2020-07-10_02-00-53PM' on node 'rac1'
Clean install operation removing temporary directory '/tmp/deinstall2020-07-10_02-00-53PM' on node 'rac2'
 
## [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
Oracle Clusterware is stopped and successfully de-configured on node "rac1"
Oracle Clusterware is stopped and successfully de-configured on node "rac2"
Oracle Clusterware is stopped and de-configured successfully.
Successfully detached Oracle home '/app/grid/product/11.2.0/grid' from the central inventory on the local node.
Successfully deleted directory '/app/grid/product/11.2.0/grid' on the local node.
Successfully deleted directory '/app/oraInventory' on the local node.
Successfully detached Oracle home '/app/grid/product/11.2.0/grid' from the central inventory on the remote nodes 'rac2'.
Successfully deleted directory '/app/grid/product/11.2.0/grid' on the remote nodes 'rac2'.
Successfully deleted directory '/app/oraInventory' on the remote nodes 'rac2'.
Oracle Universal Installer cleanup was successful.
 
 
Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'rac1,rac2' at the end of the session.
 
Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'rac1,rac2' at the end of the session.
Run 'rm -rf /etc/oratab' as root on node(s) 'rac1' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
 
 
############# ORACLE DEINSTALL & DECONFIG TOOL END #############



GRID 삭제 시 75,77,78 번째 줄 내용에따라 관련 파일 삭제(양쪽노드)

1
2
3
4
$ exit
# rm -rf /etc/oraInst.loc
# rm -rf /opt/ORCLfmap
# rm -rf /etc/oratab



GRID 삭제 확인(양쪽노드)

1
2
$ ls $GRID_HOME
ls: cannot access /app/grid/product/11.2.0/grid: No such file or directory

$GRID_HOME 인 /app/grid/product/11.2.0/grid 디렉토리 자체가 없어진것을 확인 가능함



삭제완료



로그

추후 참고용 deinstall 로그 압축 및 업로드

1
2
3
# tar -cvf grid_del_rac_log.tar.gz /tmp/deinstall2020-07-10_02-00-53PM/logs
# ls
grid_del_rac_log.tar.gz


grid_del_rac_log.tar.gz



참조 :