cancel
Showing results for 
Search instead for 
Did you mean: 

Backup Oracle with command dd only copies the first datafile to the tape!

Former Member
0 Kudos

Hi

There are some problems with my "Backup online + redo log" in DB13. I already tried to change the initSID.sap, tape, drive, tape block and I made tests that worked in linux with the TAR and DD too. It was proposed to me that could be the version of my BRTools, but in my opinion this is not the cause for the problem. I observed that the command dd can´t to jump to the second datafile. It copies the first (/oracle/NFP/sapdata2/sr3_1/sr3.data1) to the tape and after stop, giving the error below!

My configuration is:

OS: Linux Red Hat Enterprise 5

SAP: SAP NetWeaver 2004s

DB: Oracle 10.2.0.1.0

Tape Drive: Ultrum LTO 3 400/800

Error is as follows:

BR0051I BRBACKUP 7.00 (24)

BR0055I Start of database backup: bdxzwbne.ant 2008-05-26 15.44.26

BR0484I BRBACKUP log file: /oracle/NFP/sapbackup/bdxzwbne.ant

BR0477I Oracle pfile /oracle/NFP/102_64/dbs/initNFP.ora created from spfile /oracle/NFP/102_64/dbs/spfileNFP.ora

BR0280I BRBACKUP time stamp: 2008-05-26 15.44.26

BR0319I Control file copy created: /oracle/NFP/sapbackup/cntrlNFP.dbf 13975552

BR0101I Parameters

Name Value

oracle_sid NFP

oracle_home /oracle/NFP/102_64

oracle_profile /oracle/NFP/102_64/dbs/initNFP.ora

sapdata_home /oracle/NFP

sap_profile /oracle/NFP/102_64/dbs/initNFP.sap

backup_mode ALL

backup_type online

backup_dev_type tape

compress no

tape_copy_cmd dd

cpio_flags -ovcB

cpio_in_flags -iuvcB

dd_flags obs=64k bs=64k

dd_in_flags ibs=64k bs=64k

rewind mt -f $ rewind

rewind_offline mt -f $ offline

tape_size 204800.000 MB

tape_address /dev/nst0

tape_address_rew /dev/st0

volume_backup NFPB01

expir_period 1

tape_use_count 100

exec_parallel 0

system_info nfpadm/oranfp nfeprd Linux 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64

oracle_info NFP 10.2.0.1.0 8192 2111 25800791 nfeprd UTF8 UTF8

sap_info 700 SAPSR3 0002LK0003NFP0011I13946057400013NetWeaver_ORA

make_info linuxx86_64 OCI_102 Apr 20 2007

command_line brbackup -u / -jid ALLOG20080526154426 -c force -t online -m all -p initNFP.sap -v NFPB01 -a -c force -p initNFP.sap -cds

BR0116I ARCHIVE LOG LIST before backup for database instance NFP

Parameter Value

Database log mode Archive Mode

Automatic archival Enabled

Archive destination /oracle/NFP/oraarch/NFParch

Archive format %t_%s_%r.dbf

Oldest online log sequence 2108

Next log sequence to archive 2111

Current log sequence 2111 SCN: 25800791

Database block size 8192 Thread: 1

Current system change number 25802257 ResetId: 649383142

BR0118I Tablespaces and data files

Tablespace TS-Status F-Status File Size Id. Device Link Type MaxSize IncrSize BlkSize

PSAPSR3 ONLINE* ONLINE+ /oracle/NFP/sapdata2/sr3_1/sr3.data1 4508884992 4 2057 NOLINK FILE 10485760000 20971520 8192*

PSAPSR3 ONLINE* ONLINE+ /oracle/NFP/sapdata2/sr3_2/sr3.data2 4487913472 5 2057 NOLINK FILE 10485760000 20971520 8192

PSAPSR3 ONLINE* ONLINE+ /oracle/NFP/sapdata2/sr3_3/sr3.data3 4215283712 6 2057 NOLINK FILE 10485760000 20971520 8192

PSAPSR3 ONLINE* ONLINE+ /oracle/NFP/sapdata2/sr3_4/sr3.data4 4383055872 7 2057 NOLINK FILE 10485760000 20971520 8192

PSAPSR3 ONLINE* ONLINE+ /oracle/NFP/sapdata2/sr3_5/sr3.data5 4383055872 16 2057 NOLINK FILE 10485760000 20971520 8192

PSAPSR3700 ONLINE* ONLINE+ /oracle/NFP/sapdata3/sr3700_1/sr3700.data1 3921682432 8 2057 NOLINK FILE 10485760000 20971520 8192

PSAPSR3700 ONLINE* ONLINE+ /oracle/NFP/sapdata3/sr3700_2/sr3700.data2 4068483072 9 2057 NOLINK FILE 10485760000 20971520 8192

PSAPSR3700 ONLINE* ONLINE+ /oracle/NFP/sapdata3/sr3700_3/sr3700.data3 4131397632 10 2057 NOLINK FILE 10485760000 20971520 8192

PSAPSR3700 ONLINE* ONLINE+ /oracle/NFP/sapdata3/sr3700_4/sr3700.data4 3900710912 11 2057 NOLINK FILE 10485760000 20971520 8192

PSAPSR3700 ONLINE* ONLINE+ /oracle/NFP/sapdata3/sr3700_5/sr3700.data5 3900710912 17 2057 NOLINK FILE 10485760000 20971520 8192

PSAPSR3DB ONLINE* ONLINE+ /oracle/NFP/sapdata4/sr3db_1/sr3db.data1 2097160192 13 2057 NOLINK FILE 10485760000 20971520 8192

PSAPSR3DB ONLINE* ONLINE+ /oracle/NFP/sapdata4/sr3db_2/sr3db.data2 2097160192 14 2057 NOLINK FILE 10485760000 20971520 8192

PSAPSR3DB ONLINE* ONLINE+ /oracle/NFP/sapdata4/sr3db_3/sr3db.data3 1048584192 15 2057 NOLINK FILE 10485760000 20971520 8192

PSAPSR3USR ONLINE* ONLINE+ /oracle/NFP/sapdata4/sr3usr_1/sr3usr.data1 20979712 12 2057 NOLINK FILE 10485760000 20971520 8192

PSAPTEMP ONLINE# ONLINE+ /oracle/NFP/sapdata1/temp_1/temp.data1 1048584192 -1 2057 NOLINK FILE 10485760000 20971520 8192

PSAPUNDO ONLINE- ONLINE+ /oracle/NFP/sapdata1/undo_1/undo.data1 9185533952 2 2057 NOLINK FILE 10485760000 20971520 8192

SYSAUX ONLINE* ONLINE+ /oracle/NFP/sapdata1/sysaux_1/sysaux.data1 209723392 3 2057 NOLINK FILE 10485760000 20971520 8192

SYSTEM ONLINE* SYSTEM+ /oracle/NFP/sapdata1/system_1/system.data1 524296192 1 2057 NOLINK FILE 10485760000 20971520 8192

BR0119I Redo log files

File Size Group Device Status Link Type

/oracle/NFP/origlogA/log_g11m1.dbf 52429312 1 2057 INUSE NOLINK FILE

/oracle/NFP/mirrlogA/log_g11m2.dbf 52429312 1 2057 INUSE NOLINK FILE

/oracle/NFP/origlogB/log_g12m1.dbf 52429312 2 2057 INUSE NOLINK FILE

/oracle/NFP/mirrlogB/log_g12m2.dbf 52429312 2 2057 INUSE NOLINK FILE

/oracle/NFP/origlogA/log_g13m1.dbf 52429312 3 2057 INUSE NOLINK FILE

/oracle/NFP/mirrlogA/log_g13m2.dbf 52429312 3 2057 INUSE NOLINK FILE

/oracle/NFP/origlogB/log_g14m1.dbf 52429312 4 2057 INUSE NOLINK FILE

/oracle/NFP/mirrlogB/log_g14m2.dbf 52429312 4 2057 INUSE NOLINK FILE

BR0120I Control files

File Size Id. Device Link Type

/oracle/NFP/origlogA/cntrl/cntlrNFP.dbf 13975552 0 2057 NOLINK FILE

/oracle/NFP/origlogB/cntrl/cntrlNFP.dbf 13975552 0 2057 NOLINK FILE

/oracle/NFP/sapdata1/cntrl/cntrlNFP.dbf 13975552 0 2057 NOLINK FILE

BR0616I Tablespaces in table TSORA for SAP owner SAPSR3:

PSAPSR3, PSAPSR3700, PSAPSR3USR

BR0280I BRBACKUP time stamp: 2008-05-26 15.44.26

BR0057I Backup of database: NFP

BR0058I BRBACKUP action ID: bdxzwbne

BR0059I BRBACKUP function ID: ant

BR0110I Backup mode: ALL

BR0077I Database file for backup: /oracle/NFP/sapbackup/cntrlNFP.dbf

BR0061I 18 files found for backup, total size 54453.461 MB

BR0143I Backup type: online

BR0112I Files will not be compressed

BR0130I Backup device type: tape

BR0102I Following backup device will be used: /dev/nst0

BR0103I Following backup volume will be used: NFPB01

BR0289I BRARCHIVE will be started at the end of processing

BR0134I Unattended mode with 'force' active - no operator confirmation allowed

BR0208I Volume with name NFPB01 required in device /dev/nst0

BR0280I BRBACKUP time stamp: 2008-05-26 15.44.26

BR0226I Rewinding tape volume in device /dev/st0 ...

BR0351I Restoring /oracle/NFP/sapbackup/.tape.hdr0

BR0355I from /dev/nst0 ...

BR0241I Checking label on volume in device /dev/nst0

BR0280I BRBACKUP time stamp: 2008-05-26 15.44.26

BR0226I Rewinding tape volume in device /dev/st0 ...

BR0202I Saving /oracle/NFP/sapbackup/.tape.hdr0

BR0203I to /dev/nst0 ...

BR0209I Volume in device /dev/nst0 has name NFPB01

BR0202I Saving init_ora

BR0203I to /dev/nst0 ...

BR0202I Saving /oracle/NFP/102_64/dbs/initNFP.sap

BR0203I to /dev/nst0 ...

BR0280I BRBACKUP time stamp: 2008-05-26 15.44.31

BR0198I Profiles saved successfully

BR0280I BRBACKUP time stamp: 2008-05-26 15.44.35

BR0315I 'Alter tablespace PSAPSR3 begin backup' successful

BR0202I Saving /oracle/NFP/sapdata2/sr3_1/sr3.data1

BR0203I to /dev/nst0 ...

BR0278E Command output of 'LANG=C dd obs=64k bs=64k if=/oracle/NFP/sapdata2/sr3_1/sr3.data1 of=/dev/nst0':

68800+1 records in

68800+1 records out

4508884992 bytes (4.5 GB) copied, 51.8248 seconds, 87.0 MB/s

BR0280I BRBACKUP time stamp: 2008-05-26 15.45.27

BR0279E Return code from 'LANG=C dd obs=64k bs=64k if=/oracle/NFP/sapdata2/sr3_1/sr3.data1 of=/dev/nst0': 0

BR0222E Copying /oracle/NFP/sapdata2/sr3_1/sr3.data1 to/from /dev/nst0 failed due to previous errors

BR0280I BRBACKUP time stamp: 2008-05-26 15.45.29

BR0317I 'Alter tablespace PSAPSR3 end backup' successful

BR0056I End of database backup: bdxzwbne.ant 2008-05-26 15.45.27

BR0280I BRBACKUP time stamp: 2008-05-26 15.45.29

BR0054I BRBACKUP terminated with errors

Somebody could help me in this case?

Thank´s

Douglas

Accepted Solutions (0)

Answers (1)

Answers (1)

markus_doehr2
Active Contributor
0 Kudos

> OS: Linux Red Hat Enterprise 5

> SAP: SAP NetWeaver 2004s

> DB: Oracle 10.2.0.1.0

> Tape Drive: Ultrum LTO 3 400/800

First I need to tell you that your database version is unsupported. You have to install 10.2.0.2 + the 40+ interim patches (see note 871096 - Oracle Database 10g: Patch sets/patches for 10.2.0):

<...>

10.2.0.2 is released

You must install at least Oracle patch set 10.2.0.2 if you want to use Oracle Release 10.2 in the SAP environment. In addition, apply the patches specified in this note. All patches currently required are available for 10.2.0.2. New patches will also be made available for this release.

<...>

To your error:

> BR0278E Command output of 'LANG=C dd obs=64k bs=64k if=/oracle/NFP/sapdata2/sr3_1/sr3.data1 of=/dev/nst0':

> 68800+1 records in

> 68800+1 records out

> 4508884992 bytes (4.5 GB) copied, 51.8248 seconds, 87.0 MB/s

> BR0280I BRBACKUP time stamp: 2008-05-26 15.45.27

> BR0279E Return code from 'LANG=C dd obs=64k bs=64k if=/oracle/NFP/sapdata2/sr3_1/sr3.data1 of=/dev/nst0': 0

> BR0222E Copying /oracle/NFP/sapdata2/sr3_1/sr3.data1 to/from /dev/nst0 failed due to previous errors

> BR0280I BRBACKUP time stamp: 2008-05-26 15.45.29

> BR0317I 'Alter tablespace PSAPSR3 end backup' successful

I think the returncode could not be evaluated correctly, it gets "0" back but it does think it gets something different.

I would

- upgrade the database to a supported release

- upgrade the BR*TOOLS to the latest version

--> try again

Markus