프린트 하기

OS환경 : Oracle Linux 8.1 (64bit)

 

DB 환경 : Oracle Database 19.3.0.0

 

에러 : AHF-00074: Required Perl Modules not found :  Net::Ping

ahf 설치시 발생하는 에러 메세지

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# unzip AHF-LINUX_v24.2.0.zip
Archive:  AHF-LINUX_v24.2.0.zip
  inflating: ahf_setup
 extracting: ahf_setup.dat
  inflating: README.txt
  inflating: oracle-tfa.pub
# ls -l
total 853080
-rw-r--r-- 1 root root 424820183 Mar 21 16:31 AHF-LINUX_v24.2.0.zip
-rwx------ 1 root root 448718192 Feb 29 14:28 ahf_setup
-rw------- 1 root root       384 Feb 29 14:28 ahf_setup.dat
-r-------- 1 root root       625 Feb 29 14:29 oracle-tfa.pub
-r-xr-x--- 1 root root      1537 Feb 29 14:29 README.txt
 
# ./ahf_setup
 
AHF Installer for Platform Linux Architecture x86_64
 
AHF Installation Log : /tmp/ahf_install_242000_4409_2024_03_21-16_32_30.log
 
Starting Autonomous Health Framework (AHF) Installation
 
AHF Version: 24.2.0 Build Date: 202402281810
 
PERL : /bin/perl
 
[ERROR] : AHF-00074: Required Perl Modules not found :  Net::Ping

 

 

해결 방법 : perl 경로 설정 후 설치 재시도

perl 위치 확인

1
2
# which perl
/usr/bin/perl

기존에는 이 경로의 perl을 이용했었음

 

 

perlhome 을 oracle home 이나 grid home 으로 잡아준 뒤 실행

1
2
3
4
5
6
7
8
9
10
11
12
13
# ./ahf_setup -perlhome /ORA19/app/oracle/product/19.0.0/db_1/perl
 
AHF Installer for Platform Linux Architecture x86_64
 
AHF Installation Log : /tmp/ahf_install_242000_5184_2024_03_21-16_37_08.log
 
Starting Autonomous Health Framework (AHF) Installation
 
AHF Version: 24.2.0 Build Date: 202402281810
 
PERL : /ORA19/app/oracle/product/19.0.0/db_1/perl/bin/perl
 
[ERROR] : AHF-00026: Perl is not owned by root.  AHF Requires Perl to be root owned for AHF Installations as the root user.

oracle home/perl 으로 잡아준 경우 AHF-00026 에러가 발생함

 

 

이 경우 오라클 home 의 perl 폴더를 /opt/perl 로 복제 및 권한 부여해준 뒤 ahf을 설치해야함

1
2
3
ex) cp -pR <ORACLE_HOME>/perl /opt/perl
# cp -pR /ORA19/app/oracle/product/19.0.0/db_1/perl /opt/perl
# chown -R root:oinstall /opt/perl

 

 

ahf 설치

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# mkdir -/opt/oracle.ahf.data
# ./ahf_setup -perlhome /opt/perl/
 
AHF Installer for Platform Linux Architecture x86_64
 
AHF Installation Log : /tmp/ahf_install_242000_6780_2024_03_21-16_44_49.log
 
Starting Autonomous Health Framework (AHF) Installation
 
AHF Version: 24.2.0 Build Date: 202402281810
 
Default AHF Location : /opt/oracle.ahf
 
Do you want to install AHF at [/opt/oracle.ahf] ? [Y]|N : y
 
AHF Location : /opt/oracle.ahf
 
AHF Data Directory stores diagnostic collections and metadata.
AHF Data Directory requires at least 5GB (Recommended 10GB) of free space.
 
Please Enter AHF Data Directory : /opt/oracle.ahf.data
 
AHF Data Directory : /opt/oracle.ahf.data/oracle.ahf/data
 
Do you want to add AHF Notification Email IDs ? [Y]|N : n
 
Extracting AHF to /opt/oracle.ahf
 
Setting up AHF CLI and SDK
 
Configuring TFA Services
 
Discovering Nodes and Oracle Resources
 
Successfully generated certificates.
 
Starting TFA Services
Created symlink /etc/systemd/system/multi-user.target.wants/oracle-tfa.service -> /etc/systemd/system/oracle-tfa.service.
Created symlink /etc/systemd/system/graphical.target.wants/oracle-tfa.service -> /etc/systemd/system/oracle-tfa.service.
 
.---------------------------------------------------------------------------.
| Host  | Status of TFA | PID  | Port  | Version    | Build ID              |
+-------+---------------+------+-------+------------+-----------------------+
| ora19 | RUNNING       | 8691 | 19629 | 24.2.0.0.0 | 240200020240228181054 |
'-------+---------------+------+-------+------------+-----------------------'
 
Running TFA Inventory...
 
Adding default users to TFA Access list...
 
.-------------------------------------------------------------------.
|                    Summary of AHF Configuration                   |
+-----------------+-------------------------------------------------+
| Parameter       | Value                                           |
+-----------------+-------------------------------------------------+
| AHF Location    | /opt/oracle.ahf                                 |
| TFA Location    | /opt/oracle.ahf/tfa                             |
| Orachk Location | /opt/oracle.ahf/orachk                          |
| Data Directory  | /opt/oracle.ahf.data/oracle.ahf/data            |
| Repository      | /opt/oracle.ahf.data/oracle.ahf/data/repository |
| Diag Directory  | /opt/oracle.ahf.data/oracle.ahf/data/ora19/diag |
'-----------------+-------------------------------------------------'
 
Starting ORAchk Scheduler from AHF
 
AHF binaries are available in /opt/oracle.ahf/bin
 
AHF is successfully Installed
 
Do you want AHF to store your My Oracle Support Credentials for Automatic Upload ? Y|[N] : n
 
Moving /tmp/ahf_install_242000_6780_2024_03_21-16_44_49.log to /opt/oracle.ahf.data/oracle.ahf/data/ora19/diag/ahf/

정상 설치됨

 

 

원인 : perl의 버전 문제같아 보임

perl의 버전 문제같아 보임

 

 

참조 : 

2766279.1, 2884071.1
https://positivemh.tistory.com/747

 

오라클 19c ahf(tfa) 설치 및 로그수집 가이드(SRDC)

OS환경 : Oracle Linux 7.6 (64bit) DB 환경 : Oracle Database 19.10.0.0 방법 : 오라클 19c ahf(tfa) 설치 및 로그수집 가이드(SRDC) TFA 란? Oracle Support는 데이터 수집을 위해 TFA (Trace File Analyzer) 수집기를 사용하는 것

positivemh.tistory.com

https://positivemh.tistory.com/791

 

오라클 19c ahf(tfa) 업그레이드 가이드

OS환경 : Oracle Linux 8.4 (64bit) DB 환경 : Oracle Database 19.12.0.0 RAC 방법 : 오라클 19c ahf(tfa) 업그레이드 가이드 RAC 로 DB 구성시 자동으로 tfa가 설치됨 이 버전을 새 버전으로 업그레이드(패치) 하는 방법

positivemh.tistory.com