Contents
see List작성일 2016. 02. 26.
[root@dlp ~]# vi /etc/sysconfig/dlp.oracledb
# create new : define environment variables
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
ORACLE_SID=dlp
# configure listener service
[root@dlp ~]# vi /usr/lib/systemd/system/[email protected]
# this is an example, modify for free
[Unit]
Description=oracle net listener
After=network.target
[Service]
Type=forking
EnvironmentFile=/etc/sysconfig/dlp.oracledb
ExecStart=/u01/app/oracle/product/12.1.0/dbhome_1/bin/lsnrctl start
ExecStop=/u01/app/oracle/product/12.1.0/dbhome_1/bin/lsnrctl stop
User=oracle
[Install]
WantedBy=multi-user.target
# configure database service
[root@dlp ~]# vi /usr/lib/systemd/system/[email protected]
# this is an example, modify for free
[Unit]
Description=oracle net listener
After=network.target lsnrctl.service
[Service]
Type=forking
EnvironmentFile=/etc/sysconfig/dlp.oracledb
ExecStart=/u01/app/oracle/product/12.1.0/dbhome_1/bin/dbstart /u01/app/oracle/product/12.1.0/dbhome_1
ExecStop=/u01/app/oracle/product/12.1.0/dbhome_1/bin/dbshut /u01/app/oracle/product/12.1.0/dbhome_1
User=oracle
[Install]
WantedBy=multi-user.target
[root@dlp ~]# systemctl daemon-reload
[root@dlp ~]# systemctl enable dlp@lsnrctl dlp@oracledb
os
| No | 작성일 | Title |
|---|---|---|
| 107 | 2014. 11. 06. | [ linux ] 리눅스 cpu 정보확인 |
| 85 | 2014. 10. 28. | [ linux] 리눅스 명령어 모음 |
| 38 | 2014. 09. 25. | [ apach ] 아파치 vhost 및 jkMount 설정 법 |
| 23 | 2014. 09. 25. | [linux] 리눅스 디렉토리 남은 용량 확인하기 |