Linux 下 自动启动oracle数据配置
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 ~]$
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12131609/viewspace-683442/
,如需转载,请注明出处,否则将追究法律责任。