Monday, 6 January 2020

TFA Installation


  • Verify current TFA version
  • Remove old version of TFA
  • Copy the required files
  • Install Java
  • Install TFA
  • Check Status
  • Change TFA Logging
  • Repeat for all nodes
Upgrade to the latest TFA version to avoid OS findings on port 5000.
TFA collecter-TFA with Database SupportTools Bundle(Doc ID 1513912.1)

Verify current TFA version

As grid

. oraenv(Setup for ASM)

tfactl print version

Example Output:

TFA Version:12.1.2.7.0

If version is lesss that  18.1.1 . Upgrade is required

Remove Old Version of TFA

As root. Determine the owner of TFA.

ls -lt $ORACLE_HOME/tfa/`hostname`

As the current owner of TFA(grid or root)

. oraenv(set to ASM)

cd ${ORACLE_HOME}/tfa/`hostname -s`/tfa_home/bin

./uninstalltfa.sh -local -silent

Copy the required files

These instructions assume the files are copied to /oraworkspace/software

  • jre-8ul6l-linux-x64.tar.gz(Java runtime environment)
  • TFA-LINUX_v18.1.1.zip(TFA)
As grid

rm -fr /oraworkspace/software/tfa
mkdir /oraworkspace/software/tfa

cd /oraworkspace/software/tfa

wget http://oradbn01/pub/oracle/linux/TFA/jre-8ul6l-linux-x64.tar.gz

wget http://oradbn01/pub/oracle/linux/TFA/TFA-LINUX_v18.1.1.zip

Install JAVA

As root

chmod 775 /oratools

As grid

cd /oratools

tar -xvf /oraworkspace/software/tfa/jre-8ul6l-linux-x64.tar.gz

Install TFA 

As grid

cd /oraworkspace/software/tfa

unzip TFA-LINUX_v18.1.1.zip

As root

mkdir /oratools/tfa
./installTFA-LINUX -tfabase /oratools/tfa -javahome /oratools/jre1.8.0_161 -local

Check Status

As root

. oraenv(Setup for ASM)

tfactl print version


Example output

#tfactl print status

.---------------------------------------------------------------------------------------.
| Host    | Status of TFA | PID   | Version    | Build ID             | Inventory Staus |
+---------+---------------+-------+------------+-----------------------+----------------+
| oradb1  | RUNNING       | 90585 | 18.1.1.0.0 | 18110020180201015951 | RUNNING         |
'---------------------------------------------------------------------------------------'

Change TFA logging 

Proceed with this setup only after Inventory status is "COMPLETE" with error if any other value (eg RUNNING)

As root create following directory on all nodes

. oraenv(Set to ASM)
mkdir /oratrace/tfalogs
tfactl set repositorydir=/oratrace/tfalogs

Example output:

tfactl set repositorydir=/oratrace/tfalogs

The minimum recommended repository size is 10 GB.

Do you wish to continue with current repository size ?[Y/y/N/n]Y
Successfully changed repository .

.-----------------------------------------------------------.
| Repository Parameter          | Value                     |
+-----------------------------------------------------------+
| Old Location                  | /ortools/tfa/repository   |
| New Location                  | /oratrace/tfalogs         |
| Current Maximum Size (MB)     | 3566                      |
| Current Size (MB)             | 0                         |
| Staus                         | OPEN                      |
'-----------------------------------------------------------'

Validate the Repository Directory Change

As root

.-----------------------------------------------------------.
|                          oradb01                          |
+------------------------------+----------------------------+
| Location                     | /oratrace/logs             |
| Maximum Size(MB)             | 3566                       |
| Current Size(MB)             | 0                          |
| Free Size(MB)                | 3566                       |
|Staus                         | OPEN                       |
'------------------------------+----------------------------'   

Repeat for all nodes
            


For RAC, repeat the above steps on all nodes of the RAC (Copy Files,Install JAVA, Install TFA,Check Status, Change TFA Logging)

No comments:

Post a Comment