Rman full backup issue
Hi,
The Media Management Layer GUI shows that my RMAN incremental level 0 (full) finished successfuly in the last 3 weeks.
Yet , V$RMAN_BACKUP_JOB_DETAILS shows only incremental level 1 and archive log backups :
SQL> select distinct input_type
2 from V$RMAN_BACKUP_JOB_DETAILS ;
INPUT_TYPE
ARCHIVELOG
DB INCRIt does not shows DB FULL .
What elese i can check to be sure that my Full backups are finished successfully ?
Thanks
Hi,
From the results of this statments i dont see DB FULL
SQL> select distinct object_type from v$rman_status where operation='BACKUP';
OBJECT_TYPE
DB INCR
CONTROLFILE
ARCHIVELOGIn the second suggested query , the output results suggest for FULL backup :
select ctime "Date",
decode(backup_type, 'L', 'Archive Log', 'D', 'Full', 'Incremental') backup_type,
bsize "Size MB"
from (select trunc(bp.completion_time) ctime
, backup_type
, round(sum(bp.bytes/1024/1024),2) bsize
from v$backup_set bs, v$backup_piece bp
where bs.set_stamp = bp.set_stamp
and bs.set_count = bp.set_count
and bp.status = 'A'
group by trunc(bp.completion_time), backup_type)
order by 1, 2;
Date BACKUP_TYPE Size MB
11-NOV-11 Archive Log 6304
11-NOV-11 Full 1455291 <<<<===
11-NOV-11 Incremental 1192.5
12-NOV-11 Archive Log 4718.25
12-NOV-11 Incremental 8939.5
13-NOV-11 Archive Log 7391.25
13-NOV-11 Full 23.5 <<<<===
13-NOV-11 Incremental 13892.25
14-NOV-11 Archive Log 4995.75
14-NOV-11 Full 23.5 <<<===
14-NOV-11 Incremental 4045.25
15-NOV-11 Archive Log 2249
15-NOV-11 Full 23.5 <<<<====
15-NOV-11 Incremental 1617.75This of the first Full output : 1455291 M seems OK , but the rest are too small just 23 Mega .
How come ?
Also how can i be sure that this FULL backup finished successfully ?
Thanks Again for you help
Similar Messages
-
Rman full backup시 파일이 2개씩 생성 됩니다.
rman을 사용해서 cron으로 일요일 새벽마다 full backup 을 하고 있는데, 백업 볼륨 full 이 발생해서 로그를 살펴보니 아래와 같습니다.
같은 사이즈, 같은 생성 시각의 파일들이 2개씩 생성 되었습니다.
rman 백업에 별다른 작업을 하지 않았는데도 저렇게 결과가 나오니 어떻게 해야할지 감을 못잡겠습니다, 특히 아래 두껍게 표시한 줄은 로그도 좀 잘린것 같습니다.
■ rman full backup 수행 로그
Recovery Manager: Release 8.1.6.0.0 - Production
RMAN-06005: connected to target database: ORCL (DBID=1151661191)
RMAN-06008: connected to recovery catalog database
RMAN>
RMAN-03021: executing script: full_backup
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: backup_loveme
RMAN-08500: channel backup_loveme: sid=224 devtype=DISK
RMAN-03022: compiling command: backup
RMAN-03023: executing command: backup
RMAN-08008: channel backup_loveme: starting incremental level 0 datafile backupset
RMAN-08502: set_count=14779 set_stamp=619322468 creation_time=08-APR-07
RMAN-08010: channel backup_loveme: specifying datafile(s) in backupset
RMAN-08522: input datafile fno=00085 name=/sdisk02/data/ts01.dbf
RMAN-08522: input datafile fno=00027 name=/sdisk01/data/ts02.dbf
RMAN-08522: input datafile fno=00004 name=/sdisk01/data/temp01.dbf
RMAN-08522: input datafile fno=00006 name=/sdisk01/data/indx01.dbf
RMAN-08522: input datafile fno=00015 name=/sdisk01/data/ts03.dbf
RMAN-08013: channel backup_loveme: piece 1 created
RMAN-08503: piece handle=/sdisk03/backup/ff_driek734_14779_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:11:55
RMAN-08008: channel backup_loveme: starting incremental level 0 datafile backupset
RMAN-08502: set_count=14781 set_stamp=619323184 creation_time=08-APR-07
RMAN-080RMAN-08013: channel backup_loveme: piece 1 created
RMAN-08503: piece handle=/sdisk03/backup/ff_dsiek734_14780_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:11:55
RMAN-08008: channel backup_loveme: starting incremental level 0 datafile backupset
RMAN-08502: sRMAN-08013: channel backup_loveme: piece 1 created
RMAN-08503: piece handle=/sdisk03/backup/ff_dtiek7pg_14781_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:06:55
RMAN-08008: channel backup_loveme: starting incremental level 0 datafile backupset
RMAN-08502: set_count=14783 set_stamp=619323599 creation_time=08-APR-07
RMAN-080RMAN-08013: channel backup_loveme: piece 1 created
RMAN-08503: piece handle=/sdisk03/backup/ff_duiek7pg_14782_1 comment=NONE
RMAN-08525: backup set complete, elapsed time: 00:06:55
(후략...)
■ rman full backup 생성 파일
ls -al /sdisk03/backup/*
-rw-r----- 1 oracle dba 5780783616 4월 8 02:13 backup/ff_driek734_14779_1
-rw-r----- 1 oracle dba 5780783616 4월 8 02:13 backup/ff_dsiek734_14780_1
-rw-r----- 1 oracle dba 3423191552 4월 8 02:19 backup/ff_dtiek7pg_14781_1
-rw-r----- 1 oracle dba 3423191552 4월 8 02:19 backup/ff_duiek7pg_14782_1
(후략...)
■ RMAN> print script full_backup
allocate channel backup_loveme
type disk
format '/sdisk03/backup/ff_%u_%s_%p';
backup
incremental level=0
( database include current controlfile );
글 수정:
발로차는새문제가 해결 되었습니다만 원인이 오라클과 관련 없는 문제라... 글을 삭제 하고 싶은데 삭제 기능이 없네요 ^^
원인은 시스템에 cron 데몬이 2개가 돌고 있었습니다. 문제 해결은 가까운 곳부터 찾아야 하는것 같습니다 ㅜㅜ
포럼을 어지럽혀 죄송합니다. -
Rman full backup and restoration
Hi,
I am planning to upgrade a oracle 10.2.0.2 RAC database to 10.2.0.4.
If i get any issues during oracle upgradation we need to revert back to 10.2.0.2 again.
I am not pretty perfect in RMAN, so please let me know
1) DO I need to take the full backup of RMAN?
2) Should I take cold backup or hot backup?
3) If my upgradation fails, how to come back to 10.2.0.2 again by using rman backup?
Thanks,
MahiMahi wrote:
Hi,
My new Oracle Home location is different from the old Oracle Home location.Huh? You would apply the patchset to an existing ORACLE_HOME. Where does this different location come in?
and what operating system are we talking about here?
>
Is any one please explain me how to revert back to old 10.2.0.2 database with the RMAN backup if get strucked up during the upgradation.
If you please explain with the rman commands then that could be great help for me.
Have you taken a look at the Backup and Recovery Reference?
>
Thanks,
Mahi -
Rman full backup, crash and full restore?
Hi,
I try to implement a simple backup and restore process with rman. Ok, with rman it's not simple. ;-)
My aim is to backup a database with a full backup and restore it from this backup, for example when it crashes.
Ok, for creating the backup I use this rman script:
run
allocate channel t1 type disk;
backup incremental level 0 format 'PATHTOBAKFILE' database;
release channel t1;
The result is a 1GB large backupfile.
Now I delete the whole database and create a new one to simulate a crash.
After this is done, I want to restore the state of the database which is frozen in the backupfile.
Therefor I use the following rman script:
run
allocate channel t1 type disk format 'PATHTOBACKUPFILE';
shutdown immediate;
startup mount;
restore database;
recover database;
alter database open resetlogs;
release channel t1;
Now rman tells me an error:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: Fehler bei restore Befehl auf 04/09/2008 10:24:59
RMAN-06026: Einige Ziele nicht gefunden - Recovery wird abgebrochen
RMAN-06023: Kein Backup bzw. keine Kopie der Datendatei 4 zum Wiederherstellen gefunden
RMAN-06023: Kein Backup bzw. keine Kopie der Datendatei 3 zum Wiederherstellen gefunden
RMAN-06023: Kein Backup bzw. keine Kopie der Datendatei 2 zum Wiederherstellen gefunden
RMAN-06023: Kein Backup bzw. keine Kopie der Datendatei 1 zum Wiederherstellen gefunden
In english: No backup or copy of datafile X where found for restore.
I think the backup/restore possibilities with rman are very complex and I don't exactly understand which is the right backup strategie. I'm not an oracle specialist. Maybe someone can give me a hint.
My program should backup the database full, differential and incremental and also restore only by using the given backupfiles. So I want somethink like Point-In-Time recovery, but rman should use the time-point of the given backupfile. And this backupfiles are stored outside oracle, e.g. on a server or somethink like this.
Thanks a lot for help.
Best regards,
RonnyRMAN> run
2> {
3> allocate channel t1 type disk;
4> backup incremental level 0 format 'PATHTOBAKFILE.%d.%u.P%p.C%c' current contr
olfile database;
5> release channel t1;
6> }
released channel: ORA_DISK_1
allocated channel: t1
channel t1: sid=160 devtype=DISK
Starting backup at 09-APR-08
channel t1: starting incremental level 0 datafile backupset
channel t1: specifying datafile(s) in backupset
input datafile fno=00001 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\SYSTEM01.DBF
input datafile fno=00003 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\SYSAUX01.DBF
input datafile fno=00002 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\UNDOTBS01.DBF
input datafile fno=00004 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\USERS01.DBF
channel t1: starting piece 1 at 09-APR-08
channel t1: finished piece 1 at 09-APR-08
piece handle=C:\WINDOWS\SYSTEM32\PATHTOBAKFILE.ORCL.0TJDDSC1.P1.C1 comment=NONE
channel t1: backup set complete, elapsed time: 00:01:05
channel t1: starting incremental level 0 datafile backupset
channel t1: specifying datafile(s) in backupset
including current controlfile in backupset
including current SPFILE in backupset
channel t1: starting piece 1 at 09-APR-08
channel t1: finished piece 1 at 09-APR-08
piece handle=C:\WINDOWS\SYSTEM32\PATHTOBAKFILE.ORCL.0UJDDSE2.P1.C1 comment=NONE
channel t1: backup set complete, elapsed time: 00:00:05
channel t1: starting incremental level 0 datafile backupset
channel t1: specifying datafile(s) in backupset
including current controlfile in backupset
channel t1: starting piece 1 at 09-APR-08
channel t1: finished piece 1 at 09-APR-08
piece handle=C:\WINDOWS\SYSTEM32\PATHTOBAKFILE.ORCL.0VJDDSE7.P1.C1 comment=NONE
channel t1: backup set complete, elapsed time: 00:00:02
Finished backup at 09-APR-08
released channel: t1
RMAN> list backup of controlfile
2> ;
ORACLE error from target database:
ORA-19922: there is no parent row with id 0 and level 0
ORA-06512: at "SYS.DBMS_BACKUP_RESTORE", line 5035
ORA-06512: at line 1
RMAN-06900: WARNING: unable to generate V$RMAN_STATUS or V$RMAN_OUTPUT row
RMAN-06901: WARNING: disabling update of the V$RMAN_STATUS and V$RMAN_OUTPUT row
s
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
18 Incr 0 2M DISK 00:00:02 09-APR-08
BP Key: 18 Status: AVAILABLE Compressed: NO Tag: TAG20080409T214537
Piece Name: C:\WINDOWS\SYSTEM32\PATHTOBAKFILE.ORCL.0UJDDSE2.P1.C1
Controlfile Included: Ckp SCN: 337949 Ckp time: 09-APR-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
19 Incr 0 2M DISK 00:00:01 09-APR-08
BP Key: 19 Status: AVAILABLE Compressed: NO Tag: TAG20080409T214537
Piece Name: C:\WINDOWS\SYSTEM32\PATHTOBAKFILE.ORCL.0VJDDSE7.P1.C1
Controlfile Included: Ckp SCN: 337950 Ckp time: 09-APR-08
RMAN> run
2> {
3> allocate channel t1 type disk format 'PATHTOBAKFILE.ORCL.0VJDDSE7.P1.C1';
4> shutdown immediate;
5> startup nomount;
6> restore controlfile from 'PATHTOBAKFILE.ORCL.0VJDDSE7.P1.C1';
7> startup mount;
8> restore database;
9> recover database;
10> shutdown normal;
11> startup;
12> release channel t1;
13> }
released channel: ORA_DISK_1
allocated channel: t1
channel t1: sid=160 devtype=DISK
database closed
database dismounted
Oracle instance shut down
connected to target database (not started)
Oracle instance started
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
Starting restore at 09-APR-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=160 devtype=DISK
channel ORA_DISK_1: restoring controlfile
channel ORA_DISK_1: restore complete
output filename=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\CONTROL01.CTL
output filename=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\CONTROL02.CTL
output filename=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\CONTROL03.CTL
Finished restore at 09-APR-08
database is already started
database mounted
ORACLE error from target database:
ORA-19922: there is no parent row with id 0 and level 0
ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5038
ORA-06512: at line 1
RMAN-06900: WARNING: unable to generate V$RMAN_STATUS or V$RMAN_OUTPUT row
RMAN-06901: WARNING: disabling update of the V$RMAN_STATUS and V$RMAN_OUTPUT row
s
Starting restore at 09-APR-08
Starting implicit crosscheck backup at 09-APR-08
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=160 devtype=DISK
Crosschecked 2 objects
Finished implicit crosscheck backup at 09-APR-08
Starting implicit crosscheck copy at 09-APR-08
using channel ORA_DISK_1
Finished implicit crosscheck copy at 09-APR-08
searching for all files in the recovery area
cataloging files...
cataloging done
no files cataloged
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 C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\SYSTEM01.DBF
restoring datafile 00002 to C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\UNDOTBS01.DBF
restoring datafile 00003 to C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\SYSAUX01.DBF
restoring datafile 00004 to C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\USERS01.DBF
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\WINDOWS\SYSTEM32\PATHTOBAKFILE.ORCL.0TJDDSC1.P1.C1 tag=TAG200804
09T214537
channel ORA_DISK_1: restore complete
Finished restore at 09-APR-08
Starting recover at 09-APR-08
using channel ORA_DISK_1
starting media recovery
archive log thread 1 sequence 1 is already on disk as file C:\ORACLE\PRODUCT\10.
1.0\ORADATA\ORCL\REDO02.LOG
archive log filename=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\REDO02.LOG thread=1 s
equence=1
media recovery complete
Finished recover at 09-APR-08
database dismounted
Oracle instance shut down
connected to target database (not started)
Oracle instance started
database mounted
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 04/09/2008 21:53:03
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
open database with resetlogs instead startup
RMAN>Khurram -
New to Oracle, why RMAN full backup has 3 backup files?
vendor set up the Oracle, but I noticed the backup has 3 files each time. not sure why.
A "LIST BACKUP" at the RMAN command line would show the contents of each of the BackupSets, BackupPieces.
When you run a BACKUP, RMAN does show, on-screen or to the log file if you redirect to a log, which datafiles are included in which BackupSet.
When you RESTORE DATABASE or RESTORE ARCHIVELOG RMAN reads the repository and identifies the BackupPieces automatically for each BackupSet . You do not need to specify them. However, if you are restoring a Controlfile, you could specifically identify where you want to restore the controlfile from -- because the default behaviour is to restore only the latest controlfile backup, but you might choose to restore an older controlfile. This can be done with the SET UNTIL clause or RESTORE CONTROLFILE FROM 'nameofbackuppiece' command.
Hemant K Chitale
Edited by: Hemant K Chitale on Apr 5, 2011 9:56 AM -
Hi,
I have Production Database going to live this week..
this is my RMAN Backup script for taking daily Full Hot Backup night 12pm...
I have enabled FLASH_RECOVERY_AREA
DB_RECOVERY_FILE_DEST=/backup/flash_recovery_area
log_archive_dest=/backup/archivelog
log_archive_format='arch_%d_%S_%T';
=========================================================
rman target=/
configure controlfile autobackup on;
run
allocate channel c1 device type disk;
crosscheck backup;
backup as compressed backupset database;
sql 'alter system switch logfile';
crosscheck backup;
release channel c1;
exit
===========================================================
Above script is scheduled usgin cron job...
=============================================================
Here I am not taking the archive logs backup...because..by default..archive logs are created in 2 places
(a) FLASH RECOVERY AREA
(b) /backup/archivelog
so archive logs are created by date wise in Flash Recovery Area....
I have flash recovery area structure like this for ever day
/backup/flash_recovery_area/PROD/archivelog/29_09_2007
/backup/flash_recovery_area/PROD/autobackup/29_09_2007
/backup/flash_recovery_area/PROD/archivelog/30_09_2007
/backup/flash_recovery_area/PROD/autobackup/30_09_2007
Above are 2 days backups of 29th and 30th....
I can simply send those 30_09_2007 and 29_09_2007 directories to TAPE Drive....
=======================================================================
When disaster recovery, i can restore those directories to flash_recovery_area and do the recovery using rman...
=============================================
Friends...am i goin in correct way..if anything wrong...please correct me..
my doubt is..I am not used any command of backuping up archivelogs in rman script.......becasue..archive logs are created in flash_recovery_area by date wise......
am i correct..Hi,
Thanks for the reply,
My requirement is......Full Hot Backup daily at 2 AM......Daily i have to take this...so i scheduled this using cron job......I need to maintain 7 days backup in backup location.....
Here is my script
# Export Environment Variables
export ORACLE_HOME=/oradata/oracle
export ORACLE_SID=PROD
export PATH=$PATH:$ORACLE_HOME/bin
# RMAN Full Backup
rman target / catalog rman/rman << EOF
configure controlfile autobackup on;
configure retention policy to redundancy 7;
run
crosscheck backup;
backup as compressed backupset database;
sql 'alter system switch logfile';
backup as compressed backupset archivelog all;
backup as compressed backupset current controlfile;
crosscheck backup;
crosscheck archivelog all;
delete noprompt obsolete;
delete noprompt expired backup;
exit=============================================================
Can u please verify that, script is good or not
Message was edited by:
bsubbu
Message was edited by:
bsubbu -
Still need to do full backup after using data guard?
In our system, there is a physical standby database in data guard configuration. Is there still a need to do full backup and incremental backup?
Jackliusr wrote:
In our system, there is a physical standby database in data guard configuration. Is there still a need to do full backup and incremental backup?Preferred to have full backup daily.
May be you can perform failover of your standby, in case there is no availability on primary database. Then do you think the standby system stability is same as primary and can give same performance?
standby location can be too far and this is only if in case of disaster.
Another case, lets suppose your standby is behind than primary for 4-5 days due to some issues. At the same time your production crashed then you may have chance to loose 4-5 days fo data. So recommended to have full backup always from primary database.
If you are checking stability of standby database daily and able to check your data by opening properly and you wont prefer to RMAN backup, Then it is fine. But it is highly recommended to have RMAN backup.
BTW, You can have RMAN full backup on standby, if you want to avoid resources to use on primary -
Hi,
I want to recover a tablespace from a RMAN full backup. Now the related schema has many truncated objects (in a bach process), so normal tablespace restore, recovery won't help. Have to go for TSPITR. But the time I can't fix. Is there any other way to recover the tablespace other than point-in-time recovery ?Hi Hemant,
When I run the TSIPTR recovery I am getting error,
RMAN> run {
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=UBIHQ,NB_ORA_SERV=UBIHQ';
RECOVER TABLESPACE PD811T UNTIL TIME "to_date('02-JUL-2010 23:00:00','DD-MON-YYYY HH24:MI:SS')";
auxiliary destination '/tmp';
}2> 3> 4> 5>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "auxiliary": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, copy, convert, crosscheck, configure, duplicate, debug, delete, execute, endinline, flashback, host, mount, open, plsql, recover, release, replicate, report, restore, resync, }, set, setlimit, sql, switch, startup, shutdown, send, show, transport, validate"
RMAN-01007: at line 5 column 1 file: standard input -
Cloning DB on a different server from RMAN Tape backup
RDBMS version : 11.2.0.2 on Solaris 10
Media Management Layer : Netbackup v7
I have done only backups to Tape. I have never done restore,recovery from Tape.
We have a production DB named NEHPROD running on server qualmh214. Every Monday morning an RMAN Full backup for NEHPROD is taken to Tape.
Production server : qualmh214 DB Name:NEHPROD
run
ALLOCATE CHANNEL c1 TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=qualmh214,NB_ORA_POLICY=qualmh214_rman,NB_ORA_SERV=qualmh238,NB_ORA_SCHED=Daily';
backup database FORMAT 'NEHPROD_%d_%U_%t.rbk' tag='NEHPROD_full';
}I need to create a Test DB in a different server (qualmh199) by restoring directly from NEHPROD's Full backup in tape .
From qualmh199, how can I connect to the Tape Media server ?
Even If I do connect to the Tape media server, how can i get access to tape backups of another DB? In the RMAN run block you can't specify a DB name. Right?
Even if I get access to another DB's backup , How can i specify which Date's Full backup I need to use to restore ?From qualmh199, how can I connect to the Tape Media server ?You have to allocate channels to tape & need to mention NB parameters as example below.
in RMAN script
ALLOCATE CHANNEL CH1 DEVICE TYPE SBT_TAPE PARMS 'SBT_LIBRARY=/usr/openv/netbackup/bin/libobk.so64';
SEND 'NB_ORA_SERV=<server.com>, NB_ORA_CLIENT=<target.server>';
Even If I do connect to the Tape media server, how can i get access to tape backups of another DB? In the RMAN run block you can't specify a DB name. Right?If the libraries are installed and you able to perform, you can go for either duplicate database or simple RMAN restore. You can mention other DB names also
Ex: duplicate target database to 'test';
Even if I get access to another DB's backup , How can i specify which Date's Full backup I need to use to restore ?You can mention TAG's if you are using RMAN restore. -
RMAN full DB restore on New Host
Hi There,
My RMAN full backup script is like this:
RMAN> CONNECT TARGET *
CONNECT CATALOG *
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=db1,OB2BARLIST=Off-site,OB2BARHOSTNAME=db1.blah.tr)';
backup incremental level 0
format 'Off-site<db1_%s:%t:%p>.dbf'
cumulative
database;
backup
format 'Off-site<db1_%s:%t:%p>.dbf'
archivelog all;
backup
format 'Off-site<db1_%s:%t:%p>.dbf'
current controlfile;
EXITCan you help writing a full restore/recover script...
Thanks
Edited by: user642423 on Jan 24, 2009 11:11 PMI want to restore to a New Host and the above script will not work for me...
Doing this procedure "http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmrecov.htm#i1007814" I get an error like this:
PS: I've set "maxdays 30" but again same "no autobackup found or specified handle is not a valid copy or piece" error...
channel dev_0: looking for autobackup on day: 20090125
channel dev_0: looking for autobackup on day: 20090124
channel dev_0: looking for autobackup on day: 20090123
channel dev_0: looking for autobackup on day: 20090122
channel dev_0: looking for autobackup on day: 20090121
channel dev_0: looking for autobackup on day: 20090120
channel dev_0: looking for autobackup on day: 20090119
channel dev_0: no autobackup in 7 days found
released channel: dev_0
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 01/25/2009 00:27:00
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece -
RMAN Backup Issue when Full backup file was missing
Hi,
On : 11.2.0.2 version, Recovery Manager
RMAN Backup issue
Last week we had the NFS Issue where we backup the files onto NFS.
The problem occurred in the below sequence
Saturday the backup was successful
Saturday before deleting the backup files they are copied to tape
Deleting the backup files via OS command
Sunday Full backup started but due the NFS issue backup failed(Killed the instance and restarted)
Did the RMAN Incremental backup which worked on Monday
On Tuesday RMAN started complaining and started doing the Full backup.
no parent backup or copy of datafile 1 found
no parent backup or copy of datafile 3 found
no parent backup or copy of datafile 24 foundSony any idea why the Incremental backup worked on Monday but not on Tuesday
Regards
NMOk here is why I would like exact filenames..
1) to speed the time of recovery. I am much more familiar with traditional recovery methods than RMAN, and while I myself installed and suggested RMAN for backups, our other (11i) database does not use RMAN and so I am more familiar with traditional recovery. So to be able to recover quickly I want to have these files as close as possible to the original names so that I can use my standard script (from a trace file) to recreate the control fiile. If I can get RMAN to spit out the filies with original names but keep RMAN for making the backup, I may ditch the rman bacjup script in chron and write a traditional hot backup script which copies the files the old fashioned way.
2) to reduce cloning time. The RMAN duplicate command is not as good as I thought. I was actually easier for me to restore RMAN backups first to a box that has all the same paths, and THEN shutdown (cold) these files and copy them cold to another server, and restore from there. Agaiin if I can get the original file names, I could choose to do recovery either way (RMAN or traditional) in a real emergency instead of being forced to use rman.
3) to be able to switch to a backup file in the FRA without having to rename it. Seems logical if it is already named correctly.
thanks ! Marvi -
Oracle 11.2.0.1
Windows 7 Home Premium
RMAN> backup database;
Starting backup at 05-MAR-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 03/05/2012 12:25:05
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 05-MAR-12
channel ORA_DISK_1: finished piece 1 at 05-MAR-12
piece handle=E:\APP\NISHA\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_03_05\O1_MF_NCSNF_TAG20120305T122505_7O8RTBXJ_.BKP tag=TAG20120305T122505 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 03/05/2012 12:25:05
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
RMAN> 1.What is the problem in above scnerio ?
2.How to take RMAN backup when db is down ?
3.How to take RMAN backup when db is noarchivelog mode ?
Please help me. Thank you.I am trying to do a full RMAN cold backup and am getting the following :
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
What’s the cause ?
Here’s the example
connected to target database (not started)
Oracle instance started
database mounted Total System Global Area 1610612736 bytes Fixed Size 2056504 bytes
Variable Size 603983560 bytes
Database Buffers 989855744 bytes
Redo Buffers 14716928 bytes using target database control file instead of recovery catalog
allocated channel: backup_disk1
channel backup_disk1: sid=4977 instance=TEST1 devtype=DISK Starting backup at 31-OCT-13
channel backup_disk1: starting full datafile backupset
channel backup_disk1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on backup_disk1 channel at 31/10/2013 20:18:45
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel backup_disk1: starting full datafile backupset
channel backup_disk1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on backup_disk1 channel at 13/10/2013 20:18:45
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel backup_disk1: starting full datafile backupset
channel backup_disk1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on backup_disk1 channel at 13/10/2013 20:18:46
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel backup_disk1: starting full datafile backupset
channel backup_disk1: specifying datafile(s) in backupset
released channel: backup_disk1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on backup_disk1 channel at 13/10/2013 20:18:47
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
RMAN>
The cause is simple, the database has not been shutdown cleanly. You will require to restart the database and shutdown again, if in a RAC you will have to shutdown all instances cleanly.
Disabing archive log and attempting to backup the database will demonstrate the cause.
SQL> startup force;
ORACLE instance started.
Total System Global Area 1235959808 bytes
Fixed Size 2175288 bytes
Variable Size 620760776 bytes
Database Buffers 603979776 bytes
Redo Buffers 9043968 bytes
Database mounted.
Database opened.
SQL> shutdown abort;
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 1235959808 bytes
Fixed Size 2175288 bytes
Variable Size 620760776 bytes
Database Buffers 603979776 bytes
Redo Buffers 9043968 bytes
Database mounted.
SQL>
Now we’ll try again to backup datafile 1.
RMAN> backup datafile 1;
Starting backup at 31-OCT-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=133 device type=DISK
channel ORA_DISK_1: starting compressed full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 13/10/2013 20:43:34
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
This is simply because we issue a shutdown abort on the instance. However, just preforming a recovery will allow you to backup as required.
SQL> recover database;
Media recovery complete.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:UsersGary>rman target sys/passwd@db11g
Recovery Manager: Release 11.2.0.1.0 – Production on Thu Oct 31 20:44:15 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: DB10G (DBID=3002158372, not open)
RMAN> backup datafile 1;
Starting backup at 06-DEC-10using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1channel ORA_DISK_1: SID=125 device type=DISK
channel ORA_DISK_1: starting compressed full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=C:APPGARYORACLEPRODUCT10.2.0DB_1ORADATADB10GSYSTEM01.DBF
channel ORA_DISK_1: starting piece 1 at 31-OCT-13
channel ORA_DISK_1: finished piece 1 at 31-OCT-13
piece handle=C:APPGARYORACLEPRODUCT10.2.0DB_1FLASH_RECOVERY_AREADB10GBACKUPSET2010_12_06O1_MF_NNNDF_TAG20101206T204423_6HTCR810_.BKP tag=TAG20101206T204423 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
Finished backup at 31-OCT-13
Starting Control File and SPFILE Autobackup at 31-OCT-13
piece handle=C:APPGARYORACLEPRODUCT10.2.0DB_1FLASH_RECOVERY_AREADB10GAUTOBACKUP2010_12_06O1_MF_S_737066556_6HTCSQVF_.BKP comment=NONE
Finished Control File and SPFILE Autobackup at 31-OCT-13
RMAN> exit
Interestingly, even with the recovery performed, we cannot switch back to archivelog mode without a clean shutdown.
SQL> alter database archivelog;
alter database archivelog*
ERROR at line 1:ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
SQL> recover database;
ORA-00283: recovery session canceled due to errors
ORA-00264: no recovery required
SQL> alter database archivelog;
alter database archivelog*
ERROR at line 1:ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
So we’ll startup and shutdown again. You cannot use the force option since that still does not perform a normal shutdown and you’ll get the same error.
SQL> alter database open;
Database altered.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 1235959808 bytes
Fixed Size 2175288 bytes
Variable Size 620760776 bytes
Database Buffers 603979776 bytes
Redo Buffers 9043968 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered. -
RMAN - Is it possible to run Archivelog Backup while Full backup is running
Hi,
Our full database backups runs daily in the night. It fails whenever an archivelog backup kicks off. This happens on our big databases where backups run for long hours and we have to run the archivelog backup to backup/delete the archivelogs to maintain the archivelog destinations.
Is there any way to run these 2 backups in parallel without both failing. We use RMAN catalog to take backups, and we get errors when resyncing of catalog happens during backup.
We get these errors:-
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03008: error while performing automatic resync of recovery catalog
RMAN-20033: control file sequence# too low
and sometimes
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03008: error while performing automatic resync of recovery catalog
ORA-00230: operation disallowed: snapshot control file enqueue unavailable
Our archivelog destinations are not big enough to hold more than 1 days of logs and we have backups that runs for 30 hours. We have to backup and delete the archivelogs in between, while the full backup is running and right now its failing with able errors. Is there any solution or workaround I can opt for in this scenario.
Any help is Highly appreciated. Thanks in advance for the Help.
Thanks,
VishYour primary issue is SPACE. Allocate sufficient space to keep at a MINIMUM 4 days worth of archivelogs ONLINE.
Use multiple channels
you will need to test your system to see where you get optimal throughput.
Use compression
you will need to test your system to see where you get optimal throughput.
Use disk-disk backups (and sweep to tape later)...
If RAC, 11gR2 - consider ACFS (stored in ASM as well as OS accessible).
Anything less and you could be issuing the command "alter dba update resume".
Database management is not something that should be approached lightly... If you don't have the resources - maybe you need to trim the data or if the business requires that data volume, then the business needs to allocate sufficient resources to stay in business. Catastrophic database failures and the businesses ignorance on the importance of their data is a huge contributor business failures. At one point (not sure of the latest figures) if a business suffered such a data loss, they rarely stayed in business for more than a year.
Storage is MUCH cheaper and the proper configuration and allocation of those resources than a company failure.
onedbguru, CISSP. -
Rman Full and Archivelog backups
I am scripting my rman stuff and it's part of a much larger Perl maintenance. I have nightly and hourly jobs. Nightly will do a full backup and hourly will do archivelog backup. Full backups take about 2-3 hours.
My question is: is there a problem with running archivelog backups be running while I am doing a full backup. If system resources are not an issues, what are some arguments for or against it?Thanks Tychos.
That is something that I've debated - if my full would be with Plus ArchiveLog or not. So, I've decided not to backup the log during a full backup.
This is for my nightly:
open (RMAN, "| rman target sys/$SYPASS\@$CSID catalog rman/$CATPSS\@catalog >$Rlog");
print RMAN <<"END";
run {
allocate channel d1 device type disk format \'$HBDir/$HBFiles\';
set controlfile autobackup format for device type disk to \'$HBDir/$ControlFile\';
backup as compressed backupset database;
crosscheck backup;
delete noprompt obsolete;
report need backup;}
END
close (RMAN);
This is the hourly:
open (RMAN, "| rman target sys/$SYPASS\@$CSID catalog rman/$CATPSS\@catalog >$Rlog");
print RMAN <<"END";
run {
allocate channel d1 device type disk format \'$TempArchHBDir/$BUFile\';
CROSSCHECK ARCHIVELOG ALL;
set controlfile autobackup format for device type disk to \'$HBDir/$ControlFile\';
backup archivelog all not backed up 1 times delete input;
END
close (RMAN); -
Currently have 30K pics on PC Win. 7 laptop using PSE 8, corrected issues and did full backup on portable hard drive plus saved (Extensive) Keyword tags to file. Installed PSE 13 on PC Win 8.1 laptop. Will attach same portable Hard drive to new laptop. How do I import prev Keyword Tags from file and Restore catalog from port. HD to new PC and in what order? I have not opened PSE 13 on new PC yet. Would like to do it right the first time!
No importing needed.
See these instructions: Use Backup, Restore to move catalog | Organizer | Elements 6 or later
Maybe you are looking for
-
How to config ZFS in solaris 10
hi, I'm testing solaris 10 x86 edition in my PC. but i don't find any information about how to config ZFS in 10 (X86).. ;-( if anybody know it, pls.give me some information. thanks a lot.
-
I have tried transferring my Photo Library in my old Mac to my new Mac without success. I can transfer the photos themselves but the keywords and titles are not accepted. from CES2
-
Distribution of Price difference value to Other Cost Objects in Hierarchy
Hi, I have a unique scenario for one of my client. Here we are using Cost Object Hierarchy for Cost Object Controlling. We have Two COH for Billets and Wire Rods. The Input for Billets production are Raw Materials and Input for Wire Rod Production ar
-
Calling a java application from j2ee web application
Hi, I have a j2ee application in which i am making a call to a jar file which is a java application. Runtime a4 = Runtime.getRuntime(); Runtime a = Runtime.getRuntime(); String cmd[] = new String[14]; cmd[0] = "cmd"; cmd[1] = "/c"; cmd[2] = "start";
-
I am unable to add my gmail account on iPad
I had my gmail and hotmail account set up on my iPad now since 2 weeks. Suddenly today when trying to retrieve emails on gmail a pop up came up saying my password is incorrect. That's strange in the first place. But when I enter Password it says your