반응형

I 리눅스(Linux) CentOS 7 ─ Oracle 12c

 

Oracle VM VirtualBox

CentOS-7-x86_64-Minimal-1804.iso

Oracle JDK (jdk-8u251-linux-x64.tar.gz)

Oracle Database 12c Release 2 (12.2.0.1.0) for Linux x86-64

https://www.oracle.com/database/technologies/oracle12c-linux-12201-downloads.html

 

 

I CentOS 7 - Oracle 12c 자동실행 설정

1. 오라클 서비스 파일 생성

2. 오라클 자동실행 설정

 

 

1. 오라클 서비스 파일 생성

 

# cd /etc/systemd/system
# vim oracle-rdbms.service
 

 

 

# /etc/systemd/system/oracle-rdbms.service
# Invoking Oracle scripts to start/shutdown Instances defined in /etc/oratab
# and starts listener
 
[Unit]
Description = Oracle Database(s) and Listener
Requires = network.target
 
[Service]
Type=forking
Restart=no
ExecStart=/u01/app/oracle/product/12.2.0/dbhome_1/bin/dbstart /u01/app/oracle/product/12.2.0/dbhome_1
ExecStop=/u01/app/oracle/product/12.2.0/dbhome_1/bin/dbshut /u01/app/oracle/product/12.2.0/dbhome_1
User=oracle
 
[Install]
WantedBy=multi-user.target
 
 

 

 

# chmod 755 oracle-rdbms.service
 

 

 

 

2. 오라클 자동실행 설정

 

# cd /etc
# vim /etc/oratab
 

 

 

#orcl:/u01/app/oracle/product/12.2.0/dbhome_1:N
orcl:/u01/app/oracle/product/12.2.0/dbhome_1:Y
 

 

 

반응형