start:
/oracle/ora817/app/oracle/product/8.1.7/bin/svrmgrl << EOF
connect internal
startup parallel
disconnect
exit
lsnrctl start
stop:
/oracle/ora817/app/oracle/product/8.1.7/bin/svrmgrl << EOF
connect internal
shutdown immediate
disconnect
exit
sybase
start;
/bin/su - sybase -c /home/sybase/ASE-12_0/install/startserver -f /home/sybase/ASE-12_0/install/RUN_hx >/home/sybase/log/hx_start 2>&1
stop;
/bin/su - sybase -c /home/sybase/OCS-12_0/bin/isql -Usa -Pzydxsa -Shx exit
informix:
start:
/bin/su - informix -c /home/informix/oninit >/dev/console 2>&1
stop:
/bin/su -informix -c /home/informix/bin/onmode -ky >/dev/console 2>&1
sybase的!
启动:
#!/bin/ksh
# Start Sybase (DB Server)
echo 'Starting Sybase (DB Server)......'
chown sybase:sybase /dev/rsybmaster* /dev/rsybproc* /dev/rsyb*
chown sybase:sybase /dev/rsybdata* /dev/rsybtemp*
chown sybase:sybase /dev/rsyblog*
su - sybase -c "/sybase/ASE-12_0/install/startserver -f /sybase/ASE-12_0/install/RUN_A"
su - sybase -c "/sybase/ASE-12_0/install/startserver -f /sybase/ASE-12_0/install/RUN_A--back"
banner "DBSTARTOK!"
exit 0
~
停止:
#!/bin/ksh
# stopsybase
#
# Stop Sybase SERVER now
su - sybase -c "/sybase/OCS-12_0/bin/isql -Usa -P'Sa' -SA" <
go
checkpoint
go
shutdown SYB_BACKUP
go
use master
go
checkpoint
go
shutdown
go
EOF
sync
sleep 30
banner "DBSTOPOK!"