Home > Database > Mysql Tutorial > Oracle 10g配置dbstart实现开机自启动

Oracle 10g配置dbstart实现开机自启动

WBOY
Release: 2016-06-07 17:09:54
Original
866 people have browsed it

按照网上搜寻到的Oracle 10g配置dbstart实现开机自启动步骤做了一遍,启动成功,记录如下:1. 修改dbstart脚本:$ vi $ORACLE_HO

按照网上搜寻到的Oracle 10g配置dbstart实现开机自启动步骤做了一遍,启动成功,记录如下:

1. 修改dbstart脚本:
$ vi $ORACLE_HOME/bin/dbstart
#ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle
ORACLE_HOME_LISTNER=$ORACLE_HOME
2. 修改/etc/oratab为如下格式:
$ vi /etc/oratab
SID:$ORACLE_HOME:Y

注:上述SID和$ORACLE_HOME要换成真实内容,例如:

orcl:/opt/app/oracle/product/10.1.0/db_1:Y

3. 修改/etc/rc.d/rc.local实现自启动
# vi /etc/rc.d/rc.local
su - oracle -c "$ORACLE_HOME/bin/dbstart"

 注:上述$ORACLE_HOME同样要换成真实内容,,例如:

su - oracle -c "/opt/app/oracle/product/10.1.0/db_1/bin/dbstart"

4. dbshut不用修改,可直接使用,关闭数据库,但不会关闭监听器,可以用命令lsnrctl stop关闭。

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template