Are you executing shell as well as sqlplus with same user account or different users?