468,257 Members | 1,414 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,257 developers. It's quick & easy.

Redirected restore, when only Instance is created & cataloged

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
Nov 12 '05 #1
3 3211
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

Nov 12 '05 #2
"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
Nov 12 '05 #3

"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
Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Philip Nelson | last post: by
reply views Thread by db2inst2 | last post: by
9 posts views Thread by GL | last post: by
7 posts views Thread by CCC via DBMonster.com | last post: by
3 posts views Thread by cerbdog | last post: by
4 posts views Thread by Laurence | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.