[Unit]
Description=Oracle Database 12c Startup/Shutdown Service
After=syslog.target network.target
[Service]
LimitMEMLOCK=infinity
LimitNOFILE=65535
Type=oneshot
RemainAfterExit=yes
User=oracle
Environment="ORACLE_HOME=/u02/app/oracle/product/12.2.0.1/dbhome_1"
ExecStart=/u02/app/oracle/product/12.2.0.1/dbhome_1/bin/dbstart $ORACLE_HOME
ExecStop=/u02/app/oracle/product/12.2.0.1/dbhome_1/bin/dbshut $ORACLE_HOME
[Install]
WantedBy=multi-user.target
Linux配置systemctl开机自动启动oracle 12c
于 2022-01-28 22:49:27 首次发布