"CCC via DBMonster.com" <forum@DBMonster.com> wrote in message
news:574d022e7b5447f08fd676f53fc6192a@DBMonster.co m...[color=blue]
> Please help me clarify a couple of questions:
>
> Because I am cloning a source onto a target which has a different
> DB2INSTANCE, database name, host, etc, I assume I must use a "redirected
> restore". Just because I have links that make the target filesystem "look"
> like the source system, I cannot do a regular restore. Is this correct?[/color]
============================
No, that isn't quite correct. If you have two physical boxes, two physical
instances/databases, the regular restore still can work very well.
You can build all the containers on your target and create links and makes
them exactly look like the source server.
You can run the restore, just like you run the restore on the source server.
db2 restore db source_db ... into target_db ...
You don't must run redirect restore in order to clone a database onto
another physical database.
In fact you can even restore into the target from an online backup image
which taken from the source server, if both target and source server used
the same db2 udb version, and you can run the rollforward to the end of
logs.
[color=blue]
>
> Is the deletion and recreation of the exisiting containers I observe[/color]
during[color=blue]
> the redirected restore a result of the "set tablespace containers"
> statements?[/color]
I did redirect restore before. But never observe the whole process. I can't
understand why the restore need to delete something.
When you restore a database to the different place, you'd better build all
the necessary containers, instead of letting the restore process to build
them, which will impact the restore performance.
[color=blue]
>
> If this is true, given links that make the filesystems look the same, can[/color]
I[color=blue]
> do the redirected restore without using the "set tablespace constainers"
> statements?[/color]
Again, for your case, you can just run a restore, w/o redirect.
[color=blue]
>
> This would save me 2-3 hours on my 300GB database.
>
> Thanks
> Chris
>
> --
> Message posted via
http://www.dbmonster.com[/color]