RMAN Help
Hi all,
My Os is Red Hat Linux 4
Oracle 9i
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/nishant/rmanbackup/control/%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 3;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backup/nishant/rmanbackup/%d_%s_%p_%u.bak';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/backup/nishant/rmanbackup/control/snapcf_orcl.f';
RMAN configuration has no stored or default parametersI have taken an increment level 0 backup today morning and I have add one tablespace now but when I query
RMAN> report need backup;
RMAN retention policy will be applied to the command
RMAN retention policy is set to recovery window of 30 days
Report of files whose recovery needs more than 30 days of archived logs
File Days Name
RMAN>Nothing is showing
In this situation if I lost the new tablespaces datafile, can I restore and recover that datafile?
Thaks
In this situation if I lost the new tablespaces
datafile, can I restore and recover that datafile?While it is definitely recommended to take the backup of newly created tablespace, you still should be able to recover without the backup:
http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmrecov.htm#1008332
Similar Messages
-
Hi RMAN expert
I have to do a recover test excercice on a RAC cluster 11gr2 aix with ASM.
Do you have a test plan i could use in order to perform those restores tests plase?I have attached the full procedure with restore and recover
SQL> shut abort
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 2137886720 bytes
Fixed Size 2167544 bytes
Variable Size 822668552 bytes
Database Buffers 1308622848 bytes
Redo Buffers 4427776 bytes
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
[oracle@plzorat08 dbs]$ rman target /
Recovery Manager: Release 11.1.0.7.0 - Production on Thu Apr 29 19:30:51 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: TEST01 (not mounted)
RMAN> restore controlfile from '/U01/SHARE/TEST01/c-2203988173-20100429-05';
Starting restore at 29-APR-10
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=146 device type=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
output file name=+DATA01/TEST01/control01.dbf
output file name=+FLASH01/TEST01/control02.ctl
Finished restore at 29-APR-10
RMAN> sql'alter database mount';
sql statement: alter database mount
released channel: ORA_DISK_1
RMAN> Run{
allocate channel ch1 device type disk;
allocate channel ch2 device type disk;
allocate channel ch3 device type disk;
allocate channel ch4 device type disk;
SET UNTIL SEQUENCE 788 THREAD 1;
restore database ;
recover database;
2> 3> 4> 5> 6> 7> 8> 9>
allocated channel: ch1
channel ch1: SID=144 device type=DISK
allocated channel: ch2
channel ch2: SID=143 device type=DISK
allocated channel: ch3
channel ch3: SID=142 device type=DISK
allocated channel: ch4
channel ch4: SID=141 device type=DISK
executing command: SET until clause
Starting restore at 29-APR-10
Starting implicit crosscheck backup at 29-APR-10
Crosschecked 71 objects
Crosschecked 3 objects
Finished implicit crosscheck backup at 29-APR-10
Starting implicit crosscheck copy at 29-APR-10
Finished implicit crosscheck copy at 29-APR-10
searching for all files in the recovery area
cataloging files...
no files cataloged
channel ch1: starting datafile backup set restore
channel ch1: specifying datafile(s) to restore from backup set
channel ch1: restoring datafile 00001 to +DATA01/TEST01/datafile/system.492.703344339
channel ch1: restoring datafile 00003 to +DATA01/TEST01/datafile/undotbs1.500.703344345
channel ch1: restoring datafile 00004 to +DATA01/TEST01/datafile/users.461.703344355
channel ch1: reading from backup piece /U01/SHARE/TEST01/TEST01_20100424_717170412_2008
channel ch2: starting datafile backup set restore
channel ch2: specifying datafile(s) to restore from backup set
channel ch2: restoring datafile 00002 to +DATA01/TEST01/datafile/sysaux.460.703344343
channel ch2: restoring datafile 00005 to +DATA01/TEST01/datafile/oddevcontent.dbf
channel ch2: reading from backup piece /U01/SHARE/TEST01/TEST01_20100424_717170412_2009
channel ch1: piece handle=/U01/SHARE/TEST01/TEST01_20100424_717170412_2008 tag=APR241402
channel ch1: restored backup piece 1
channel ch1: restore complete, elapsed time: 00:00:45
channel ch2: piece handle=/U01/SHARE/TEST01/TEST01_20100424_717170412_2009 tag=APR241402
channel ch2: restored backup piece 1
channel ch2: restore complete, elapsed time: 00:00:55
Finished restore at 29-APR-10
Starting recover at 29-APR-10
starting media recovery
channel ch1: starting archived log restore to default destination
channel ch1: restoring archived log
archived log thread=1 sequence=754
channel ch1: reading from backup piece /U01/SHARE/TEST01/TEST01_20100424_717170501_2011
channel ch2: starting archived log restore to default destination
channel ch2: restoring archived log
archived log thread=1 sequence=755
channel ch2: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100424_717188424_2017
channel ch3: starting archived log restore to default destination
channel ch3: restoring archived log
archived log thread=1 sequence=756
channel ch3: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100424_717202820_2019
channel ch4: starting archived log restore to default destination
channel ch4: restoring archived log
archived log thread=1 sequence=757
channel ch4: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100425_717217216_2023
channel ch2: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100424_717188424_2017 tag=APR241900
channel ch2: restored backup piece 1
channel ch2: restore complete, elapsed time: 00:00:01
channel ch2: starting archived log restore to default destination
channel ch2: restoring archived log
archived log thread=1 sequence=758
channel ch2: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100425_717231614_2025
channel ch1: piece handle=/U01/SHARE/TEST01/TEST01_20100424_717170501_2011 tag=APR241402
channel ch1: restored backup piece 1
channel ch1: restore complete, elapsed time: 00:00:02
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_754.478.717622461 thread=1 sequence=754
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_754.478.717622461 RECID=722 STAMP=717622461
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_755.259.717622461 thread=1 sequence=755
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_755.259.717622461 RECID=719 STAMP=717622461
channel ch1: starting archived log restore to default destination
channel ch1: restoring archived log
archived log thread=1 sequence=759
channel ch1: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100425_717246011_2028
channel ch3: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100424_717202820_2019 tag=APR242300
channel ch3: restored backup piece 1
channel ch3: restore complete, elapsed time: 00:00:04
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_756.381.717622461 thread=1 sequence=756
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_756.381.717622461 RECID=721 STAMP=717622461
channel ch3: starting archived log restore to default destination
channel ch3: restoring archived log
archived log thread=1 sequence=760
channel ch3: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100425_717260412_2032
channel ch4: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100425_717217216_2023 tag=APR250300
channel ch4: restored backup piece 1
channel ch4: restore complete, elapsed time: 00:00:05
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_757.506.717622461 thread=1 sequence=757
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_757.506.717622461 RECID=720 STAMP=717622461
channel ch4: starting archived log restore to default destination
channel ch4: restoring archived log
archived log thread=1 sequence=761
channel ch4: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100425_717274827_2034
channel ch1: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100425_717246011_2028 tag=APR251100
channel ch1: restored backup piece 1
channel ch1: restore complete, elapsed time: 00:00:02
channel ch1: starting archived log restore to default destination
channel ch1: restoring archived log
archived log thread=1 sequence=762
channel ch1: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100425_717289217_2037
channel ch2: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100425_717231614_2025 tag=APR250700
channel ch2: restored backup piece 1
channel ch2: restore complete, elapsed time: 00:00:05
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_758.465.717622463 thread=1 sequence=758
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_758.465.717622463 RECID=723 STAMP=717622464
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_759.259.717622465 thread=1 sequence=759
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_759.259.717622465 RECID=724 STAMP=717622464
channel ch2: starting archived log restore to default destination
channel ch2: restoring archived log
archived log thread=1 sequence=763
channel ch2: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100426_717303615_2041
channel ch3: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100425_717260412_2032 tag=APR251500
channel ch3: restored backup piece 1
channel ch3: restore complete, elapsed time: 00:00:08
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_760.381.717622465 thread=1 sequence=760
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_760.381.717622465 RECID=725 STAMP=717622466
channel ch3: starting archived log restore to default destination
channel ch3: restoring archived log
archived log thread=1 sequence=764
channel ch3: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100426_717318010_2043
channel ch1: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100425_717289217_2037 tag=APR252300
channel ch1: restored backup piece 1
channel ch1: restore complete, elapsed time: 00:00:07
channel ch1: starting archived log restore to default destination
channel ch1: restoring archived log
archived log thread=1 sequence=765
channel ch1: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100426_717332414_2047
channel ch2: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100426_717303615_2041 tag=APR260300
channel ch2: restored backup piece 1
channel ch2: restore complete, elapsed time: 00:00:02
channel ch2: starting archived log restore to default destination
channel ch2: restoring archived log
archived log thread=1 sequence=766
channel ch2: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100426_717346813_2050
channel ch4: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100425_717274827_2034 tag=APR251900
channel ch4: restored backup piece 1
channel ch4: restore complete, elapsed time: 00:00:09
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_761.506.717622467 thread=1 sequence=761
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_761.506.717622467 RECID=726 STAMP=717622467
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_762.478.717622467 thread=1 sequence=762
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_762.478.717622467 RECID=727 STAMP=717622467
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_763.259.717622473 thread=1 sequence=763
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_763.259.717622473 RECID=728 STAMP=717622474
channel ch4: starting archived log restore to default destination
channel ch4: restoring archived log
archived log thread=1 sequence=767
channel ch4: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100426_717361213_2053
channel ch1: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100426_717332414_2047 tag=APR261100
channel ch1: restored backup piece 1
channel ch1: restore complete, elapsed time: 00:00:05
channel ch1: starting archived log restore to default destination
channel ch1: restoring archived log
archived log thread=1 sequence=768
channel ch1: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100426_717375616_2056
channel ch2: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100426_717346813_2050 tag=APR261500
channel ch2: restored backup piece 1
channel ch2: restore complete, elapsed time: 00:00:05
channel ch2: starting archived log restore to default destination
channel ch2: restoring archived log
archived log thread=1 sequence=769
channel ch2: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100427_717390016_2059
channel ch3: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100426_717318010_2043 tag=APR260700
channel ch3: restored backup piece 1
channel ch3: restore complete, elapsed time: 00:00:06
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_764.381.717622475 thread=1 sequence=764
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_764.381.717622475 RECID=731 STAMP=717622477
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_765.465.717622475 thread=1 sequence=765
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_765.465.717622475 RECID=729 STAMP=717622476
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_766.514.717622475 thread=1 sequence=766
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_766.514.717622475 RECID=730 STAMP=717622476
channel ch3: starting archived log restore to default destination
channel ch3: restoring archived log
archived log thread=1 sequence=770
channel ch3: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100427_717404413_2061
channel ch1: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100426_717375616_2056 tag=APR262300
channel ch1: restored backup piece 1
channel ch1: restore complete, elapsed time: 00:00:06
channel ch1: starting archived log restore to default destination
channel ch1: restoring archived log
archived log thread=1 sequence=771
channel ch1: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100427_717418812_2065
channel ch2: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100427_717390016_2059 tag=APR270300
channel ch2: restored backup piece 1
channel ch2: restore complete, elapsed time: 00:00:06
channel ch2: starting archived log restore to default destination
channel ch2: restoring archived log
archived log thread=1 sequence=772
channel ch2: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100427_717433213_2068
channel ch4: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100426_717361213_2053 tag=APR261900
channel ch4: restored backup piece 1
channel ch4: restore complete, elapsed time: 00:00:06
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_767.259.717622481 thread=1 sequence=767
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_767.259.717622481 RECID=732 STAMP=717622481
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_768.478.717622481 thread=1 sequence=768
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_768.478.717622481 RECID=733 STAMP=717622481
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_769.506.717622481 thread=1 sequence=769
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_769.506.717622481 RECID=734 STAMP=717622481
channel ch4: starting archived log restore to default destination
channel ch4: restoring archived log
archived log thread=1 sequence=773
channel ch4: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100427_717447616_2070
channel ch1: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100427_717418812_2065 tag=APR271100
channel ch1: restored backup piece 1
channel ch1: restore complete, elapsed time: 00:00:05
channel ch1: starting archived log restore to default destination
channel ch1: restoring archived log
archived log thread=1 sequence=774
channel ch1: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100427_717462024_2073
channel ch2: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100427_717433213_2068 tag=APR271500
channel ch2: restored backup piece 1
channel ch2: restore complete, elapsed time: 00:00:06
channel ch2: starting archived log restore to default destination
channel ch2: restoring archived log
archived log thread=1 sequence=775
channel ch2: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100428_717476418_2077
channel ch3: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100427_717404413_2061 tag=APR270700
channel ch3: restored backup piece 1
channel ch3: restore complete, elapsed time: 00:00:06
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_770.514.717622487 thread=1 sequence=770
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_770.514.717622487 RECID=737 STAMP=717622488
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_771.465.717622487 thread=1 sequence=771
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_771.465.717622487 RECID=735 STAMP=717622487
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_772.381.717622487 thread=1 sequence=772
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_772.381.717622487 RECID=736 STAMP=717622487
channel ch3: starting archived log restore to default destination
channel ch3: restoring archived log
archived log thread=1 sequence=776
channel ch3: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100428_717490815_2079
channel ch1: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100427_717462024_2073 tag=APR272300
channel ch1: restored backup piece 1
channel ch1: restore complete, elapsed time: 00:00:06
channel ch1: starting archived log restore to default destination
channel ch1: restoring archived log
archived log thread=1 sequence=777
channel ch1: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100428_717505215_2083
channel ch2: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100428_717476418_2077 tag=APR280300
channel ch2: restored backup piece 1
channel ch2: restore complete, elapsed time: 00:00:06
channel ch2: starting archived log restore to default destination
channel ch2: restoring archived log
archived log thread=1 sequence=778
channel ch2: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100428_717519612_2086
channel ch4: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100427_717447616_2070 tag=APR271900
channel ch4: restored backup piece 1
channel ch4: restore complete, elapsed time: 00:00:07
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_773.506.717622493 thread=1 sequence=773
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_773.506.717622493 RECID=738 STAMP=717622493
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_774.478.717622493 thread=1 sequence=774
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_774.478.717622493 RECID=739 STAMP=717622493
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_775.259.717622493 thread=1 sequence=775
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_775.259.717622493 RECID=740 STAMP=717622493
channel ch4: starting archived log restore to default destination
channel ch4: restoring archived log
archived log thread=1 sequence=779
channel ch4: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100428_717534016_2089
channel ch1: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100428_717505215_2083 tag=APR281100
channel ch1: restored backup piece 1
channel ch1: restore complete, elapsed time: 00:00:03
channel ch1: starting archived log restore to default destination
channel ch1: restoring archived log
archived log thread=1 sequence=780
channel ch1: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100428_717548420_2091
channel ch2: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100428_717519612_2086 tag=APR281500
channel ch2: restored backup piece 1
channel ch2: restore complete, elapsed time: 00:00:04
channel ch2: starting archived log restore to default destination
channel ch2: restoring archived log
archived log thread=1 sequence=781
channel ch2: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100429_717562813_2095
channel ch3: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100428_717490815_2079 tag=APR280700
channel ch3: restored backup piece 1
channel ch3: restore complete, elapsed time: 00:00:04
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_776.381.717622499 thread=1 sequence=776
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_776.381.717622499 RECID=743 STAMP=717622500
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_777.465.717622499 thread=1 sequence=777
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_777.465.717622499 RECID=741 STAMP=717622498
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_778.514.717622499 thread=1 sequence=778
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_778.514.717622499 RECID=742 STAMP=717622499
channel ch3: starting archived log restore to default destination
channel ch3: restoring archived log
archived log thread=1 sequence=782
channel ch3: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100429_717577211_2097
channel ch1: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100428_717548420_2091 tag=APR282300
channel ch1: restored backup piece 1
channel ch1: restore complete, elapsed time: 00:00:06
channel ch1: starting archived log restore to default destination
channel ch1: restoring archived log
archived log thread=1 sequence=783
channel ch1: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100429_717591612_2101
channel ch2: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100429_717562813_2095 tag=APR290300
channel ch2: restored backup piece 1
channel ch2: restore complete, elapsed time: 00:00:06
channel ch2: starting archived log restore to default destination
channel ch2: restoring archived log
archived log thread=1 sequence=784
channel ch2: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100429_717603704_2103
channel ch4: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100428_717534016_2089 tag=APR281900
channel ch4: restored backup piece 1
channel ch4: restore complete, elapsed time: 00:00:08
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_779.259.717622503 thread=1 sequence=779
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_779.259.717622503 RECID=744 STAMP=717622503
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_780.478.717622503 thread=1 sequence=780
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_780.478.717622503 RECID=745 STAMP=717622503
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_781.506.717622503 thread=1 sequence=781
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_781.506.717622503 RECID=746 STAMP=717622503
channel ch4: starting archived log restore to default destination
channel ch4: restoring archived log
archived log thread=1 sequence=785
channel ch4: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100429_717606017_2106
channel ch1: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100429_717591612_2101 tag=APR291100
channel ch1: restored backup piece 1
channel ch1: restore complete, elapsed time: 00:00:04
channel ch1: starting archived log restore to default destination
channel ch1: restoring archived log
archived log thread=1 sequence=786
channel ch1: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100429_717620417_2110
channel ch2: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100429_717603704_2103 tag=APR291421
channel ch2: restored backup piece 1
channel ch2: restore complete, elapsed time: 00:00:03
channel ch2: starting archived log restore to default destination
channel ch2: restoring archived log
archived log thread=1 sequence=787
channel ch2: reading from backup piece /U01/SHARE/TEST01/TEST01_ARCH_20100429_717620417_2109
channel ch3: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100429_717577211_2097 tag=APR290700
channel ch3: restored backup piece 1
channel ch3: restore complete, elapsed time: 00:00:04
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_782.514.717622509 thread=1 sequence=782
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_782.514.717622509 RECID=749 STAMP=717622511
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_783.465.717622509 thread=1 sequence=783
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_783.465.717622509 RECID=747 STAMP=717622509
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_784.381.717622509 thread=1 sequence=784
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_784.381.717622509 RECID=748 STAMP=717622510
channel ch1: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100429_717620417_2110 tag=APR291900
channel ch1: restored backup piece 1
channel ch1: restore complete, elapsed time: 00:00:06
channel ch2: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100429_717620417_2109 tag=APR291900
channel ch2: restored backup piece 1
channel ch2: restore complete, elapsed time: 00:00:06
channel ch4: piece handle=/U01/SHARE/TEST01/TEST01_ARCH_20100429_717606017_2106 tag=APR291500
channel ch4: restored backup piece 1
channel ch4: restore complete, elapsed time: 00:00:06
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_785.506.717622513 thread=1 sequence=785
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_785.506.717622513 RECID=751 STAMP=717622513
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_786.478.717622513 thread=1 sequence=786
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_786.478.717622513 RECID=750 STAMP=717622513
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_787.259.717622513 thread=1 sequence=787
channel default: deleting archived log(s)
archived log file name=+FLASH01/TEST01/archivelog/2010_04_29/thread_1_seq_787.259.717622513 RECID=752 STAMP=717622513
media recovery complete, elapsed time: 00:00:02
Finished recover at 29-APR-10
released channel: ch1
released channel: ch2
released channel: ch3
released channel: ch4
RMAN> sql 'alter database open resetlogs';
sql statement: alter database open resetlogs
RMAN> -
Hallo ...
I'm new like DBA and in the second day I have already I problem .... so
It's 10g Database ... i perform a recovery and i open database use resetlogs command ...
when i try to perform backup from OEM I receive this message ...."UNTIL TIME or RECOVERY WINDOW is before RESETLOGS time"
I read the message posted on teh forum but i did not understand what i have to do ( I'm so sorry because i don;t speak and write very well in English)
PLS HELP
THXHi,
you receive this message because UNTIL TIME and RECOVERY WINDOW cannot be less than the database creation time or RESETLOGS time.
I suppose you have a recovery window setted.
Try to use a lower value for that.
Acr -
Can you help me? I meet errors when I do incomplete recovery with RMAN
In recover step, There are following errors:
RMAN-11001: Oracle Error: ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/d/db/oradata/db01/system01.dbf'
question:
1. Should I restore archive log files generated on July 16th back to orignal archive directory in order to avoid to recover failure?
2. Or Should I add the command "sql 'alter system archive log current'" in the backup script in order to avoid to recover failure?
The following is the detail information:
The database is ok when I try to do incomplete recovery database that was fully backed up on July,16th,2004. The database is oracle 8.1.7 and is in the archive mode:
The following is the backup script:
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=db01,OB2BARLIST=ora8i_online)';
backup incremental level 0 filesperset 1
format 'ora8i_online<db01_%s:%t:%p>.dbf'
database
include current controlfile
archivelog all delete input;
I use it to do a full backup on July 16th,17th successfully.
And I use the following scripts to do incomplete recovery:
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=ORACLE8,OB2APPNAME=db01)';
sql "alter database mount";
set until time ='17.07.2004';
restore database;
recover database;
sql "alter database open resetlogs";
sql "alter database open";
There script is successful in restore step. But there are some errors in recover step. The detail information is showing in following log:
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: dev_0
RMAN-08500: channel dev_0: sid=13 devtype=SBT_TAPE
RMAN-08526: channel dev_0: HP OpenView OmniBack II A.04.10/176
RMAN-03022: compiling command: sql
RMAN-06162: sql statement: alter database mount
RMAN-03023: executing command: sql
RMAN-03022: compiling command: set
RMAN-03022: compiling command: restore
RMAN-03022: compiling command: IRESTORE
RMAN-03023: executing command: IRESTORE
RMAN-08016: channel dev_0: starting datafile backupset restore
RMAN-08502: set_count=2056 set_stamp=531622798 creation_time=16.07.2004
RMAN-08089: channel dev_0: specifying datafile(s) to restore from backup set
RMAN-08016: channel dev_0: starting datafile backupset restore
RMAN-08502: set_count=2180 set_stamp=531623409 creation_time=16.07.2004
RMAN-08089: channel dev_0: specifying datafile(s) to restore from backup set
RMAN-08523: restoring datafile 00001 to /d/db/oradata/db01/system01.dbf
RMAN-08023: channel dev_0: restored backup piece 1
RMAN-08511: piece handle=netace_ora8i_online<db01_2180:531623409:1>.dbf tag=null params=NULL
RMAN-08024: channel dev_0: restore complete
RMAN-08023: channel dev_0: restored backup piece 1
RMAN-08511: piece handle=netace_ora8i_online<db01_2212:531623994:1>.dbf tag=null params=NULL
RMAN-08024: channel dev_0: restore complete
RMAN-03022: compiling command: recover
RMAN-03022: compiling command: recover(1)
RMAN-03022: compiling command: recover(2)
RMAN-03022: compiling command: recover(3)
RMAN-03023: executing command: recover(3)
RMAN-08054: starting media recovery
RMAN-03022: compiling command: recover(4)
RMAN-03026: error recovery releasing channel resources
RMAN-11001: Oracle Error: ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/d/db/oradata/db01/system01.dbf'
RMAN-08031: released channel: dev_1
RMAN-08031: released channel: dev_2
RMAN-08031: released channel: dev_0
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: recover
RMAN-03002: failure during compilation of command
RMAN-03013: command type: recover(4)
RMAN-06003: ORACLE error from target database: ORA-01220: file based sort illegal before database is open
ORA-06512: at "SYS.X$DBMS_RCVMAN", line 7220
ORA-06512: at "SYS.X$DBMS_RCVMAN", line 5053
ORA-06512: at line 1
I repeat my questions:
1. Should I restore archive log files generated on July 16th back to original archive directory in order to avoid to recover failure?
2. Or Should I add the command "sql 'alter system archive log current'" in the backup script in order to avoid to recover failure?
Can you help me ? Thank you.which o.s u are using i can't help you as i never worked on ver 8i,i can tell you incomplete recovery on oracle 9i on win 2000 server.
thanks : alok kumar -
Can you help me? I meet some errors when I do incomplete recovery with RMAN
In recover step, There are following errors:
RMAN-11001: Oracle Error: ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/d/db/oradata/db01/system01.dbf'
question:
1. Should I restore archive log files generated on July 16th back to orignal archive directory in order to avoid to recover failure?
2. Or Should I add the command "sql 'alter system archive log current'" in the backup script in order to avoid to recover failure?
The following is the detail information:
The database is ok when I try to do incomplete recovery database that was fully backed up on July,16th,2004. The database is oracle 8.1.7 and is in the archive mode:
The following is the backup script:
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=db01,OB2BARLIST=ora8i_online)';
backup incremental level 0 filesperset 1
format 'ora8i_online<db01_%s:%t:%p>.dbf'
database
include current controlfile
archivelog all delete input;
I use it to do a full backup on July 16th,17th successfully.
And I use the following scripts to do incomplete recovery:
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=ORACLE8,OB2APPNAME=db01)';
sql "alter database mount";
set until time ='17.07.2004';
restore database;
recover database;
sql "alter database open resetlogs";
sql "alter database open";
There script is successful in restore step. But there are some errors in recover step. The detail information is showing in following log:
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: dev_0
RMAN-08500: channel dev_0: sid=13 devtype=SBT_TAPE
RMAN-08526: channel dev_0: HP OpenView OmniBack II A.04.10/176
RMAN-03022: compiling command: sql
RMAN-06162: sql statement: alter database mount
RMAN-03023: executing command: sql
RMAN-03022: compiling command: set
RMAN-03022: compiling command: restore
RMAN-03022: compiling command: IRESTORE
RMAN-03023: executing command: IRESTORE
RMAN-08016: channel dev_0: starting datafile backupset restore
RMAN-08502: set_count=2056 set_stamp=531622798 creation_time=16.07.2004
RMAN-08089: channel dev_0: specifying datafile(s) to restore from backup set
RMAN-08016: channel dev_0: starting datafile backupset restore
RMAN-08502: set_count=2180 set_stamp=531623409 creation_time=16.07.2004
RMAN-08089: channel dev_0: specifying datafile(s) to restore from backup set
RMAN-08523: restoring datafile 00001 to /d/db/oradata/db01/system01.dbf
RMAN-08023: channel dev_0: restored backup piece 1
RMAN-08511: piece handle=netace_ora8i_online<db01_2180:531623409:1>.dbf tag=null params=NULL
RMAN-08024: channel dev_0: restore complete
RMAN-08023: channel dev_0: restored backup piece 1
RMAN-08511: piece handle=netace_ora8i_online<db01_2212:531623994:1>.dbf tag=null params=NULL
RMAN-08024: channel dev_0: restore complete
RMAN-03022: compiling command: recover
RMAN-03022: compiling command: recover(1)
RMAN-03022: compiling command: recover(2)
RMAN-03022: compiling command: recover(3)
RMAN-03023: executing command: recover(3)
RMAN-08054: starting media recovery
RMAN-03022: compiling command: recover(4)
RMAN-03026: error recovery releasing channel resources
RMAN-11001: Oracle Error: ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/d/db/oradata/db01/system01.dbf'
RMAN-08031: released channel: dev_1
RMAN-08031: released channel: dev_2
RMAN-08031: released channel: dev_0
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: recover
RMAN-03002: failure during compilation of command
RMAN-03013: command type: recover(4)
RMAN-06003: ORACLE error from target database: ORA-01220: file based sort illegal before database is open
ORA-06512: at "SYS.X$DBMS_RCVMAN", line 7220
ORA-06512: at "SYS.X$DBMS_RCVMAN", line 5053
ORA-06512: at line 1
I repeat my questions:
1. Should I restore archive log files generated on July 16th back to original archive directory in order to avoid to recover failure?
2. Or Should I add the command "sql 'alter system archive log current'" in the backup script in order to avoid to recover failure?
Can you help me ? Thank you.You are correct. In RMAN8i, you should add the "alter system archive log current; command before you backup the archive logs.
You are running into the case where Oracle needs additional redo to make the database consistent that was located in the current online log at the time of the backup.
If you set UNTIL TIME to an earlier time does the recover work?
In Oracle9i, if you issue the command, "backup database plus archive logs", RMAN will automatically archive the current online log before performing the archive log backups.
Thanks, Tammy -
Please help with RMAN dup for RAC db
Happy Holidays!! All,
I need help with the following issue:
Both target and auxiliary databases are:
Database version is 10.2.0.3 with 2-node RAC db
Servers are MS 2003
Oracle Clusterware 10.2.0.3
Oracle ASM for storage
I have run the rman dup from RAC to a single instance db for a while. This is the first time I ran from RAC to RAC. This auxiliary db was refreshed before and was up for a while and was managed by server control tool. Now I am trying to refresh it with new backup files from production. I did the following as people suggested:
1) shutdown instance in the second node.
2) Startup nomount mode in the first node
3) Run RMAN dup
It failed in the same place with slightly different errors. I pasted error messages at the bottom. I already created a TAR with Oracle but would like to know if anybody has any info related to this. Also I have several questions to ask:
1) Should I stop all services related to Oracle in node-2
2) Should I stop all clustware related services in node-1 except oracleCSServie since ASM uses it?
3) Is there any way I can finish the dup manually from the place I failed? What going to happen if I don’t finish the rest of the dup and go ahead with “alter database open resetlogs”?
4) How do I remove the database from under Server control – I already run “srvctl remove database -d atlrac” successfully. Is this all?
Thanks a lot for your help and have a great holiday season!!!
First time run:
contents of Memory Script:
shutdown clone;
startup clone nomount ;
executing Memory Script
database dismounted
Oracle instance shut down
connected to auxiliary database (not started)
RMAN-00571: ====================================================
RMAN-00569: ======= ERROR MESSAGE STACK FOLLOWS ==============
RMAN-00571: =============================================
RMAN-03002: failure of Duplicate Db command at 12/21/2009 20:24:47
RMAN-03015: error occurred in stored script Memory Script
RMAN-04014: startup failed: ORA-00610: Internal error code
Second time run:
contents of Memory Script:
shutdown clone;
startup clone nomount ;
executing Memory Script
database dismounted
Oracle instance shut down
connected to auxiliary database (not started)
RMAN-00571: ===================================================
RMAN-00569: ========== ERROR MESSAGE STACK FOLLOWS ==========
RMAN-00571: ===================================================
RMAN-03002: failure of Duplicate Db command at 12/22/2009 15:53:27
RMAN-03015: error occurred in stored script Memory Script
RMAN-04014: startup failed: ORA-03113: end-of-file on communication channel
Shirley1) Should I stop all services related to Oracle in node-2
No, you just need to stop the second instance.
2) Should I stop all clustware related services in node-1 except oracleCSServie since ASM uses it?
No, you don't need to stop anything. Just have the instance startup nomount.
3) Is there any way I can finish the dup manually from the place I failed? What going to happen if I don’t finish the rest of the dup and go ahead with “alter database open resetlogs”?
You have not shown enough information. Did the restore succeed ? Did the recover succeed ? What was it doing when it failed ?
4) How do I remove the database from under Server control – I already run “srvctl remove database -d atlrac” successfully. Is this all?
Yes, srvctl remove database is all you need. (unless you also want to remove from listener.ora, tnsnames.ora, oratab etc) -
RMAN backup restoring to new server help!
I'm using Oracle 8.1.7. The production database was copied (datafiles, controlfile etc) to a NEW server that I'm trying to set up as a development DB. I take full database backups using RMAN from the production server, and I want to restore them on the development server. I think I somehow have to specify the filename/location of the backup file but I can't seem to figure out how to do it.
I am not using a recovery catalog.
Any help is appreciated.If you restore the controlfile backup to the development server RMAN
will "read" the expected location of the backupsets from there.
In 8i you cannot use the CATALOG command so you have to copy all
the backupsets to the same path on the development server as on the
production server.
Once you have your init.ora and controlfiles in place (and created the
expected target directory structure for the database and redolog files),
you can use STARTUP MOUNT and thene RESTORE from RMAN.
I believe that you should be able to rename files in 8i RMAN as well.
If not, you'll have to stick to restoring to the same location.
The key thing is that the controlfile records the "location" of the RMAN backupsets
and the "location" where datafiles are to be restored to. -
New Oracle DBA - Need help with backup & restore procedure via RMAN
Hello everyone,
I've been a SQL Server DBA for 12 years now, but new to the Oracle space. My first assignment at work was to refresh our training environment with production. So with that said, I took a full backup of our production database via RMAN and backed up the Control File. I then copied both the Control File and full backup from our production environment to training. I followed the procedures listed in the URL below:
http://www.dba-oracle.com/t_rman_clone+copy_database.htm
I then connected to RMAN and executed a 'show all' which is as follows:
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
The CONFIGURE CONTROLFILE AUTOBACKUP was set to ON but received a message that the database needed to be mounted, so, I mounted the database and made the changes, but when I shutdown the database and performed the startup nomount again, the settings were gone. Are these settings valid only when the database is mounted? How can I successfully refresh this training environment with production data? I'm at a standstill here so any help would be very much appreciated.
Thank you,
PeteThe CONFIGURE CONTROLFILE AUTOBACKUP was set to ON but received a message that the database needed to be mounted, so, I mounted the database and made the changes, but when I shutdown the database and performed the startup nomount again, the settings were gone. These settings are persistent settings.So these information retain in control files.To reading information from control files database instance must be MOUNT or OPEN stage.Due to you have mount instance and try SHOW ALL command through RMAN.
Are these settings valid only when the database is mounted? Not only MOUNT also OPEN stage.
How can I successfully refresh this training environment with production data? I'm at a standstill here so any help would be very much appreciated.
There are several ways like duplication.But you take full backup from production database using BACKUP DATABASE through rman.In this case you will get also AUTOBACKUP for controlfiles/spfiles.Then copy these backup files and all available archive logs to training server and perform below steps.
1) You have set properly ORACLE_HOME and ORACLE_SID environment variable.After that first need restore spfile as
rman target /
startup force nomount;
restore spfile from 'autobackup_location';
startup force nomount;2) Now you have to restore controlfiie as
rman>restore controlfile from 'autobackup_location';
rman>alter database mount;
3) Now need catalog(it means register) all backup files and archivelogs in new restored controlfile as
rman>catalog start with 'backuplocation';
4) Finally you can restore and recover your database as below
rman>restore database;
rman>recover database;
rman>alter database open resetlogs;
If you want restore database to new location then before executing RESTORE DATABASE command you can use SET NEWNAME FOR DATAFILE clause.Firstly refer backup recovery guide in online documentation. -
Restore from rman - kindly help
Hi,
I'm new with RMAN and need some help from experts here.
my database is in archivelog.
version: 10.2.0.3
rman with recovery catalog.
I have backup my database (online) using rman by executing the following:
RMAN> run
allocate channel c1 type disk1;
backup database format 'db_%u_%d_%s';
backup format 'log_t%t_s%s_p%p'
(archivelog all);
after backup up, i deleted my datafiles, controlfiles, redologs, archivelogs. may i know how can i restore the db using the backup set?>
thanksYou need to startup the database using the snapshot controlfile then connect to the database using RMAN
rman target /
Then you can commence an incomplete recovery. Do a 'list backup summary' or even better 'list backup' to check that the backup/s is/are listed in there. One method is to work out what point in time you can restore using 'set until scn|time', the maximum point at your last backup (usually max/last SCN on the last archivelog -1). Remember, because it is an incomplete recovery you need to open database resetlogs and regardless of complete/incomplete recreate TEMP (although this may already get recreated in 10g).
As recommended see the documentation. -
RMAN-20999: internal error on standby....help
Hey guys,
A little background of events of what happened:
1) data guard got broken
2) rebuild data guard
in the rebuild process I took the /backup mount point from primary database NFS mounted it to the alternate database.(The reason I did that was because it was going to take too much time to transfer over the backups from the primary to the alternate).
During this process while /backup1 was NFS mounted, i had to add "alter system set event='10298 trace name context forever, level 32'scope= spfile ; " to my spfile.
3) finished the data guard rebuild
4) NFS unmounted /backup from primary (take out alter system set event='10298 trace name context forever, level 32'scope= spfile ; from spfile)
5)bounce database and re sync data guard
5) data guard is in sync and everything is fine
Now comes the trouble..
went to the standby side and went to run rman.
here it is:
RMAN> @connect.rman
RMAN> connect target *
connected to target database: AFCD1D1 (DBID=3242165457, not open)
RMAN> connect catalog *
connected to recovery catalog database
RMAN> **end-of-file**
RMAN> resync catalog;
starting partial resync of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of resync command on default channel at 12/08/2011 15:05:16
RMAN-20999: internal error
RMAN>
so I thought maybe the primary database needs to do a full re sync.
I did that still no help
I also search on oracle support, couldn't find anything useful.
Just to play with it
-I went to the primary db-recreated the standby controlfile
-went to the standby , shut db down. copied the standby controlfile over to the standby server
-restarted the dataguard
Data Guard is in sync
went to rman and same issue.
Any help would be appreciated!!
PS. The rman backups were working before data guard was broken.
Edited by: 867954 on Dec 8, 2011 12:45 PMRMAN-20999: internal errorInternal errors require help from Oracle support. They have the tools to trace the problem.
Werner -
RMan Error message Please Help
Hi
I have been trying to register a database in RMAN . Here are the steps I took on OS linux Mandrake 8.1 using ORACLE version 9.2.0.1.0
SQL:
CONNECT sys/password@ora AS SYSDBA
CREATE TABLESPACE "RMAN"
DATAFILE 'C:\ORACLE\ORADATA\W2K1\RMAN01.DBF' SIZE 6208K REUSE
AUTOEXTEND ON NEXT 64K MAXSIZE 32767M
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO;
CREATE USER rman IDENTIFIED BY rman
TEMPORARY TABLESPACE temp
DEFAULT TABLESPACE rman
QUOTA UNLIMITED ON rman;
GRANT connect, resource, recovery_catalog_owner TO rman;
rman catalog=rman/rman@ora
Recovery Manager: Release 9.2.0.1.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
connected to recovery catalog database
recovery catalog is not installed
RMAN> create catalog tablespace "RMAN";
recovery catalog created
RMAN> exit
Recovery Manager complete.
rman catalog=rman/rman@ora target=sys/password@w2k2
Recovery Manager: Release 9.2.0.1.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
connected to target database: ora (DBID=1371963417)
connected to recovery catalog database
RMAN> register database;
This is returning the error message
RMAN-00571:
RMAN-00569:
RMAN-00571:
RMAN-03002:failure of register command at 07/16/03 12:56
RMAN-03014:implicit resyncof recovery catalog failed
RMAN-03009:failure of full resync command on default channel at 07/16/03
ORA01001- cursor not valideHi,
First of all I would not use RMAN as a tablespace name. It may be confusing oracle and besides it maybe a reserved term not available for use and a cause for some of those errors listed.
But here is what is in my notes that work.
After the database is created named RCAT you must create the user RMAN. It is then after he is created the program will run.
Create user RMAN
SQL> CREATE TABLESPACE CATTBS
'D/ORACLE/ORADATA/RECAT' SIZE 5M
AUTOEXTEND ON;
CREATE USER RMAN IDENTIFIED BY RMANTEMPORARY TABLESPACE TEMP
DEFAULT TABLESPACE CATTBS
QUOTA UNLIMITED ON CATTBS;
After the user has been created you need to grant some permissions for him to use.
GRANT RECOVERY_CATALOG_OWNER TO RMAN;
COMMIT;
GRANT CONNECT,RESOURCE TO RMAN;Now you need to create the RECOVERY CATALOG
Go to the host operating system oracle/ora81/bin/RMAN.EXE and execute this script the following prompt shows up.
RMAN>
You now need to create the CATALOG in tablespace CATTBS.
RMAN>CREATE CATALOG TABLESPACE CATTBS;
responds with
RMAN>RECOVERY CATALOG CREATED
Now you need to run these two scripts CATALOG.SQL AND CATPROC.SQL
RMAN>@D:\ORACLE\ORA81\RDBMS\ADMIN\CATALOG.SQL
\CATPROC.SQL
Running these two scripts now allows you to view the recovery catalog views.
This completes the setup of the recovery catalog database.
Now connect to your target
RMAN> connect target internal/oracle@ora
RMAN> connect RCVCAT rman/rman@rcat
Give the command to register database:
RMAN>register database
it responds with
RMAN>database registered in recovery catalog
You need to connect to the RCAT database with the following command:
RMAN>CONNECT CATALOG RMAN/RMAN@RCAT;
Hope this format helps.
Al -
i have install oracle 10g on windows for testing purposes. first day enterprize work properly but next day when i try to open database control i received socket error. further inspection i found in services no dbconsole service is running. i tried to run dbconsole by these command
set ORACLE_SID=orcl
emctl start dbconsole
it would return an unknown command
C:\Documents and Settings\adeel>emctl start dbconsole;
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Invalid arguments
Unknown command option start
Usage::
Oracle Enterprise Manager 10g Database Control commands:
emctl start| stop| status| setpasswd dbconsole
emctl secure <options>
emctl set ssl test|off|on em
emctl set ldap <host> <port> <user dn> <user pwd> <context dn>
emctl blackout options can be listed by typing "emctl blackout"
emctl config options can be listed by typing "emctl config"
emctl secure options can be listed by typing "emctl secure"
emctl ilint options can be listed by typing "emctl ilint"
emctl deploy options can be listed by typing "emctl deploy"
plz help to resovle this problemThere is an exclusive forum for RMAN
Recovery Manager (RMAN)
Try posting there. You can get better answers.
Thanks,
Karthick. -
Help on failing RMAN backup please.
I have setup a nightly backup with the following script.
run {
allocate channel oem_backup_disk1 type disk format 'd:\mad3_nightly_backups\%U';
backup incremental level 1 cumulative as BACKUPSET tag 'MAD3_CUMULATIVE_BA_040506080003' database include current controlfile;
recover copy of database;
backup as BACKUPSET tag 'MAD3_CUMULATIVE_BA_040506080003' archivelog all not backed up delete all input;
report obsolete;
crosscheck backup;
crosscheck copy;
report need backup;
report unrecoverable;
release channel oem_backup_disk1;
But everytime I try to run this via OEM's nightly backup shedule, I get the error in the log below. But not able to identify what is causing the problem.
My database is currently about 300GB.
DB_RECOVERY_FILE_DEST_SIZE = 2GB
FLASHBACK_ON = NO
Shoud I try and increase the DB_RECOVERY_FILE_DEST_SIZE? If so to what? I would appriciate any help guys. Thanks.
channel oem_backup_disk1: starting incremental level 1 datafile backupset
channel oem_backup_disk1: specifying datafile(s) in backupset
input datafile fno=00005 name=+MAD3ASM/mad3/datafile/madattrib.277.586366645
.......SNIPED
input datafile fno=00025 name=+MAD3ASM/mad3/datafile/mmdatalive.419.586257801
input datafile fno=00027 name=+MAD3ASM/mad3/datafile/mmattrindexlive.421.586258381
input datafile fno=00028 name=+MAD3ASM/mad3/datafile/mmattrindexlive.422.586258471
input datafile fno=00026 name=+MAD3ASM/mad3/datafile/mmspindexlive.420.586258363
input datafile fno=00029 name=+MAD3ASM/mad3/datafile/mmdataarchive.423.586258563
input datafile fno=00030 name=+MAD3ASM/mad3/datafile/mmspindexarchive.424.586258581
input datafile fno=00031 name=+MAD3ASM/mad3/datafile/mmattrindexarchive.425.586258599
input datafile fno=00001 name=+MAD3ASM/mad3/datafile/system.256.583260945
input datafile fno=00003 name=+MAD3ASM/mad3/datafile/sysaux.257.583260945
input datafile fno=00002 name=+MAD3ASM/mad3/datafile/undotbs1.258.583260945
input datafile fno=00004 name=+MAD3ASM/mad3/datafile/users.259.583260947
channel oem_backup_disk1: starting piece 1 at 05-APR-06
channel oem_backup_disk1: finished piece 1 at 05-APR-06
piece handle=D:\MAD3_NIGHTLY_BACKUPS\3SHFPDMM_1_1 tag=MAD3_CUMULATIVE_BA_040506080003 comment=NONE
channel oem_backup_disk1: backup set complete, elapsed time: 01:33:55
channel oem_backup_disk1: starting incremental level 1 datafile backupset
channel oem_backup_disk1: specifying datafile(s) in backupset
including current control file in backupset
including current SPFILE in backupset
channel oem_backup_disk1: starting piece 1 at 05-APR-06
channel oem_backup_disk1: finished piece 1 at 05-APR-06
piece handle=D:\MAD3_NIGHTLY_BACKUPS\3THFPJ6P_1_1 tag=MAD3_CUMULATIVE_BA_040506080003 comment=NONE
channel oem_backup_disk1: backup set complete, elapsed time: 00:00:04
Finished backup at 05-APR-06
Starting recover at 05-APR-06
no copy of datafile 6 found to recover
no copy of datafile 7 found to recover
....SNIPED (from 8 to 29)
no copy of datafile 30 found to recover
no copy of datafile 31 found to recover
channel oem_backup_disk1: starting incremental datafile backupset restore
channel oem_backup_disk1: specifying datafile copies to recover
recovering datafile copy fno=00001 name=+MAD3ASM/mad3/datafile/system.392.586209619
recovering datafile copy fno=00002 name=+MAD3ASM/mad3/datafile/undotbs1.395.586209667
recovering datafile copy fno=00003 name=+MAD3ASM/mad3/datafile/sysaux.391.586209645
recovering datafile copy fno=00004 name=+MAD3ASM/mad3/datafile/users.396.586209669
recovering datafile copy fno=00005 name=+MAD3ASM/mad3/datafile/madattrib.768.586383235
channel oem_backup_disk1: reading from backup piece D:\MAD3_NIGHTLY_BACKUPS\3SHFPDMM_1_1
released channel: oem_backup_disk1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 04/05/2006 21:34:30
ORA-19870: error reading backup piece D:\MAD3_NIGHTLY_BACKUPS\3SHFPDMM_1_1
ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim 13904117760 bytes disk space from 2147483648 limit
exit;
Recovery Manager complete.Take a look at this metalink note: 305812.1
Flash Recovery area - Space management Warning & Alerts: https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=305812.1
SELECT object_type, message_type, message_level, reason, suggested_action
FROM dba_outstanding_alerts;
The following actions can be done to resolve the space issue :
- Add disk space to the Flash Recovery Area.
- Back up your files to a tertiary device.
- Delete the files from the Flash Recovery Area using RMAN.
- Changing RMAN retention policy.
Bye, Aron -
Hi guys,
I need you help in creating rman scripts.
my plan is the following:
- at night i would like to make a backup of the database, archivelogs, control file and spfile. then delete the archivelogs on disk.
- during the day i would like to make every hour, a backup level 1, archivelogs and crontrol file.
my questions are:
for the night backup is the following script ok?
run {
set command id to 'xxx';
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type 'SBT_TAPE';
BACKUP INCREMENTAL LEVEL 0 DATABASE;
sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
change archivelog all;
backup archivelog all delete input;
backup current controlfile;
BACKUP SPFILE;
release channel t1;
release channel t2;
and for the daily backup (run on every hour) what do you think about this? is it ok?
run {
set command id to 'xxx';
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type 'SBT_TAPE';
BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE;
sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
backup archivelog all not backed up 1 times;
backup current controlfile;
release channel t1;
release channel t2;
please help.
Message was edited.Hi Alanm,
Right now the DB is generating many archives, that doesn't mean that we cant adapt the script in the future if less archives are generated.
By saying "You don't have to make the archive log script an incremental 1 backup" you mean that, since we are already making a backup at night to the archives, theres no need to make them also during the incremental 1?
and for the rest, do you thing the script is ok? -
ESTIMATED RMAN BACKUP SIZE:::PLZ HELP ME
Hi all,
I wish you all happy new year :)
I have implemented a new Backup STrategy with RMAN, such I using Oracle 10G version on Linux Server. I would like To know if exists one method to estimate the size of my full and incremental backup before to lunch? I will really apreciate your help :)
Thank you all,
W
Message was edited by:
HAGGARHi,
Happy new year for you too!!!
From Metalink Note:105208.1:
There is no 'magic' formula to calculate the storage space of an RMAN backup
and there is no query that will give you a space estimate.
So, the best answer is: "Try it and see how much is used."
Check These out:
1-) https://metalink.oracle.com/metalink/plsql/f?p=130:14:4138343222012115291::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,105208.1,1,1,1,helvetica
2-) https://metalink.oracle.com/metalink/plsql/f?p=130:14:4138343222012115291::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,67221.1,1,0,1,helvetica
Cheers,
Marcello M.
Maybe you are looking for
-
Is there a way to change the information displayed on the Now Playing screen? For a lot of my music, the composer is very important, and I want to be able to show it on the screen in addition to artist and album.
-
Basic Questions on UITableView
Hi, I'm trying to learn the iPhone API by creating a simple table application and I have some basic questions. There are stuff in the example code and the docs that seem to contradict, and I'm hoping some people can clarify. 1) Table View Programming
-
Regarding Size of the iview in the work center
Hi I created a work center in EP 6.0 having 5 iviews as views in the work center. When i click the view name in the left side of the work center, it is showing the view in the content Area in the right side. But the area is limited. It is showing tra
-
Hi all, Can any one plz guide me the processing type to be selected in the following requirement. I've 2 versions A & B which are user entry enabled (mandatory fields) and i am using them in the CKF. In the CKF amount version A should be displayed i
-
Asa 5520 | CPU Spikes above 90% for 5 Seconds then it went down to 35 - 40%
Hi Experts i have ASA 5520 , some times the CPU Spikes above 90% for 5 Seconds then it went down to 35 - 40% ,but what happened when it shoots to 90% all connection go through this ASA gets drops then i receive complain since application traffic trav