Consistent backup RMAN
hi ,
10gR2 on win 2003
i want to take the consistent backup of the database using RMAN using controlfile i fired these queries
datbase is open & database is in noarchivelog mode
my question why i everytime fail to mount the database from RMAN? i tried it with archive log option also but the result is same.
or AM i missing a step if yes suggest me steps required.
C:/rman target /@orcl
rman> shutdown immediate;
using target database control file instead of recovery catalog
database closed
database dismounted
Oracle instance shut down
RMAN> startup force dba;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 07/20/2009 11:44:57
ORA-12514: TNS:listener does not currently know of service requested in connect
rman> startup mount
RMAN> startup mount
RMAN-00571: ====================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ========
RMAN-00571: ====================================================
RMAN-03002: failure of startup command at 07/20/2009 11:47:47
RMAN-06171: not connected to target database
Thanks
Hi,
Please follow the procedure...
1. First please check if your listener is listnening for your database service by entering the Listener prompt
Lsnrctl
Then execute the command "Services"
C:\Documents and Settings\admin>lsnrctl
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 20-JUL-2009 13:07:13
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> services
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=abc)(PORT=1522)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl" has 1 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
The command completed successfully2. If it is listening to your database service....go the machine from where you want to connect to the database and check your tnsnames.ora file for the entry for your database listener. In your case i suppose its already there as you have already pasted your file and it contains entry for the ORCL.
3. Go to the command prompt and try TNSPING ORCL...See if its working.
4. Go to to the RMAN prompt...
C:\Documents and Settings\admin>rman
Recovery Manager: Release 10.2.0.1.0 - Production on Mon Jul 20 13:10:19 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect target sys/oracle@abc
connected to target database: ABC (DBID=3898979772)
RMAN>Please let us know if you still face any issues connecting to the Database through RMAN
Regards
Similar Messages
-
Hi,
in10g, I stop my DB and make a cold backup of my database (it's then a consistent backup).
Can RMAN use this backup ? How ?
Thank you.Yes, you can use a Cold Backup that was not taken by RMAN -- provided that you have the controlfile included in the backup. In RMAN you'd have to CATALOG each of the files in the backup as DATAFILE COPYies before RMAN can be "aware" of them.
If the backup was taken with an OS command, you simple use the revers e to restore it. If your backup did not include the Online Redo Logs, you'd need to use
STARTUP MOUNT
ALTER DATABASE RECOVER
CANCEL
ALTER DATABASE OPEN RESETLOGSin SQLPlus.
If you want to Apply ArchiveLogs generated after the backup, then don't open resetlogs !
continue with
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCELand CANCEL when you have applied the last available archivelog, after which you will
ALTER DATABASE OPEN RESETLOGSHemant K Chitale
http://hemantoracledba.blogspot.com
Edited by: Hemant K Chitale on Aug 30, 2009 11:31 PM -
Restore RMAN consistent backup
Hi Team,
Please let me know how to restore only my consistent backup in RMAN?
Example: Sunday consistent incremental level 0 backup by keeping the database in mount state and Monday-Saturday incremental level 1 backup.
If my database crash on Tuesday, I want to restore only the sunday consistent backup and open the database and I don't want to run the recover database command. (restore database -> alter database open). Please let me know how to do this in RMAN.
Thanks,Thanks Hemant for the Solution.
Action Taken:_
RMAN> startup nomount
RMAN> RUN
ALLOCATE CHANNEL c1 DEVICE TYPE sbt
restore controlfile;
ALTER DATABASE MOUNT;
restore database;
recover database noredo;
alter database open RESETLOGS;
Reference:
How to Restore a Cold Backup and Open Resetlogs via RMAN Without Applying Redo [ID 257326.1]
Thanks,
Mukarram -
Consistent Backup Of Online Database
Hi
How can I take consistent backup of online database.
If I open database in read only mode and take RMAN backup + Full Cold Backup from operating system commands.
Did the above backups will be consistent?
If yes please advise how to alter the status of system to read only.
Wishes
JawadCold backups are known to be a consistent backups , while Hot Backups are not considerd as conssistent backups, you required archivelogs to make them consistent . I am bit strange that you are using two backup methods . I would suggest you to use Hot Backups , if you have production database , otherwise cold backups will do the trick for you .
Hare Krishna
Alok -
Backup RMAN Incremental Level 1 without Level 0 - 10gR2
Hi,
I'm a bit confused after some tests.
The Question: It's mandatory to perform backup incremental level 0 before the level 1 using Oracle 10gR2 ?
On Oracle 11.2 it's mandatory but on Oracle 10.2.0.5 I don't know.
Test on 11.2. If doesn't exists level 0 rman take care about it and perform automaticaly level 0 before level1
RMAN> backup incremental level 1 database;
Starting backup at 29-APR-11
using channel ORA_DISK_1
no parent backup or copy of datafile 1 found
channel ORA_DISK_1: starting incremental level 0 datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
...Docs said:
Incremental backups capture only those blocks that change between backups in each datafile.
In a typical incremental backup strategy, a level 0 incremental backup is used as a starting point. A level 0 backup captures all blocks in the datafile.
So, on Oracle 10.2.0.5 this not happen like on 11.2:
Perfoming backup level 1 without level 0:
RMAN> list backup;
RMAN> backup incremental level 1 database;
Starting backup at 29-APR-11
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental level 1 datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=+DG_ORCL/db10g/datafile/system.260.749756975
channel ORA_DISK_1: starting piece 1 at 29-APR-11
channel ORA_DISK_1: finished piece 1 at 29-APR-11
piece handle=+DG_FRA/db10g/backupset/2011_04_29/nnndn1_tag20110429t190340_0.260.749761421 tag=TAG20110429T190340 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting incremental level 1 datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 29-APR-11
channel ORA_DISK_1: finished piece 1 at 29-APR-11
piece handle=+DG_FRA/db10g/backupset/2011_04_29/ncsnn1_tag20110429t190340_0.262.749761449 tag=TAG20110429T190340 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:05
Finished backup at 29-APR-11
RMAN> backup archivelog all delete input;
Starting backup at 29-APR-11
current log archived
using channel ORA_DISK_1
Finished backup at 29-APR-11
RMAN> shutdown abort;
Oracle instance shut downDelete all files on ASM (except SPFILE).
ASMCMD> cd +DG_ORCL/DB10g
ASMCMD> ls
PARAMETERFILE/
spfiledb10g.oraSo, let's perfom restore of database
oracle@butao:/home/oracle> rman target /
Recovery Manager: Release 10.2.0.5.0 - Production on Fri Apr 29 19:06:52 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database (not started)
RMAN> startup nomount
Oracle instance started
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 92275968 bytes
Database Buffers 192937984 bytes
Redo Buffers 6291456 bytes
RMAN> restore controlfile from '+DG_FRA/db10g/backupset/2011_04_29/ncsnn1_tag20110429t190340_0.262.749761449';
Starting restore at 29-APR-11
using channel ORA_DISK_1
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:05
output filename=+DG_ORCL/db10g/controlfile/current.263.749761699
output filename=+DG_FRA/db10g/controlfile/current.263.749761699
Finished restore at 29-APR-11
RMAN> startup mount
database is already started
database mounted
released channel: ORA_DISK_1
RMAN> restore database;
Starting restore at 29-APR-11
Starting implicit crosscheck backup at 29-APR-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
Crosschecked 1 objects
Finished implicit crosscheck backup at 29-APR-11
Starting implicit crosscheck copy at 29-APR-11
using channel ORA_DISK_1
Finished implicit crosscheck copy at 29-APR-11
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: +dg_fra/DB10G/BACKUPSET/2011_04_29/ncsnn1_TAG20110429T190340_0.262.749761449
File Name: +dg_fra/DB10G/BACKUPSET/2011_04_29/annnf0_TAG20110429T190442_0.264.749761485
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to +DG_ORCL/db10g/datafile/system.260.749756975
restoring datafile 00002 to +DG_ORCL/db10g/datafile/undotbs1.261.749757085
restoring datafile 00003 to +DG_ORCL/db10g/datafile/sysaux.262.749757095
restoring datafile 00004 to +DG_ORCL/db10g/datafile/users.264.749757107
channel ORA_DISK_1: reading from backup piece +DG_FRA/db10g/backupset/2011_04_29/nnndn1_tag20110429t190340_0.260.749761421
channel ORA_DISK_1: restored backup piece 1
piece handle=+DG_FRA/db10g/backupset/2011_04_29/nnndn1_tag20110429t190340_0.260.749761421 tag=TAG20110429T190340
channel ORA_DISK_1: restore complete, elapsed time: 00:00:26
Finished restore at 29-APR-11
RMAN> recover database;
Starting recover at 29-APR-11
using channel ORA_DISK_1
starting media recovery
archive log thread 1 sequence 27 is already on disk as file +DG_FRA/db10g/onlinelog/group_3.259.749756971
archive log thread 1 sequence 28 is already on disk as file +DG_FRA/db10g/onlinelog/group_1.257.749756963
archive log filename=+DG_FRA/db10g/onlinelog/group_3.259.749756971 thread=1 sequence=27
archive log filename=+DG_FRA/db10g/onlinelog/group_1.257.749756963 thread=1 sequence=28
media recovery complete, elapsed time: 00:00:02
Finished recover at 29-APR-11
RMAN> alter database open resetlogs;
database opened
RMAN>See I don't need level 0 backup to restore level 1.
Thanks,
Levi PereiraHi Gokhan,
Thank you for point this.
After spending a time studying about this I find out this:
Your expanation apply only in Oracle 10gR1/R2.
Because there is differences between RMAN Version 10gR1/R2 and 11gR1/R2 about Incremental Level 1 and this confuse me.
Oracle 10gR1/R2 run only one backup incremental level 1 even if level 0 not exists .
Oracle 11gR1/R2 run two backups incremental if level 0 not exists. i.e level 0 first and after that level 1.
Oracle 10gR2
If no level 0 backup is available, then the behavior depends upon the compatibility mode setting. If compatibility is >=10.0.0, RMAN copies all blocks changed since the file was created, and stores the results as a level 1 backup. In other words, the SCN at the time the incremental backup is taken is the file creation SCN.
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup004.htm
Thats means wich RMAN run level 0 with name level 1. (i.e: Only one Backup) This is confuse.
Oracle 11gR1
If no level 0 backup is available in either the current or parent incarnation, then the behavior varies with the compatibility mode setting. If compatibility is >=10.0.0, RMAN copies all blocks that have been changed since the file was created. Otherwise, RMAN behaves as it did in previous releases, by generating a level 0 backup.
http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmcncpt.htm#BRADV89500
Oracle 11gR2
If no level 0 backup is available in either the current or parent incarnation, then the behavior varies with the compatibility mode setting. If compatibility is >=10.0.0, RMAN copies all blocks that have been changed since the file was created. Otherwise, RMAN generates a level 0 backup.
http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmcncpt.htm#BRADV89500
Thats means wich RMAN run (automatically) level 0 first after finish level 0 backup RMAN run level 1 backup (i.e Two Backups). This seems right.
Regards,
Levi Pereira -
Operating System Consistent Backup (Archive Mode)
Hi
In archive log mode, after putting a tablespace in backup mode one by one as follows:
Alter tablespace tablespace_Name begin backup;
If I create backup using operating system commands one by one for all tablespaces. Will this backup consider as consistent? Will it require archive logs to keep it consistent?
Wishes
Jawadhi,
Your hot backups consider to be consistent only,when you have all the archivelogs sice you made the hot backup.when you put tablespace in backup mode, then the dbfile header freezes at the point you fire 'alter tablespace <name> begin backup' ;
on the other hand the rest of the files have diff scn's.this is the reason it does not consider to be a consistent backups.that dosent mean you should not take hot backups,insted oracle recommend to operate your db in archivelog mode specially if it is prod db.
hare krishna
Alok -
Relationship between current incarnation & Backups/ RMAN-20011
Hi
I have
the following situation in RMAN:
Incarnations:
>
RMAN> list incarnation;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
133 146 TESTDB 2528045035 PARENT 1 05-SEP-10
133 134 TESTDB 2528045035 CURRENT 972274 02-MAR-11
133 548 TESTDB 2528045035 ORPHAN 996374 02-MAR-11
133 646 TESTDB 2528045035 ORPHAN 996490 04-MAR-11
133 460 TESTDB 2528045035 ORPHAN 997986 02-MAR-11
>
Backups:
>
RMAN> list backup;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
176 56.57M DISK 00:00:42 02-MAR-11
BP Key: 177 Status: AVAILABLE Compressed: NO Tag: TAG20110302T100444
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/01m66vht_1_1
List of Archived Logs in backup set 176
Thrd Seq Low SCN Low Time Next SCN Next Time
1 2 977121 02-MAR-11 988286 02-MAR-11
1 3 988286 02-MAR-11 994189 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
187 Incr 0 999.72M DISK 00:15:42 02-MAR-11
BP Key: 190 Status: AVAILABLE Compressed: NO Tag: TAG20110302T100531
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/02m66vjc_1_1
List of Datafiles in backup set 187
File LV Type Ckp SCN Ckp Time Name
1 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/system01.dbf
2 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/sysaux01.dbf
3 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/undotbs01.dbf
4 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/users01.dbf
BS Key Size Device Type Elapsed Time Completion Time
201 4.48M DISK 00:00:01 02-MAR-11
BP Key: 206 Status: AVAILABLE Compressed: NO Tag: TAG20110302T102124
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/03m670h5_1_1
List of Archived Logs in backup set 201
Thrd Seq Low SCN Low Time Next SCN Next Time
1 4 994189 02-MAR-11 996336 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
214 Full 9.36M DISK 00:00:10 02-MAR-11
BP Key: 216 Status: AVAILABLE Compressed: NO Tag: TAG20110302T102129
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-00
SPFILE Included: Modification time: 02-MAR-11
SPFILE db_unique_name: TESTDB
Control File Included: Ckp SCN: 996373 Ckp time: 02-MAR-11
BS Key Size Device Type Elapsed Time Completion Time
244 757.50K DISK 00:00:01 02-MAR-11
BP Key: 247 Status: AVAILABLE Compressed: NO Tag: TAG20110302T103137
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/05m67149_1_1
List of Archived Logs in backup set 244
Thrd Seq Low SCN Low Time Next SCN Next Time
1 5 996336 02-MAR-11 997210 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
261 Incr 0 1001.02M DISK 00:13:29 02-MAR-11
BP Key: 263 Status: AVAILABLE Compressed: NO Tag: TAG20110302T103138
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/06m6714b_1_1
List of Datafiles in backup set 261
File LV Type Ckp SCN Ckp Time Name
1 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/system01.dbf
2 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/sysaux01.dbf
3 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/undotbs01.dbf
4 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/users01.dbf
BS Key Size Device Type Elapsed Time Completion Time
279 742.00K DISK 00:00:01 02-MAR-11
BP Key: 284 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104517
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/07m671tt_1_1
List of Archived Logs in backup set 279
Thrd Seq Low SCN Low Time Next SCN Next Time
1 6 997210 02-MAR-11 997953 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
297 Full 9.36M DISK 00:00:10 02-MAR-11
BP Key: 299 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104519
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-01
SPFILE Included: Modification time: 02-MAR-11
SPFILE db_unique_name: TESTDB
Control File Included: Ckp SCN: 997985 Ckp time: 02-MAR-11
BS Key Size Device Type Elapsed Time Completion Time
*342 438.00K DISK 00:00:00 02-MAR-11*
BP Key: 345 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104935
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/09m67260_1_1
List of Archived Logs in backup set 342
Thrd Seq Low SCN Low Time Next SCN Next Time
*1 7 997953 02-MAR-11 998260 02-MAR-11*
BS Key Type LV Size Device Type Elapsed Time Completion Time
*364 Incr 0 1001.65M DISK 00:14:34 02-MAR-11*
BP Key: 366 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104937
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/0am67261_1_1
List of Datafiles in backup set 364
File LV Type Ckp SCN Ckp Time Name
*1 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/system01.dbf*
*2 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/sysaux01.dbf*
*3 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/undotbs01.dbf*
*4 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/users01.dbf*
BS Key Size Device Type Elapsed Time Completion Time
*387 7.58M DISK 00:00:02 02-MAR-11*
BP Key: 392 Status: AVAILABLE Compressed: NO Tag: TAG20110302T110421
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/0bm6731m_1_1
List of Archived Logs in backup set 387
Thrd Seq Low SCN Low Time Next SCN Next Time
*1 8 998260 02-MAR-11 1000465 02-MAR-11*
BS Key Type LV Size Device Type Elapsed Time Completion Time
*410 Full 9.36M DISK 00:00:10 02-MAR-11*
BP Key: 412 Status: AVAILABLE Compressed: NO Tag: TAG20110302T110425
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-02
SPFILE Included: Modification time: 02-MAR-11
SPFILE db_unique_name: TESTDB
Control File Included: Ckp SCN: 1000507 Ckp time: 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
483 Full 9.36M DISK 00:00:05 02-MAR-11
BP Key: 484 Status: AVAILABLE Compressed: NO Tag: TAG20110302T113759
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-03
SPFILE Included: Modification time: 02-MAR-11
SPFILE db_unique_name: TESTDB
Control File Included: Ckp SCN: 998081 Ckp time: 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
571 Full 9.36M DISK 00:00:04 02-MAR-11
BP Key: 572 Status: AVAILABLE Compressed: NO Tag: TAG20110302T121754
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-04
SPFILE Included: Modification time: 02-MAR-11
SPFILE db_unique_name: TESTDB
Control File Included: Ckp SCN: 996489 Ckp time: 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
667 Full 9.36M DISK 00:00:18 04-MAR-11
BP Key: 668 Status: AVAILABLE Compressed: NO Tag: TAG20110304T132050
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110304-00
SPFILE Included: Modification time: 04-MAR-11
SPFILE db_unique_name: TESTDB
Control File Included: Ckp SCN: 996596 Ckp time: 04-MAR-11
RMAN>
>
I want rebuild the Database with the Backup (bold text).
And I get the error after executed the following script:
>
RMAN> RUN
2> {
3> # STARTUP NOMOUNT;
4> # RESTORE SPFILE TO '/u01/app/oracle/product/11.2.0.2/db_1/dbs/spfileTESTDB.ora' from TAG "TAG20110302T063849";
5> # SHUTDOWN IMMEDIATE;
6> STARTUP NOMOUNT;
7> RESTORE CONTROLFILE FROM TAG "TAG20110302T110425";
8> STARTUP MOUNT;
9> SET UNTIL SCN 1000507;
10> RESTORE DATABASE;
11> RECOVER DATABASE;
12> ALTER DATABASE OPEN RESETLOGS;
13> }
database is already started
Starting restore at 04-MAR-11
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: reading from backup piece /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-02
channel ORA_DISK_1: piece handle=/opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-02 tag=TAG20110302T110425
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
output file name=/CDATA/TESTDB/control01.ctl
output file name=/CFLASH/TESTDB/control02.ctl
Finished restore at 04-MAR-11
database is already started
database mounted
released channel: ORA_DISK_1
executing command: SET until clause
Starting restore at 04-MAR-11
Starting implicit crosscheck backup at 04-MAR-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=136 device type=DISK
Crosschecked 11 objects
Finished implicit crosscheck backup at 04-MAR-11
Starting implicit crosscheck copy at 04-MAR-11
using channel ORA_DISK_1
Finished implicit crosscheck copy at 04-MAR-11
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /CFLASH/TESTDB/archivelog/2011_03_04/o1_mf_1_1_6q1k25xs_.arc
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to /CDATA/TESTDB/system01.dbf
channel ORA_DISK_1: restoring datafile 00002 to /CDATA/TESTDB/sysaux01.dbf
channel ORA_DISK_1: restoring datafile 00003 to /CDATA/TESTDB/undotbs01.dbf
channel ORA_DISK_1: restoring datafile 00004 to /CDATA/TESTDB/users01.dbf
channel ORA_DISK_1: reading from backup piece /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/0am67261_1_1
channel ORA_DISK_1: piece handle=/opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/0am67261_1_1 tag=TAG20110302T104937
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:13:45
Finished restore at 04-MAR-11
Starting recover at 04-MAR-11
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 03/04/2011 13:47:17
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20011: target database incarnation is not current in recovery catalog
>
How can I know the right incarnation to reset current?
Please , help
reagards
hqr200475
Edited by: hqt200475 on 04.03.2011 06:19Hi Werner,
I tried some experiments to find out the Relationship between current incarnations & Backups !
Here is a listing 2 hours before with the incarnation 460:
>
RMAN> list incarnation;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
133 146 TESTDB 2528045035 PARENT 1 05-SEP-10
133 134 TESTDB 2528045035 PARENT 972274 02-MAR-11
133 548 TESTDB 2528045035 ORPHAN 996374 02-MAR-11
133 646 TESTDB 2528045035 ORPHAN 996490 04-MAR-11
133 460 TESTDB 2528045035 CURRENT 997986 02-MAR-11
RMAN> list backup;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
176 56.57M DISK 00:00:42 02-MAR-11
BP Key: 177 Status: AVAILABLE Compressed: NO Tag: TAG20110302T100444
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/01m66vht_1_1
List of Archived Logs in backup set 176
Thrd Seq Low SCN Low Time Next SCN Next Time
1 2 977121 02-MAR-11 988286 02-MAR-11
1 3 988286 02-MAR-11 994189 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
187 Incr 0 999.72M DISK 00:15:42 02-MAR-11
BP Key: 190 Status: AVAILABLE Compressed: NO Tag: TAG20110302T100531
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/02m66vjc_1_1
List of Datafiles in backup set 187
File LV Type Ckp SCN Ckp Time Name
1 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/system01.dbf
2 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/sysaux01.dbf
3 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/undotbs01.dbf
4 0 Incr 994637 02-MAR-11 /CDATA/TESTDB/users01.dbf
BS Key Size Device Type Elapsed Time Completion Time
201 4.48M DISK 00:00:01 02-MAR-11
BP Key: 206 Status: AVAILABLE Compressed: NO Tag: TAG20110302T102124
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/03m670h5_1_1
List of Archived Logs in backup set 201
Thrd Seq Low SCN Low Time Next SCN Next Time
1 4 994189 02-MAR-11 996336 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
214 Full 9.36M DISK 00:00:10 02-MAR-11
BP Key: 216 Status: AVAILABLE Compressed: NO Tag: TAG20110302T102129
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-00
SPFILE Included: Modification time: 02-MAR-11
SPFILE db_unique_name: TESTDB
Control File Included: Ckp SCN: 996373 Ckp time: 02-MAR-11
BS Key Size Device Type Elapsed Time Completion Time
244 757.50K DISK 00:00:01 02-MAR-11
BP Key: 247 Status: AVAILABLE Compressed: NO Tag: TAG20110302T103137
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/05m67149_1_1
List of Archived Logs in backup set 244
Thrd Seq Low SCN Low Time Next SCN Next Time
1 5 996336 02-MAR-11 997210 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
261 Incr 0 1001.02M DISK 00:13:29 02-MAR-11
BP Key: 263 Status: AVAILABLE Compressed: NO Tag: TAG20110302T103138
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/06m6714b_1_1
List of Datafiles in backup set 261
File LV Type Ckp SCN Ckp Time Name
1 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/system01.dbf
2 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/sysaux01.dbf
3 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/undotbs01.dbf
4 0 Incr 997238 02-MAR-11 /CDATA/TESTDB/users01.dbf
BS Key Size Device Type Elapsed Time Completion Time
279 742.00K DISK 00:00:01 02-MAR-11
BP Key: 284 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104517
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/07m671tt_1_1
List of Archived Logs in backup set 279
Thrd Seq Low SCN Low Time Next SCN Next Time
1 6 997210 02-MAR-11 997953 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
297 Full 9.36M DISK 00:00:10 02-MAR-11
BP Key: 299 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104519
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-01
SPFILE Included: Modification time: 02-MAR-11
SPFILE db_unique_name: TESTDB
Control File Included: Ckp SCN: 997985 Ckp time: 02-MAR-11
BS Key Size Device Type Elapsed Time Completion Time
342 438.00K DISK 00:00:00 02-MAR-11
BP Key: 345 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104935
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/09m67260_1_1
List of Archived Logs in backup set 342
Thrd Seq Low SCN Low Time Next SCN Next Time
1 7 997953 02-MAR-11 998260 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
364 Incr 0 1001.65M DISK 00:14:34 02-MAR-11
BP Key: 366 Status: AVAILABLE Compressed: NO Tag: TAG20110302T104937
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/0am67261_1_1
List of Datafiles in backup set 364
File LV Type Ckp SCN Ckp Time Name
1 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/system01.dbf
2 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/sysaux01.dbf
3 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/undotbs01.dbf
4 0 Incr 998289 02-MAR-11 /CDATA/TESTDB/users01.dbf
BS Key Size Device Type Elapsed Time Completion Time
387 7.58M DISK 00:00:02 02-MAR-11
BP Key: 392 Status: AVAILABLE Compressed: NO Tag: TAG20110302T110421
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/DATA/0bm6731m_1_1
List of Archived Logs in backup set 387
Thrd Seq Low SCN Low Time Next SCN Next Time
1 8 998260 02-MAR-11 1000465 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
410 Full 9.36M DISK 00:00:10 02-MAR-11
BP Key: 412 Status: AVAILABLE Compressed: NO Tag: TAG20110302T110425
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-02
SPFILE Included: Modification time: 02-MAR-11
SPFILE db_unique_name: TESTDB
Control File Included: Ckp SCN: 1000507 Ckp time: 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
483 Full 9.36M DISK 00:00:05 02-MAR-11
BP Key: 484 Status: AVAILABLE Compressed: NO Tag: TAG20110302T113759
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-03
SPFILE Included: Modification time: 02-MAR-11
SPFILE db_unique_name: TESTDB
Control File Included: Ckp SCN: 998081 Ckp time: 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
571 Full 9.36M DISK 00:00:04 02-MAR-11
BP Key: 572 Status: AVAILABLE Compressed: NO Tag: TAG20110302T121754
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110302-04
SPFILE Included: Modification time: 02-MAR-11
SPFILE db_unique_name: TESTDB
Control File Included: Ckp SCN: 996489 Ckp time: 02-MAR-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
667 Full 9.36M DISK 00:00:18 04-MAR-11
BP Key: 668 Status: AVAILABLE Compressed: NO Tag: TAG20110304T132050
Piece Name: /opt/BACKUP/11.2.0.2/RMAN/TESTDB/CONTROLFILES/c-2528045035-20110304-00
SPFILE Included: Modification time: 04-MAR-11
SPFILE db_unique_name: TESTDB
Control File Included: Ckp SCN: 996596 Ckp time: 04-MAR-11
RMAN> @TESTDB_rr.rman
RMAN> RUN
2> {
3> # STARTUP NOMOUNT;
4> # RESTORE SPFILE TO '/u01/app/oracle/product/11.2.0.2/db_1/dbs/spfileTESTDB.ora' from TAG "TAG20110302T063849";
5> # SHUTDOWN IMMEDIATE;
6> STARTUP NOMOUNT;
7> RESTORE CONTROLFILE FROM TAG "TAG20110302T110425";
8> STARTUP MOUNT;
9> SET UNTIL SCN 1000507;
10> RESTORE DATABASE;
11> RECOVER DATABASE;
12> ALTER DATABASE OPEN RESETLOGS;
13> }
database is already started
Starting restore at 04-MAR-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=12 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 03/04/2011 13:29:58
RMAN-06026: some targets not found - aborting restore
RMAN-06024: no backup or copy of the control file found to restore
RMAN> **end-of-file**
RMAN> list incarnation;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
133 146 TESTDB 2528045035 PARENT 1 05-SEP-10
133 134 TESTDB 2528045035 PARENT 972274 02-MAR-11
133 548 TESTDB 2528045035 ORPHAN 996374 02-MAR-11
133 646 TESTDB 2528045035 ORPHAN 996490 04-MAR-11
133 460 TESTDB 2528045035 CURRENT 997986 02-MAR-11
>
regards
hqt200475 -
Consistent backup of online system (NOARCIVE mode)
Hi
Is there anyway I can make consistent backup of online system running in NOARCIVE mode?
Wishes
JawadThere's only one kind of backup possible, if a database is running in noarchivelog mode, it's a cold backup, i.e. the database is down. In the past some people said an export with option 'consistent=y' is a consistent backup, but that's no longer the state of the art.
-
Dear Friends,
I am learning backup&recovery. Sometimes I feel confused during reading the guide. Here are 2 question:
1. When I take a tablespace offline normally, oracle takes a checkpoint to the tablespace's datafiles. So, All the committed data should be written to these files from online redo log, right? And these files may contain some uncommitted data, right?
2. If I shutdown the database with immediate option. Does the data files in this database contain uncommitted data? If yes, when I want to do a whole consistent backup, that's why I also need to backup the undo tablespace? is my understanding right?
Thanks,
Rickyfrom the documentation regarding question A
When a tablespace goes offline, Oracle does not permit any subsequent SQL statements to reference objects contained in that tablespace. Active transactions with completed statements that refer to data in that tablespace are not affected at the transaction level. Oracle saves rollback data corresponding to those completed statements in a deferred rollback segment in the SYSTEM tablespace. When the tablespace is brought back online, Oracle applies the rollback data to the tablespace, if needed. -
HI,
I have setup an oracle database running one of our inhouse applications on a Linux Red Hat 4 Enterprise OS. Project go live
is a few days away and I don't have time to teach myself Oracle backups at this stage. I was hoping a few experts could
help me out with the following.
1. What configuration settings do I make to Oracle database and RMAN to prepare for online backups? How do I check
that the settings have already been done?
2. what commands do I then run to trigger off a online backup and what script type do you use so it can be scheduled?
3. How do you schedule the online backup?
My plan its to do an online backup to a folder on another partiton and then use rsync to sync the backup over to another
server which has tape backup.
I also though of running a script to shutdown the databse, then use rsync to copy the databse to a new location and then
startup the database again. Anyone ever use this backup type?
Many Thanks!
Raikal.Hi 581156,
You can use RMAN to do your online backups, please can you tell us your RDBMS version,OS and if the DB is on archive mode or not? I need this to send you the right links to help you on this process.
Please take a look on this link:
http://www.orafaq.com/wiki/Oracle_database_Backup_and_Recovery_FAQ
Also if you need more information, please refer to:
http://tahiti.oracle.com/
Cheers,
Francisco Munoz Alvarez -
Hello!
i Have created two scripts :
Backup_middle.sh
rm -rf /oracle/backup/middle/*
su - oracle -c "export ORACLE_HOME=/oracle/middle && /oracle/middle/backup_restore/bkp_restore.sh -vm configure > /skrypt/backup-middle.log && /oracle/middle/backup_restore/bkp_restore.sh -vm node_backup -o prepare >> /skrypt/backup-middle.log"
export ORACLE_HOME=/oracle/middle
/oracle/middle/backup_restore/bkp_restore.sh -vm node_backup -o image_backup -P /oracle/backup/middle >> /skrypt/backup-middle.log
chown -R oracle:oinstall /oracle/backup/middle >> /skrypt/backup-middle.log
Backup_infra.sh
rm -rf /oracle/backup/infra/*
su - oracle -c "export ORACLE_HOME=/oracle/infra && /oracle/infra/backup_restore/bkp_restore.sh -vm configure > /skrypt/backup-infra.log && /oracle/infra/backup_restore/bkp_restore.sh -vm node_backup -o prepare >> /skrypt/backup-infra.log"
export ORACLE_HOME=/oracle/infra
export ORACLE_SID=orcl
/oracle/infra/backup_restore/bkp_restore.sh -vm node_backup -o image_backup -P /oracle/backup/infra >> /skrypt/backup-infra.log
chown -R oracle:oinstall /oracle/backup/infra >> /skrypt/backup-infra.log
If i run frist script backup_middle.sh and wait for finished then i run sceond script backup_infra.sh wait for finished is my cold backup will be consist?
Regards - MarcinHi,
Why you do not use cp -pR command to take an cold back-up of your midtier & infra?.
Regards,
Hamdy -
RMAN throwing errors during Tablespace Backup - RMAN-06004 and RMAN-06019
Hi All.
Please help me to fix trail of error message I'm getting while trying backup of a newly added tablespace in database. I'm using RMAN as a recovery method.
Tablespace Name: test
DB Version: Oracle 10g R1.
OS: Red Hat Linux 5
RMAN> report schema;
Report of database schema
List of Permanent Datafiles
===========================
File Size(MB) Tablespace RB segs Datafile Name
1 490 SYSTEM YES /u01/app/oracle/oradata/qrcl/system01.dbf
2 25 UNDOTBS1 YES /u01/app/oracle/oradata/qrcl/undotbs01.dbf
3 270 SYSAUX NO /u01/app/oracle/oradata/qrcl/sysaux01.dbf
4 23 USERS NO /u01/app/oracle/oradata/qrcl/users01.dbf
5 40 TEST NO /u01/app/test01.dbf
List of Temporary Files
=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
1 20 TEMP 32767 /u01/app/oracle/oradata/qrcl/temp01.dbf
RMAN>
RMAN> backup tablespace "test";
Starting backup at 22-AUG-12
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 08/22/2012 11:57:13
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20202: tablespace not found in the recovery catalog
RMAN-06019: could not translate tablespace name "test"
RMAN> restore tablespace test;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "test": expecting one of: "double-quoted-string, identifier, single-quoted-string"
RMAN-01007: at line 1 column 20 file: standard input
I tried to update Catalog Server but still no luck:
RMAN> RESYNC CATALOG;
starting full resync of recovery catalog
full resync complete
Please Assist.
Thanks
Prashant DixitHello Prashant;
The main issue is your tablespace name is an RMAN Reserved Word "Test"
http://docs.oracle.com/cd/B13789_01/server.101/b10770/rcmcomma.htm#1006728
Different test
-- Create the tablespace
CREATE TABLESPACE OTN_TEST DATAFILE
'/u01/oradata/RECOVER2/test01.dbf' SIZE 1M AUTOEXTEND OFF
LOGGING
ONLINE;-- Create a user for the tablespace
CREATE USER RMAN_TEST
IDENTIFIED BY RMAN_TEST
DEFAULT TABLESPACE OTN_TEST
TEMPORARY TABLESPACE TEMP
PROFILE DEFAULT
ACCOUNT UNLOCK;
ALTER USER RMAN_TEST QUOTA UNLIMITED ON "OTN_TEST"; -- Create a table in the tablespace
CREATE TABLE RMAN_TEST.EMP
EMPNO NUMBER,
ENAME VARCHAR2(30 BYTE),
JOB VARCHAR2(30 BYTE),
MGR NUMBER,
HIREDATE DATE,
SAL NUMBER,
COMM NUMBER,
DEPTNO NUMBER
TABLESPACE OTN_TEST;-- Add some data
SET DEFINE OFF;
Insert into RMAN_TEST.EMP
(EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
Values
(7369, 'SMITH', 'CLERK', 7902, TO_DATE('12/17/1980 00:00:00', 'MM/DD/YYYY HH24:MI:SS'),
800, 20, 0);
Insert into RMAN_TEST.EMP
(EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
Values
(5000, 'NOCATALOG', 'DBA', 77902, TO_DATE('04/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'),
200, 0, 0);
COMMIT;-- start RMAN and backup tablespace
RMAN> BACKUP TABLESPACE OTN_TEST;
Starting backup at 22-AUG-12
starting full resync of recovery catalog
full resync complete
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00007 name=/u01/oradata/RECOVER2/test01.dbf
channel ORA_DISK_1: starting piece 1 at 22-AUG-12
channel ORA_DISK_1: finished piece 1 at 22-AUG-12
piece handle=/u01/app/oracle/flash_recovery_area/RECOVER2/backupset/2012_08_22/o1_mf_nnndf_TAG20120822T080711_839pczng_.bkp tag=TAG20120822T080711 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 22-AUG-12
Starting Control File and SPFILE Autobackup at 22-AUG-12
piece handle=/u01/app/oracle/flash_recovery_area/RECOVER2/autobackup/2012_08_22/o1_mf_s_791971633_839pd1bm_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 22-AUG-12
Note
If you dropped the tablespace then you need to recover the database to a point in time, not the tablespace.
Best Regards
mseberg -
Backup RMAN (SOLARIS 8 --- WINDOWS2000)
I can make a backup full with RMAN (Solaris 8 - Oracle 9.2.0.1) and restore it on Windows 2000(2003) - Oracle 9.2.0.1?
If as I can make?
ThanksYou can do that in Oracle10g with the command CONVERT.
Purpose
To quickly transport a tablespace across different platforms. Important uses of the command include:
Content providers can publish structured data as transportable tablespaces and distribute it to customers who can easily and efficiently integrate this data into their Oracle databases, regardless of their chosen platform.
Data from a large data warehouse server can be distributed to data marts on smaller computers (for example, Windows NT workstations).
Read-only tablespaces can be shared across a heterogeneous cluster.
Note:
The CONVERT command is only one part of a multiple-step process for transporting tablespaces across platforms. The full process is described in Oracle Database Administrator's Guide. You should refer to that document before attempting to transport a tablespace across platforms.
http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10770/rcmsynta18.htm#87809
Joel Pérez
http://www.oracle.com/technology/experts -
Howto take a CONSISTENT backup of AS-Java WITHOUT shutting down?
According to the official documentation one needs to shutdown the Java instance (EP, KM, BI-Java) and backup filesystem and database at the same time to ensure consistency, so far I understood.
Since there is no easy way of finding out, who's logged in at a specific moment, we have no chance to inform logged in/working users about an imminent downtime/shutdown.
Things become even worse, if backups are taken at night when different timezones are using the system productively.
What is a recommended "best practice" for those kind of setups? Is there anywhere an information on which of the running applications writes data into the filesystem so we could probably keep it in sync with the database "manually" in case we need to recover a backup, that was taken online?
Any input greatly appreciated.
MarkusHi Markus,
my strategy is to take an online (cons) backup every night and an offline backup every sunday at 00:00.
There is a way to take an online cons backup, and now is supported in 2004s (maybe too in NW04 but NOT in was 6.20).
Here are my scripts for online/offline backup.
Online :
xcopy E:\usr\sap E:\BO\j2e /Q /E /C /H /R /O /Y
xcopy E:\FSDB E:\BO\fsdb\ /Q /E /C /H /R /O /Y
brbackup -p initp1pOnline.sap -d disk -t online_cons -m all -c -u system/password -k no -e 0 -l E -a -p initp1pOnline.sap -save_delete -d disk -n 10000 -c -u system/password -k no -l E
Offline :
stopsap name=p1p nr=00 sapdiahost=sapep1p
stopsap name=p1p nr=01 sapdiahost=sapep1p
net stop SAPP1P_00
net stop SAPP1P_01
xcopy E:\usr\sap E:\bof\j2e /Q /E /C /H /R /O /Y
xcopy E:\FSDB E:\bof\fsdb /Q /E /C /H /R /O /Y
brbackup -c -u system/password
net start SAPP1P_01
net start SAPP1P_00
startsap name=p1p nr=01 sapdiahost=sapep1p
startsap name=p1p nr=00 sapdiahost=sapep1p
I tested both backups and was able to restore from scratch without problem.
Brad -
Hello everybody,
Sometimes i got error messages on the backup of 2 databases (Oracle 11g R2). The backups are realised by dataprotector 6.1
When i execute the backup manually through dataprotector everything is fine.
In the event logs of dataprotector i can see the fails backups and there is an action adviced :
"reduce the number of channel to be egal with the simultaneous parameters in the backup"
Here is the rman script used by dataprotector :
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=SITGTD,OB2BARLIST=Sauvegarde TD)';
backup incremental level <incr_level>
format 'Sauvegarde TD<SITGTD_%s:%t:%p>.dbf'
database;
sql 'alter system archive log current';
backup
format 'Sauvegarde TD<SITGTD_%s:%t:%p>.dbf'
archivelog all
delete input;
backup
format 'Sauvegarde TD<SITGTD_%s:%t:%p>.dbf'
current controlfile;
I see only one channel described and the simultaneous parameters is set on 2.
Any one has an idea ? Is there anything i can change in the rman script ?
Thanks you.
DavidHere is the full log of the backup session :
(Dataprotector is running in French!)
[Normal] De : [email protected] "Sauvegarde TD" Heure : 17/04/2012 16:30:05
La session de sauvegarde 2012/04/17-5 a démarré.
[Normal] De : [email protected] "Sauvegarde TD" Heure : 17/04/2012 16:30:07
Lancement de l'application OB2BAR sur "tsfstd01.sitg.local" réalisé avec succès.
[Normal] De : [email protected] "SITGTD" Heure : 17/04/2012 16:30:08
D?marrage de la sauvegarde de la base de donn?es cible.
Nom du service r?seau : SITGTD.
Etat de l'instance : OPEN.
Nom d'instance : sitgtd.
DBID de la base de donn?es = 1478710307.
Type de fichier de contr?le de BDD : CURRENT.
Mode journalisation BDD : ARCHIVELOG.
[Normal] De : [email protected] "SITGTD" Heure : 17/04/2012 16:30:09
D?marrage de Oracle Recovery Manager.
Recovery Manager: Release 11.2.0.1.0 - Production on Tue Apr 17 16:30:09 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN> CONNECT TARGET *
2> HOST 'exit';
3> run {
4> allocate channel 'dev_0' type 'sbt_tape'
5> parms 'SBT_LIBRARY=C:/PROGRA~1/OmniBack/bin/orasbt.dll,ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=SITGTD,OB2BARLIST=Sauvegarde TD)';
6>
7> send device type 'sbt_tape' 'OB2BACKUPTYPE=1';
8> send device type 'sbt_tape' 'OB2BARHOSTNAME=tsfstd01.sitg.local';
9> backup incremental level 1
10> format 'Sauvegarde TD<SITGTD_%s:%t:%p>.dbf'
11> database;
12> sql 'alter system archive log current';
13> backup
14> format 'Sauvegarde TD<SITGTD_%s:%t:%p>.dbf'
15> archivelog all
16> delete input;
17> backup
18> format 'Sauvegarde TD<SITGTD_%s:%t:%p>.dbf'
19> current controlfile;
20> }
21> EXIT
RMAN-06005: connected to target database: SITGTD (DBID=1478710307)
RMAN-06009: using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on dev_0 channel at 04/17/2012 16:30:10
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
Recovery Manager complete.
[Majeur] De : [email protected] "SITGTD" Heure : 17/04/2012 16:30:10
Erreur signal?e par utilitaire externe.
RMAN PID=5692
[Majeur] De : [email protected] "SITGTD" Heure : 17/04/2012 16:30:10
La base de donn?es a signal? une erreur pendant l'ex?cution de l'op?ration demand?e.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on dev_0 channel at 04/17/2012 16:30:10
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
Recovery Manager complete.
[Majeur] De : [email protected] "SITGTD" Heure : 17/04/2012 16:30:10
Oracle Recovery Manager termin? avec erreurs.
[Majeur] De : [email protected] "SITGTD" Heure : 17/04/2012 16:30:10
Impossible de sauvegarder la base de donn?es cible.
[Normal] De : [email protected] "Sauvegarde TD" Heure : 17/04/2012 16:30:47
Application OB2BAR sur "tsfstd01.sitg.local" déconnectée.
[Critique] De : [email protected] "Sauvegarde TD" Heure : 17/04/2012 16:30:47
Aucun Agent de disque ne s'est effectué correctement.
La session a échoué.
[Normal] De : [email protected] "Sauvegarde TD" Heure : 17/04/2012 16:30:47
Statistiques de la sauvegarde :
Temps de file d'attente de la session (en heures) 0,00
Agents de disque terminés ........ 0
Agents de disque ayant échoué ........... 0
Agents de disque abandonnés .......... 0
Total des Agents de disque ........... 0
========================================
Agents de support terminés ....... 0
Agents de support ayant échoué .......... 0
Abandon des Agents de support ......... 0
Total des Agents de support .......... 0
===========================================
Total Méga-octets ................. 0 Mo
Total des supports utilisés ............. 0
Total d'erreurs d'Agent de disque ...... 0
============================================================================
Echec de la session !
============================================================================
Thanks for your help.
Maybe you are looking for
-
SAP NETWEAVER COMPOSITION ENVIRONMENT 7.1 EHP1 - System doesn't start
Hello,<br> <br> after i get the message the installation was succesfully and i start the server the proces jstart.exe<br> <br> doesn't start completely.<br> <br> in the trace file dev_jstart in find this error message:<br> <br> F Starting process: D
-
Two person using One Account same time with differ...
2 days ago when i using skype chat with my friends , my girlfriend login to my skype account from different ip and watched all our conversation than sended to me ? How it can be.? Where is the privacy? 1 account using two person at the same time 1 is
-
Export error: Writer not found
Hello, I am using PPCS3 with Aspect HD. I am using the Cineform HD 30p preset. I keep getting an export error: writer not found when I try to export a short movie using two uncompressed .avi's I obtained from 3DS Max 2009. Any ideas what "Writer not
-
Characters in a message with E6 Belle
Dear Users, I have updated my E6 to Nokia Belle, I notice that I'm not able to know how many characters used for a message in both languages (Arabic & English), Awaiting for your reply, Regards Solved! Go to Solution. Attachments: 14022012008.jpg 32
-
Dear All, I needs to write a BDC For the Tr F-54. Can any one tell me is there any BAPI for the Clear vendor down payments(F-54). Plz help me. Thanks & Regards, Durai.T