Msdb Table Backupmediafamily Does Not Show Transaction Log Backup Sometimes
Nov 6, 2007
Hello,
We have a self-written procedure to restore transaction logs on a standby server (Sql Server 2000 sp4)
We do this by joining 2 msdb tables, to find out which backups have been performed: backupmediafamily and backupset.
Sometimes backups are NOT registred in table msdb..backupmediafamily.
Underneath 2 examples.
OK- underneath queries shows the time the backup was created in the physical_device_name; joined with media_set_id
99% shows these correct data
select media_set_id, physical_device_name from backupmediafamily where media_set_id = 258716
media_set_id physical_device_name
258716 H:Mssql2000MSSQLBACKUPPAPPS10_tlog_200701010030.TRN
select media_set_id, backup_start_date , backup_finish_date, database_name from backupset where media_set_id = 258716
media_set_id backup_start_date backup_finish_date database_name
258716 2007-01-01 00:30:08.000 2007-01-01 00:30:08.000 PAPPS10
NOT ok
select media_set_id, physical_device_name from backupmediafamily where media_set_id = 376467
media_set_id backup_start_date backup_finish_date database_name
376467 2007-02-17 09:00:14.000 2007-02-17 09:00:14.000 PDBTIME
376467 2007-10-31 19:15:05.000 2007-10-31 19:15:05.000 PJAVA
select media_set_id, backup_start_date , backup_finish_date, database_name from backupset where media_set_id = 376467
media_set id physical_device_name
376467 H:Mssql2000MSSQLBACKUPPDBTIME_tlog_200702170900.TRN
!!! No record for backup transaction log database PJAVA
select media_set_id, physical_device_name from backupmediafamily where physical_device_name like '%PJAVA%2007103119%'
media_set_id physical_device_name
1115347 H:Mssql2000MSSQLBACKUPPJAVA_tlog_200710311900.TRN
1115432 H:Mssql2000MSSQLBACKUPPJAVA_tlog_200710311930.TRN
1115475 H:Mssql2000MSSQLBACKUPPJAVA_tlog_200710311945.TRN
Missing record for backup made on 2007-10-31 19:15 hours !!!!
Hope somebody can help me.
Best regards,
hvdtol
View 11 Replies
ADVERTISEMENT
Feb 17, 2003
I'm getting "Executed as user: SPIESQLService. sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed." on the TRN backup portion of the maintenance plan for the msdb and model databases. On review of files created it's clear that the msdb trn log backup is failing, but there's no other error to indicate the underlying problem.
Suggestions?
TIA,
Al
View 1 Replies
View Related
Jul 11, 2007
I want to list out the pending transaction for transaction replication by publication.
Help needed.
View 1 Replies
View Related
Feb 18, 2015
SQL Server 2008 r2 - 6 GB memory...I attempted a backup on a 500GB database but it was taking way too long. I checked the resources on the box and saw the CPU at 100%. I checked the SQL Server activity log and saw a hung query (user was not even logged on) that had multiple threads so I killed it and now the CPU utilization is back to normal.
Trouble is, now all of the threads in the activity monitor for the backup show 'suspended' and the backup appears to be not doing anything.
View 3 Replies
View Related
Oct 4, 2007
Hello!
I am trying to troubleshoot weird problem. I noticed that msdb log size was growing. I have discovered jobs executing particular stored procedure that had an open transaction in msdb and killed spid in question. This stored procedure was executing sp_send_dbmail at the time I killed spid and fn_get_sql returned xp_sysmail_format_query as currently executed statement. SPID is showing KILLEDROLLBACK status but it hasn't changed for hours and msdb log continues to grow. I am running SQL Server 2005 SP1. I was wondering if anyone has expeienced similar problem. Any advice is greately appreciated.
Thanks,
Igor
View 2 Replies
View Related
Apr 13, 2007
I am facing the Database recovery problems sicne I have lost my MSDB db , only i have the Complete db backup and transactional backup.
How do i can recover the database since i don't have the MSDB database
View 3 Replies
View Related
Sep 10, 2007
Can I tell from the MSDB tables if a particular db backup was successful? SS2000.
Thanks,
Michael
View 1 Replies
View Related
Dec 21, 2004
Our sysadmin accidentally uninstalled SQL Server started to panic and reinstalled. Thankfully the data/transaction files to our important databases were still present and I simply reattached them but our DTS packages our gone.
However, we've done weekly backups of the msdb database. How do I get the DTS jobs out of these backups?
View 1 Replies
View Related
Oct 15, 2015
In one off my production box, we are notable to take a backups of MSDB . When i look at the error, it is failing locate allocation unit ID.. complete error as below
Msg 2533,Sev 16,State 1, Line 36 : Table error : Page (1:111720 ) allocated to object id 110623437, index ID 1, Partition ID 72057594043432960, alloc unit ID 72057594044874752 (type-inrow data) was not seen. This page is invalid or may have an incorrect alloc unit ID in its header.[SQLSTATE 42000]
Due this failure, we are unable to take the backup of MSDB database and our integrity check and reindex jobs also failured with the same.Also, I could see events of I/O issues with underlaying hard dirve with following name
DeviceHarddisk0DR0,has a bad block.
1. I dont no what could happen if restart my server, Question is: Does it recognize MSDB during server statup.
View 9 Replies
View Related
Feb 18, 2002
I have been researching on how to cleanup four backup system files located in the MSDB database. I currently have approximately 1 million rows in each of these tables which is making my MSDB database to be 4 gig in size. I cannot find any instructions on how to gracefully clean these tables up or what to do to keep the number of rows down in these tables. The tables are backupfile, backupmediafamily, backupmediaset, and backupset. Thanks.
View 1 Replies
View Related
Aug 25, 2007
I have inherited a SQLS erver 2000 instance where the client neverimplemented a backup startegy for the "master" and "msdb" databases.MSDB is now showing errors and my only option for a restore is from atape backup of the server.Any thoughts..
View 1 Replies
View Related
May 21, 2001
While checking the SQL server error logs, I notice that the pubs and msdb database are automatically being backed up, even though no job is set up to do so....in addition, its backing up to a directory that I cannot find on our network.....does anybody have an idea of whats going on ?
the path its backingup to is:
(FILE=1, TYPE=PIPE: {'.pipedbasql70dbagent0s0'}).
Thank you in advance
View 1 Replies
View Related
Aug 1, 2007
Hello all,
I need help concerning a differential backup on a MSDB database.
I received this message when I tried to backup it
Log from Windows
Event Type: Error
Event Source: SQLVDI
Event Category: None
Event ID: 1
Date: 8/1/2007
Time: 2:03:37 PM
User: N/A
Computer: XXX
Description:
SQLVDI: Loc=SignalAbort. Desc=Client initiates abort. ErrorCode=(0). Process=9028. Thread=5928. Client. Instance=. VD=GlobalData Protector_(DEFAULT)_msdb_14_00_21.
Log from DataProtector
Normal] From: XXX "(DEFAULT)" Time: XXX
SQL statement:
BACKUP DATABASE [msdb] TO
VIRTUAL_DEVICE = "Data Protector_(DEFAULT)_msdb_06_00_14"
WITH NAME = 'Data Protector: 2007/08/01 0064', DIFFERENTIAL, BLOCKSIZE = 4096, MAXTRANSFERSIZE = 65536;
[Warning] From: XXX "(DEFAULT)" Time: XXX
Error has occurred while executing a SQL statement.
Error message: '<Microsoft SQL-DMO (ODBC SQLState: 42000):bdb>
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot perform a differential backup for database "msdb", because a current database backup does not exist. Perform a full database backup by reissuing BACKUP DATABASE, omitting the WITH DIFFERENTIAL option.
[Microsoft][ODBC SQL Server Driver][SQL Server]BACKUP DATABASE is terminating abnormally.'
Ive tried to do a full followed straight after by a diff but doent help.
Thank you for your help
View 7 Replies
View Related
Jul 15, 2015
We take a full backup in the early morning and hourly transaction log back during the working hours for one database in the production server. The application team made certain changes to the design of the said database in their development server. The backup from the development server was restored to the production server during working hours. After the restoration should we take a full backup before next transactional logbackup? Would the transactional log backup with out a full backup after the restoration of a database be valid?
View 5 Replies
View Related
Jul 23, 2014
What is the best way to restore a database from a folder of backups (including full, diff and log backups) without using the backup history in msdb?
I have a restore process that restores all backups on a regular schedule in order to fully verify their integrity. To do this, I use the backup history in msdb on each server that I'm monitoring. I had a thought the other day that I would be in trouble if I lost msdb. Then my backup history would only be as good as the last backup of msdb.
What I'd like to do is read a folder of backup files and generate a restore script up to a specified time. Would I use RESTORE HEADERONLY to do this? If so, would I use PowerShell to traverse each file in the folder?
View 6 Replies
View Related
Oct 1, 2001
Hi,
While backing up our database, I am getting the following message:
Could not insert a backup or restore history/detail record in msdb.dbo.sysbackuphistory or sysrestorehistory. This may indicate a problem with the MSDB database. DUMP/LOAD was still successful. (Message 3009)
Does anybody have any resolution for the same ?
Thanks,
Rajan
View 2 Replies
View Related
Mar 11, 2008
Hello, everyone:
I just heard that for restore purpose, ths full backup and transaction log backup should be from one maintenance plan. Otherwise transaction log backup files cannot be restored after restoring full backup files.
Is it true? Can anyone offer official documents?
In my system, full and transaction backups are from one maintenance plan. Restores are doing fine. I am not sure that ideal is true or not.
Thanks
ZYT
View 2 Replies
View Related
Jun 13, 2007
what is the differences between a differenctial backup and transaction log backup?
View 1 Replies
View Related
Oct 14, 2007
I neglected to backup the transaction log as part of the process of backing up the database. Now i only have the backup file for the database and no transaction log backup. When i try to do a restore on the database, i get the error on a "tail log missing" message (which i'm assuming is that it's looking for the t-log backup?).
Is it possible to restore or even restore to a new database? I'm only looking to retreive data from 2 tables within the backup file.
Thanks!
SQL Server 2005 on Windows 2003 Server x64.
View 16 Replies
View Related
Nov 21, 2005
Whenever I start my SQL Express 2005 database, I get the following in the logs :
View 10 Replies
View Related
Feb 11, 2008
Why does Error log show database restarting everytime a transactionlog backup runs?It also runs a checkdb as well.The log backups are scheduled through a maintenance plan.Is this normal?
View 1 Replies
View Related
Jul 2, 2002
I having to document some existing servers, where the job descriptions aren't the best. Inside of the steps it tell you the DTS id of the job being executed. Is there a reference table in MSDB I can look to see which DTS tasks (these are better documented) are being run by SQL Agent?
View 1 Replies
View Related
Sep 25, 2007
Just out of curiosity, could someone point me towards a listing of the user permissions for the MSDB table? I have looked through BOL and on the internet and cannot find a good listing. An example would be something like...
dts_admin: <dts_admin description>
Thanks in advance.
-Kyle
View 1 Replies
View Related
Apr 11, 2001
Hi
I have a full backup and transaction log backup strategy for my test server.
My transaction log backup is failing as some user must have run some nonlogged operation. Is there any way to find out what is causing transaction log backup to fail?
Any hint would be appreciated.
View 1 Replies
View Related
Sep 18, 2001
I have a problem w/ my Transaction Log Backup. The backup files continues to grow and grow and grow. I have created a new Transaction Log backup through EM, but instead of appending each backup to the existing backup file, I overwrite the existing backup file. My gut feeling is that this is not right. If it isn't, then how can I continue to backup my TL's w/o having the file growing at an astronomical pace?
I would appreciate your help
Chris
View 2 Replies
View Related
Feb 9, 2001
Is there a possibility to recover a database up to the point of failure ?
I have a database with a primary datafile and a transaction logfile.
I have backup of the database and transaction log backups upto an hour before failure. But I also want to recover one hour data which is in the transaction log.
I have lost my primary datafile.
Is there a way to recover ?
How do I backup the transaction log before starting restore ?
Thanks,
Bala
View 1 Replies
View Related
Feb 2, 2001
Hi friends,
I have set up the Transaction Log backup on one server he was running fine for few hour later he failed for two times and then after full backup it is running fine.
Can any one of shed some light on this issue.
Error:
Cannot allow BACKUP LOG because file 'ZTVData' has been subjected to nonlogged updates and cannot be rolled forward. Perform a full database, or differential database, backup. [SQLSTATE 42000] (Error 4213) Backup or restore operation terminating abnormally. [SQLSTATE 42000] (Error 3013). The step failed.
Thank You,
Paul T
View 2 Replies
View Related
Aug 26, 1999
Hi!
Does the command,
backup log <database name> to <backup device name>
clear the inactive portions of the transaction log?
Praveena
View 1 Replies
View Related
Jun 9, 1999
I've set up 4 database maintenance plans for my databases. 1 for all system databases, and the other three for specific databases. they back up to a network drive on another computer.
The plans are set up to do complete backups every day and then transaction log backups every 15 minutes.
The complete backups work fine. They all create the backups on the network drive. The transaction log backups are only created for one of the databases though. All the others report "successful completion" but they don't actually create the backup file. I looked at the report created and it never has a step that backs up the transaction log. I compared the T-SQL code from the one transaction backup job that works to one that doesn't and all the commands are exactly the same (aside from different directories to save in to, job numbers, etc).
Does anyone have any idea what is going on? I've deleted the maintenance plans and recreated them to no avail. I've also created an on the side differential backup that works as well.
Any help would be appreciated
Bob
View 1 Replies
View Related
Feb 21, 2001
I am using ArcserveIT 2000 SQL Agent to backup my SQL Server 7.0 db. I perform a full backup (with archive on) every day. ArcserveIT backsup both database and transaction log files. 'Truncate log on chkpt' is set to False in the databases. If I don't use SQL server's backup command with trunc. log on chkpt to true, will the transaction log file ever get trimmed? Does a third party backup utility like ArcserveIT will do something similar to 'backup command' in SQL server 7.
Anyone using ArcserveIT SQL Server 7.0 Agent, please comment.
Thanks
View 2 Replies
View Related
Mar 15, 2004
Good afternoon,
Has anyone ever had an issue with a Transaction Log being backed up but not truncating? We’ve been having trouble with this and now have to truncate the log manually. Any information at this point will be useful. Thank you.
View 2 Replies
View Related
Oct 3, 2001
Hi,
Can anybody help me in,
When to take backup of transaction log and how to schedule it?
My database is in Full recovery mode with two log files.
I am doing mass insertion, then i am getting the following error
"The log file for database 'nags' is full. Back up the transaction log for the database to free up some log space."
I have taken backup of transaction log. now also it is giving the same error.
Any suggestions how to handle to this situation, to prevent the above error.
Thanks in advance.
Nageswararao.
View 1 Replies
View Related
May 11, 2007
What is the proper way to backup a transaction log for a database whose name contains a space. (I.E. DBname = Database Name). I am trying to execute a command, but it does not like the space in the database name. I have also tried wrapping the name in single quotes and parethesis to no avail.
View 2 Replies
View Related