sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Raquel's Avatar

Restore..why?


Question posted by: Raquel (Guest) on November 12th, 2005 06:03 AM
Had a simple question..there is a command in UDB:
RESTORE DB a TAKEN AT ts1 INTO b
Where 'a' is one database, 'b' is another database and ts1 is a
timestamp in the past when database 'a' was backed up.

Seems that with this command, UDB 'overlays' database 'b' with the
contents of backup copy of database 'a' (I know that is a simplistic
way of putting it).

My question is: What are the scenarios when someone would give this
RESTORE command? Why would anyone ever want to 'overlay' a database
with another database?
1 Answer Posted
Gert van der Kooij's Avatar
Gert van der Kooij November 12th, 2005 06:03 AM
Guest - n/a Posts
#2: Re: Restore..why?

In article <9a73b58d.0312102258.87690ab@posting.google.com>,
Join Bytes! says...[color=blue]
> Had a simple question..there is a command in UDB:
> RESTORE DB a TAKEN AT ts1 INTO b
> Where 'a' is one database, 'b' is another database and ts1 is a
> timestamp in the past when database 'a' was backed up.
>
> Seems that with this command, UDB 'overlays' database 'b' with the
> contents of backup copy of database 'a' (I know that is a simplistic
> way of putting it).
>
> My question is: What are the scenarios when someone would give this
> RESTORE command? Why would anyone ever want to 'overlay' a database
> with another database?
>[/color]

I do know several scenarios:

- we are working with several developers and each developer is using
his own database. If one of us has filled his database with valuable
test-data he creates a backup of his database and any other developer
can use this backup image to get the same test-data

- when a problem is reported in one of the production databases we
sometimes need that production database on our development network to
debug and trace the problem so we restore it into our own database

Almost all the time a drop database and a restore database (without
into) would have worked also but when specifying the INTO option
together with the REPLACE EXISTING the restore always works without
additional prompting etc..
 
Not the answer you were looking for? Post your question . . .
196,829 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,829 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors