centOS 7 오라클 설치 방법

idontbelonghere·2025년 2월 13일

https://lemonandgrapefruit.tistory.com/150

이거대로 하면 되는데 처음에 하면 centOS 7이 업데이트 지원을 안해서 명령어가 안될거다.

https://mcc96.tistory.com/54

그럼 kakao yum repository를 설치

설정값들

루트 사용자인것을 주의

[root@DB19 ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.17.132 DB19.itclass.co.kr DB19

ora19c 사용자

[ora19c@DB19 ~]$ cat .bash_profile
\# .bash_profile

\# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

\# User specific environment and startup programs

PATH=\$PATH:\$HOME/.local/bin:$HOME/bin

export PATH

 oracle setup
export ORACLE_OWNER=ora19c
export ORACLE_BASE=/app/ora19c
export ORACLE_HOME=/app/ora19c/19c
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORACLE_SID=DB19
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_HOSTNAME=DB19.itclass.co.kr
export TMP=/tmp
export TMPDIR=$TMP
export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME:/usr/bin:.

ora19c 사용자

[ora19c@DB19 ~]$ env | grep ORACLE
ORACLE_OWNER=ora19c
ORACLE_SID=DB19
ORACLE_HOSTNAME=DB19.itclass.co.kr
ORACLE_BASE=/app/ora19c
ORACLE_HOME=/app/ora19c/19c

VMWare 처음 설치할 때 RAM 4048, 디스크 5기가 이상

스왑 메모리 설정

# 새 터미널 열기
su -

# 2GB 스왑 파일 생성
dd if=/dev/zero of=/swapfile bs=1G count=2

# 스왑 파일 권한 설정
chmod 600 /swapfile

# 스왑 영역 생성
mkswap /swapfile

# 스왑 활성화
swapon /swapfile

# 영구 설정
echo '/swapfile swap swap defaults 0 0' >> /etc/fstab

# 확인
free -h
swapon -s

아마 해야할거다.

profile
해킹을 잘하자

0개의 댓글