본문 바로가기
Oracle/운영

Autonomous Health Framework (AHF) 업그레이드 방법

by 취미툰 2023. 2. 7.
반응형

해당 방법은 Autonomous Health Framework (AHF) 업그레이드에 대한 방법입니다.

RAC 2개노드에 대한 자동업그레이드로 수행하였으며, -local 명령어를 사용하여 각 노드별로 각각 수행하였습니다.

 

 

AHF의 경우, 아래 SR번호에서 플랫폼 별 최신파일을 다운 받을 수 있습니다.

Autonomous Health Framework (AHF) - Including TFA and ORAchk/EXAchk (Doc ID 2550798.1)

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=171015183794203&parent=DOCUMENT&sourceId=2812632.1&id=2550798.1&_afrWindowMode=0&_adf.ctrl-state=vh8a31wla_229 

 

https://login.oracle.com:443/oam/server/obrareq.cgi?encquery%3DZd8GUQp7vOCiZCDN7wKHpznS6%2FC%2FWaMp70W4RSCrvv8pEd%2B64xyDF35oEVrRq4CcSciXmQheZefsOVM3n3VZrHxEid2g9fLrRYBV5FSc9OdanY2KYHK%2FW593qycIHkzXz7qpK8VbmWCfP%2BnBi%2Fe9to9XPQiPahh9WV%2FCLCj2NZ3h0Rng3ALJBGgoeHYtmyvlayxwSvQmznd%2FLTuVo4vSVinY5FoYIsLYLPZ%2BUuqY0cVuMS4IgwMLu93c%2FCs3Iul74fnWmfWRXxO1s8E6Xo%2Fs4gwSc2fJd7KwLNNn1limNmLF6bFjcMwUKwAqqNLLqH5nvIAFnv2tfA4aRpgA%2BZtSrS58hvNRiXH79fs3m27jPJsiwT0dMdtoOFwwLiUVhwODWy3ot%2BsfNMrhfwwjsEb7nijrl6rvvjasmppGTs%2Fx9AQMET0iZ4DZWS2bZBsoCzYhrfuDw5plbfqEhH1rucsnaSrQCb63L2v%2Bf6%2FeKlVM%2F%2FNTvnxT6AiSCStP2t1%2BiL6nNDwb5LkUHv2sD93Nrt2WA4U93RR3xV2BsB187VFfGVxDMJxpAJekxfMA4Ja5kq6xh3bVLpggCoXOTcoL7eIkRpv0mJgIacCK4BGweY4oI6VdiFS9C1FPjtYvV57oaVTv2Aakz8mYVgSd%2FytM8THJHOMdtYhyO6qOEjtsEFtEpQ7ruMN%2FBfac50ZWzTUXWrb2BLB7ZcxwEJVfX4sYxk%2B5AA%3D%3D%20agentid%3DcorpWebgates%20ver%3D1%20crmethod%3D2

 

login.oracle.com:443

 

모든 과정은 root유저에서 수행하였습니다.

1.

각 플랫폼별 파일 설치 후 서버에 업로드 합니다.

AHF-AIX-PPC64_v22.3.3.zip

 

2./opt/AHF를 만들고 압축을 풉니다.

# mkdir -p /opt/AHF

#unzip AHF-AIX-PPC64_v22.3.3.zip -d /opt/AHF
  inflating: README.txt
  inflating: ahf_setup
 extracting: ahf_setup.dat
  inflating: oracle-tfa.pub



# ls -al
total 1464776
drwxr-xr-x    2 oracle   dba             256 Feb  6 09:27 .
drwxr-xr-x    9 oracle   dba            4096 Feb  6 09:26 ..
-rwxrwxrwx    1 oracle   dba       372434627 Feb  6 09:23 AHF-AIX-PPC64_v22.3.3.zip
-rw-r--r--    1 oracle   dba            1525 Jan 18 06:07 README.txt
-r-xr-xr-x    1 oracle   dba       377508179 Jan 18 06:06 ahf_setup
-rw-r--r--    1 oracle   dba             384 Jan 18 06:06 ahf_setup.dat
-rw-r--r--    1 oracle   dba             625 Jan 18 06:07 oracle-tfa.pub

 

3.압축된 파일에 있는 ahf_setup을 수행합니다. (이미 설치가 되어있다면 자동으로 업그레이드를 수행합니다)

-local 명령어를 사용하여 각 노드별로 각각 수행합니다. 

(network가 연결되어있는 환경이면 제외하고 한 노드에서 수행하여도 무방합니다)

# ./ahf_setup -local

AHF Installer for Platform AIX Architecture PPC64

AHF Installation Log : /tmp/ahf_install_223300_10486050_2023_02_06-09_51_41.log

Starting Autonomous Health Framework (AHF) Installation

AHF Version: 22.3.3 Build Date: 202301162202

AHF is already installed at /opt/oracle.ahf

Installed AHF Version: 21.3.0 Build Date: 202110290347

Do you want to upgrade AHF [Y]|N : y <------upgrade 여부를 물음 y

Upgrading /opt/oracle.ahf

Shutting down AHF Services

Upgrading AHF Services

Encountered errors during AHF Upgrade. Please check ahf_install_223300_10486050_2023_02_06-09_51_41.log for more details.

Starting AHF Services
Running Inventory ...
Successfully added directory to TFA

Do you want AHF to store your My Oracle Support Credentials for Automatic Upload ? Y|[N] : n <---- Oracle support에 자동을 업로드할껀지? n 설정

AHF is successfully upgraded to latest version

.---------------------------------------------------------------.
| Host    | TFA Version | TFA Build ID         | Upgrade Status |
+---------+-------------+----------------------+----------------+
| dbarac1 |  22.3.3.0.0 | 22330020230116220213 | UPGRADED       |
| dbarac2 |  21.3.0.0.0 | 21300020211029034711 | NOT UPGRADED   |
'---------+-------------+----------------------+----------------'

AHF is successfully upgraded to latest version

Moving /tmp/ahf_install_223300_10486050_2023_02_06-09_51_41.log to /oracle/grid/base/oracle.ahf/data/dbarac1/diag/ahf/

 

4.2번노드도 동일하게 수행합니다.

 # scp AHF-AIX-PPC64_v22.3.3.zip dbarac2:/tmp/
                                                                                                                           100%  355MB  33.2MB/s   00:10


# ./ahf_setup -local

AHF Installer for Platform AIX Architecture PPC64

AHF Installation Log : /tmp/ahf_install_223300_26149144_2023_02_06-09_58_21.log

Starting Autonomous Health Framework (AHF) Installation

AHF Version: 22.3.3 Build Date: 202301162202

AHF is already installed at /opt/oracle.ahf

Installed AHF Version: 21.3.0 Build Date: 202110290347

Do you want to upgrade AHF [Y]|N : y

Upgrading /opt/oracle.ahf

Shutting down AHF Services

Upgrading AHF Services

Starting AHF Services
Running Inventory ...
Successfully added directory to TFA

Do you want AHF to store your My Oracle Support Credentials for Automatic Upload ? Y|[N] : n

AHF is successfully upgraded to latest version

.---------------------------------------------------------------.
| Host    | TFA Version | TFA Build ID         | Upgrade Status |
+---------+-------------+----------------------+----------------+
| dbarac2 |  22.3.3.0.0 | 22330020230116220213 | UPGRADED       |
| dbarac1 |  22.3.3.0.0 | 22330020230116220213 | UPGRADED       |
'---------+-------------+----------------------+----------------'

AHF is successfully upgraded to latest version

Moving /tmp/ahf_install_223300_26149144_2023_02_06-09_58_21.log to /oracle/grid/base/oracle.ahf/data/dbarac2/diag/ahf/

 

 

완료.

 

참고 : https://positivemh.tistory.com/607

 

오라클 11g R2 tfa(ahf) 설치 및 로그수집 가이드(SRDC)

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

positivemh.tistory.com

 

반응형

댓글