- 论坛徽章:
- 1
|
现在遇到的问题:
sybase 在客户端已经指定了备份的池,而且在legato networker console里,也在oracle池里,勾选了sybase的备份组
但是无论怎么备份,sybase的备份都写到default池,没法写到oracle池.请问我是不是那里做错了,请指点.
全备的脚本
>more nsrsyb.sh
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin
export PATH
#BACKUP_OPT="-b oracle"
# Perform the PRECMD
su - sybase -c "isql -Usa -Pjz2@tnh -Sgdl_jz2 -o/nsr/applogs/gdl_jz2.log <<EOF
#NSR_LOG_VOLUME_POOL="oracle"
NSR_DATA_VOLUME_POOL=oracle
dump database master to 'bms::'
go
dump database gdltis_jy to 'bms::'
go
dump database gdltis_mm to 'bms::'
go
dump database gdltis_mz to 'bms::'
go
dump database gdltis_qy to 'bms::'
go
dump database gdltis_sg to 'bms::'
go
EOF"
# Perform backup on client
save -b oracle "$@" > /tmp/saveout$$ 2>&1
# cat out the save output
cat /tmp/saveout$$
exit 0
备份日志的脚本
>more nsrsyb_incr.sh
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin
export PATH
#BACKUP_OPT="-b oracle"
#NSR_DATA_VOLUME_POOL=oracle
NSR_LOG_VOLUME_POOL=oracle
# Perform the PRECMD
su - sybase -c "isql -Usa -Pjz2@tnh -Sgdl_jz2 -o/nsr/applogs/gdl_jz2_incr.log <<EOF
dump transaction gdltis_sg to 'bms::'
go
dump transaction gdltis_jy to 'bms::'
go
dump transaction gdltis_mm to 'bms::'
go
dump transaction gdltis_mz to 'bms::'
go
dump transaction gdltis_qy to 'bms::'
go
dump transaction gdltis_sg to 'bms::'
go
EOF"
# Perform backup on client
save "$@" > /tmp/saveout$$ 2>&1
# cat out the save output
cat /tmp/saveout$$
exit 0 |
|