Original Message:
Sent: Wed August 16, 2023 05:15 AM
From: Bharadwaj Reddy
Subject: Db2 11.5 not able to detect DB2INSTANCE on Linux platform
Hi Youssef Sbai Idrissi,
Thanks for the reply. The problem doesn't appear to be with environment setting and libdb2.so corruption/permission.
To give more clarity on the issue, here are the steps we use to retrieve DB information:
- Application sets DB2INSTANCE using putenv().
- Unload libdb2.so and load.
- Use DB2 provided API's to get the Databases under the instance.
- Repeat point 1 to 3 for each instances read from global.reg.
ldd on libdb2.so is attached as there a difference between DB2 11.1 and DB2 11.5 seen.
With the given steps and with DB2 11.1 the DB info's for the respective instances are returned correct. When using DB2 11.5 we get the same database information for all the instances. ie the first instance from the global.reg. The lib unloading doesn't seems to be happening properly. Was wondering does the changes on the latest lib causing any issue when unloading?. Any advice on how to unload the lib completely.
------------------------------
Bharadwaj Reddy
Original Message:
Sent: Tue August 15, 2023 09:15 AM
From: Youssef Sbai Idrissi
Subject: Db2 11.5 not able to detect DB2INSTANCE on Linux platform
From the 2 files you shared, it seems all the dependencies for libdb2.so
are resolved correctly, as there are no missing links (e.g., "not found" entries).
you have to check for the env variables, try db2set
as well. then check if the library libdb2.so
is corrupt or doesnt have necessary permission of execution ( + user permission ), because this might be the issue here.
------------------------------
Youssef Sbai Idrissi
Software Engineer
Original Message:
Sent: Mon August 14, 2023 06:19 AM
From: Bharadwaj Reddy
Subject: Db2 11.5 not able to detect DB2INSTANCE on Linux platform
Hi Team,
We are setting instance(db2inst1, db2inst2 etc) correctly. However, the Db2 is not detecting any DB2INSTANCE variable change, it looks like dlclose() call for libdb2.so is not working. Here for backup will be using NetWorker and didn't see issue until 11.1v, upgrading to 11.5v, this issue appears. Need Assistance on this. Please find the attachment of ldd of libdb2.so for reference.
------------------------------
Bharadwaj Reddy
------------------------------