473,703 Members | 3,969 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I can't restore the transaction I needed! Help!

Hi,

I have been trying to set up an automated restore process from prod to
backup server. First, I schedule the full database backup nightly,
transfer the backup file and restore it to the database on the backup
server. Meanwhile, I leave the database ready to accept transaction
log from the transaction log backup at noon daily.

And I had used different restore options to test out the transaction
that was being applied. And I couldn't get the transaction I am
supposed to. It seemed that none of the transaction has been restored.

Can somebody explain what I did wrong?

The following is the process I tried.

Test 1:
Step 1) Restore database from full backup with replace, standby option
RESTORE DATABASE TEST
FROM DISK = 'c:\restore\bac kupdb.bak'
WITH REPLACE,
STANDBY = 'e:\sql2000\und o\undo.ldf',
MOVE 'TESTData' TO 'E:\SQL2000\Dat a\TESTData.MDF' ,
MOVE 'TESTLog' TO 'D:\SQL2000\Log s\TESTLog.LDF',
MOVE 'TESTLog2' TO 'D:\SQL2000\Log s\TESTLog2.LDF' ,
MOVE 'TESTLog3' TO 'D:\SQL2000\Log s\TESTLog3.LDF'
WAITFOR DELAY '00:00:05'
GO

Step 2) Restore log and undo.ldf with standby option
RESTORE LOG TEST
FROM DISK = 'e:\restore\bac kuplog.bak'
WITH STANDBY = 'e:\sql2000\und o.ldf'
GO

Step 3) Restore log with recovery option and open database
RESTORE LOG TEST
FROM DISK='E:\RESTOR E\BACKUPLOG.BAK ' (the same backuplog.bak as Step
2)
WITH RECOVERY
GO

Test 2:
Step 1) Restore database from full backup with replace, standby option
RESTORE DATABASE TEST
FROM DISK = 'c:\restore\bac kupdb.bak'
WITH REPLACE,
STANDBY = 'e:\sql2000\und o\undo.ldf',
MOVE 'TESTData' TO 'E:\SQL2000\Dat a\TESTData.MDF' ,
MOVE 'TESTLog' TO 'D:\SQL2000\Log s\TESTLog.LDF',
MOVE 'TESTLog2' TO 'D:\SQL2000\Log s\TESTLog2.LDF' ,
MOVE 'TESTLog3' TO 'D:\SQL2000\Log s\TESTLog3.LDF'
WAITFOR DELAY '00:00:05'
GO

Step 2) Restore log and open database
RESTORE LOG TEST
FROM DISK = 'e:\restore\bac kuplog.bak'
WAITFOR DELAY '00:00:05'
GO

Test 3:
Step 1) Restore database from full backup with replace, norecovery
option
RESTORE DATABASE TEST
FROM DISK='E:\RESTOR E\BACKUPdb.BAK'
WITH REPLACE,
MOVE 'TESTDATA' TO 'E:\SQL2000\DAT A\TESTDATA.MDF' ,
MOVE 'TESTLOG' TO 'D:\SQL2000\LOG S\TESTLOG.LDF',
MOVE 'TESTLOG2' TO 'D:\SQL2000\LOG S\TESTLOG2.LDF' ,
MOVE 'TESTLOG3' TO 'D:\SQL2000\LOG S\TESTLOG3.LDF' ,
NORECOVERY

Step 2) Restore log with recovery option and open database
RESTORE LOG TEST
FROM DISK='E:\RESTOR E\BACKUPLOG.BAK '
WITH RECOVERY

None of the transaction I backup during the day seems to be restored
and applied onto the database???? Am I missing something?

Thanks for any help!
Jul 20 '05 #1
0 2080

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
11418
by: Reuben Pearse | last post by:
Hi all, I've just converted the tables in a big database (approx 27 million records) from MyISAM to InnoDB. When I was using MyISAM I backed up the database by stopping MySQL and then copying the MYI, MYD, frm files in the database directory, and restored the database in the same way. Is there a similar way to backup and restore InnoDB tables, or do I have to use the InnoDB Hot Backup tool?
4
2081
by: xo55ox | last post by:
Hi, Currently, I am on SQL2000 SP3 and Windows 2003. I am trying to restore the full database backup and transaction log backup on the development server. The full database restore is not a problem, but the transaction log restore happened during the day is. Everytime when I try to compare the transaction in the database (select the last update date from one of my table as a benchmark, then backup the transaction log for restore) to...
0
2070
by: barbara | last post by:
I am using this procedure from net for getting the restore script. It lists the latest full backup file name and logs after that point. Is there any way to modify this script to take either date or time as parameter and give the files for restore? I need this if I need to restore the data up to last week/upto some point of time. CREATE procedure usp_what_files_to_restore as --
1
1557
by: Terri | last post by:
MSSQL 2000 SP3A I'm trying to restore a database with the following commands. restore database Test from disk = 'D:\backups\9pm.bak' WITH RECOVERY, move 'DEV_Data' to 'c:\Program Files\Microsoft SQL Server\MSSQL\data\Test_Data.MDF',
3
3400
by: t2581 | last post by:
Hi , I run restore with rollforward In job in output, last commited transaction time less then backup image time Is it normal ? RESTORE DATABASE PRICE_V8 FROM "E:\BACKUP" TAKEN AT 20050610095841 TO "D:" INTO PR_READ NEWLOGPATH "D:\DB2_FILES\PR_READ\LOG" WITH 2 BUFFERS BUFFER 1024 REDIRECT PARALLELISM 1 WITHOUT PROMPTING .....
5
6105
by: patrick | last post by:
Mysql 4.1.15 on Win2k. Using InnoDB. Using the mysql administrator gui to create a backup, everything goes fine, and restores quickly. Using the command line: mysqldump %dbname% --single-transaction > %dbname%.sql creates a file about 15% smaller than the gui produces, and is
0
2144
by: raj.raghavan | last post by:
Hi, I have a database were all the indexes are in a seperate filegroup a few large tables are in a seperate filegroup. We take backup at different times and I have backup of primary, two filegroup and then transaction logs. The backup was successful when I restore the same backup it is erroring out with this error: Server: Msg 3135, Level 16, State 2, Line 1 The backup set in file 'E:\Manual Backup\test_primary.bak' was created by...
4
12438
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is this: can Access create the document and place it as an OLE object to the relevant table? Any help is greatly appreciated. Ricky
13
5991
by: danceli | last post by:
I have two servers, using SQL server 2000. I was asked for implementing hourly Backup 3 databases in one server and restore those databases to another server. Could anyone give me the detailed steps to do that? Thanks a lot in advance!
3
22999
by: Bill E. | last post by:
I'm trying to restore a database backed up a production machine onto my development machine. I don't want to restore the transaction logs (there are two) because they are far too large and are unnecessary for what I'm doing. I would be happy to simply create one new log in my development environment. Therefore, I backed up the database using the No_Log option as in backup database CPTS to disk = 'd:\backups\cpts_backup_billeh.bak'...
0
8761
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8672
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9257
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9123
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6594
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5923
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2070
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.