ITPub博客

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

Linux 下 自动启动oracle数据配置

原创 Linux操作系统 作者:ttboylb 时间:2011-01-07 15:37:59 0 删除 编辑

Linux 下 自动启动oracle数据配置

 

      要想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/12131609/viewspace-683442/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: 性能优化
请登录后发表评论 登录
全部评论

注册时间:2011-01-07

  • 博文量
    60
  • 访问量
    262898