1. 停止实例
SQL> shutdown immediate
2. 停止监听
$ lsnrctl stop
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 27-SEP-2018 10:17:43
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=kingdee-testing.jcloud.local)(PORT=1521)))
The command completed successfully
$ lsnrctl status
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 27-SEP-2018 10:17:47
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=kingdee-testing.jcloud.local)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 2: No such file or directory
3. 使用deinstall工具删除安装的Oracle软件的可执行文件和配置文件
$ /u01/app/oracle/product/12.2.0/db_1/deinstall/deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/app/oraInventory/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/oracle/product/12.2.0/db_1
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2018-09-27_10-34-22-AM.log
Specify all Single Instance listeners that are to be de-configured. Enter .(d