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 |
|---|---|---|
| 2034 | 2025. 11. 30. | Linux 명령어 치트시트 - 자주 쓰는 100가지 |
| 1744 | 2021. 05. 18. | [ window ] ssd,하드디스크 복원,복구 불가하게 삭제하기 |
| 1425 | 2018. 12. 07. | [ centos ] ftp 자동전송 스크립트 |
| 1424 | 2018. 12. 06. | [ centos ] sshpass scp 로 다른포트 파일 전송 |
| 1423 | 2018. 12. 06. | [ centos , oracle ] 오라클 자동으로 백업하기 |
| 1422 | 2018. 12. 06. | [ centos ] CurlFtpFs 설치 |
| 1161 | 2016. 11. 11. | [ centos , linux ] java.net.UnknownHostException 가 일어나거나 ping 을 못찍거나.. 해결법 |
| 1138 | 2016. 10. 18. | [ tomcat ] ssl 설치 |
| 1134 | 2016. 10. 15. | [ Centos 7 ] mysql install and setup (mysql 설치및 설정) |
| 356 | 2016. 03. 26. | [ centos ] hp microserver gen8 raid setup |