Showing posts with label sbtbackup. Show all posts
Showing posts with label sbtbackup. Show all posts

Friday, March 7, 2014

RMAN-03002: failure of shutdown command at 03/02/2014 09:31:22

DP sends the commands from the script (provided in the backup spec) sequentially via. DP Integration to RMAN to start Offline backup of Oracle database as follows.

RMAN> CONNECT TARGET *
2> CONNECT CATALOG *
3> HOST 'exit';
4> run {
5> shutdown immediate;
6> startup mount;
7> allocate channel 'dev_0' type 'sbt_tape'
8> parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=oradb101,OB2BARLIST=Oracle_DB_Spec01)';
9> 
10> send device type 'sbt_tape' 'OB2BARHOSTNAME=Orasrv01';
11> backup incremental level 0
12>  format 'Oracle_DB_Spec01<oradb101_%s:%t:%p>.dbf'
13>  database;
14> backup
15>  format 'Oracle_DB_Spec01<oradb101_%s:%t:%p>.dbf'
16>  current controlfile;
17> alter database open;
18> }
19> EXIT
RMAN-06005: connected to target database: oradb101 (DBID=101)

RMAN-06008: connected to recovery catalog database


RMAN-00571: ==================================================
RMAN-00569: ========= ERROR MESSAGE STACK FOLLOWS =========
RMAN-00571: ==================================================
RMAN-03002: failure of shutdown command at 03/02/2014 09:31:22
ORA-01013: user requested cancel of current operation

Recovery Manager complete.
[Major] From: ob2rman@Orasrv01 "oradb101"  Time: 03/02/14 09:31:22
            External utility reported error.

Execution of the script starts and there was connection established between DP and the Oracle database via. DP Integration. Eventually, once the backup goes smooth the script would bring the database online and complete, if not continue reading the post till end.

The backup has error messages:
RMAN-03002: failure of shutdown command at 03/02/2014 09:31:22
ORA-01013: user requested cancel of current operation

Here, the database is refusing the shutdown command issued by the backup script. Offline backup requires database to be in down and mounted status. Check if the database is engaged by long running tasks if any. 

That's right, when we checked the database was busy with long running oracle jobs which was the root cause to override the shutdown command. Try running the backup when the DB is free from jobs/tasks and during non-business/less or no traffic to DB, after all it's an offline backup.


Wednesday, February 26, 2014

ORA-19511: Error received from media manager layer, error text: Vendor specific error: OB2_StartObjectBackup() failed ERR(-17)

RMAN-03090: Starting backup at 22-FEB-14
RMAN- 0 : channel dev_0: starting incremental level 0 datafile backupset
RMAN- 010: channel dev_0: specifying datafile(s) in backupset
RMAN- 522: input datafile fno=00007 name=/var/opt/vgdb/u01/oracle/DB007/ DB007_DB7_datas01.dbf
RMAN- 522: input datafile fno=000  name=/var/opt/vgdb/u01/oracle/DB007/ DB007_DB7_indexs01.dbf
RMAN- 522: input datafile fno=00001 name=/var/opt/vgdb07/u01/oracle/DB007/ DB007_system01.dbf
RMAN- 522: input datafile fno=00002 name=/var/opt/vgdb07/u01/oracle/DB007/ DB007_undotbs101.dbf
RMAN- 522: input datafile fno=00003 name=/var/opt/vgdb06/u01/oracle/DB007/ DB007_data01s01.dbf
RMAN- 522: input datafile fno=00004 name=/var/opt/vgdb07/u01/oracle/DB007/ DB007_indx01s01.dbf
RMAN- 522: input datafile fno=00005 name=/var/opt/vgdb07/u01/oracle/DB007/ DB007_tools01.dbf
RMAN- 522: input datafile fno=00006 name=/var/opt/vgdb06/u01/oracle/DB007/ DB007_users01.dbf
RMAN- 038: channel dev_0: starting piece 1 at 22-FEB-14
RMAN- 031: released channel: dev_0
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on dev_0 channel at 02/22/2014 21:36:50
ORA-19506: failed to create sequential file, name="Oracle8_Spec01_DB007_ONLINE< DB00701_677:840231409:1>.dbf", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
   Vendor specific error: OB2_StartObjectBackup() failed ERR(-17)

Recovery Manager complete.
[Major] From: ob2rman@oraserver01 "DB00701"  Time: 02/22/14 21:36:50
 External utility reported error.

RMAN PID=7092

[Major] From: ob2rman@oraserver01 "DB00701"  Time: 02/22/14 21:36:50
 The database reported error while performing requested operation.

Solution:

>> The backup data is destined to file library which ran out of free space.
>> Created free space and reran the backup, which was successful.