Quantcast
Channel: SCN : Discussion List - SAP on SQL Server
Viewing all articles
Browse latest Browse all 669

DB13 SQL Backup Expiration Period doesn't work successfully

$
0
0

Hi together

 

I changed and tested all parameters in the TR DB13 to create a backup to a network drive but it doesn't work successfully. The Expiration Period for Backup Volumes doesn't work. I set this parameter to 5 days for example. The log backup overwrite the backup from the day before and so on and so on. He ignores the the expiration period any idea why. How can we correct this?

 

Here is my actually Job and preview information:

 

***************************** SQL Job information ******************************

Jobname: SAP CCMS Log Backup of SM2 [20130717173627-5-230000]

Type: TSQL

DB-Name: SM2

For Run: 20130726 23:00:00

**************************** Job history information *****************************

Stepname: CCMS-step 1

Command: declare @exeStmt nvarchar(2000) exec sm2.sap_backup_databases @dbList=

"SM2",@r3Db="SM2",@bDev="R3DUMP4",@expDays= 5,@jobName= "SAP CCMS Log

Backup of SM2 [20130717173627-5-230000]",@bkupChecksum="N",@bkupCompre

ss="Y",@bkupType="L",@nativeBkup="N",@exeDate = "20130717230000",@bkup

Sim = "N",@format = 1,@init = 1,@bkupDb = "SM2",@unload = 0,@exeStmt =

@exeStmt OUTPUT

Status: (success)

Message: 3014

Severity: 0

Duration: 0 hours(s) 9 min(s) 54 sec(s)

Last msg: Executed as user: sm2. Processed 1180769 pages for database 'SM2', fil

e 'SM2LOG1' on file 1. [SQLSTATE 01000] (Message 4035) BACKUP LOG suc

cessfully processed 1180769 pages in 593.193 seconds (15.551 MB/sec).

[SQLSTATE 01000] (Message 3014). The step succeeded.

<------------- End of Job Step History --------------->

Stepname: CCMS-step 2

Command: declare @exeStmt nvarchar(2000) exec sm2.sap_verify_backups @nativeBku

p = "N",@bkupSim = "N",@bDev = "R3DUMP4",@bkupChecksum = "N",@exeDate

= "20130717230000",@format_init = 1,@unload = 1,@dbCnt =1,@exeStmt = @

exeStmt OUTPUT

Status: (success)

Message: 3262

Severity: 0

Duration: 0 hours(s) 10 min(s) 48 sec(s)

Last msg: Executed as user: sm2. The backup set on file 1 is valid. [SQLSTATE 01

000] (Message 3262). The step succeeded.

<------------- End of Job Step History --------------->

 

Many thanks for helping.

regards Oliver

 

**************************** Job history information *****************************

 

and Preview information:

 

exec msdb..sp_add_job @originating_server = '(local)',@job_name = "SAP CCMS Log Backup of SM2

[20130717173627-5-230000]",@enabled = 1,@description = "SAP CCMS JOB",@start_step_id = 1,

@category_name = NULL,@category_id = NULL

exec msdb..sp_add_jobstep @job_id = null,@job_name = 'SAP CCMS Log Backup of SM2

[20130717173627-5-230000]',@step_id = 1,@step_name = 'CCMS-step 1',@subsystem = 'TSQL',

@command = 'declare @exeStmt nvarchar(2000) exec sm2.sap_backup_databases @dbList="SM2",

@r3Db="SM2",@bDev="R3DUMP4",@expDays= 5,@jobName= "SAP CCMS Log Backup of SM2

[20130717173627-5-230000]",@bkupChecksum="N",@bkupCompress="Y",@bkupType="L",@nativeBkup="N",

@exeDate = "20130726230000",@bkupSim = "Y",@format = 1,@init = 1,@bkupDb = "SM2",@unload = 0,

@exeStmt = @exeStmt OUTPUT',@database_name = 'SM2',@on_success_action = 3

BACKUP Log SM2 TO R3DUMP4 WITH

DESCRIPTION = 'SAP CCMS Log Backup of SM2 [20130717173627-5-230000]',RETAINDAYS=5,

FORMAT,

COMPRESSION,

MEDIADESCRIPTION = 'SAP CCMS Log Backup of SM2 [20130717173627-5-230000]',

MEDIANAME='RL29S',name = 'Sap log backup on 20130729 20:34:30',NOUNLOAD

exec msdb..sp_add_jobstep @job_id = null,@job_name = 'SAP CCMS Log Backup of SM2

[20130717173627-5-230000]',@step_id = 2,@step_name = 'CCMS-step 2',@subsystem = 'TSQL',

@command = 'declare @exeStmt nvarchar(2000) exec sm2.sap_verify_backups @nativeBkup = "N",

@bkupSim = "Y",@bDev = "R3DUMP4",@bkupChecksum = "N",@exeDate = "20130726230000",@format_init

= 1,@unload = 1,@dbCnt =1,@exeStmt = @exeStmt OUTPUT',@database_name = 'SM2'

RESTORE VERIFYONLY FROM R3DUMP4 WITH FILE = X ,UNLOAD

exec msdb..sp_add_jobschedule @job_id = null,@job_name = 'SAP CCMS Log Backup of SM2

[20130717173627-5-230000]',@name = 'CCMS-sche1',@enabled = 1,@freq_type =8,@freq_interval = 32,

@freq_subday_type = 1,@freq_subday_interval = 0,@active_start_date = 20130717,

@active_start_time = 230000,@freq_recurrence_factor = 1

exec msdb..sp_add_jobserver @job_name = 'SAP CCMS Log Backup of SM2

[20130717173627-5-230000]',@server_name = '(local)'


Viewing all articles
Browse latest Browse all 669

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>