469,578 Members | 1,325 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

cataloging database after unistalling -> installing db2

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
2 2154
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
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.

Similar topics

1 post views Thread by pintur | last post: by
reply views Thread by Massimiliano Campagnoli | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.