Thanks for your reply.

Yes, I can do sqlplus sys@XYZ as sysdba and then it prompts for password and let me connect after I give the password.

I want to connect as sys from the unix shell script and therefore, I cannot have it prompt for password.

Is there any other alternate?

Thanks,

Sam