반응형

CentOS 8 Oracle 19c rpm 설치 

 

1. Oracle 19c RPM 다운

2. CentOS 8 라이브러리 추가

3. Oracle 19c RPM 설치 

4. Oracle 설정 

 

 

1. Oracle 19c RPM 다운로드

www.oracle.com/database/technologies/oracle-database-software-downloads.html

oracle-database-preinstall-19c 다운로드 링크 및 리눅스 다운로드 

https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

 

 

yum install -y https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

 

다운로드 후 리눅스 업로드 시 mkdir -p /usr/local/setting 후 /usr/local/setting 경로로 업로드

 

2. 오라클 설치 관련 라이브러리 추가 

### libnsl so so 파일을 읽을 수 있도록 동적 라이브러리 추가 

 

yum -y install libnsl

### GCC 라이브러리 

yum -y install compat-libstdc++-33.x86_64 binutils elfutils-libelf elfutils-libelf-devel

### GNU 라이브러리

yum -y install glibc glibc-common glibc-devel glibc-headers gcc gcc-c++ libaio-devel

### 비동기 I/O 관련 libaio 라이브러리

yum -y install libaio libgcc libstdc++ libstdc++ make sysstat unixODBC unixODBC-devel

 

3. 오라클 설치 (파일 2개) (/usr/local/setting 경로) 

  3.1  oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

        yum -y install oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

 

        설치 전 파일 검증

        sha256sum  oracle-database-ee-19c-1.0-1.x86_64.rpm

 

오라클 다운로드 페이지 (See All 한뒤 sha256sum 확인 가능)

 

 

  3.2  oracle-database-ee-19c-1.0-1.x86_64.rpm

        yum -y install oracle-database-ee-19c-1.0-1.x86_64.rpm

 

 

 

 

preinstall 설정 파일 생성

#cat /etc/security/limits.d/oracle-database-preinstall-19c.conf

oracle   soft   nofile    1024

oracle   hard   nofile    65536

oracle   soft   nproc    16384

oracle   hard   nproc    16384

oracle   soft   stack    10240

oracle   hard   stack    32768

oracle   hard   memlock    134217728

oracle   soft   memlock    134217728


계정 수동 생성

# groupadd dba

# useradd -g dba -G dba oracle

계정 자동 생성

# usermod -g dba -G dba oracle 

계정 패스워드 설정

# passwd oracle

 

selinux disable 설정

# vi /etc/selinux/config

SELINUX=disabled

 

임시 방화벽 사용 안함

systemctl stop firewalld

systemctl disable firewalld

 

Oracle DB 생성 및 구성

/etc/init.d/oracledb_ORCLCDB-19c configure

 

# vi /etc/sysconfig/oracledb_ORCLCDB-19c.conf

 

#This is a configuration file to setup the Oracle Database. 

#It is used when running '/etc/init.d/oracledb_ORCLCDB configure'.

#Please use this file to modify the default listener port and the

#Oracle data location.

 

# LISTENER_PORT: Database listener

LISTENER_PORT=1521

 

# ORACLE_DATA_LOCATION: Database oradata location

ORACLE_DATA_LOCATION=/opt/oracle/oradata

 

# EM_EXPRESS_PORT: Oracle EM Express listener

EM_EXPRESS_PORT=5500

 

 

oracle 계정 .bash_profile 설정

 

# su - oracle

$ vi .bash_profile 

export TMP=/tmp;

export ORACLE_BASE=/opt/oracle

export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1

export ORACLE_SID=ORCLCDB

export PATH=$PATH:$ORACLE_HOME/bin

alias ss='sqlplus / as sysdba'

 

bash_profile 적용

./.bash_profile

 

오라클 DB 접속 확인

sqlplus / as sysdba

 

 

+ Recent posts