我正在运行 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)