[CentOS 7] oracle driver 21 설치

mimic·2026년 9월 22일

개요

레거시 서버와 연결해 Grafana에서 callback 데이터 모니터링을 구축하고 이 때 Oracle ODBC 드라이버 설치가 필요하다고 합니다.


설치

repo enable 여부 확인

cd /usr/local/src
BASE=https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient21/x86_64/getPackage
wget $BASE/oracle-instantclient-basic-21.23.0.0.0-1.x86_64.rpm
wget $BASE/oracle-instantclient-odbc-21.23.0.0.0-1.x86_64.rpm

잘 설치 됩니다.

yum repo 추가

cat > /etc/yum.repos.d/oracle-instantclient.repo <<'EOF'
[ol7_oracle_instantclient21]
name=Oracle Instant Client 21 for Oracle Linux 7 ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient21/$basearch/
gpgkey=https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7
gpgcheck=1
enabled=1
EOF

설치

yum install -y unixODBC libaio
yum install -y ./oracle-instantclient-*.rpm
profile
Raiju Hantu Goryo Obake

0개의 댓글