Using RMAN "copy datafile" to restore db on a different host
Hi,
DB 8.1.7 (Standard Edition) on Windows Server 2000 SP4.
Database is in Archivelog mode. RMAN uses a catalog database.
The client does not want to spend money to upgrade the application (which only supports 8i - old app), therefore we have to relocate the database onto a new hardware (the machine is also old):
Here is how I backup the database every night (I also make an OS copy of archivelogs on an hourly basis):
echo run {
echo allocate channel d1 type disk;
echo backup
echo tag db_full
echo format '\\backupserver\backups\prodserver\rman\df_u%%u_s%%s_p%%p_t%%t'
echo database;
echo copy current controlfile to '\\backupserver\backups\prodserver\rman\DB_CONTROL01.ctl';
echo sql 'alter system archive log current';
echo backup
echo format '\\backupserver\backups\prodserver\rman\al_u%%u_s%%s_p%%p_t%%t'
echo archivelog all
echo delete input;
echo release channel d1;
echo resync catalog;
echo }
) | d:\orahome\bin\rman.exe target sys/***@db_ded rcvcat rman/rman@rpdb > D:\oracle_backup_db\rman_db_backup.logNow on a new 2003 server with database installed and rman catalog created, I am trying to restore my backups from the productions.
After reading some online documents forums, I noticed that if I do not have image copies of datafiles, controlfile, and archivelogs I CANNOT catalog them on this new database.
So, I want to create image copies when the database is in normal open state. What will I need to do get the new server to the same state as the production server? I know I will have to do media recovery, therefore copy and catalog the archivelogs created after the image copy was created.
What are the steps to do this?
If I create an image copy of a datafile on the production database and move that file to another location (to the new server with OS commands), will that affect a possible restore I might have to perform on the production database? I have space concerns on the production db so I do not want to keep them there and want to delete them after I test restoring them to the new server.
Is this the best method to move this database to a host with the same name same folder structure?
Thanks in advance,
Sinan
Hello;
I'm not a windows guy but you could move the database cold using scp.
Putty has PSCP here :
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
You can create the scp batch file using SQL
set heading off
set feedback off
set pagesize 100
set linesize 400
select 'scp '||a.name ||' server_name:' || a.name as newname from v$datafile a;
select 'scp '||a.name ||' server_name:' || a.name as newname from v$controlfile a;
select 'scp '||a.member ||' server_name:' || a.member as newname from v$logfile a;So shutdown the database and move the files. Restart do your RMAN backup and your done.
The only issue I can is 2003 server probably does not have an SCP service like Unix.
Here's a couple links to address that :
http://mobassh.mobatek.net/
http://www.netadmintools.com/art516.html
Best Regards
mseberg
Similar Messages
-
Using RMAN, how do you restore from an old backup file?
HI,
I use Oracle 9i on Solaris.
I'm currently doing incremental level 0 hot backups every night using RMAN in NOCATALOG mode. The controlfile is backed up with the database. I back it up to a file (e.g. "level0_20041225.dmp"). After I back it up, it's backed up to tape using Veritas. Before doing a backup, I delete the old one first.
I need to restore a copy of the database backup that was taken a month ago. This file is on tape. How do I go about it using RMAN? The documentation is not too clear as it talks more about Restoring the control file and the latest copy of the database.
How do you restore an old copy of the database from a database file?
Pls advise
ThanksYou can recover to the last committed transaction,
provided you have the current controlfile, archived
logs since the backup and the current online logs.
Here's the procedure in a nutshell:
a) Restore datafiles from tape.
b) Recover database using restored files + current
controlfiles and archived/online logs. RMAN will prompt
you for the logs it needs for recovery.
You can also perform this type of recovery using a
backup controlfile. In this case you would still need
all logs as above. After recovery, you would have to
open the database with RESETLOGS because you are using
a backup controlfile.
If you don't want/need to recover up to the last
committed transaction, you use a backup controlfile and
perform incomplete recovery (time or change based). This
simply means that you stop the application of redo at
the time or SCN of your choice.
Most of the scenarios of interest are documented in
the following book:
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96566/toc.htm
Hope this helps.
Kailash. -
RMAN copy datafiles from filesystem to ASM
DB version: 10.2.0.4
I need to copy 650G of datafiles from filesystems to ASM. Could someone let me know how to use RMAN parallelism for this?.
I'm using the command as below.
backup as copy datafile '/tmp/datafile1.dbf' format '+DATA';
backup as copy datafile '/tmp/datafile2.dbf' format '+DATA';I also tried the below. But, it's also running long. Each 32G datafile is taking almost 3 hours to copy into ASM.
run {
allocate channel ch1 type disk;
allocate channel ch2 type disk;
allocate channel ch3 type disk;
allocate channel ch4 type disk;
allocate channel ch5 type disk;
allocate channel ch6 type disk;
allocate channel ch7 type disk;
allocate channel ch8 type disk;
copy
datafile ' 1.dbf'to '+DATA',
datafile ' 2.dbf'to '+DATA',
datafile ' 3.dbf'to '+DATA',
datafile ' 4.dbf'to '+DATA',
datafile ' 5.dbf'to '+DATA',
....} -
RMAN copy datafile replicated to standby?
10.2.0.3 - standby is physical
I want to rman move datafile from ASM/DATA0 to ASM/DATA1.
STANDBY_FILE_MANAGEMENT is AUTO
So something like this
#rman> copy '/DATA0/file.dbf' to '/DATA1/new_file.dbf';
switch to copy new_file.dbf';
Where, why, what , when , how in the standby server.
1) Will the 'file copy' and 'switch to' be replicated to the standby site automatically??
2) Will I have to replicate the commands of 'file copy' and 'switch to' the standby.
The tablespace/datafile must be offlined which is fine but the database cannot be down.First conferm me?
1. Your Physical Standby on Normal File System or ASM for ASM Primary?
U have to use parameter on standby side:
db_file_name_convert parameter ='+ASM/DATA0','+ASM/DATA1
Regards
Anup
http://indiandba.blogspot.com -
Help me! cann't restore database using RMAN!!
i've backuped database using RMAN,
now datafile of system tablespace have lost,
and i execute the command as following:
run {
allocate channel c1 type disk;
restore database;
these are errors:
RMAN-03002: failure during compilation of command
RMAN-03013: command type: restore
RMAN-03002: failure during compilation of command
RMAN-03013: command type: IRESTORE
RMAN-06003: ORACLE error from target database: ORA-01843: not a
valid month
RMAN-06097: text of failing SQL statement: select decode(bitand
(festa,(4096+128)
),128,fecps,4096,fecps,0) ,decode(bitand(festa,
(4096+128)),128,281474976710655,4
096,controlfile_change#,0) ,decode(bitand(festa,
(4096+128)),128,SYSDATE,4096,con
trolfile_time,to_date('JAN 01 1988','MON DD
YYYY')) ,feofs ,feonc_scn ,to_date(n
vl(feonc_tim,'01/01/88 00:01:01'),'MM/DD/RR HH24:MI:SS')
into :b1,:b2,:b3,:b4,:b
5,:b6 from x$kccfe ,v$database where (fenum=:b7 and fedup=1)
RMAN-06099: error occurred in source file: krmk.pc, line: 21652Try setting the NLS_DATE_FORMAT at the command prompt.
-
RMAN syntax to backup & copy datafile.
Hi
Requesting RMAN syntax to bakup a datafile.
And
Requesting RMAN syntax to copy a datafile.
Wishes
JawadYou must full qualify the datafile name (with full pathname).
RMAN> report schema;
Report of database schema
File K-bytes Tablespace RB segs Datafile Name
1 204800 SYSTEM YES /db/ARON/fs1/system_d01_0.dbf
2 10240 TEST NO /db/ARON/fs1/test_d01_0.dbf
3 51200 USERS NO /db/ARON/fs1/user_s01_0.dbf
4 512000 UNDO YES /db/ARON/fs1/undo_d01_0.dbf
RMAN> copy datafile "system_d01_0.dbf" to "/tmp/system_d01_0.cpy";
Starting copy at 30-JAN-06
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=14 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of copy command at 01/30/2006 20:13:19
RMAN-20201: datafile not found in the recovery catalog
RMAN-06010: error while looking up datafile: /oracle/9.2.0_64/dbs/system_d01_0.dbf
RMAN> copy datafile "/db/ARON/fs1/system_d01_0.dbf" to "/tmp/system_d01_0.cpy";
Starting copy at 30-JAN-06
using channel ORA_DISK_1
channel ORA_DISK_1: copied datafile 1
output filename=/tmp/system_d01_0.cpy recid=48 stamp=581112835
Finished copy at 30-JAN-06Aron -
Rman, no datafile backup.
Dear...
I have one scenario.
RMAN Backup - Yesterday.
Datafile added today, and it lost in evening. How can one restore/recover datafile using RMAN, as datafile was not backed up in last RMAN backup.
Version : 10.2.0.1.0
Regards.YES, here is below.
archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC thread=1 sequence=18
creating datafile file number=7 name=C:\ORACLE\ORADATA\ORCL\USERS03.DBF
RMAN> backup database;
Starting backup at 21-FEB-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=133 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=C:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF
input datafile file number=00002 name=C:\ORACLE\ORADATA\ORCL\SYSAUX01.DBF
input datafile file number=00003 name=C:\ORACLE\ORADATA\ORCL\UNDOTBS01.DBF
input datafile file number=00005 name=C:\ORACLE\ORADATA\ORCL\EXAMPLE01.DBF
input datafile file number=00006 name=C:\ORACLE\ORADATA\ORCL\USERS02.DBF
input datafile file number=00004 name=C:\ORACLE\ORADATA\ORCL\USERS01.DBF
channel ORA_DISK_1: starting piece 1 at 21-FEB-12
channel ORA_DISK_1: finished piece 1 at 21-FEB-12
piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_21\O1_MF_NNNDF_TAG20120221T132643_7N6MKWPX_.BKP tag=TAG20120221T132643 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:55
Finished backup at 21-FEB-12
Starting Control File and SPFILE Autobackup at 21-FEB-12
piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_21\O1_MF_S_775834060_7N6MMO5Q_.BKP comment=NONE
Finished Control File and SPFILE Autobackup at 21-FEB-12
RMAN> exit
SQL> alter tablespace users add datafile 'C:\ORACLE\ORADATA\ORCL\USERS03.dbf' size 10m;
Tablespace altered.
SQL>
SQL> alter system switch logfile;
System altered.
SQL> startup force mount exclusive restrict;
ORACLE instance started.
Total System Global Area 778387456 bytes
Fixed Size 1374808 bytes
Variable Size 310379944 bytes
Database Buffers 461373440 bytes
Redo Buffers 5259264 bytes
Database mounted.
SQL> drop database;
Database dropped.
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
C:\Users\bn2676>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 21 13:51:27 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 778387456 bytes
Fixed Size 1374808 bytes
Variable Size 310379944 bytes
Database Buffers 461373440 bytes
Redo Buffers 5259264 bytes
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:\Users\bn2676>rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Tue Feb 21 13:51:52 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL (not mounted)
RMAN> restore controlfile from 'C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_21\O1_MF_S_775834060_7N6MMO5Q_.BKP';
Starting restore at 21-FEB-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=63 device type=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
output file name=C:\ORACLE\ORADATA\ORCL\CONTROL01.CTL
output file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\CONTROL02.CTL
Finished restore at 21-FEB-12
RMAN> sql 'alter database mount';
sql statement: alter database mount
released channel: ORA_DISK_1
RMAN> restore database;
Starting restore at 21-FEB-12
Starting implicit crosscheck backup at 21-FEB-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=63 device type=DISK
Crosschecked 8 objects
Finished implicit crosscheck backup at 21-FEB-12
Starting implicit crosscheck copy at 21-FEB-12
using channel ORA_DISK_1
Finished implicit crosscheck copy at 21-FEB-12
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC
File Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_19_7N6NXV4M_.ARC
File Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_21\O1_MF_S_775834060_7N6MMO5Q_.BKP
File Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_21\O1_MF_S_775834547_7N6N2WHN_.BKP
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to C:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF
channel ORA_DISK_1: restoring datafile 00002 to C:\ORACLE\ORADATA\ORCL\SYSAUX01.DBF
channel ORA_DISK_1: restoring datafile 00003 to C:\ORACLE\ORADATA\ORCL\UNDOTBS01.DBF
channel ORA_DISK_1: restoring datafile 00004 to C:\ORACLE\ORADATA\ORCL\USERS01.DBF
channel ORA_DISK_1: restoring datafile 00005 to C:\ORACLE\ORADATA\ORCL\EXAMPLE01.DBF
channel ORA_DISK_1: restoring datafile 00006 to C:\ORACLE\ORADATA\ORCL\USERS02.DBF
channel ORA_DISK_1: reading from backup piece C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_21\O1_MF_NNNDF_TAG20120221T132643_7N6MKWPX_.BKP
channel ORA_DISK_1: piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_21\O1_MF_NNNDF_TAG20120221T132643_7N6MKWPX_.BKP tag=TAG20120221T132643
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:56
Finished restore at 21-FEB-12
R recover database;
Starting recover at 21-FEB-12
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 18 is already on disk as file C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC
archived log for thread 1 with sequence 19 is already on disk as file C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_19_7N6NXV4M_.ARC
archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC thread=1 sequence=18
creating datafile file number=7 name=C:\ORACLE\ORADATA\ORCL\USERS03.DBF
archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC thread=1 sequence=18
archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_19_7N6NXV4M_.ARC thread=1 sequence=19
unable to find archived log
archived log thread=1 sequence=20
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 02/21/2012 13:54:04
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 20 and starting SCN of 1226889
RMAN> sql 'alter database open resetlogs';
sql statement: alter database open resetlogs
RMAN> exit
Recovery Manager complete.
C:\Users\bn2676>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 21 13:54:42 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select file_name from dba_data_files where tablespace_name='USERS';
FILE_NAME
C:\ORACLE\ORADATA\ORCL\USERS01.DBF
C:\ORACLE\ORADATA\ORCL\USERS02.DBF
C:\ORACLE\ORADATA\ORCL\USERS03.DBF
SQL> -
XTTS - problem in copying datafile into ASM
I'm testing the migration of database from AIX to Linux using cross platform transportable tablespaces.
DB version: source: 10.2.0.4
Destination: 10.2.0.5
OS version: source: AIX6.1 - AIX-Based Systems (64-bit)
Destination: RedHat Linux - Linux x86 64-bit
I run the below commands before copying the datafile at destination.
EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK('TBLSP1,TBLSP2', TRUE);
SELECT * FROM TRANSPORT_SET_VIOLATIONS;
no rows selected
alter system archive log current;
alter tablespace TBLSP1 read only;
alter tablespace TBLSP2 read only;
expdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_exp.log TRANSPORT_TABLESPACES=TBLSP1,TBLSP2
CONVERT TABLESPACE TBLSP1,TBLSP2
TO PLATFORM 'Linux x86 64-bit'
FORMAT '/dataimport/%U';/dataimport is a shared file system mounted on Linux server and am able to see the datafile over there. But, am receiving the error below when trying to copy the datafile on the linux server. Could someone let me know if I miss something / how to resolve this error.
$rman target /
RMAN> copy datafile '/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_05m8miia' to '+DATA';
Starting backup at 05-APR-11
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 04/05/2011 10:19:44
RMAN-20201: datafile not found in the recovery catalog
RMAN-06010: error while looking up datafile: /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_05m8miiaI don't think it's related to patchset mismatch. Yes. I moved the dump file and datafile copies to local file system also and got the same error.
Here are the steps once again. The tablespaces are still read only on source side. How can it affect datafile copy on destination side?.
EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK('TBLSP1,TBLSP2', TRUE);
SELECT * FROM TRANSPORT_SET_VIOLATIONS;
no rows selected
alter system archive log current;
alter tablespace TBLSP1 read only;
alter tablespace TBLSP2 read only;
expdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_exp.log TRANSPORT_TABLESPACES=TBLSP1,TBLSP2
CONVERT TABLESPACE TBLSP1,TBLSP2
TO PLATFORM 'Linux x86 64-bit'
FORMAT '/dataimport/%U';
impdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_imp.log TRANSPORT_DATAFILES='/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir','/az/dataimport/export/data_D-DBMGRT_I-3320277811_TS-TBLSP2_FNO-39_0dm90sa0'
Job "SYS"."SYS_IMPORT_TRANSPORTABLE_01" successfully completed
$rman target /
RMAN> copy datafile '/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir' to '+DATA';
Starting backup at 05-APR-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=4361 instance=dbmgrt1 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 04/05/2011 12:42:47
RMAN-20201: datafile not found in the recovery catalog
RMAN-06010: error while looking up datafile: /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir
SQL> select file_name from dba_data_files where tablespace_name='TBLSP1';
/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir
$ls -l /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir
-rw-r----- 1 oracle oinstall 32914808832 Apr 5 12:31 /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir -
RMAN-06085: must use SET NEWNAME command to restore datafile 'MISSING00'
Tried to restore again but got this message.
RMAN-06085: must use SET NEWNAME command to restore datafile /oracle/Ora11g/dbs/MISSING00126no, im not restoring datafile to different location.
this is what i encounter after a successfull restore and but failed recover.
My original post is on the other thread.
i was just desperate to start a new thread since there are nobody but only one who replied
Hope you could go to that thread and help me... topic: (Success on RESTORE but failed on RECOVER-- need help)
thanks in advance... -
ORA-27067 Error while restoring database using RMAN
Hi All,
I am trying to restore the backups from my production database to an other server. I was able to restore the spfile and control files but at the step where I restore the datafiles I get the following error:
RMAN-03002: failure of restore command at 11/03/2008 14:28:16
ORA-19587: error occurred reading 0 bytes at block number 1
ORA-27091: skgfqio: unable to queue I/O
ORA-27067: skgfdisp: size of buffer is invalid
The OS and the Oracle version on the source server (on which the backups were taken) and the target server (the backups being restored to) are the same. They both are running SUNOS 5.9 and Oracle 9.2. I
Below are what were reported in the trace files:
Unix process pid: 12359, image: oracle@ (TNS V1-V3)
*** SESSION ID:(13.1) 2008-11-03 15:23:26.265
*** 2008-11-03 15:23:26.275
corrupt block 1 found during reading backup piece,file=/xxx/xxx/36jucqpe_1_1.bak, corr_type=1
dump corrupted block
2F11600 00020000 00000001 00000000 00000101 [................]
2F11610 00000000 00000000 00000000 00000000 [................]
Repeat 6 times
*** 2008-11-03 16:19:29.778
corrupt block 1 found during reading backup piece,file=/xxx/xxx/36jucqpe_1_1.bak, corr_type=1
dump corrupted block
3211C00 00020000 00000001 00000000 00000101 [................]
3211C10 00000000 00000000 00000000 00000000 [................]
Repeat 6 times
Redo thread mounted by this instance: 0 <none>
Oracle process number: 14
Unix process pid: 12194, image: oracle@ (TNS V1-V3)
*** SESSION ID:(11.3) 2008-11-03 14:09:42.986
(blkno = 0x88, size = 276, max = 1, in-use = 1, last-recid= 0)
(blkno = 0x89, size = 56, max = 145, in-use = 1, last-recid= 1)
*** 2008-11-03 15:16:40.960
*** SESSION ID:(13.1) 2008-11-03 15:16:40.951
=====================
PARSING IN CURSOR #2 len=68 dep=0 uid=0 oct=42 lid=0 tim=172140509128 hv=287842151 ad='35cd9364'
alter session set events '10046 trace name context forever, level 8'
END OF STMT
EXEC #2:c=0,e=250,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=4,tim=172140509103
WAIT #2: nam='SQL*Net message to client' ela= 8 p1=1650815232 p2=1 p3=0
*** 2008-11-03 15:17:18.666
WAIT #2: nam='SQL*Net message from client' ela= 36822299 p1=1650815232 p2=1 p3=0
=====================
PARSE ERROR #2:len=50 dep=0 uid=0 oct=3 lid=0 tim=172177341974 err=1219
select /*+ FULL(t) */ count(*) from sys.source$ t
WAIT #2: nam='SQL*Net break/reset to client' ela= 61 p1=1650815232 p2=1 p3=0
WAIT #2: nam='SQL*Net break/reset to client' ela= 279 p1=1650815232 p2=0 p3=0
WAIT #2: nam='SQL*Net message to client' ela= 5 p1=1650815232 p2=1 p3=0
Unix process pid: 12156, image: oracle@ (TNS V1-V3)
*** SESSION ID:(11.3) 2008-11-03 14:09:08.687
Archiving is disabled
Archiving is disabled
Can anyone help me resolve this error?
Thanks,
AshokHi,
We finally got this issue resolved. I think the error was because the source database server was running 64 bit Oracle 9.2.0 and we installed a 32 bit Oracle 9.2.0 database on the target server. We then did a fresh install of 64 bit Oracle 9.2.0 database on the target server and the restoration worked. Also, after copying all the backup files to the target DB server, change the access rights of all those files and the folder containing them to 777.
Thanks,
Ashok -
How to restore a database from host A to host B by using RMAN
Hi there
I wanted to restore 1 database from machine A to machine B with the differente files systemes. I did these steps below, but I have a problem when I restore the controlfile from machine A to machine B.
1-copy the controlfile from machine A to machine B by using OS utility.
2-startup nomount the database on machine B.
3-connect target and catalog RMAN.
4-I have to restore the controlfile from last full backup of the machine A to machine B (see the procedure RMAN).
I have the error messages like:
RMAN> connect target /
RMAN-06006: connected to target database: dbtest (not mounted)
RMAN> connect catalog rman/rman@rcattest
RMAN-06008: connected to recovery catalog database
RMAN> run {
2> allocate channel c1 type 'sbt_tape' ;
3> restore controlfile ;
4> }
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: c1
RMAN-08500: channel c1: sid=10 devtype=SBT_TAPE
RMAN-08526: channel c1: VERITAS NetBackup for Oracle8 - Release 3.2GA
RMAN-03022: compiling command: restore
RMAN-03022: compiling command: IRESTORE
RMAN-03023: executing command: IRESTORE
RMAN-08016: channel c1: starting datafile backupset restore
RMAN-08502: set_count=177 set_stamp=419449530 creation_time=19-JAN-01
RMAN-08021: channel c1: restoring controlfile
RMAN-08505: output filename=/db/oracle/dbtest/dbtestcontrol01.ctl
RMAN-03026: error recovery releasing channel resources
RMAN-08031: released channel: c1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: restore
RMAN-03007: retryable error occurred during execution of command: IRESTORE
RMAN-07004: unhandled exception during command execution on channel c1
RMAN-10035: exception raised in RPC: ORA-19507: failed to retrieve sequential file, handle="5hcg0ilq_1_1", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: sbtrestore: Backup file not found.
RMAN-10031: ORA-19624 occurred during call to DBMS_BACKUP_RESTORE.RESTOREBACKUPPIE
nullHi there
I'm also trying to restore a full RMAN backup to our DR site using Netbackup as MML
My scenario is:
We have one tape library at our PROD data center and another one at our DR site both using Netbackup as Storage manager
I performed a full RMAN backup on 4 DLT tapes with recovery catalog at our PROD datacenter, then I removed the 4 tapes and place it in our tape lib at DR site
I tried to import the tapes using bpimport from Netbackup which has been successful up to now
But when I tried to restore controlfile from RMAN, I get the following error:
connected to target database: prod (not mounted)
connected to recovery catalog database
RMAN> run {
2> allocate channel c1 type 'SBT_TAPE';
3> allocate channel c2 type 'SBT_TAPE';
4> allocate channel c3 type 'SBT_TAPE';
5> allocate channel c4 type 'SBT_TAPE';
6> set until time '16-AUG-2005 15:00:00';
7> restore controlfile;
8> }
allocated channel: c1
channel c1: sid=13 devtype=SBT_TAPE
channel c1: VERITAS NetBackup for Oracle - Release 5.0GA (2003103005)
allocated channel: c2
channel c2: sid=12 devtype=SBT_TAPE
channel c2: VERITAS NetBackup for Oracle - Release 5.0GA (2003103005)
allocated channel: c3
channel c3: sid=11 devtype=SBT_TAPE
channel c3: VERITAS NetBackup for Oracle - Release 5.0GA (2003103005)
allocated channel: c4
channel c4: sid=9 devtype=SBT_TAPE
channel c4: VERITAS NetBackup for Oracle - Release 5.0GA (2003103005)
executing command: SET until clause
Starting restore at 18-AUG-2005:10:28:23
channel c1: starting datafile backupset restore
channel c1: restoring controlfile
output filename=/oracle9i/dba/dbs/control01_drprod.ctl
released channel: c1
released channel: c2
released channel: c3
released channel: c4
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/18/2005 10:28:25
ORA-19507: failed to retrieve sequential file, handle="df_t566491965_s8860_p1", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
Failed to process backup file <df_t566491965_s8860_p1>
Anyone mastering this, please help !!
thks
BL -
Using RMAN restore the database on a new host in ASM
Hello All,
I am trying to restore a database without using RMAN database duplicate. I want to do set new name for datafile and rename log file for online logs and change database name at last using NID.
here are details
source database - APSPROD / server - X
target database - EMERALD / Server -Y
Compressed backup is copied to destination server and I am trying to restore database using RMAN. Here is my init.ora file
cat initAPSPROD1.ora
DB_NAME=APSPROD
compatible=11.2.0.3
sga_target=8G
CONTROL_FILES='+DATA_DM01/EMERALD/controlfile/cntrl01.dbf','+RECO_DM01/EMERALD/controlfile/cntrl02.dbf','+DATA_DM01/EMERALD/controlfile/cntrl03.dbf'
DB_BLOCK_SIZE=8192
db_file_name_convert=(+DATA_DM01/APSPROD,+DATA_DM01/EMERALD)
log_file_name_convert=(+DATA_DM01/APSPROD,+DATA_DM01/EMERALD,+RECO_DM01/APSPROD,+RECO_DM01/EMERALD)
DB_RECOVERY_FILE_DEST='+RECO_DM01'
DB_RECOVERY_FILE_DEST_SIZE=5500G
So from above you can see that control file should be restored to +DATA_DM01/EMERALD and +RECO_DM01/EMERALD path.
Question -
when I am trying to restore control file. It creates an ASM alias name in +DATA_DM01/EMERALD/controlfile/cntrl01.dbf',+RECO_DM01/EMERALD/controlfile/cntrl02.dbf',' and +DATA_DM01/EMERALD/controlfile/cntrl03.dbf' but It creates fully Qualified ASM Filename under +DATA_DM01/APSPROD and +RECO_DM01/
Here is output
RMAN> restore controlfile from '/dbfs_direct/FS1/RMAN_APSPROD/cf_APSPROD_i4p4b62m_1_1
2> ;
Starting restore at 02-APR-14
using channel ORA_DISK_1
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:07
output file name=+DATA_DM01/emerald/controlfile/cntrl01.dbf
output file name=+RECO_DM01/emerald/controlfile/cntrl02.dbf
output file name=+DATA_DM01/emerald/controlfile/cntrl03.dbf
Finished restore at 02-APR-14
output at ASM level
SMCMD [+RECO_DM01/EMERALD/CONTROLFILE] > ls -l
Type Redund Striped Time Sys Name
N cntrl02.dbf => +RECO_DM01/APSPROD/CONTROLFILE/current.17006.843826701
ASMCMD [+RECO_DM01/EMERALD/CONTROLFILE] > cd +RECO_DM01/APSPROD/CONTROLFILE/
ASMCMD [+RECO_DM01/APSPROD/CONTROLFILE] > ls -l
Type Redund Striped Time Sys Name
CONTROLFILE HIGH FINE APR 02 12:00:00 Y current.17006.843826701
ASMCMD [+RECO_DM01/APSPROD/CONTROLFILE] > cd +DATA_DM01
ASMCMD [+DATA_DM01] > cd EMERALD/CONTROLFILE
ASMCMD [+DATA_DM01/EMERALD/CONTROLFILE] > ls -l
Type Redund Striped Time Sys Name
N cntrl01.dbf => +DATA_DM01/APSPROD/CONTROLFILE/current.3678.843826699
N cntrl03.dbf => +DATA_DM01/APSPROD/CONTROLFILE/current.3679.843826701
ASMCMD [+DATA_DM01/EMERALD/CONTROLFILE] > cd +DATA_DM01/APSPROD/CONTROLFILE
ASMCMD [+DATA_DM01/APSPROD/CONTROLFILE] > ls -l
Type Redund Striped Time Sys Name
CONTROLFILE HIGH FINE APR 02 12:00:00 Y current.3678.843826699
CONTROLFILE HIGH FINE APR 02 12:00:00 Y current.3679.843826701
How can I ensure that every thing gets created in +DATA_DM01/EMERALD/ or [+RECO_DM01/EMERALD?? similary for datafile restore even I have used set new file name ASM fully quilified OMF datafile gets created under +DATA_DM01/APSPROD/
ASMCMD [+DATA_DM01/EMERALD/DATAFILE]
N undots5_01.dbf => +DATA_DM01/APSPROD/DATAFILE/APPS_UNDOTS5.3669.843818269
Thanks
PVEven If I explicitly say
rman target / nocatalog
RMAN> restore controlfile to '+DATA_DM01/emerald/controlfile/cntrl01.dbf' from '/dbfs_direct/FS1/RMAN_APSPROD/cf_APSPROD_i4p4b62m_1_1';
Starting restore at 02-APR-14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=64 device type=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
Finished restore at 02-APR-14
It create as alias name +DATA_DM01/emerald/controlfile/cntrl01.dbf' pointing to +DATA_DM01/APSPROD/CONTROLFILE/
ASMCMD [+DATA_DM01/EMERALD/CONTROLFILE] > ls -l
Type Redund Striped Time Sys Name
N cntrl01.dbf => +DATA_DM01/APSPROD/CONTROLFILE/current.3679.843828927
ASMCMD [+DATA_DM01/EMERALD/CONTROLFILE] > cd +DATA_DM01/APSPROD
ASMCMD [+DATA_DM01/APSPROD] > cd CONTROLFILE
ASMCMD [+DATA_DM01/APSPROD/CONTROLFILE] > ls -l
Type Redund Striped Time Sys Name
CONTROLFILE HIGH FINE APR 02 12:00:00 Y current.3679.843828927
ASMCMD [+DATA_DM01/APSPROD/CONTROLFILE] > -
Backup from 9i and restore this backup to 10g using RMAN
Hi all;
I have a database 9i on SuSE9. And I want to restore another server this database's backupsets to 10g on SuSE10 using RMAN. Then I have run following scripts.
On 9i Database: (SID=discoden)_
RMAN > backup database plus archivelog;
and I have three backupsets (05l87nik_1_1, 06l87nio_1_1, 07l87nml_1_1) and one controlfile backup (c-4279316798-20100310-00). then I copy these backuppieces to new server.
On 10g Database:_
+1. I have created udump and bdump folder into $ORACLE_BASE/admin/discoden/+
+2. I have copied init.ora, pasted initdiscoden.ora in $ORACLE_HOME/dbs folder. And I have changed following parameters+
db_name = discoden
shared_pool_size = 350000000
control_files = (/disk2/oracle/discoden/control01.ctl, /disk2/oracle/discoden/control02.ctl, /disk2/oracle/discoden/control03.ctl)
user_dump_dest = /opt/oracle/admin/discoden/udump
background_dump_dest = /opt/oracle/admin/discoden/bdump
compatible = 10.2.0.3.0
undo_management = auto
+3. export ORACLE_SID=discoden+
+4. cd $ORACLE_HOME/bin+
+5. ./rman target /+
+6. RMAN> startup nomount;+
+7. RMAN> restore controlfile from '/disk2/setup/c-4279316798-20100310-00';+
+8. RMAN> alter database mount ;+
+9. RMAN> catalog backuppiece '/disk2/setup/05l87nik_1_1';+
RMAN> catalog backuppiece '/disk2/setup/06l87nio_1_1';
RMAN> catalog backuppiece '/disk2/setup/07l87nml_1_1';
+10. SQL> alter database rename file '/disk2/oracle9i/databases/discoden/redo01.log' to '/disk2/oracle/discoden/redo01.log';+
SQL> alter database rename file '/disk2/oracle9i/databases/discoden/redo02.log' to '/disk2/oracle/discoden/redo02.log';
SQL> alter database rename file '/disk2/oracle9i/databases/discoden/redo03.log' to '/disk2/oracle/discoden/redo03.log';
+11. RMAN > list backup; (With this command, I have learned last sequence number. For example 204)+
+12. I have run following command on RMAN:+
+run {+
set until sequence 204;
set newname for datafile 1 to '/disk2/oracle/discoden/system01.dbf';
set newname for datafile 2 to '/disk2/oracle/discoden/undotbs01.dbf';
set newname for datafile 3 to '/disk2/oracle/discoden/cwmlite01.dbf';
set newname for datafile 4 to '/disk2/oracle/discoden/drsys01.dbf';
set newname for datafile 5 to '/disk2/oracle/discoden/example01.dbf';
set newname for datafile 6 to '/disk2/oracle/discoden/indx01.dbf';
set newname for datafile 7 to '/disk2/oracle/discoden/odm01.dbf';
set newname for datafile 8 to '/disk2/oracle/discoden/tools01.dbf';
set newname for datafile 9 to '/disk2/oracle/discoden/users01.dbf';
set newname for datafile 10 to '/disk2/oracle/discoden/xdb01.dbf';
set newname for datafile 11 to '/disk2/oracle/discoden/DATASPACE1.dbf';
set newname for datafile 12 to '/disk2/oracle/discoden/CARDEM.dbf';
set newname for datafile 13 to '/disk2/oracle/discoden/MUHASEBE.dbf';
set newname for datafile 14 to '/disk2/oracle/discoden/ORTAK.dbf';
set newname for datafile 15 to '/disk2/oracle/discoden/MAGAZA.dbf';
restore database;
switch datafile all;
recover database;
alter database open resetlogs;
+}+
Then I have an error like following lines:
+..........+
media recovery complete, elapsed time: 00:00:04
Finished recover at 06-MAR-10
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00601: fatal error in recovery manager
RMAN-03004: fatal error during execution of command
ORA-03114: not connected to ORACLE
ORA-03114: not connected to ORACLE
RMAN-03002: failure of alter db command at 03/06/2010 09:00:47
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00704: bootstrap process failure
ORA-39700: database must be opened with UPGRADE option
ORACLE error from target database:
ORA-03114: not connected to ORACLE
I don't understand the mistakes. I hope your helps. Thank you.Hi,
You have followed the steps correctly while restoring and recovering the 9i database under 10g home using RMAN except the last step of opening the database.
Remove 'alter database open resetlogs;' from the rman script and rerun the script. Once the database is restored and recovered, open the database with RESETLOGS & UPGRADE option through SQL*Plus as below.
SQL> alter database open resetlogs upgrade;
Once the database is opened, create the SYSAUX tablespace and run $ORACLE_HOME/rdbms/admin/ upgrd.sql catupgrd.sql script to upgrade the database to 10g ( follow the steps for upgrading the database).
MetaLink Note : 369644.1 - Answers To FAQ For Restoring Or Duplicating Between Different Versions And Platforms
Regards,
Vaibhav
Edited by: Vaibhav on Mar 11, 2010 11:09 AM -
Unable to restore TABLESPACE using RMAN backups
Hi,
I am not able to restore tablespace using RMAN (TSPITR).
I have full backup of database,
While try to restore it's failed.
RMAN> recover tablespace TEST1 until logseq 706 auxiliary destination '/tmp';
Starting recover at 16-OCT-13
using channel ORA_DISK_1
RMAN-05026: WARNING: presuming following set of tablespaces applies to specified point-in-time
List of tablespaces expected to have UNDO segments
Tablespace SYSTEM
Tablespace UNDOTBS2
Creating automatic instance, with SID='CsFz'
initialization parameters used for automatic instance:
db_name=TRAINEE
db_unique_name=CsFz_tspitr_TRAINEE
compatible=11.2.0.0.0
db_block_size=8192
db_files=200
sga_target=280M
processes=50
db_create_file_dest=/tmp
log_archive_dest_1='location=/tmp'
#No auxiliary parameter file used
starting up automatic instance TRAINEE
Oracle instance started
Total System Global Area 292933632 bytes
Fixed Size 1336092 bytes
Variable Size 100666596 bytes
Database Buffers 184549376 bytes
Redo Buffers 6381568 bytes
Automatic instance created
List of tablespaces that have been dropped from the target database:
Tablespace TEST1
contents of Memory Script:
# set requested point in time
set until logseq 706 thread 1;
# restore the controlfile
restore clone controlfile;
# mount the controlfile
sql clone 'alter database mount clone database';
# archive current online log
sql 'alter system archive log current';
# avoid unnecessary autobackups for structural changes during TSPITR
sql 'begin dbms_backup_restore.AutoBackupFlag(FALSE); end;';
executing Memory Script
executing command: SET until clause
Starting restore at 16-OCT-13
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=81 device type=DISK
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: reading from backup piece /oracle/product/11.2.0/dbhome_1/dbs/c-332232391-20131016-09
channel ORA_AUX_DISK_1: piece handle=/oracle/product/11.2.0/dbhome_1/dbs/c-332232391-20131016-09 tag=TAG20131016T144951
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
output file name=/tmp/TRAINEE/controlfile/o1_mf_95wbkpvj_.ctl
Finished restore at 16-OCT-13
sql statement: alter database mount clone database
sql statement: alter system archive log current
sql statement: begin dbms_backup_restore.AutoBackupFlag(FALSE); end;
contents of Memory Script:
# set requested point in time
set until logseq 706 thread 1;
# set destinations for recovery set and auxiliary set datafiles
set newname for clone datafile 1 to new;
set newname for clone datafile 7 to new;
set newname for clone datafile 2 to new;
set newname for clone tempfile 1 to new;
set newname for datafile 6 to
"/oracle/oradata/TRAINEE/datafile/o1_mf_test1_95w9fln9_.dbf";
# switch all tempfiles
switch clone tempfile all;
# restore the tablespaces in the recovery set and the auxiliary set
restore clone datafile 1, 7, 2, 6;
switch clone datafile all;
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
renamed tempfile 1 to /tmp/TRAINEE/datafile/o1_mf_temp_%u_.tmp in control file
Starting restore at 16-OCT-13
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00001 to /tmp/TRAINEE/datafile/o1_mf_system_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00007 to /tmp/TRAINEE/datafile/o1_mf_undotbs2_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00002 to /tmp/TRAINEE/datafile/o1_mf_sysaux_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00006 to /oracle/oradata/TRAINEE/datafile/o1_mf_test1_95w9fln9_.dbf
channel ORA_AUX_DISK_1: reading from backup piece /tmp/1iomi9rv_1_1
channel ORA_AUX_DISK_1: piece handle=/tmp/1iomi9rv_1_1 tag=TAG20131016T144935
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:15
Finished restore at 16-OCT-13
datafile 1 switched to datafile copy
input datafile copy RECID=11 STAMP=828975325 file name=/tmp/TRAINEE/datafile/o1_mf_system_95wbkybb_.dbf
datafile 7 switched to datafile copy
input datafile copy RECID=12 STAMP=828975325 file name=/tmp/TRAINEE/datafile/o1_mf_undotbs2_95wbkycy_.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=13 STAMP=828975325 file name=/tmp/TRAINEE/datafile/o1_mf_sysaux_95wbkybz_.dbf
contents of Memory Script:
# set requested point in time
set until logseq 706 thread 1;
# online the datafiles restored or switched
sql clone "alter database datafile 1 online";
sql clone "alter database datafile 7 online";
sql clone "alter database datafile 2 online";
sql clone "alter database datafile 6 online";
# recover and open resetlogs
recover clone database tablespace "TEST1", "SYSTEM", "UNDOTBS2", "SYSAUX" delete archivelog;
alter clone database open resetlogs;
executing Memory Script
executing command: SET until clause
sql statement: alter database datafile 1 online
sql statement: alter database datafile 7 online
sql statement: alter database datafile 2 online
sql statement: alter database datafile 6 online
Starting recover at 16-OCT-13
using channel ORA_AUX_DISK_1
starting media recovery
archived log for thread 1 with sequence 702 is already on disk as file /oracle/product/11.2.0/dbhome_1/dbs/arch1_702_807275402.dbf
archived log for thread 1 with sequence 703 is already on disk as file /oracle/product/11.2.0/dbhome_1/dbs/arch1_703_807275402.dbf
archived log for thread 1 with sequence 704 is already on disk as file /oracle/product/11.2.0/dbhome_1/dbs/arch1_704_807275402.dbf
archived log for thread 1 with sequence 705 is already on disk as file /oracle/product/11.2.0/dbhome_1/dbs/arch1_705_807275402.dbf
archived log file name=/oracle/product/11.2.0/dbhome_1/dbs/arch1_702_807275402.dbf thread=1 sequence=702
archived log file name=/oracle/product/11.2.0/dbhome_1/dbs/arch1_703_807275402.dbf thread=1 sequence=703
archived log file name=/oracle/product/11.2.0/dbhome_1/dbs/arch1_704_807275402.dbf thread=1 sequence=704
archived log file name=/oracle/product/11.2.0/dbhome_1/dbs/arch1_705_807275402.dbf thread=1 sequence=705
media recovery complete, elapsed time: 00:00:01
Finished recover at 16-OCT-13
database opened
contents of Memory Script:
# make read only the tablespace that will be exported
sql clone 'alter tablespace TEST1 read only';
# create directory for datapump import
sql "create or replace directory TSPITR_DIROBJ_DPDIR as ''
/tmp''";
# create directory for datapump export
sql clone "create or replace directory TSPITR_DIROBJ_DPDIR as ''
/tmp''";
executing Memory Script
sql statement: alter tablespace TEST1 read only
sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/tmp''
sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/tmp''
Performing export of metadata...
EXPDP> Starting "SYS"."TSPITR_EXP_CsFz":
EXPDP> Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
EXPDP> Processing object type TRANSPORTABLE_EXPORT/TABLE
EXPDP> Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
EXPDP> Master table "SYS"."TSPITR_EXP_CsFz" successfully loaded/unloaded
EXPDP> ******************************************************************************
EXPDP> Dump file set for SYS.TSPITR_EXP_CsFz is:
EXPDP> /tmp/tspitr_CsFz_17454.dmp
EXPDP> ******************************************************************************
EXPDP> Datafiles required for transportable tablespace TEST1:
EXPDP> /tmp/TRAINEE/datafile/o1_mf_test1_95wbkyck_.dbf
EXPDP> Job "SYS"."TSPITR_EXP_CsFz" successfully completed at 14:56:02
Export completed
contents of Memory Script:
# shutdown clone before import
shutdown clone immediate
executing Memory Script
database closed
database dismounted
Oracle instance shut down
Performing import of metadata...
IMPDP> Master table "SYS"."TSPITR_IMP_CsFz" successfully loaded/unloaded
IMPDP> Starting "SYS"."TSPITR_IMP_CsFz":
IMPDP> Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
Removing automatic instance
Automatic instance removed
auxiliary instance file /tmp/TRAINEE/datafile/o1_mf_temp_95wblk08_.tmp deleted
auxiliary instance file /tmp/TRAINEE/onlinelog/o1_mf_3_95wblj14_.log deleted
auxiliary instance file /tmp/TRAINEE/onlinelog/o1_mf_2_95wblhn8_.log deleted
auxiliary instance file /tmp/TRAINEE/onlinelog/o1_mf_1_95wblh8q_.log deleted
auxiliary instance file /tmp/TRAINEE/datafile/o1_mf_sysaux_95wbkybz_.dbf deleted
auxiliary instance file /tmp/TRAINEE/datafile/o1_mf_undotbs2_95wbkycy_.dbf deleted
auxiliary instance file /tmp/TRAINEE/datafile/o1_mf_system_95wbkybb_.dbf deleted
auxiliary instance file /tmp/TRAINEE/controlfile/o1_mf_95wbkpvj_.ctl deleted
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 10/16/2013 14:56:16
RMAN-06963: Error received during import of metadata
RMAN-06961: IMPDP> ORA-39123: Data Pump transportable tablespace job aborted
ORA-01565: error in identifying file '/oracle/oradata/TRAINEE/datafile/o1_mf_test1_95w9fln9_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3Hi,
Cloud you please cheek below link:
ORACLE Cookies: TSPITR to recover a dropped tablespace
Thank you -
RMAN-06094: datafile 344 must be restored : in duplicate db from active db
Hi All,
I am on oracle 11g database running on Solaris Sparc 64 Bit.
I am trying to use the RMAN Duplication command using the active database with the following command :
rman target sys/manager@TARGET nocatalog auxiliary sys/manager@DEST <<EOF
run {
allocate channel ch1 type disk;
allocate channel ch2 type disk;
allocate channel ch3 type disk;
allocate channel ch4 type disk;
allocate channel ch5 type disk;
allocate auxiliary channel ch6 type disk;
allocate auxiliary channel ch8 type disk;
allocate auxiliary channel ch7 type disk;
allocate auxiliary channel ch9 type disk;
allocate auxiliary channel ch10 type disk;
SET NEWNAME FOR DATABASE TO '/p1/oracle/DEST/DEST/datafile/%U';
duplicate database to DEST from active database nofilenamecheck;}I got this error at the end of the output :
datafile 340 switched to datafile copy
input datafile copy RECID=2183 STAMP=789836366 file name=/p1/oracle/dest/DEST/datafile/data_D-TARGET_TS-SYSAUX_FNO-340
datafile 341 switched to datafile copy
input datafile copy RECID=2184 STAMP=789836366 file name=/p1/oracle/dest/DEST/datafile/data_D-TARGET_TS-RMX_DATA_FNO-341
datafile 342 switched to datafile copy
input datafile copy RECID=2185 STAMP=789836366 file name=/p1/oracle/destr/DEST/datafile/data_D-TARGET_TS-RMX_IDX_FNO-342
datafile 343 switched to datafile copy
input datafile copy RECID=2186 STAMP=789836366 file name=/p1/oracle/dest/DEST/datafile/data_D-TARGET_TS-RMX_LOBS_FNO-343
contents of Memory Script:
set until scn 10453270596456;
recover
clone database
delete archivelog
executing Memory Script
executing command: SET until clause
Starting recover at 28-JUL-12
released channel: ch1
released channel: ch2
released channel: ch3
released channel: ch4
released channel: ch5
released channel: ch6
released channel: ch8
released channel: ch7
released channel: ch9
released channel: ch10
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/28/2012 15:00:09
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06094: datafile 344 must be restored
RMAN>
RMAN>
Recovery Manager complete.
~Please suggest how to go about next.
Regards
Kk
Edited by: Kk on Jul 28, 2012 2:41 AM
Edited by: Kk on Jul 28, 2012 2:49 AM : APPENDED A BETTER OUTPUTKk wrote:
Hi All,
The datafile 344 and 345 belonged to two different tablespaces which were not used.
Morover , I dont know why , but the timestamp of both the datafiles 344 and 345 was showiing as JULY 6 instead of JULY 28.
So i was sure this was causing the trouble.
I dropped those 2 tablespaces and then reran the script again by removing the created controlfiles and the database was open.
Just curious to know why were those 2 datafiles not getting populated with the latest timestamp ?
Regards
KkWhat is the status of both the data files? can you query from source database
SQL> select file_id,online_status from dba_data_files where file_id in (344,345);
Does that backup contain those two data files? If those two tablespaces have only one data file is it in Read only mode?
Maybe you are looking for
-
Palm Desktop crashes when viewing one month in monthly view
Hi--this is a weird problem. Never seen it before. --My Treo 680 (Win XP SP3), with Palm Desktop 6.2.2 seems to sync fine. I make changes in the Treo, it appears on the desktop. --Also, I can view and edit the desktop in DAY view. I normally default
-
Problem with Aperture slideshow export - Some photos don't display!
I have just completed my latest wedding slideshow. It plays as normal in Aperture, but when exported, certain photos don't show... just a black screen. The timings are unaffected. Aperture 3.6, Yosemite 10.10.1 The affected photos seem to be the one
-
About viewing images that are not the same dimensions as the iPod screen
I sent some images to my iPod via email. I saved them to my photo library. When I went to look at them, I noticed something odd was happening: my iPod is sort of 'stretching' the images so they fit the entire screen of my iPod, even if that means a)
-
Upgrade 10.4 to 10.5 virtual users
Hi, I am planning on migrating 10.4 users to a new 10.5 machine. I plan to follow the Upgrading and Migrating <http://images.apple.com/server/macosx/docs/Upgradingand_Migratingv10.5.pdf> guide to get all their mail moved. One question I have is that
-
Sustitution Variable in PIVOT Title
Hello, Is there any way to add a presentation variable as a title in a PIVOT title? In the pivot heading instead of the title y add @{monthTitle} that is the name of my presentation variable. but it shows me @{monthTitle} instead of the title. If I p