小编use*_*409的帖子

可以使用 init.d 脚本启动服务,但是执行服务 <SERVICE_NAME> 启动不起作用

我正在运行 CentOS 6,我试图让我的 Oracle 数据库在启动时运行。我一直在执行以下步骤:

http://www.oracle-base.com/articles/linux/automating-database-startup-and-shutdown-on-linux.php(Oracle 11gR2 部分位于底部)

我创建了这个脚本并将其保存为 /etc/init.d/dbora:

#!/bin/bash
# chkconfig: 345 99 10
# description: Oracle auto start-stop script.
# 
# Set ORA_OWNER to the user id of the owner of the
# Oracle database software.

ORA_OWNER=oracle

case "$1" in
    'start')
    # Start the Oracle databases:
    # The following command assumes that the oracle login
    # will not prompt the user for any values
    # Remove "&" if you don't want startup as a background process.
    su …
Run Code Online (Sandbox Code Playgroud)

startup scripting centos

3
推荐指数
1
解决办法
8068
查看次数

标签 统计

centos ×1

scripting ×1

startup ×1