I need to be able to start the db2 command shell (db2) to connect to the database manually without having instance owner permissions. My understanding is that this is accomplished by running $insthome/sqllib/db2profile in the user's .profile. Doesn't work for me.
Background:
I have DB2 installed on a Solaris env. If I log in as the instance owner or su to it, I can do anything in DB2 that I want. If I login, say a regular user, I cannot run anything. I want to be able to run queries from the database without being the instance owner. The user has all the database grants - he just can't get the CLP. I was able to run a shell script and execute a java program that worked fine, only after adding the env variable of the instance owner and other librabry paths, but all to where DB2 was installed and not where the instance owner home directory links as the documentation suggests (used /opt/IBM/db2/v... vs using $INSTHOME/sqllib for the JDBC drivers).
I try to run insthome/sqllib/db2profile but when logged in as the new user, the logged in id cannot see $insthome/sqllib. Sqllib has drwxrwxr-t permissions which I assume hides it. What is the trick? I assume that this has nothing to do with the DB2 install and just permissions...don't know. It looks simple enough in InfoCenter, but it doesn't work for me.
