請教一個問題.

[复制链接]
查看11 | 回复5 | 2010-3-1 11:08:33 | 显示全部楼层 |阅读模式
[root@dbserver02 rc.d]# cat 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
/sbin/service crond start
su - oracle 'lsnrctl start'
su - oracle 'dbstart'

[root@dbserver02 rc.d]#
我想服務器重新啟動時候,lisnrctl 能自動啟動,但是我實驗
了一下,數據庫可以啟動.但lisnrctl 不能啟動,報錯誤是,找不到目錄
這是啥問題?
回复

使用道具 举报

千问 | 2010-3-1 11:08:33 | 显示全部楼层
需要设置ORACLE_HOME等相关环境变量..
回复

使用道具 举报

千问 | 2010-3-1 11:08:33 | 显示全部楼层
最初由 jametong 发布
[B]需要设置ORACLE_HOME等相关环境变量.. [/B]

在没设置ORACLE_HOME等相关环境变量的情况下su - oracle 'dbstart'能自动启动instance吗?
回复

使用道具 举报

千问 | 2010-3-1 11:08:33 | 显示全部楼层
it would not be started. you have to set correct ORACLE_HOME and ORACLE_SID.
回复

使用道具 举报

千问 | 2010-3-1 11:08:33 | 显示全部楼层
ORACLE_HOME and ORACLE_SID是必须设置的环境变量。
回复

使用道具 举报

千问 | 2010-3-1 11:08:33 | 显示全部楼层
ORACLE_BASE
ORACLE_HOME
ORACLE_SID
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行