10-12-2015 03:04 PM
Hello All,
Oracle RMAN backup completing succesfully with No KB in activity monitor & no child streams.
Required permission have been set to logs directries and sub-directories.
bpdbclient & bpcd logs are not generating.
bphdb log:
17:28:50.545 [31875] <2> logparams: -sb -rdbms oracle -S master.domina.com -to 300 -c E_Test_ORA_UNX_Full_TBS -s Full -clnt Client.domain.com -FULL
-kl 28 -b Client.domain.com_1444685325 -jobid 2123
17:28:50.546 [31875] <4> bphdb: INF - setenv NB_ORA_POLICY=E_Test_ORA_UNX_Full_TBS
17:28:50.546 [31875] <4> bphdb: INF - setenv NB_ORA_CLIENT=Client.domain.com
17:28:50.546 [31875] <4> bphdb: INF - setenv NB_ORA_MODE=B
17:28:50.546 [31875] <4> bphdb: INF - NB_ORA_POLICY=E_Test_ORA_UNX_Full_TBS
17:28:50.546 [31875] <4> bphdb: INF - NB_ORA_SCHED not defined.
17:28:50.546 [31875] <4> bphdb: INF - NB_ORA_PC_SCHED=Full
17:28:50.546 [31875] <4> bphdb: INF - NB_ORA_SERV=master.domina.com
17:28:50.546 [31875] <4> bphdb: INF - NB_ORA_PC_BTYPE not set
17:28:50.546 [31875] <4> bphdb: INF - setenv NB_ORA_FULL=1
17:28:50.546 [31875] <4> bphdb: INF - setenv NB_ORA_INCR=0
17:28:50.547 [31875] <4> bphdb: INF - setenv NB_ORA_CINC=0
17:28:50.547 [31875] <4> bphdb: INF - setenv NB_ORA_SCHEDULED=1
17:28:50.547 [31875] <4> bphdb: INF - setenv NB_ORA_PARENT_JOBID=2123
17:28:50.547 [31875] <4> bphdb: INF - BACKUP START 31875
17:28:50.617 [31875] <4> bphdb: INF - CONTINUE BACKUP message received
17:28:50.617 [31875] <4> bphdb: INF - Processing /oracle/tbsbin/rman_full_nb.sh
17:28:50.618 [31876] <4> bphdb: INF - Child executing /oracle/tbsbin/rman_full_nb.sh
17:28:50.619 [31875] <4> bphdb: INF - Waiting for the child status
17:28:53.622 [31875] <4> bphdb: INF - Script exited with status = 0 <the requested operation was successfully completed>
17:28:53.623 [31875] <4> bphdb: INF - bphdb exit normal
17:28:53.623 [31875] <4> bphdb: INF - EXIT STATUS 0: the requested operation was successfully completed
Plese help.
Solved! Go to Solution.
10-17-2015 06:22 AM
Please have a look at the sample scripts as suggested before.
When triggered from the master server, the script is run by root user. root user does not have oracle db rights. There needs to be a test for username, if not oracle, then 'su - oracle' to run rman commands.
Extract from sample script (which is missing in your backup script):
# Determine the user which is executing this script.
# ---------------------------------------------------------------------------
CUSER=`id |cut -d"(" -f2 | cut -d ")" -f1`
....
...
10-12-2015 09:20 PM
Check the output of the rman script. It should be located in /oracle/tbsbin/ unless you've specified a non-default value for logs. You can also log into the client and run the script manually. That would show what's happening.
10-12-2015 09:33 PM
10-13-2015 02:36 AM
chmod -R 755 /usr/openv/netbackup/logs
provide your RMAN script as text file. Is it standalone DB or RAC DB ?
10-13-2015 03:09 AM
chmod needs to be run as root, so, changing permissions to 755 will only give root write permission to log folders and backups will fail when folders exist and oracle user cannot write to the folders.
755 is already the default.
Log folders need to be changed to 777 or else owinership of log folder need to be changed to oracle user, but NOT bpcd log. This log needs to be written to by root.
10-13-2015 01:45 PM
PFA RMAN script and output and knidly help.
10-13-2015 11:00 PM
10-14-2015 02:18 AM
Hello,
it looks that return code management is missing in the script, so parent job did not get proper error code. Refer to script templates in samples subdirectory.
Michal
10-14-2015 03:06 AM
I am surpraised too, Backup should fail instead of success.
I have modified your backup script as below, Use below script and let me know the result
NOTE : Change NB_ORA_SERV and NB_ORA_POLICY according to your environment.
run
{
allocate channel ch00 type 'SBT_TAPE';
allocate channel ch02 type 'SBT_TAPE';
send 'NB_ORA_SERV=master.domain.com,NB_ORA_POLICY=E_Test_ORA_UNX_Full_AAA';
crosscheck backup;
crosscheck archivelog all;
backup current controlfile;
backup as COMPRESSED BACKUPSET database plus archivelog;
release channel ch00;
release channel ch02;
}
10-14-2015 03:57 AM
Hi,
Please use the sample scripts. If the DBA wants to change them then he'll be responsible for the script.
10-15-2015 02:04 PM
the issue is still not resolved, we are working with DB team.
10-15-2015 07:41 PM
Hi Bharath,
How the issue will be resolved..? Please use the sample netbackup scripts.. Ask your DBA to compare the script and write new one...
The script you provided seems a different one.
10-15-2015 10:57 PM
10-17-2015 02:47 AM
Hi All,
When backup triggered from DBAs (User backup), it generates child streams & its shows KBs backed up.
However if we manually try triggering from Netbckup, its completing with status 0 & no child streams.
Please help.
10-17-2015 06:22 AM
Please have a look at the sample scripts as suggested before.
When triggered from the master server, the script is run by root user. root user does not have oracle db rights. There needs to be a test for username, if not oracle, then 'su - oracle' to run rman commands.
Extract from sample script (which is missing in your backup script):
# Determine the user which is executing this script.
# ---------------------------------------------------------------------------
CUSER=`id |cut -d"(" -f2 | cut -d ")" -f1`
....
...
10-21-2015 07:18 AM
Hello,
got resolved? There are many useful pieces of advice here.
Michal
10-27-2015 08:45 PM
This is pointless... Did you manage to use the sample scripts..? Your replies doesnt make any sense...