Linux 下 自動啟動oracle資料配置說明

mahanso發表於2010-12-16
      要想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部落格 ” ,連結:http://blog.itpub.net/12272958/viewspace-681964/,如需轉載,請註明出處,否則將追究法律責任。

相關文章