码迷,mamicode.com
首页 > 数据库 > 详细

Linux os下实现 随os启动而启动oracle database以及listener

时间:2015-03-06 19:10:08      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:

 

[oracle@hvrhub hub]$ cat /etc/oratab
#

 

# This file is used by ORACLE utilities.  It is created by root.sh
# and updated by either Database Configuration Assistant while creating
# a database or ASM Configuration Assistant while creating ASM instance.

# A colon, ':', is used as the field terminator.  A new line terminates
# the entry.  Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
#   $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively.  The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
hub:/u01/app/oracle/product/11.2.0/dbhome_1:Y


 

[oracle@hvrhub hub]$ cat /etc/rc.local 
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

su - oracle -c 'dbstart'
su - oracle -c 'lsnrctl start'
[oracle@hvrhub hub]$ 


 

 

Linux os下实现 随os启动而启动oracle database以及listener

标签:

原文地址:http://blog.csdn.net/msdnchina/article/details/44103045

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!