ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Linux 下 自动启动oracle数据配置说明

Linux 下 自动启动oracle数据配置说明

原创 Linux操作系统 作者:mahanso 时间:2010-12-16 12:28:58 0 删除 编辑
      要想linux自动启动oracle是很容易的一件事情。只需要修改2个配置文件即可,操作如下:
1、在linux下用root/oracle用户登陆系统,修改/etc/oratab文件

         [root@mahanso ~]$ more /etc/oratab
数据库实例名:/opt/oracle/product/10g/db:Y
 [root@mahanso ~]$

2、在linux下用root用户登陆系统,修改/etc/rc.d/rc.local文件


[root@mahanso ~]$ more /etc/rc.d/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 'lsnrctl start'
su - oracle -c 'dbstart'
 [root@mahanso ~]$



init  6 重启服务器

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12272958/viewspace-681964/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-10-18

  • 博文量
    160
  • 访问量
    641027