"Vikrant" <ic*********@rediffmail.com> wrote in message
news:d2*************************@posting.google.co m...
"Jagdip Singh" <jx*****@cs.rit.edu> wrote in message
news:<40********@buckaroo.cs.rit.edu>...
Hi Vikrant,
Your question is somewhat unclear.
but i think u have problem with existing database
If you can not catalog it properly on client, you can check if
communication between client and server is OK
see if required parameters have valid values.
restore redirect will definitely recreate database if that is something
you want to do
check the syntax of restore redirect in manuals
regards,
jagdip singh
"Vikrant" <ic*********@rediffmail.com> wrote in message
news:d2*************************@posting.google.co m... Friends,
Due an application (old) install program problem, Under AIX I could
only create DB2 instance, I could also catalog it. Its complex
application and I am not expert in creating full database for this
application, but I have desired DB2 backup (by db2 backup db command).
Can I do redirected restore (SET TABLESPACE CONTAINERS ....) only
when instance is created & cataloged , I am under the impression that
redirected restore is smart enough to create required database?
If it can not create desired database, what is minimum (apart from
correct level of DB2 software) I should do, before I start redirected
restore.
I would sincerely appreciate your advice / suggestion.
Thanks,
VKG
Hi Jagdip,
Thanks for your response. ya, I do have problem on existing database
(its local on pSeries AIX 5.2 32 bit) [Problem is I application
install had not generated proper DDL to create required database), I
can catalog it. I can also do 'db2 list database directory'.
Enjoy,
VKG
The only difference between a regular restore and a redirected restore is
that with a redirected restore, the tablespace definitions can be different.
(This is the purpose of the SET TABLESPACE CONTAINERS argument -- it maps
the current tablespaces to the ones listed in the backup image.)
If you still have access to the original database, you should use the
'db2look' program. This program will output all the required DDL to create
the database, tablespaces, bufferpools, tables, indexes, and so on.
(Everything except the data itself.)
db2look -d <database name> -a -e -l -m -f -o <output file>
If you don't have access to the original database, you're probably out of
luck.
--
Matt Emmerton
DB2 OLTP Performance
IBM Toronto Lab