프린트 하기

OS환경 : Oracle Linux 7.6 (64bit)

 

DB 환경 : Oracle Database 19.6.0.0

 

에러 : AHF-00014: AHF Location ~/ahf/oracle.ahf is not owned by root in directory hierarchy

root 유저로 ahf 설치 시 발생하는 메세지

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# cd /ORA19/app/oracle/ahf/
# ls AHF-LINUX_v21.1.1.zip 
AHF-LINUX_v21.1.1.zip
# unzip AHF-LINUX_v21.1.1.zip 
Archive:  AHF-LINUX_v21.1.1.zip
  inflating: README.txt              
  inflating: ahf_setup               
 extracting: ahf_setup.dat           
  inflating: oracle-tfa.pub 
# ./ahf_setup -ahf_loc /ORA19/app/oracle/ahf/
AHF Installer for Platform Linux Architecture x86_64
 
AHF Installation Log : /tmp/ahf_install_211100_9956_2021_08_15-09_48_40.log
 
Starting Autonomous Health Framework (AHF) Installation
 
AHF Version: 21.1.1 Build Date: 202104230128
 
AHF Location : /ORA19/app/oracle/ahf/oracle.ahf
 
[ERROR] : AHF-00014: AHF Location /ORA19/app/oracle/ahf/oracle.ahf is not owned by root in directory hierarchy

 

 

해결 방법 : ahf 설치 경로 전체를 root 소유인 경로로 변경

root 소유인 경로 생성 후 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# mkdir -/root/ahf
# cd /ORA19/app/oracle/ahf/
# ./ahf_setup -ahf_loc /root/ahf
 
AHF Installer for Platform Linux Architecture x86_64
 
AHF Installation Log : /tmp/ahf_install_211100_11048_2021_08_15-09_52_12.log
 
Starting Autonomous Health Framework (AHF) Installation
 
AHF Version: 21.1.1 Build Date: 202104230128
 
AHF Location : /root/ahf/oracle.ahf
 
AHF Data Directory stores diagnostic collections and metadata.
AHF Data Directory requires at least 5GB (Recommended 10GB) of free space.
 
Choose Data Directory from below options : 
 
1. /ORA19/app/oracle [Free Space : 4456 MB]
2. /root/ahf/oracle.ahf [Free Space : 4456 MB]
3. Enter a different Location
 
Choose Option [1 - 3] : 1 [1번 입력]
 
AHF Data Directory : /ORA19/app/oracle/oracle.ahf/data
 
Do you want to add AHF Notification Email IDs ? [Y]|N : N  [N 입력]
 
AHF will also be installed/upgraded on these Cluster Nodes :
 
1. oel19db2
 
The AHF Location and AHF Data Directory must exist on the above nodes
AHF Location : /root/ahf/oracle.ahf
AHF Data Directory : /ORA19/app/oracle/oracle.ahf/data
 
Do you want to install/upgrade AHF on Cluster Nodes ? [Y]|N : Y [Y 입력]
 
Extracting AHF to /root/ahf/oracle.ahf
 
Configuring TFA Services
 
Discovering Nodes and Oracle Resources
 
Not generating certificates as GI discovered
 
Starting TFA Services
Created symlink from /etc/systemd/system/multi-user.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.
Created symlink from /etc/systemd/system/graphical.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.
 
.-----------------------------------------------------------------------------.
| Host     | Status of TFA | PID   | Port | Version    | Build ID             |
+----------+---------------+-------+------+------------+----------------------+
| oel19db1 | RUNNING       | 12438 | 5000 | 21.1.1.0.0 | 21110020210423012809 |
'----------+---------------+-------+------+------------+----------------------'
 
Running TFA Inventory...
 
Adding default users to TFA Access list...
 
.-------------------------------------------------------------------.
|                    Summary of AHF Configuration                   |
+-----------------+-------------------------------------------------+
| Parameter       | Value                                           |
+-----------------+-------------------------------------------------+
| AHF Location    | /root/ahf/oracle.ahf                            |
| TFA Location    | /root/ahf/oracle.ahf/tfa                        |
| Orachk Location | /root/ahf/oracle.ahf/orachk                     |
| Data Directory  | /ORA19/app/oracle/oracle.ahf/data               |
| Repository      | /ORA19/app/oracle/oracle.ahf/data/repository    |
| Diag Directory  | /ORA19/app/oracle/oracle.ahf/data/oel19db1/diag |
'-----------------+-------------------------------------------------'
 
 
Starting orachk scheduler from AHF ...
 
AHF install completed on oel19db1
 
Installing AHF on Remote Nodes :
 
AHF will be installed on oel19db2, Please wait.
 
AHF will prompt twice to install/upgrade per Remote Node. So total 2 prompts
 
Do you want to continue Y|[N] : Y [Y 입력]
 
AHF will continue with Installing on remote nodes
 
Installing AHF on oel19db2 : 
 
[oel19db2] Running AHF Installer
root@oel19db2''s password:  [2번노드 root 패스워드 입력]
 
AHF binaries are available in /root/ahf/oracle.ahf/bin
 
AHF is successfully installed
 
Moving /tmp/ahf_install_211100_11048_2021_08_15-09_52_12.log to /ORA19/app/oracle/oracle.ahf/data/oel19db1/diag/ahf/

정상적으로 설치됨

 

 

원인 : root 유저로 ahf를 설치하는 경우 전체 경로가 root 소유여야함

root 유저로 ahf를 설치하는 경우 ahf 설치 전체 경로가 root 소유여야함

oracle 유저 소유인 /oracle/app/oracle/ 경로에

root 유저 소유인 ahf 경로를 만들어도 위와같이 동일한 에러가 발생함

root 유저로 mkdir -p /root/ahf 와 같이 경로 전체가 root 소유여야만 제대로 설치가됨

 

 

참조 : https://positivemh.tistory.com/747

 

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

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

positivemh.tistory.com

2616523.1