OS환경 : Oracle Linux 7.6 (64bit)
DB 환경 : Oracle Database 19.7.0.0
방법 : Oracle Linux 7.6에 Oracle 19c 삭제(deinstall) 가이드
리스너 종료
1 2 3 4 5 6 7 8 | $ lsnrctl stop LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 27-JUN-2020 23:52:46 Copyright (c) 1991, 2019, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oel7)(PORT=1521))) The command completed successfully |
DB 먼저 삭제
dbca 실행
1 | $ dbca |
Delete database 선택
sys 유저 패스워드 입력
Next
삭제 대상 DB 파일 확인 후 Finish
삭제할건지 묻는 메세지 Yes
삭제 완료
dbca db 삭제 로그
oratrace.log_2020-06-28_12-15-11AM
오라클 엔진 삭제
deinstall 실행
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 | $ ./deinstall Checking for required files and bootstrapping ... Please wait ... Location of logs /app/oraInventory/logs/ ############ ORACLE DECONFIG TOOL START ############ ######################### DECONFIG CHECK OPERATION START ######################### ## [START] Install check configuration ## Checking for existence of the Oracle home location /app/oracle/product/19c Oracle Home type selected for deinstall is: Oracle Single Instance Database Oracle Base selected for deinstall is: /app/oracle Checking for existence of central inventory location /app/oraInventory ## [END] Install check configuration ## Network Configuration check config START Network de-configuration trace file location: /app/oraInventory/logs/netdc_check2020-06-28_12-22-25AM.log Specify all Single Instance listeners that are to be de-configured. Enter .(dot) to deselect all. [LISTENER]: [엔터] Network Configuration check config END Database Check Configuration START Database de-configuration trace file location: /app/oraInventory/logs/databasedc_check2020-06-28_12-22-25AM.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 ######################### DECONFIG CHECK OPERATION END ######################### ####################### DECONFIG CHECK OPERATION SUMMARY ####################### Oracle Home selected for deinstall is: /app/oracle/product/19c Inventory Location where the Oracle home registered is: /app/oraInventory Following Single Instance listener(s) will be de-configured: LISTENER Do you want to continue (y - yes, n - no)? [n]: y [Y] Y 입력시 삭제 시작됨 A log of this session will be written to: '/app/oraInventory/logs/deinstall_deconfig2020-06-28_12-22-23-AM.out' Any error messages from this session will be written to: '/app/oraInventory/logs/deinstall_deconfig2020-06-28_12-22-23-AM.err' ######################## DECONFIG CLEAN OPERATION START ######################## Database de-configuration trace file location: /app/oraInventory/logs/databasedc_clean2020-06-28_12-22-25AM.log Network Configuration clean config START Network de-configuration trace file location: /app/oraInventory/logs/netdc_clean2020-06-28_12-22-25AM.log De-configuring Single Instance listener(s): LISTENER De-configuring listener: LISTENER Stopping listener: LISTENER Warning: Failed to stop listener. Listener may not be running. Deleting listener: LISTENER Listener deleted successfully. Listener de-configured successfully. De-configuring backup files... Backup files de-configured successfully. The network configuration has been cleaned up successfully. Network Configuration clean config END ######################### DECONFIG CLEAN OPERATION END ######################### ####################### DECONFIG CLEAN OPERATION SUMMARY ####################### Following Single Instance listener(s) were de-configured successfully: LISTENER ####################################################################### ############# ORACLE DECONFIG TOOL END ############# Using properties file /tmp/deinstall2020-06-28_12-22-16AM/response/deinstall_2020-06-28_12-22-23-AM.rsp Location of logs /app/oraInventory/logs/ ############ ORACLE DEINSTALL TOOL START ############ ####################### DEINSTALL CHECK OPERATION SUMMARY ####################### A log of this session will be written to: '/app/oraInventory/logs/deinstall_deconfig2020-06-28_12-22-23-AM.out' Any error messages from this session will be written to: '/app/oraInventory/logs/deinstall_deconfig2020-06-28_12-22-23-AM.err' ######################## DEINSTALL CLEAN OPERATION START ######################## ## [START] Preparing for Deinstall ## Setting LOCAL_NODE to oel7 Setting CRS_HOME to false Setting oracle.installer.invPtrLoc to /tmp/deinstall2020-06-28_12-22-16AM/oraInst.loc Setting oracle.installer.local to false ## [END] Preparing for 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/oracle/product/19c' from the central inventory on the local node : Done Delete directory '/app/oracle/product/19c' 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/oracle/product/19client'. Oracle Universal Installer cleanup was successful. Oracle Universal Installer clean END ## [START] Oracle install clean ## ## [END] Oracle install clean ## ######################### DEINSTALL CLEAN OPERATION END ######################### ####################### DEINSTALL CLEAN OPERATION SUMMARY ####################### Successfully detached Oracle home '/app/oracle/product/19c' from the central inventory on the local node. Successfully deleted directory '/app/oracle/product/19c' on the local node. Oracle Universal Installer cleanup was successful. Run 'rm -r /opt/ORCLfmap' as root on node(s) 'oel7' at the end of the session. Review the permissions and contents of '/app/oracle' on nodes(s) 'oel7'. If there are no Oracle home(s) associated with '/app/oracle', manually delete '/app/oracle' and its contents. Oracle deinstall tool successfully cleaned up temporary directories. ####################################################################### ############# ORACLE DEINSTALL TOOL END ############# |
deinstall 완료
오라클 엔진 경로 확인
1 2 3 4 5 6 | $ cd $ORACLE_BASE/product $ ls -al total 12 drwxr-xr-x 4 oracle dba 33 Jun 27 23:58 . drwxr-xr-x 12 oracle dba 4096 Jun 27 23:54 .. drwxr-xr-x 57 oracle dba 4096 Jun 23 20:07 19client |
엔진 경로가 완벽하게 제거됨
(19client 디렉토리는 클라이언트 테스트용으로 만들어둔 폴더임)
DB와 엔진 모두 정상적으로 삭제됨
참조 :
'ORACLE > Install' 카테고리의 다른 글
Oracle Linux 7.4에 Oracle 11g R2 RAC 삭제 가이드 (0) | 2020.07.10 |
---|---|
Windows Server 2016에 Oracle 11g R2 설치 가이드 (14) | 2020.07.08 |
Oracle 19c Single OPatch Release Update 롤백 가이드 (0) | 2020.06.03 |
Redhat Linux 7.5에 Oracle 19c 설치시 compat-libstdc++-33-3.2.3 패키지 (0) | 2020.05.06 |
Oracle Linux 7.6에 Oracle 19c 설치 가이드 (19) | 2020.04.26 |