Sybase backup and restore

SAP Notes: 1588316 - SYB: Configure automatic databaseand log backups

 

1.     Createfolder for backup databases and transaction logs

/sybase/DL4/sapdata_1/backups

/sybase/DL4/sapdata_1/log_archives

 

2.     Createyour dump configuration with stored procedure 'sp_config_dump'. If the name ofthe database is, for example, DL4:

 

use master

sp_config_dump @config_name ='DL4DB',

@stripe_dir = '/sybase/DL4/sapdata_1/backups',

@compression = '101' ,

@verify = 'header'

go

 

Configuration DL4LOG:

 

sp_config_dump @config_name ='DL4log',

@stripe_dir = '/sybase/DL4/sapdata_1/logarchives',

@compression = '101' ,

@verify = 'header'

go

 

3.     Changethe DB parameter below:

sp_dboption 'DL4','trunc log on chkpt','false'

sp_dboption 'DL4','enforce dump tran sequence','true'

 

4.     Databaseand transaction dumps can now be performed using the 'using config' syntax.

Example:

dump database DL4 using config = 'DL4DB'

go

 

dump transaction DL4 using config = 'DL4log'

go

 

5.     Restoredatabase:

load database DL4 from '/sybase/DL4/sapdata_1/backups/DL4.DB.20160330.153542.000'

 

Recovery log files:

load transaction DL4 from'/sybase/DL4/sapdata_1/log_archives/DL4.TRAN.20160330.155435.000'

 

6.     Createand schedule ASE jobs to backup databases and transaction logs

 

Use the DBA Planning Calendar in the DBACOCKPIT toautomatically call the 'DUMP DATABASE' and the 'DUMP TRANSACTION' commands.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值