Unable to perform Oracle restore. Doesn't see backupsets. Exit status 227
Hello,
I am running netbackup 7.7.3 and I want to restore database to a new host.
I have production server, and two test servers.
On prod:
[oraprod@r12db netbackup]$ bin/bplist -C r12db -S backup-a -k r12db_db -t 4 -R /
/DB2.LOGS.PROD.s1760.p1
/DB2.LOGS.PROD.s1759.p1
/DB2.INC0.PROD.s1758.p1
/DB2.INC0.PROD.s1757.p1
/DB2.INC0.PROD.s1756.p1
On first test server I get:
[oratest@testdb2 netbackup]$ bin/bplist -C r12db -S backup-a -k r12db_db -t 4 -R /
/DB2.LOGS.PROD.s1760.p1
/DB2.LOGS.PROD.s1759.p1
/DB2.INC0.PROD.s1758.p1
/DB2.INC0.PROD.s1757.p1
/DB2.INC0.PROD.s1756.p1
But on second test server I get:
-bash-4.2$ bin/bplist -C r12db -S backup-a -k r12db_db -t 4 -R /
EXIT STATUS 227: no entity was found
I am confused on what can cause this, and I verified multiple settings. I do not know what else to check...
So I figured it out. Problem was to assign same gid to user (dba (gid=200) in my case on prod) as where backup was made.
sudo usermod -g 201 oratest (201 = dba on destination server)
and everything works.