下载首页
网络学院
最新更新
软件分类
国产软件
国外软件
汉化补丁
注册绿色
下载排行
精品软件
设为首页
联系我们
加入收藏
网页制作
冲浪宝典
图形图像
操作系统
软件教学
编程开发
认证考试
安全技术
站长专区
文学驿站
娱乐天地
游戏天地
办公软件
文章搜索
您的位置:
首页
>>
文章首页
>>
编程开发
>>
数据库开发
>>
RedHat Linux下Oracle启动脚本的建立dbstart oracle8.1.6
精品推荐
数据库开发点击TOP10
·
MYSQL 新版出现 Client does not support authentication protocol requested by server; consider upgrading MySQL client解决办法
·
生成助记码(取汉字的第一个字母)
·
ORA-01034错误的解决办法
·
ORACLE数据库管理员的职责
·
将DW数据窗口导出为EXCEL文件的方法(整理)
·
Oracle中分区表的使用
·
SQL Server 2000+ MS WIN2003群集服务配置
·
SQL中UNION 与 UNION ALL 的区别
·
ORA-00257: archiver error. Connect internal only, until freed.
·
Oracle备份与恢复案例
编程开发点击TOP10
·
数字小键盘指法练习
·
ASP.NET 程序中常用的三十三种代码
·
用C语言编通讯录程序(初学者级别的)
·
我写的Java学生成绩管理系统源代码
·
CHK文件恢复工具
·
Modem 常用AT指令集
·
java笔试题
·
异常java.sql.SQLException: Io exception:The Network Adapter could not establish connection
·
单片机模拟I2C总线及24C02(I2C EEPROM)读写实例(源代码)
·
C++经典电子书下载
精选专题
RedHat Linux下Oracle启动脚本的建立dbstart oracle8.1.6
作者: 来源:网络文章 时间:2005-12-17 22:34:47
RedHat
Linux
下Oracle启动脚本的建立
2001-06-05 8:25
发布者:
Crystal
阅读次数:102
一、修改$ORACLE_HOME/bin/dbstart脚本
首先测试你的$ORACLE/bin/dbstart脚本,如果能正常启动Oracle,请跳到第二部分。
本人运行环境为RedHat7.1+Oracle8.1.6,发现dbstart脚本有问题,不能得到当前运行的Oracle的版本号。编辑dbstart,找到
STATUS=1
if [ "$VERSION" = "8.1" ]
在之前加上
VERSION="8.1"
二、建立/etc/init.d/oracle脚本如下:#!/bin/bash
#
# oracle This shell script takes care of starting and stopping
# the MySQL subsystem (mysqld).
#
# chkconfig: - 90 10
# description: Oracle database server.
# processname: oracle
ORA_HOME=/home/oracle
ORA_OWNER=oracle
prog="Oracle"
# Source function library.
. /etc/rc.d/init.d/functions
if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
start(){
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart >/dev/null 2>&1 &
ret=$?
if [ $ret -eq 0 ]; then
action $"Starting $prog: " /bin/true
else
action $"Starting $prog: " /bin/false
fi
[ $ret -eq 0 ] && to
UC
h /var/lock/subsys/oracled
return $ret
}
stop(){
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut >/dev/null 2>&1
ret=$?
if [ $ret -eq 0 ]; then
action $"Stopping $prog: " /bin/true
else
action $"Stopping $prog: " /bin/false
fi
[ $ret -eq 0 ] && rm -f /var/lock/subsys/oracled
return $ret
}
restart(){
stop
start
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
condrestart)
condrestart
;;
*)
echo $"Usage: $0 {startstoprestart}"
exit 1
esac
三、运行命令chkconfig --add oracle,注册系统服务,然后就可以用ntsysv命令来管理你的Oracle服务了。
四、可以到
http://fancao.oso.com.cn/script/dbstart
http://fancao.oso.com.cn/script/oracle
下载本文所提及文件。
作者:凡草0515
来源:
PHP
?article_id=6990" target=_blank>奥索
RedHat Linux下Oracle启动脚本的建立dbstart oracle8.1.6 相关文章:
RedHat Linux下Oracle启动脚本的建立dbstart oracle8.1.6 相关软件:
特别声明:
本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:
http://www.xgdown.com
帮助(?)
软件发布
版权声明
友情连接
Copyright 2005-2005
星光下载
All rights reserved.
Powered By: DownPlus