De-Installing TFA in Oracle Cloud using dbaascli
In the previous article[click here], we did look at how we install TFA on compute node in Oracle Cloud environment using dbaascli command line utility.
Here in this article, we will be de-installing TFA from Oracle cloud compute node using dbaascli command line utility.
First connect to compute node using opc user and then switch to root user. Check the current status of TFA.
[root@RAJDB121 opc]# ps -ef | grep tfa
root 2018 1 0 Feb03 ? 00:00:28 /bin/sh /etc/init.d/init.tfa run
root 14288 1 0 Feb03 ? 00:12:24 /var/opt/oracle/tfa/rajdb121/tfa_home/jre/bin/java -Xms128m -Xmx256m oracle.rat.tfa.TFAMain /var/opt/oracle/tfa/rajdb121/tfa_home
oracle 28260 1 0 18:54 ? 00:00:00 /usr/bin/perl /var/opt/oracle/misc/dbcsmonitor.pl /var/opt/oracle/tfa/rajdb121/tfa_home /var/opt/oracle/tfa/repository/suptools/rajdb121/dbcsmon /var/opt/oracle/tfa/repository/suptools/rajdb121/dbcsmon/oracle
root 28955 14288 0 18:59 ? 00:00:00 /bin/sh /var/opt/oracle/tfa/rajdb121/tfa_home/bin/tfactl rediscover -mode full -auto
root 28969 28955 35 18:59 ? 00:00:00 /u01/app/oracle/product/12.1.0/dbhome_1/perl/bin/perl /var/opt/oracle/tfa/rajdb121/tfa_home/bin/tfactl.pl rediscover -mode full -auto
root 29035 28800 0 18:59 pts/1 00:00:00 grep tfa
[root@RAJDB121 opc]# cd /var/opt/oracle/tfa/rajdb121/tfa_home/bin
[root@RAJDB121 bin]# ./tfactl status
.-------------------------------------------------------------------------------------------------.
| Host | Status of TFA | PID | Port | Version | Build ID | Inventory Status |
+----------+---------------+-------+-------+------------+----------------------+------------------+
| rajdb121 | RUNNING | 14288 | 59017 | 12.2.1.1.1 | 12211120170612181835 | COMPLETE |
'----------+---------------+-------+-------+------------+----------------------+------------------'
[root@RAJDB121 bin]#
Now, invoke dbaascli command line utility and run the tfa uninstall sub-command of dbaascli to de-install TFA from the compute node on which you are logged in.
[root@RAJDB121 opc]# dbaascli
DBAAS CLI version 1.0.0
DBAAS>tfa uninstall
Executing command tfa uninstall
Deinstalling TFA
Removing TFA repository
Successfully uninstalled TFA
DBAAS>
Once, TFA uninstall is done then exit from dbaascli utility, you would see a shell error as highlighted below(if your current working directory were TFA HOME before invoking dbaascli utility), that means when you uninstall TFA from the compute node then that also removes all related binaries and folders from the compute node. TFA HOME gets dropped.
DBAAS>q
Exiting Command Line Interface
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[root@RAJDB121 bin]# pwd
/var/opt/oracle/tfa/rajdb121/tfa_home/bin
[root@RAJDB121 bin]# ls
[root@RAJDB121 ~]# cd /var/opt/oracle/tfa/rajdb121/tfa_home
bash: cd: /var/opt/oracle/tfa/rajdb121/tfa_home: No such file or directory
No comments:
Post a Comment