我现在遇到一个问题,一个用户test,两个实例db2inst1 db2inst2,那如何让tes用户同时都可以拥有两个用户的授权 我在db2inst1 中的bashrc中写入授予test的权限 然后在test用户bashrc中写入 if [ -f /db2home/db2inst1/sqllib/db2profile ]; then . /db2home/db2inst1/sqllib/db2profile fi 这样test就可以使用db2inst1 给予的权利
但是现在我的需求是在db2inst2中也写入授权bashrc命令,问题就在这里如果在test用户bashrc中再写入 if [ -f /db2home/db2inst2/sqllib/db2profile ]; then . /db2home/db2inst2/sqllib/db2profile fi