ablog

不器用で落着きのない技術者のメモ

Oracle Client をアンインストールする

Oracle Client 11.2.0.4 on Oracle Linux 6.4 を deinstall ツールでアンインストールしてみた。
アンインストールすると ORACLE_BASE 以下が削除され、/etc/oratab や /usr/local/bin/coraenv, dbhome, oraenv は削除されない。

この章では、削除ツールを使用して、指定したOracleホームに関連するOracleソフトウェアおよび構成ファイルを完全に削除する方法を説明します。
deinstallコマンドは、Oracle Database Clientインストールを削除します。
Oracle Database 11gリリース2 (11.2)以降、削除ツールを使用して、Oracle Database、Oracle Clusterware、Oracle ASM、Oracle RACOracle Database Clientインストールに関連付けられているOracleホーム全体を削除することをお薦めします。個々の製品やコンポーネントの削除はサポートされません。

...

Oracleソフトウェア・インストールの所有者として削除ツールを実行することをお薦めします。削除ツールは、デフォルトでは、インストール所有者としてOracleホームのdeinstallディレクトリから実行します。
$ $ORACLE_HOME/deinstall/deinstall

Oracle Database Clientソフトウェアの削除

アンインストールする

$ $ORACLE_HOME/deinstall/deinstall
Please wait ...
Location of logs /tmp/deinstall2014-02-21_10-04-31AM/logs/

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


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


Checking for existence of the Oracle home location /home/oracle/app/oracle/product/11.2.0/client_1
Oracle Home type selected for deinstall is: Oracle Database Client
Oracle Base selected for deinstall is: /home/oracle/app/oracle
Checking for existence of central inventory location /home/oracle/app/oracle/product/11.2.0/oraInventory
Checking for sufficient temp space availability on node(s) : 'yazekats-linux'

## [END] Install check configuration ##


Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2014-02-21_10-04-31AM/logs/netdc_check2014-02-21_10-04-39-AM.log

Network Configuration check config END


######################### CHECK OPERATION END #########################


####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /home/oracle/app/oracle/product/11.2.0/client_1
Inventory Location where the Oracle home registered is: /home/oracle/app/oracle/product/11.2.0/oraInventory
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/tmp/deinstall2014-02-21_10-04-31AM/logs/deinstall_deconfig2014-02-21_10-04-39-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2014-02-21_10-04-31AM/logs/deinstall_deconfig2014-02-21_10-04-39-AM.err'

######################## CLEAN OPERATION START ########################

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2014-02-21_10-04-31AM/logs/netdc_clean2014-02-21_10-04-58-AM.log

De-configuring backup files...
Backup files de-configured successfully.

The network configuration has been cleaned up successfully.

Network Configuration clean config END

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

Detach Oracle home '/home/oracle/app/oracle/product/11.2.0/client_1' from the central inventory on the local node : Done

Delete directory '/home/oracle/app/oracle/product/11.2.0/client_1' on the local node : Done

Delete directory '/home/oracle/app/oracle/product/11.2.0/oraInventory' on the local node : Done

Delete directory '/home/oracle/app/oracle' on the local node : Done

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END


## [START] Oracle install clean ##

Clean install operation removing temporary directory '/tmp/deinstall2014-02-21_10-04-31AM' on node 'localhost'

## [END] Oracle install clean ##


######################### CLEAN OPERATION END #########################


####################### CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/home/oracle/app/oracle/product/11.2.0/client_1' from the central inventory on the local node.
Successfully deleted directory '/home/oracle/app/oracle/product/11.2.0/client_1' on the local node.
Successfully deleted directory '/home/oracle/app/oracle/product/11.2.0/oraInventory' on the local node.
Successfully deleted directory '/home/oracle/app/oracle' on the local node.
Oracle Universal Installer cleanup was successful.

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


############# ORACLE DEINSTALL & DECONFIG TOOL END #############
  • アンインストールされたことを確認する
$ ls /home/oracle/app/
oraInventory
$ ls -l /etc/oratab 
-rw-rw-r-- 1 oracle oinstall 741 Feb 20 22:38 /etc/oratab
$ ls -l /usr/local/bin

...

-rwxr-xr-x 1 oracle root   5778 Feb 20 22:38 coraenv
-rwxr-xr-x 1 oracle root   2415 Feb 20 22:38 dbhome
-rwxr-xr-x 1 oracle root   6183 Feb 20 22:38 oraenv