I am developping a program to watch the remote DB2 Servers. I use the rsh command to access the DB2 servers. I use the "db2inst2" user to rsh to remote server's information.
When I use following command in the local ,
rsh dbsvr1 "db2 get instance"
it shows following errors:
SQL10007N Message "-1390" could not be retrieved. Reason code: "1".
However, I can use "rsh dbsvr1 df -k" correctly. I have search the reason,maybe the user's profiles in the local and remote server are different,but I can not reset the local user's profile as the same as remote server's.
Who can tell me how to do?