728x90
반응형
0.centOS7 설치
1. 리눅스 관리계정 및 그룹 생성
호스트명, IP : ora19c, 192.168.10.217
설치 계정 : ora19c (UID : 1900)
소속 그룹 : dba (GID : 1900)
홈 디렉토리 : /home/ora19c
$ORACLE_BASE : /app/ora19c
$ORACLE_HOME : /app/ora19c/19c
[root@ora19c ~]# groupadd -g 1900 dba
[root@ora19c ~]# useradd -g dba -u 1900 ora19c
[root@ora19c ~]# passwd ora19c
Changing password for user ora19c.
New UNIX password:
Retype new UNIX password:
[root@ora19c ~]# mkdir -p /app/ora19c/19c
[root@ora19c ~]# mkdir -p /app/oraInventory
[root@ora19c ~]# chown -R ora19c.dba /app/ora19c
[root@ora19c ~]# chown -R ora19c.dba /app/oraInventory
[root@ora12c ~]# chgrp -R dba /app
[root@ora19c ~]# chmod -R 775 /app
[root@ora19c ~]# ls -al /app
drwxr-xr-x 3 ora19c dba 20 2월 8 23:01 .
dr-xr-xr-x. 18 root root 235 2월 8 23:01 ..ITCLASS - 2 - B&A
drwxr-xr-x 2 ora19c dba 6 2월 8 23:01 ora19c
================================================================
2. 리눅스 설정
#호스트설정
[root@ora19c /]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
197.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.10.19 DB19.itclass.co.kr DB19
#selinux 사용정지
[ora19c@linux215 ~]$ cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled <<<이거
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@ora19c /]# ntsysv
firewalld.service #방화벽해제
3. 패키지설치
[root@ora19c ~]# yum -y install ksh
[root@ora19c ~]# yum -y install libaio-devel
[root@ora19c ~]# yum -y install compat-libcap1
[root@ora19c ~]# yum -y install compat-libstdc++-33
[root@ora19c ~]# yum -y install glibc-devel
[root@ora19c ~]# yum -y install libstdc++-devel
[root@ora19c ~]# yum -y install gcc-c++
[root@ora19c ~]# yum install -y https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracleITCLASS - 3 - B&A
-database-preinstall-19c-1.0-1.el7.x86_64.rpm
다운 받은 경우
[root@ora19c ~]# rpm -Uvh oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
4. Ora19c 계정 설정
[ora19c@ora19c ~]$ vi .bash_profile
.............
.............
# 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:.
5. 오라클설치
#은 root에서설치
$는 오라클에서 설치
#ftp로 설치파일 내려받기
#yum -y install ftp
# yum install -y vsftpd
# systemctl start vsftpd
ftp> cd /home/data/down/DB/DBMS
ftp> get LINUX.X64_193000_db_home.zip
#압축해제
================================================================
[ora19c@ora19c 19c]$ unzip LINUX.X64_193000_db_home.zip
================================================================
#인스톨
================================================================
[ora19c@ora19c 19c]$ ./runInstaller
================================================================
6. 설치
단일인스턴스
데스크톱클래스
위치 디렉토리는 건들지 말고 전역이름 DB19로
자동스크립트
설치완료
728x90
반응형
'리눅스' 카테고리의 다른 글
[Linux] Cent OS 7 설치방법 (+다운로드링크, 설정) (0) | 2022.11.16 |
---|---|
[Linux] 가장 쉽고 확실한 Oracle 설치방법 (+다운로드링크) (0) | 2022.11.15 |
[OS]윈도우와 유닉스 권한 비교 (0) | 2022.10.31 |
[리눅스] IP 변경하기 (1) | 2022.10.14 |