免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 9166 | 回复: 8
打印 上一主题 下一主题

Linux Sybase 开机自动启动服务 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-25 09:34 |只看该作者 |倒序浏览
原先要使Sybase SQL Server启动,一般需要先以sybase用户登录,然后运行$SYBASE/install目录下的startserver命令启动SYBASE_XXXX服务进程和SYB_BACKUP_XXXX备份服务进程

我的操作系统是LINUX,而现在想在开机的时候自动启动服务,不知道该怎么做,请知道的高手给一点建议

论坛徽章:
0
2 [报告]
发表于 2006-09-25 09:50 |只看该作者
斑竹还在??? 帮解决以下啊 ,谢谢

论坛徽章:
0
3 [报告]
发表于 2006-09-25 12:41 |只看该作者
难道本版里没有人会吗??请高手不吝赐教

论坛徽章:
0
4 [报告]
发表于 2006-09-25 13:42 |只看该作者
脚本我也基本上会写,但是我重新启动系统,不知道为什么启动不起来,我的脚本是以下:
SYBASE=/opt/sybase-12.5

PATH=$PATHSYBASE/bin

export $SYBASE $PATH

$SYBASE/install/startserver -f $SYBASE/install/RUN_SYBASE> /dev/null


以上脚本是放在/etc/rc.d/rc2.d  在其中新建S99sybase文件,同时执行chmod 777 S99sybase命令

论坛徽章:
0
5 [报告]
发表于 2006-09-25 14:02 |只看该作者
这样不好,你还是用sybase用户启动
比如:
su - sybase -c "/sybase/ASE-12_5/startserver -f /sybase/ASE-12_5/RUN_SYBASE"

论坛徽章:
0
6 [报告]
发表于 2006-09-25 16:29 |只看该作者
还不是很明白,请楼上的朋友给个详细的做法,包括,具体脚本是什么,应该放在什么地方,等等,谢谢
feying 该用户已被删除
7 [报告]
发表于 2006-09-25 16:32 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
8 [报告]
发表于 2006-09-27 14:45 |只看该作者
在/etc/rc.d/rc.local这个文件中写上下面的句就可以了
su - sybase -c "/opt/sybase-12.5/ASE/install/startserver -f /opt/sybase-12.5/ASE/install/RUN_centers
-f /opt/sybase-12.5/ASE/install/RUN_centers_back"

论坛徽章:
0
9 [报告]
发表于 2006-09-28 01:24 |只看该作者
From Sybase online books:

Starting servers when the operating system restarts

This section describes how to configure your operating system for automatic restart of Adaptive Server and Backup Server when the system restarts.

On production systems, Adaptive Server, Backup Server, and Monitor Server should restart automatically when the UNIX operating system starts. This is accomplished by making an entry for the server in the operating system start-up script.

Monitor Server must be listed after Adaptive Server in the start-up script. For more information on starting Monitor Server during the operating system restart, see the Sybase Adaptive Server Enterprise Monitor Server User's Guide.

The $SYBASE/install/sybinstall.sh script sets up a correct shell environment and installs a system run-level script in a Sybase user account. The script allows the automatic re-start and automatic shutdown of configured Sybase Server products such as Adaptive Server Enterprise, Backup Server, and Open Server.

To run sybinstall.sh:

Log in as root.

Run the sybinstall.sh script to perform the post-installation. Enter:

# $SYBASE/install/sybinstall.sh

Create the correct runtime links for shutdown and boot. Enter:

# /sbin/chkconfig sybase on
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP