Home > Database > Mysql Tutorial > body text

aix下实现goldengate随os启动而自动启动的脚本

WBOY
Release: 2016-06-07 15:58:56
Original
1638 people have browsed it

aix 下 实现goldengate 随os启动而自动启动的脚本: 1.用oracle用户建立/u01/info.txt,文件内容如下:sh datestart mgr 2.chmod x info.txt 3.用oracle用户建立/u01/startmgr.sh,文件内如下: /u01/ggs/ggsci paramfile /u01/info.txt /u01/ggstartoutput.t

aix 下 实现goldengate 随os启动而自动启动的脚本:
1.用oracle用户建立/u01/info.txt,文件内容如下: sh date start mgr
2.chmod +x info.txt
3.用oracle用户建立/u01/startmgr.sh,文件内如下: /u01/ggs/ggsci paramfile /u01/info.txt >> /u01/ggstartoutput.txt --->这一步是关键。
4.chmod +x startmgr.sh

5.在/etc下建立文件rc.startmgr,脚本如下:
su - oracle -c "/u01/startmgr.sh"
6.把启动信息放到/etc/inittab中,使用如下命令:
mkitab "startmgr:2:wait:/etc/rc.startmgr"
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template