473,416 Members | 1,836 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

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\backupdb.bak'
WITH REPLACE,
STANDBY = 'e:\sql2000\undo\undo.ldf',
MOVE 'TESTData' TO 'E:\SQL2000\Data\TESTData.MDF',
MOVE 'TESTLog' TO 'D:\SQL2000\Logs\TESTLog.LDF',
MOVE 'TESTLog2' TO 'D:\SQL2000\Logs\TESTLog2.LDF',
MOVE 'TESTLog3' TO 'D:\SQL2000\Logs\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\backuplog.bak'
WITH STANDBY = 'e:\sql2000\undo.ldf'
GO

Step 3) Restore log with recovery option and open database
RESTORE LOG TEST
FROM DISK='E:\RESTORE\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\backupdb.bak'
WITH REPLACE,
STANDBY = 'e:\sql2000\undo\undo.ldf',
MOVE 'TESTData' TO 'E:\SQL2000\Data\TESTData.MDF',
MOVE 'TESTLog' TO 'D:\SQL2000\Logs\TESTLog.LDF',
MOVE 'TESTLog2' TO 'D:\SQL2000\Logs\TESTLog2.LDF',
MOVE 'TESTLog3' TO 'D:\SQL2000\Logs\TESTLog3.LDF'
WAITFOR DELAY '00:00:05'
GO

Step 2) Restore log and open database
RESTORE LOG TEST
FROM DISK = 'e:\restore\backuplog.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:\RESTORE\BACKUPdb.BAK'
WITH REPLACE,
MOVE 'TESTDATA' TO 'E:\SQL2000\DATA\TESTDATA.MDF',
MOVE 'TESTLOG' TO 'D:\SQL2000\LOGS\TESTLOG.LDF',
MOVE 'TESTLOG2' TO 'D:\SQL2000\LOGS\TESTLOG2.LDF',
MOVE 'TESTLOG3' TO 'D:\SQL2000\LOGS\TESTLOG3.LDF',
NORECOVERY

Step 2) Restore log with recovery option and open database
RESTORE LOG TEST
FROM DISK='E:\RESTORE\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 2040

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

Similar topics

3
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...
4
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...
0
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...
1
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...
3
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...
5
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%...
0
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...
4
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...
13
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...
3
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...
0
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...

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.