Quantcast
Channel: Deiby Gomez's Activities
Viewing all articles
Browse latest Browse all 108

TFA - Upgrading your latest version to the latest version

$
0
0

In my previous article about TFA, I showed how to upgrade TFA with the binaries from Oracle Metalink, this allowed us to use many of the diagnostic tools directly from TFA. However, my friend Gleb Otochkin provided me a tip that can be useful for all of you,  what about if TFA is already in the latest version but that TFA was installed via PSU and not via the installer from Metalink? What will happen is that when you try to upgrade TFA you will receive the following message:

[root@rac1 grid]# ./installTFALite
TFA Installation Log will be written to File : /tmp/tfa_install_759_2016_05_27-03_43_19.log

Starting TFA installation

TFA Build Version: 121270 Build Date: 201603032146
Installed Build Version: 121270 Build Date: 201603032146

TFA is already running latest version. No need to patch.

So our installer that was dowloaded from Metalink is telling us that we don't need to upgrade TFA because TFA is already in the latest version. Yes, it is, in fact, however to have the latest version doesn't mean we have the TFA that includes all the diagnostic tools already deployed. So basically what we have to do is to install that latest version in order to upgrade it to the latest version [:)] In other words, we have to uninstall TFA that came via PSU and then install the TFA that was downloaded from Metalink, both are the same version (the latest) however they are from different sources. That is what we will do in the following steps: 

If we look in the "tfactl" command, we can see that we can use "toolstatus" option, which means that this TFA can handle all the diagnostic tool, but there is not tool deployed....

[root@rac1 grid]# tfactl toolstatus
.-----------------------------------.
|    External Support Tools         |
+------+--------------+-------------+
| Host |      Tool    |   Status    |
+------+--------------+-------------+
'------+--------------+-------------'
[root@rac1 grid]#

So we have to uninstall this TFA:

[root@rac1 bin]# ./tfactl uninstall

TFA will be Uninstalled on Node rac1:

Removing TFA from rac1 only
Please remove TFA locally on any other configured nodes

Notifying Other Nodes about TFA Uninstall...
TFA is not yet secured to run all commands
FAIL
Sleeping for 10 seconds...

Stopping TFA Support Tools...

Stopping TFA in rac1...

Shutting down TFA
oracle-tfa stop/waiting
. . . . .
Killing TFA running with pid 1476
. . .
Successfully shutdown TFA..

Deleting TFA support files on rac1:
Removing /u01/app/grid/tfa/rac1/database...
Removing /u01/app/grid/tfa/rac1/log...
Removing /u01/app/grid/tfa/rac1/output...
Removing /u01/app/grid/tfa/rac1...
Removing /u01/app/grid/tfa...
Removing /etc/rc.d/rc0.d/K17init.tfa
Removing /etc/rc.d/rc1.d/K17init.tfa
Removing /etc/rc.d/rc2.d/K17init.tfa
Removing /etc/rc.d/rc4.d/K17init.tfa
Removing /etc/rc.d/rc6.d/K17init.tfa
Removing /etc/init.d/init.tfa...
Removing /u01/app/12.1.0/grid/bin/tfactl...
Removing /u01/app/12.1.0/grid/tfa/bin...
Removing /u01/app/12.1.0/grid/tfa/rac1...

[root@rac1 bin]#

And then we proceed to install the same version of TFA, but using the binaries from Metalink: 

[root@rac1 grid]# ./installTFALite -local -tfabase /u01/app/12.1.0/grid/tfa -javahome /u01/app/12.1.0/grid/jdk/jre
TFA Installation Log will be written to File : /tmp/tfa_install_26070_2016_05_27-03_33_10.log

Starting TFA installation

Using JAVA_HOME : /u01/app/12.1.0/grid/jdk/jre

Running Auto Setup for TFA as user root...

Installing TFA now...

Discovering Nodes and Oracle resources

Checking whether CRS is up and running


List of nodes in cluster
1. rac1

Searching for running databases . . . . .

Checking Status of Oracle Software Stack - Clusterware, ASM, RDBMS

. . . . . . . . . . . . . . . .


TFA Will be Installed on rac1...

TFA will scan the following Directories
++++++++++++++++++++++++++++++++++++++++++++

.-------------------------------------------------------------------------.
| rac1 |
+--------------------------------------------------------------+----------+
| Trace Directory | Resource |
+--------------------------------------------------------------+----------+
| /u01/app/12.1.0/grid/cfgtoollogs | CFGTOOLS |
| /u01/app/12.1.0/grid/crf/db/rac1 | CRS |
| /u01/app/12.1.0/grid/crs/log | CRS |
| /u01/app/12.1.0/grid/css/log | CRS |
| /u01/app/12.1.0/grid/cv/log | CRS |
| /u01/app/12.1.0/grid/evm/admin/log | CRS |
| /u01/app/12.1.0/grid/evm/admin/logger | CRS |
| /u01/app/12.1.0/grid/evm/log | CRS |
| /u01/app/12.1.0/grid/install | INSTALL |
| /u01/app/12.1.0/grid/log | CRS |
| /u01/app/12.1.0/grid/network/log | CRS |
| /u01/app/12.1.0/grid/oc4j/j2ee/home/log | DBWLM |
| /u01/app/12.1.0/grid/opmn/logs | CRS |
| /u01/app/12.1.0/grid/racg/log | CRS |
| /u01/app/12.1.0/grid/rdbms/log | ASM |
| /u01/app/12.1.0/grid/rdbms/log | ASM |
| /u01/app/12.1.0/grid/scheduler/log | CRS |
| /u01/app/12.1.0/grid/srvm/log | CRS |
| /u01/app/grid/cfgtoollogs | CFGTOOLS |
| /u01/app/grid/crsdata/rac1/acfs | ACFS |
| /u01/app/grid/crsdata/rac1/afd | ASM |
| /u01/app/grid/crsdata/rac1/chad | CRS |
| /u01/app/grid/crsdata/rac1/core | CRS |
| /u01/app/grid/crsdata/rac1/crsconfig | CRS |
| /u01/app/grid/crsdata/rac1/crsdiag | CRS |
| /u01/app/grid/crsdata/rac1/cvu | CRS |
| /u01/app/grid/crsdata/rac1/evm | CRS |
| /u01/app/grid/crsdata/rac1/output | CRS |
| /u01/app/grid/crsdata/rac1/trace | CRS |
| /u01/app/grid/diag/asm/+asm/+ASM1/cdump | ASM |
| /u01/app/grid/diag/clients/user_grid/host_2190098445_82/cdum | DBCLIENT |
| /u01/app/grid/diag/clients/user_oracle/host_2190098445_82/cd | DBCLIENT |
| /u01/app/grid/diag/crs/rac1/crs/cdump | CRS |
| /u01/app/grid/diag/crs/rac1/crs/trace | CRS |
| /u01/app/grid/diag/rdbms/_mgmtdb/-MGMTDB/cdump | RDBMS |
| /u01/app/grid/diag/tnslsnr | TNS |
| /u01/app/grid/diag/tnslsnr/rac1/listener/cdump | TNS |
| /u01/app/grid/diag/tnslsnr/rac1/listener_scan1/cdump | TNS |
| /u01/app/grid/diag/tnslsnr/rac1/listener_scan2/cdump | TNS |
| /u01/app/grid/diag/tnslsnr/rac1/listener_scan3/cdump | TNS |
| /u01/app/oraInventory/ContentsXML | INSTALL |
| /u01/app/oraInventory/logs | INSTALL |
| /usr/tmp | ZDLRA |
'--------------------------------------------------------------+----------'


Installing TFA on rac1:
HOST: rac1 TFA_HOME: /u01/app/12.1.0/grid/tfa/rac1/tfa_home

.-------------------------------------------------------------------------.
| Host | Status of TFA | PID | Port | Version | Build ID |
+------+---------------+-------+------+------------+----------------------+
| rac1 | RUNNING | 27225 | 5000 | 12.1.2.7.0 | 12127020160303214632 |
'------+---------------+-------+------+------------+----------------------'

Running Inventory in All Nodes...

Enabling Access for Non-root Users on rac1...

Adding default users to TFA Access list...

Summary of TFA Installation:
.--------------------------------------------------------------.
| rac1                                                          |
+---------------------+----------------------------------------+
| Parameter           | Value                                                                           |
+---------------------+----------------------------------------+
| Install location    | /u01/app/12.1.0/grid/tfa/rac1/tfa_home |
| Repository location | /u01/app/grid/tfa/repository           |
| Repository usage    | 0 MB out of 1141 MB                    |
'---------------------+----------------------------------------'


TFA is successfully installed...


Usage : /u01/app/12.1.0/grid/bin/tfactl <command> [options]
<command> =
start Starts TFA
stop Stops TFA
enable Enable TFA Auto restart
disable Disable TFA Auto restart
print Print requested details
access Add or Remove or List TFA Users
purge Delete collections from TFA repository
directory Add or Remove or Modify directory in TFA
host Add or Remove host in TFA
diagcollect Collect logs from across nodes in cluster
collection Manage TFA Collections
analyze List events summary and search strings in alert logs.
set Turn ON/OFF or Modify various TFA features
toolstatus Prints the status of TFA Support Tools
run <tool> Run the desired support tool
start <tool> Starts the desired support tool
stop <tool> Stops the desired support tool
syncnodes Generate/Copy TFA Certificates
diagnosetfa Collect TFA Diagnostics
uninstall Uninstall TFA from this node

For help with a command: /u01/app/12.1.0/grid/bin/tfactl <command> -help

And that's it, now we can see that all the tools are already deployed, they came inside the binaries that we downloaded from Metalink:

[root@rac1 grid]# /u01/app/12.1.0/grid/bin/tfactl toolstatus
.-----------------------------------.
|      External Support Tools       |
+------+--------------+-------------+
| Host |     Tool     |   Status    |
+------+--------------+-------------+
| rac1 | alertsummary | DEPLOYED    |
| rac1 | exachk       | DEPLOYED    |
| rac1 | ls           | DEPLOYED    |
| rac1 | pstack       | DEPLOYED    |
| rac1 | orachk       | DEPLOYED    |
| rac1 | sqlt         | DEPLOYED    |
| rac1 | grep         | DEPLOYED    |
| rac1 | summary      | DEPLOYED    |
| rac1 | prw          | NOT RUNNING |
| rac1 | vi           | DEPLOYED    |
| rac1 | tail         | DEPLOYED    |
| rac1 | param        | DEPLOYED    |
| rac1 | dbglevel     | DEPLOYED    |
| rac1 | darda        | DEPLOYED    |
| rac1 | history      | DEPLOYED    | 
| rac1 | oratop       | DEPLOYED    |
| rac1 | oswbb        | RUNNING     |
| rac1 | changes      | DEPLOYED    |
| rac1 | events       | DEPLOYED    |
| rac1 | ps           | DEPLOYED    |
| rac1 | srdc         | DEPLOYED    |
'------+--------------+-------------'
[root@rac1 grid]#

 

Follow me:

      

 


Viewing all articles
Browse latest Browse all 108

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>