By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,569 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,569 IT Pros & Developers. It's quick & easy.

cataloging database after unistalling -> installing db2

P: n/a
Hi all,
I uninstalled db2 without dropping old instance. I have one database which i
want to access again through new db2 i installed.
I opted for fresh db2 directory while installing instead keeping old
directory.
I created new instance during installation of db2 which is different from
old one.
I tried catalog database for old database from new instance but did not able
to access database

Is there any one who has similar problem, can help me?

Warm regards,
Jagdip Singh
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
A relatively simple approach is:
1. Create another instance matching the old, not in use, instance name
2. Using tihs secondary instance; catalog the database
3. Back up the database
4. Restore the database backup to the "new" instance owner

Of couse, being a farsighted administrator; you DID backup the database
before uninstalling. You can skip steps 1-3 above and just do step 4
with your existing backup.

Directly cataloging the original database to a new instance owner is
difficult because:
1. The old database's location does not match the location that is used
for storing the new instance's databases.
2. Ownership of the databases physical datasets should also be an issue
especially on Unix-like systems.

Jagdip Singh wrote:
Hi all,
I uninstalled db2 without dropping old instance. I have one database which i
want to access again through new db2 i installed.
I opted for fresh db2 directory while installing instead keeping old
directory.
I created new instance during installation of db2 which is different from
old one.
I tried catalog database for old database from new instance but did not able
to access database

Is there any one who has similar problem, can help me?

Warm regards,
Jagdip Singh


Nov 12 '05 #2

P: n/a
Hi,
I created instance with same name as old as old instance was not existing

It is listening on same port where old instance was listening( I edited
/etc/services) file

I tried db2 list db directory on /usr/tsample as old database was created
there

I tried cataloging from new instance using catalog db tsample on
/usr/tsample

And tried connecting to tsample

It gave me error SQL5005C System Error.

I really do not know what it could be

Regards,

Jagdip

"Phil Sherman" <ps******@ameritech.net> wrote in message
news:<E5**********************@newssvr28.news.prod igy.com>...
A relatively simple approach is: 1. Create another instance matching the old, not in use, instance name 2. Using tihs secondary instance; catalog the database 3. Back up the database 4. Restore the database backup to the "new" instance owner Of couse, being a farsighted administrator; you DID backup the database before uninstalling. You can skip steps 1-3 above and just do step 4 with your existing backup. Directly cataloging the original database to a new instance owner is difficult because: 1. The old database's location does not match the location that is used for storing the new instance's databases. 2. Ownership of the databases physical datasets should also be an issue especially on Unix-like systems. Jagdip Singh wrote:
Hi all, I uninstalled db2 without dropping old instance. I have one database which i
want to access again through new db2 i installed. I opted for fresh db2 directory while installing instead keeping old directory. I created new instance during installation of db2 which is different from
old one. I tried catalog database for old database from new instance but did not able
to access database Is there any one who has similar problem, can help me? Warm regards, Jagdip Singh


Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.