Please show us all the scripts involved. Do you execute the RMAN script as the Oracle user? That is, do you use su - oracle -c ... call somewhere in the script chain? If not, your environment is obviously not set up, and running Oracle backups as root doesn't really work well.
If you have based your script on the sample script provided with NetBackup you will find it calls su -
Regards,
Andreas