RMAN clone; Avoid backup image
Oracle 10.2.0.5
When cloning databases with RMAN on ASM, it creates a backup image before restoring the backup to a clone. Whenever I clone a database, I need double amount of storage to do it.
Is there way to clone a database in ASM and avoid the additional backup image?
I appreciate the help.
Thank you
Hi Philippe,
I really appreciate your post, doing things that seem impossible to be possible. (such as to duplicate (online) a database in 10g without restore). :)
I decided to complement your post doing duplicate using ASM.
I did not make step by step, but for any Senior DBA can understand.
P.S: For All:
Be very careful to do this using ASM because you can damage or remove your target database if the parameters(init<instance_name>.ora) are not configured correctly.
I created/used a different diskgroup from that used by the target database, for precaution and safety.
rman target /
Recovery Manager: Release 10.2.0.5.0 - Production on Mon May 9 22:01:42 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: DB10G (DBID=142098503)
RMAN> report schema;
using target database control file instead of recovery catalog
Report of database schema
List of Permanent Datafiles
===========================
File Size(MB) Tablespace RB segs Datafile Name
1 450 SYSTEM *** +DG_ORCL/db10g/datafile/system.259.749761723
2 1105 UNDOTBS1 *** +DG_ORCL/db10g/datafile/undotbs1.258.749761723
3 250 SYSAUX *** +DG_ORCL/db10g/datafile/sysaux.257.749761723
4 3250 USERS *** +DG_ORCL/db10g/datafile/users.256.749761725
List of Temporary Files
=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
1 98 TEMP 32767 +DG_ORCL/db10g/tempfile/temp.260.749761777
# Oracle ASM use db_unique_name to create directory. So I go use.
sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 9 22:38:48 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
SQL:db10g> show parameter db_unique
NAME TYPE VALUE
db_unique_name string DB10G
SQL:db10g> ALTER SYSTEM SET db_unique_name=dbclone scope=spfile;
SQL:db10g> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL:db10g> startup mount
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 104858880 bytes
Database Buffers 180355072 bytes
Redo Buffers 6291456 bytes
Database mounted.
SQL> show parameter db_uni
NAME TYPE VALUE
db_unique_name string DBCLONE
$ rman target /
Recovery Manager: Release 10.2.0.5.0 - Production on Mon May 9 22:43:27 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: DB10G (DBID=142098503, not open)
RMAN> BACKUP AS COPY DEVICE TYPE DISK DATABASE FORMAT '+DG_CLONE';
Starting backup at 09-MAY-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=153 devtype=DISK
channel ORA_DISK_1: starting datafile copy
input datafile fno=00004 name=+DG_ORCL/db10g/datafile/users.256.749761725
output filename=+DG_CLONE/dbclone/datafile/users.262.750725029 tag=TAG20110509T224348 recid=10 stamp=750725114
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:35
channel ORA_DISK_1: starting datafile copy
input datafile fno=00002 name=+DG_ORCL/db10g/datafile/undotbs1.258.749761723
output filename=+DG_CLONE/dbclone/datafile/undotbs1.263.750725125 tag=TAG20110509T224348 recid=11 stamp=750725152
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting datafile copy
input datafile fno=00001 name=+DG_ORCL/db10g/datafile/system.259.749761723
output filename=+DG_CLONE/dbclone/datafile/system.264.750725161 tag=TAG20110509T224348 recid=12 stamp=750725170
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
input datafile fno=00003 name=+DG_ORCL/db10g/datafile/sysaux.257.749761723
output filename=+DG_CLONE/dbclone/datafile/sysaux.265.750725175 tag=TAG20110509T224348 recid=13 stamp=750725182
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
copying current control file
output filename=+DG_CLONE/dbclone/controlfile/backup.266.750725191 tag=TAG20110509T224348 recid=14 stamp=750725193
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 09-MAY-11
channel ORA_DISK_1: finished piece 1 at 09-MAY-11
piece handle=+DG_CLONE/dbclone/backupset/2011_05_09/nnsnf0_tag20110509t224348_0.267.750725195 tag=TAG20110509T224348 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
Finished backup at 09-MAY-11
SQL:db10g> alter database backup controlfile to trace;
Database altered.
SQL:db10g>create pfile='$ORACLE_HOME/dbs/initdbclone.ora' from spfile;
File created.
SQL:db10g> show parameter db_un
NAME TYPE VALUE
db_unique_name string DBCLONE
SQL:db10g> alter system set db_unique_name=db10g scope=spfile;
System altered.
SQL:db10g> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
$ vi $ORACLE_HOME/dbs/initdbclone.ora
*.audit_file_dest='/u01/app/oracle/admin/dbclone/adump'
*.background_dump_dest='/u01/app/oracle/admin/dbclone/bdump'
*.control_files='/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora'
*.core_dump_dest='/u01/app/oracle/admin/dbclone/cdump'
*.db_create_file_dest='+DG_CLONE'
*.db_name='db10g'
*.db_recovery_file_dest='+DG_CLONE'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=dbcloneXDB)'
*.user_dump_dest='/u01/app/oracle/admin/dbclone/udump'
# Get list of datafiles on ASM (very useful for huge list)
set linesize 110
col DATAFILE_PATH for a100
SQL:+ASM> select ''''||concat('+'||gname, sys_connect_by_path(aname, '/'))||''',' DATAFILE_PATH
from ( select b.name gname, a.parent_index pindex, a.name aname,
a.reference_index rindex , a.system_created, a.alias_directory,
c.type file_type
from v$asm_alias a, v$asm_diskgroup b, v$asm_file c
where a.group_number = b.group_number
and a.group_number = c.group_number(+)
and a.file_number = c.file_number(+)
and a.file_incarnation = c.incarnation(+)
) WHERE file_type = 'DATAFILE'
start with (mod(pindex, power(2, 24))) = 0
and rindex in
( select a.reference_index
from v$asm_alias a, v$asm_diskgroup b
where a.group_number = b.group_number
and (mod(a.parent_index, power(2, 24))) = 0
and a.name = UPPER('&DATABASENAME')
connect by prior rindex = pindex;
DATAFILE_PATH
'+DG_CLONE/DBCLONE/DATAFILE/SYSTEM.264.750725161',
'+DG_CLONE/DBCLONE/DATAFILE/UNDOTBS1.263.750725125',
'+DG_CLONE/DBCLONE/DATAFILE/USERS.262.750725029',
'+DG_CLONE/DBCLONE/DATAFILE/SYSAUX.265.750725175',
$ export ORACLE_SID=db10g
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 9 23:55:16 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL:dbclone> startup nomount pfile='$ORACLE_HOME/dbs/initdbclone.ora'
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 92275968 bytes
Database Buffers 192937984 bytes
Redo Buffers 6291456 bytes
SQL> CREATE CONTROLFILE REUSE DATABASE "DB10G" RESETLOGS ARCHIVELOG
2 MAXLOGFILES 16
3 MAXLOGMEMBERS 3
4 MAXDATAFILES 100
5 MAXINSTANCES 8
6 MAXLOGHISTORY 292
7 LOGFILE
8 GROUP 1 (
9 '+DG_CLONE/DBCLONE/onlinelog/group_1.264.749761765',
10 '+DG_CLONE/DBCLONE/onlinelog/group_1.257.749761767'
11 ) SIZE 50M,
12 GROUP 2 (
13 '+DG_CLONE/DBCLONE/onlinelog/group_2.262.749761769',
14 '+DG_CLONE/DBCLONE/onlinelog/group_2.258.749761771'
15 ) SIZE 50M,
16 GROUP 3 (
17 '+DG_CLONE/DBCLONEonlinelog/group_3.261.749761771',
18 '+DG_CLONE/DBCLONE/onlinelog/group_3.259.749761773'
19 ) SIZE 50M
20 DATAFILE
21 '+DG_CLONE/DBCLONE/DATAFILE/SYSTEM.264.750725161',
22 '+DG_CLONE/DBCLONE/DATAFILE/UNDOTBS1.263.750725125',
23 '+DG_CLONE/DBCLONE/DATAFILE/USERS.262.750725029',
24 '+DG_CLONE/DBCLONE/DATAFILE/SYSAUX.265.750725175'
25 CHARACTER SET WE8ISO8859P1
26 ;
Control file created.
SQL:dbclone> alter database open resetlogs;
Database altered.
SQL:dbclone> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL:dbclone> startup mount pfile='$ORACLE_HOME/dbs/initdbclone.ora'
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 92275968 bytes
Database Buffers 192937984 bytes
Redo Buffers 6291456 bytes
Database mounted.
SQL:dbclone> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ nid TARGET=/ DBNAME=dbclone
DBNEWID: Release 10.2.0.5.0 - Production on Tue May 10 00:02:21 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to database DB10G (DBID=142098503)
Connected to server version 10.2.0
Control Files in database:
/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora
Change database ID and database name DB10G to DBCLONE? (Y/[N]) => yes
Proceeding with operation
Changing database ID from 142098503 to 661154259
Changing database name from DB10G to DBCLONE
Control File /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora - modified
Datafile +DG_CLONE/dbclone/datafile/system.264.750725161 - dbid changed, wrote new name
Datafile +DG_CLONE/dbclone/datafile/undotbs1.263.750725125 - dbid changed, wrote new name
Datafile +DG_CLONE/dbclone/datafile/sysaux.265.750725175 - dbid changed, wrote new name
Datafile +DG_CLONE/dbclone/datafile/users.262.750725029 - dbid changed, wrote new name
Control File /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora - dbid changed, wrote new name
Instance shut down
Database name changed to DBCLONE.
Modify parameter file and generate a new password file before restarting.
Database ID for database DBCLONE changed to 661154259.
All previous backups and archived redo logs for this database are unusable.
Database is not aware of previous backups and archived logs in Recovery Area.
Database has been shutdown, open database with RESETLOGS option.
Succesfully changed database name and ID.
DBNEWID - Completed succesfully.
$ vi $ORACLE_HOME/dbs/initdbclone.ora
*.db_name='dbclone' # change this
$ export ORACLE_SID=dbclone
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Tue May 10 00:04:26 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL:dbclone> startup mount
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 104858880 bytes
Database Buffers 180355072 bytes
Redo Buffers 6291456 bytes
Database mounted.
SQL:dbclone> alter database open resetlogs;
Database altered.
SQL:dbclone> ALTER TABLESPACE TEMP ADD TEMPFILE '+DG_CLONE(TEMPFILE)' SIZE 200M;
Tablespace altered.
# Moving SPFILE to ASM
SQL:dbclone> create spfile='+DG_CLONE(PARAMETERFILE)' from pfile;
File created.
SQL:dbclone> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
ASMCMD> mkalias +DG_CLONE/DBCLONE/PARAMETERFILE/spfile.277.750732725 +DG_CLONE/DBCLONE/SPFILEDBCLONE.ORA
$ vi $ORACLE_HOME/dbs/initdbclone.ora
SPFILE='+DG_CLONE/DBCLONE/SPFILEDBCLONE.ORA'
# Moving CONTROLFILE to ASM
SQL:dbclone> startup nomount
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 104858880 bytes
Database Buffers 180355072 bytes
Redo Buffers 6291456 bytes
SQL:dbclone> show parameter control
NAME TYPE VALUE
control_file_record_keep_time integer 7
control_files string /u01/app/oracle/product/10.2.0
/db_1/dbs/control_dbclone.ora
SQL:dbclone> alter system set control_files='/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora','+DG_CLONE' scope=spfile;
System altered.
SQL:dbclone> exit
$ rman target /
connected to target database: dbclone (not mounted)
RMAN> shutdown immediate
using target database control file instead of recovery catalog
Oracle instance shut down
RMAN> startup nomount
connected to target database (not started)
Oracle instance started
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 104858880 bytes
Database Buffers 180355072 bytes
Redo Buffers 6291456 bytes
RMAN> restore controlfile from '/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora';
Starting restore at 10-MAY-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
channel ORA_DISK_1: copied control file copy
output filename=/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora
output filename=+DG_CLONE/dbclone/controlfile/current.278.750733129
Finished restore at 10-MAY-11
RMAN> exit
Recovery Manager complete.
$ sqlplus / as sysdba
SQL:dbclone> show parameter control
NAME TYPE VALUE
control_file_record_keep_time integer 7
control_files string /u01/app/oracle/product/10.2.0
/db_1/dbs/control_dbclone.ora,
+DG_CLONE/dbclone/controlfile
/current.278.750733129
SQL> alter system set control_files='+DG_CLONE/dbclone/controlfile/current.278.750733129' scope=spfile;
System altered.
SQL> shutdown immediate;
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 2095872 bytes
Variable Size 104858880 bytes
Database Buffers 180355072 bytes
Redo Buffers 6291456 bytes
Database mounted.
Database opened.
SQL> exitCheers,
Levi Pereira
Similar Messages
-
If I need a full rman restore which backups will it use?
Hello,
I have a database 11.1.0.7 with 8TB. Block change tracking is enabled.
At the weekend I take level 0 backup and during the week level 1 cumulative.
For some weeks the level 0 backup is failing, so I only have level 1 cumulative backups taken every week day with a 4 weeks old level 0 backup.
If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
I ask this because grid crontrol tells me that the recent level 1 backups input size is smaller than last week level 1 backups and in between I dont have any level 0 sucessfull backups. Shouldn't the input size of level 1 cumulative increase until the next level 0 backup ?
The grid reports:
Backup Name Status Start Time Time Taken Type Output Devices Input Size Output Size Output Rate (Per Sec)
rman_df_lv1c COMPLETED 25/Jul/2011 21H00m WEST 02:33:29 DB INCR SBT_TAPE *1.32T* 289.02G 32.14M
rman_df_lv0 FAILED 23/Jul/2011 02H01m WEST DB INCR SBT_TAPE 8.78T 8.06T
rman_df_lv1c COMPLETED 21/Jul/2011 21H00m WEST 04:39:38 DB INCR SBT_TAPE *3.46T* 550.82G 33.62M
rman_df_lv1c COMPLETED 20/Jul/2011 21H00m WEST 04:47:36 DB INCR SBT_TAPE *3.37T* 524.36G 31.12M
rman_df_lv1c COMPLETED 19/Jul/2011 21H00m WEST 04:06:09 DB INCR SBT_TAPE *3.15T* 490.75G 34.03M
rman_df_lv1c COMPLETED 18/Jul/2011 21H00m WEST 03:40:24 DB INCR SBT_TAPE *2.49T* 410.88G 31.82M
rman_df_lv0 FAILED 16/Jul/2011 22H16m WEST DB INCR SBT_TAPE 6.27T 5.69T
rman_df_lv1c FAILED 14/Jul/2011 21H00m WEST 06:13:40 DB INCR SBT_TAPE 4.38T 714.30G 32.62M
rman_df_lv1c FAILED 13/Jul/2011 21H01m WEST 04:40:45 DB INCR SBT_TAPE 3.25T 542.98G 33.01M
rman_df_lv1c COMPLETED 12/Jul/2011 21H00m WEST 07:15:54 DB INCR SBT_TAPE 4.74T 847.93G 33.20M
rman_df_lv1c COMPLETED 11/Jul/2011 21H00m WEST 07:26:40 DB INCR SBT_TAPE 3.78T 766.40G 29.28M
rman_df_lv0 FAILED 9/Jul/2011 02H32m WEST 04:30:44 DB INCR SBT_TAPE 749.89G 716.02G 45.14M
rman_df_lv1c FAILED 7/Jul/2011 21H01m WEST 04:49:24 DB INCR SBT_TAPE 2.16T 515.90G 30.42M
rman_df_lv1c FAILED 6/Jul/2011 21H00m WEST 01:26:06 DB INCR SBT_TAPE 745.83G 165.48G 32.80M
rman_df_lv1c FAILED 5/Jul/2011 21H01m WEST 00:05:48 DB INCR SBT_TAPE 58.56G 7.56G 22.24M
rman_df_lv1c FAILED 4/Jul/2011 21H00m WEST 01:55:03 DB INCR SBT_TAPE 422.40G 79.55G 11.80M
rman_df_lv0 FAILED 3/Jul/2011 16H32m WEST 30:22:04 DB INCR SBT_TAPE 4.53T 4.21T 40.40M>
If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
From http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmvalid.htm
Validating Backups Before Restoring Them
You can run RESTORE ... VALIDATE to test whether RMAN can restore a specific file or set of files from a backup. RMAN chooses which backups to use.
The database must be mounted or open for this command. You do not have to take datafiles offline when validating the restore of datafiles, because validation of backups of the datafiles only reads the backups and does not affect the production datafiles.
When validating files on disk or tape, RMAN reads all blocks in the backup piece or image copy. RMAN also validates offsite backups. The validation is identical to a real restore operation except that RMAN does not write output files.
You can monitor what RESTORE VALIDATE does.
Make precautions, so you do not damage the production DB!!!
Iordan Iotzov
http://iiotzov.wordpress.com/ -
RMAN-06024: no backup or copy of the control file found to restore
I am cloning a new database using a full backup from previous nightly rman backup using a standby database utilizing catalog. When I run the duplicate command, I get
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/27/2011 15:04:05
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06024: no backup or copy of the control file found to restore
But the backup of controlfile does exists in the right place. What am I missing?958210 wrote:
i was trying to clone a database to a remote machine, but it is giving me the following error
'RMAN-06024: no backup or copy of the control file found to restore
ORA-19505: failed to identify file "/u01/app/oracle/product/11.2.0/dbs/c-1617115651-20120912-02"
even though i can list the backup of the control file in the source machine.
thank you
'How do I ask a question on the forums?
SQL and PL/SQL FAQ
Since we don't know what you did, so we can't know what you did wrong -
Problem about RMAN-06023: no backup or copy of datafile 5 found to restore
here is the error info when i duplicate database use rman
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 08/19/2011 09:33:39
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
and following my operate steps
==================
auxiliary instance configure
1, create password file
$ orapwd file=/opt/app/oracle/product/10.2.0/db_1/dbs/orapwslavedb password=Myss123456 entries=30
2,edit tnsname.ora on auxilary so i can connect primary db and auxiliary
$ vi tnsname.ora (tnsping test pass)
PRIDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.40.214)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pridb)
3,create pfile for auxiliary instance
$ vi initslavedb.ora
*.DB_BLOCK_SIZE=8192
*.DB_NAME=slavedb
*.CONTROL_FILES='/opt/app/oracle/oradata/slavedb/control01.ctl','/opt/app/oracl
e/oradata/slavedb/control02.ctl','/opt/app/oracle/oradata/slavedb/control03.ctl'
*.DB_FILE_NAME_CONVERT='/opt/app/oracle/oradata/primaryd','/opt/app/oracle/oradata/slavedb'
*.LOG_FILE_NAME_CONVERT='/opt/app/oracle/oradata/primaryd','/opt/app/oracle/oradata/slavedb'
4,start auxiliary instance nomount and create spfile,then shutdown it,and startup to nomount status again
5,backup target database
RMAN> backup database;
6, create directory on slavedb,and transforer target backupset and archlog to salvedb
$ mkdir -p /opt/app/oracle/flash_recovery_area/PRIDB/backupset/2011_08_19
$ mkdir -p /opt/app/oracle/flash_recovery_area/PRIDB/archivelog/2011_08_19
7,run duplicate commandline on auxiliary
[oracle@localhost admin]$ rman target sys/Myss123456@pridb auxiliary /
Recovery Manager: Release 10.2.0.1.0 - Production on Fri Aug 19 10:46:05 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: PRIDB (DBID=969477968, not open)
connected to auxiliary database: SLAVEDB (not mounted)
RMAN> duplicate target database to 'slavedb'
2> nofilenamecheck;
Starting Duplicate Db at 19-AUG-2011 10:46:15
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=35 devtype=DISK
contents of Memory Script:
set until scn 490864;
set newname for datafile 1 to
"/opt/app/oracle/oradata/slavedb/system01.dbf";
set newname for datafile 2 to
"/opt/app/oracle/oradata/slavedb/undotbs01.dbf";
set newname for datafile 3 to
"/opt/app/oracle/oradata/slavedb/sysaux01.dbf";
set newname for datafile 4 to
"/opt/app/oracle/oradata/slavedb/users01.dbf";
set newname for datafile 5 to
"/opt/app/oracle/oradata/slavedb/example01.dbf";
restore
check readonly
clone database
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
Starting restore at 19-AUG-2011 10:46:16
using channel ORA_AUX_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 08/19/2011 10:46:16
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
anyone can help?use format command with backup.
eg:-
backup as compressed backupset database format '/u01/db/backup/%d_%I_%s_%T';
if it is archivelog mode then
backup as compressed backupset database format '/u01/db/backup/%d_%I_%s_%T' plus archivelog format '/u01/db/backup/%d_%I_%s_%T';
then copy the backup to the auxiliary instance server.
then try again the duplicate command. -
What to do if there is abrupt termination of RMAN during a backup session
Hi All,
I am trying to automate the Level 0 and Level 1 backups which we ought to take. Following the is the RMAN related part of it for L1 backup:
CONFIGURE CONTROLFILE AUTOBACKUP ON;"
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '${BKP_LOCATION}/${LType}_%F';"
run {"
allocate channel c1 type disk;"
backup"
incremental level 1 cumulative tag = $BTAG"
format '${BKP_LOCATION}/${LType}_%d_set%s_piece%p_%T_%U.bkp'"
(database include current controlfile tag $CTAG) ;"
sql 'alter system archive log current';"
sql 'alter system archive log current';"
backup archivelog from sequence ${CSEQ} tag $ATAG"
format '${BKP_LOCATION}/${LType}_Arch_%d_set%s_piece%p_%T_%U.bkp';"
release channel c1;"
exit;"
In the above snippet, the variables are substituted for within a shell script and then put into a command file for RMAN. I am a novice in the backup and recovery. I got above piece of code from someone working on RMAN and built my automation logic around it.
The script works fine and I am trying to build to script level recovery feature around it. My question is:
-- What happens if I invoke the script, the backup session starts and then there is abrupt termination of the RMAN session either because of losing the db connection or receiving an interrupt signal or a kill signal or some other weird reason.
-- What if I re-invoke my script? Will it start from the point where it was stopped earlier or would it start from the point where we had last successful Level 1 backup completed?
Thanks in Advance.Hi user781131,
What happens if I invoke the script, the backup session starts and then there is abrupt termination of the RMAN session either because of losing the db
connection or receiving an interrupt signal or a kill signal or some other weird reason?The backup set which rman was creating is not commited due to the abnormal termination but all succesfull backup sets can be used.
What if I re-invoke my script? Will it start from the point where it was stopped earlier or would it start from the point where we had last successful Level 1 backup
completed?In your backup script you do not use the < NOT BACKED UP SINCE TIME > clause so it will again do a level 1 backup off all datafiles.
See:
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#i1017236
This option is a convenient way to back up files that were not backed up during a previous failed backup. For example, you back up the database, but the instance fails halfway through. You can restart the backup with the NOT BACKED UP SINCE TIME clause and avoid backing up those files that you already backed up. If AS BACKUPSET is set, then this feature is only useful if RMAN generates multiple backup sets during the backup.
Regards,
Tycho
Edited by: tychos on 28-jan-2010 15:21 -
Hello DBA's,
Using a 9i Solaris box and i need to perfom a RMAN clone of prod (target db) to train database. Train database does already exist.
I've performed "backup database plus acrhivelog all delete input" (on prod)
My query is when i do run "duplicate target database to traindb" will it refresh all the existing datafiles already in TRAIN db or will i need to manually drop the datafiles or even 'drop' the TRAIN database?
Many thanks!You should remove or drop TRAIN DB before you clone over from PROD.
However, you can use the NOFILENAMECHECK clause
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta028.htm#sthref466 -
Hi:
I got error at end when doing a RMAN clone on linux, RMAN 11.1.0.7. 89163 is the next to last highest sequence
number in the backup log file. So in the clone script I put 89165.
ORA-19870: error while restoring backup piece
ORA-19504: failed to create file
ORA-17502: ksfdcre:4 Failed to create file
ORA-15173: entry 'archive' does not exist in directory '/'
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/19/2012 17:36:15
RMAN-03015: error occurred in stored script Memory Script
RMAN-20506: no backup of archived log found
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of archived log for thread 1 with sequence 89163 and starting SCN of 11158664662 found to restore
What is the problem here?
Can I bring up the database up?
Thank you for your help.Then you may get an error as below
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of archived log for thread 1 with sequence 89165you can try to open the database with resetlogs as you would not be having the archive sequence 89165
Also, 1 suggestion. Since you are on 11g, why not use the feature "active database" ?
rman target sys/pwd@target catalog xxxx auxiliary wwww
RMAN>duplicate target database to 'CLONEDB' from active database;This does not require you to take the backup first and then start the cloning activity -
RMAN-06023: no backup or copy of datafile
Hi,
on 10g R2 on AIX, I want to recover my DB at the time of 26 of march. The backup files are available but I receive :
RMAN> Run {
2> SET UNTIL TIME "to_date('26-03-2011 00:00:00','DD-MM-YYYY HH24:MI:SS')";
3> allocate channel t1 type disk;
4> restore database;
5> recover database;
6> sql "alter database open";
7> }
8>
executing command: SET until clause
allocated channel: t1
channel t1: sid=155 devtype=DISK
Starting restore at 01-APR-11
released channel: t1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 04/01/2011 11:13:42
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 216 found to restore
RMAN-06023: no backup or copy of datafile 215 found to restore
RMAN-06023: no backup or copy of datafile 214 found to restoreWhy RMAN can't find them ?
How to verify ?
Thank for help.Hi,
Can you please make sure the restore mechanism you are following is correct or not?
Mechanics of Restore Operations
RMAN automates the procedure for restoring files. You do not need to go into the operating system, locate the backup that you want to use, and manually copy files into the appropriate directories. When you issue a RESTORE command, RMAN directs a server session to restore the correct backups to either:
* The default location, overwriting the files with the same name currently there
* A new location, which you can specify with the SET NEWNAME command
To restore a datafile, either mount the database or keep it open and take the datafile to be restored offline. When RMAN performs a restore, it creates the restored files as datafile image copies and records them in the repository.
refer the link for more information
http://download.oracle.com/docs/cd/B12037_01/server.101/b10734/rcmconc2.htm
Best regards,
Rafi.
http://rafioracledba.blogspot.com/ -
Rman clone ? duplicate database ? data guard ? standby database?
hey there !!
What is the difference between Rman clone , duplicate database , data Guard , standby db?
1 more thing , standby database and duplicate database are same??RMAN Clone : you take backup of a database on one server ,then take it to other server ,again use RMAN to restore the database,A lot manual intervention is needed in this method
RMAN DUPLICATE: same as above just that manual intervention is less. With 11gR2 there active database duplication in which you can clone your test database directly from production database without taking and then transferring the backup to test server.
Standby Database :they are of two types Physical and logical.The setup is done using RMAN with any of the above methods.Standby is the in-sync (can have some delay) version of primary database either block by block which is physical standby configuration or SQL statment wise which is logical standby.
Data Guard:This is also a standby configuration.Here the failover and switchover are automated with the help of DGMGRL utility.In manual standby this same can be done via SQL*PLUS using sql commands -
RMAN-06023: no backup or copy of datafile 12 found to restore
Hi
I'm getting the above error when trying to create a duplicate database on the same server.
Steps
1) Create backup.
CONFIGURE CONTROLFILE AUTOBACKUP ON;
backup as copy
incremental level 0
spfile
database
include current controlfile;
2) Restore / Duplicate
Have database orcl2 which is on the same server as ORCL1. Performing a no catalog recovery.
I get the following error.
executing Memory Script
executing command: SET until clause
Starting restore at 14-MAR-11
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=555 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/14/2011 16:02:24
RMAN-01005: not all datafiles have backups that can be recovered to scn 666967
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 12 found to restore
RMAN-06023: no backup or copy of datafile 11 found to restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
All the datafiles are not found. Not sure how this is possible as I just did the backup.
Command for Duplication :
DUPLICATE TARGET DATABASE TO ORCL2
DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
SPFILE
PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
Additional Information
RMAN> list backup
2> ;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
13 Full 16.77M DISK 00:00:01 14-MAR-11
BP Key: 13 Status: AVAILABLE Compressed: NO Tag: TAG20110314T155530
Piece Name: D:\ORACLE\FAST_RECOVERY_AREA\ORCL1\AUTOBACKUP\2011_03_14\O1_
MF_S_745775730_6QWWOM7G_.BKP
SPFILE Included: Modification time: 14-MAR-11
SPFILE db_unique_name: ORCL1
Control File Included: Ckp SCN: 731378 Ckp time: 14-MAR-11
RMAN>
Any help would be appreciated.
Thanks.ORADBA , thank you for your help.
Did as you suggested but still getting the same error
RMAN> DUPLICATE TARGET DATABASE TO ORCL2
2> DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
3> SPFILE
4> PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
5> SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
6> until scn = 666967;
Starting Duplicate Db at 14-MAR-11
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=537 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/14/2011 18:12:47
RMAN-06136: ORACLE error from auxiliary database: ORA-01565: error in identifyin
g file 'C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
RMAN> exit
Recovery Manager complete.
C:\Documents and Settings\Administrator>rman target sys/mariorun@orcl1 nocatalog
Recovery Manager: Release 11.1.0.7.0 - Production on Mon Mar 14 18:13:20 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: ORCL1 (DBID=1129792691)
using target database control file instead of recovery catalog
RMAN> connect auxiliary sys/mariorun@orcl2
connected to auxiliary database: ORCL2 (not mounted)
RMAN>
RMAN> DUPLICATE TARGET DATABASE TO ORCL2
2> DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
3> SPFILE
4> PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
5> SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
6> until scn = 666967;
Starting Duplicate Db at 14-MAR-11
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=97 device type=DISK
contents of Memory Script:
set until scn 666967;
restore clone spfile to 'C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA';
sql clone "alter system set spfile= ''C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFIL
EORCL2.ORA''";
executing Memory Script
executing command: SET until clause
Starting restore at 14-MAR-11
using channel ORA_AUX_DISK_1
WARNING: A restore time was estimated based on the supplied UNTIL SCN
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: restoring SPFILE
output file name=C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA
channel ORA_AUX_DISK_1: reading from backup piece D:\ORACLE\FAST_RECOVERY_AREA\O
RCL1\AUTOBACKUP\2011_03_14\O1_MF_S_745775730_6QWWOM7G_.BKP
channel ORA_AUX_DISK_1: piece handle=D:\ORACLE\FAST_RECOVERY_AREA\ORCL1\AUTOBACK
UP\2011_03_14\O1_MF_S_745775730_6QWWOM7G_.BKP tag=TAG20110314T155530
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 14-MAR-11
sql statement: alter system set spfile= ''C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFI
LEORCL2.ORA''
contents of Memory Script:
sql clone "alter system set db_name =
''ORCL2'' comment=
''duplicate'' scope=spfile";
sql clone "alter system set audit_file_dest =
''c:\oracle\ora11g\admin\orcl2\adump'' comment=
'''' scope=spfile";
sql clone "alter system set control_files =
''c:\oracle\ora11g\oradata\orcl2\control01.ctl'', ''c:\oracle\ora11g\oradata\or
cl2\control02.ctl'', ''c:\oracle\ora11g\oradata\orcl2\control03.ctl'' comment=
'''' scope=spfile";
sql clone "alter system set LOG_FILE_NAME_CONVERT =
''\orcl1'', ''\orcl2'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount ;
executing Memory Script
sql statement: alter system set db_name = ''ORCL2'' comment= ''duplicate'' sco
pe=spfile
sql statement: alter system set audit_file_dest = ''c:\oracle\ora11g\admin\orc
l2\adump'' comment= '''' scope=spfile
sql statement: alter system set control_files = ''c:\oracle\ora11g\oradata\orc
l2\control01.ctl'', ''c:\oracle\ora11g\oradata\orcl2\control02.ctl'', ''c:\oracl
e\ora11g\oradata\orcl2\control03.ctl'' comment= '''' scope=spfile
sql statement: alter system set LOG_FILE_NAME_CONVERT = ''\orcl1'', ''\orcl2''
comment= '''' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 267825152 bytes
Fixed Size 1346712 bytes
Variable Size 100664168 bytes
Database Buffers 163577856 bytes
Redo Buffers 2236416 bytes
contents of Memory Script:
set until scn 666967;
set newname for datafile 1 to
"D:\ORACLE\ORADATA\ORCL2\SYSTEM01.DBF";
set newname for datafile 2 to
"D:\ORACLE\ORADATA\ORCL2\SYSAUX01.DBF";
set newname for datafile 3 to
"D:\ORACLE\ORADATA\ORCL2\UNDOTBS01.DBF";
set newname for datafile 4 to
"D:\ORACLE\ORADATA\ORCL2\IM_DATA_01.DAT";
set newname for datafile 5 to
"D:\ORACLE\ORADATA\ORCL2\IM_IDX_01.DAT";
set newname for datafile 6 to
"D:\ORACLE\ORADATA\ORCL2\IM_INV_DATA_01.DAT";
set newname for datafile 7 to
"D:\ORACLE\ORADATA\ORCL2\IM_INV_DATA_02.DAT";
set newname for datafile 8 to
"D:\ORACLE\ORADATA\ORCL2\IM_INV_IDX_01.DAT";
set newname for datafile 9 to
"D:\ORACLE\ORADATA\ORCL2\IM_INV_IDX_02.DAT";
set newname for datafile 10 to
"D:\ORACLE\ORADATA\ORCL2\IM_PROC_LOG_01.DAT";
set newname for datafile 11 to
"D:\ORACLE\ORADATA\ORCL2\IM_PROC_NOLOG_01.DAT";
set newname for datafile 12 to
"D:\ORACLE\ORADATA\ORCL2\USERS01.DBF";
restore
clone database
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
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 14-MAR-11
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=555 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/14/2011 18:13:59
RMAN-01005: not all datafiles have backups that can be recovered to scn 666967
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 12 found to restore
RMAN-06023: no backup or copy of datafile 11 found to restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
Any suggestions are appreciated. -
Lenovo S300: will I have trouble creating a backup image with Acronis
I'm thinking of buying a Lenovo S300
Very cheap and lighweight
I want to update all settings (Windows mainly) and then create a backup image that I can always go back to
Can I do this? Will I have any problems?
I bought an ASUS laptop with no disc drive... and basically, there was no way I could boot up with an external DVD drive or USB
I just wanted to make sure before I purchased
Thanks
OmarHi
Which application do you use to create the image?
I use the Symantec ghost and Im very satisfied. I have created an image file which was placed at the second application and if something going wrong Im able to install the OS from the image file.
Furthermore this unit support RAID and the RAID driver must be installed to recognize the HDD. -
Restore from OSB. RMAN-06024: no backup or copy of the control file found
I backed up controlfile for standby on production server to OSB media:
-bash-3.00$ rman target / catalog rman/rman@emgc
Recovery Manager: Release 10.2.0.5.0 - Production on Tue Jan 25 15:15:33 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: EMGC (DBID=1838014073)
connected to recovery catalog database
RMAN>
RMAN> CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
RUN
ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
BACKUP CURRENT CONTROLFILE FOR STANDBY tag 'stb_ctl';
RELEASE CHANNEL ch1;
CONFIGURE DEVICE TYPE 'SBT_TAPE' CLEAR;
new RMAN configuration parameters:
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete
RMAN> 2> 3> 4> 5> 6>
allocated channel: ch1
channel ch1: sid=1085 devtype=SBT_TAPE
channel ch1: Oracle Secure Backup
Starting backup at 25-JAN-11
channel ch1: starting compressed full datafile backupset
channel ch1: specifying datafile(s) in backupset
including standby control file in backupset
channel ch1: starting piece 1 at 25-JAN-11
channel ch1: finished piece 1 at 25-JAN-11
piece handle=1em30ngu_1_1 tag=STB_CTL comment=API Version 2.0,MMS Version 10.3.0.2
channel ch1: backup set complete, elapsed time: 00:00:27
Finished backup at 25-JAN-11
released channel: ch1
RMAN> list backup of controlfile;
old RMAN configuration parameters:
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
RMAN configuration parameters are successfully reset to default value
starting full resync of recovery catalog
full resync complete
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
1479 Full 512.00K SBT_TAPE 00:00:18 25-JAN-11
BP Key: 1480 Status: AVAILABLE Compressed: YES Tag: STB_CTL
Handle: 1em30ngu_1_1 Media: mf_rman-000003
Standby Control File Included: Ckp SCN: 33567224 Ckp time: 25-JAN-11
RMAN>
On standby server I try to restore this control file but there is some trouble with restore... By the way I can delete that backup piece...
-bash-3.00$ rman target / catalog rman/rman@emgc
Recovery Manager: Release 10.2.0.5.0 - Production on Tue Jan 25 15:34:32 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: emgc (not mounted)
connected to recovery catalog database
RMAN> set DBID=1838014073;
executing command: SET DBID
database name is "EMGC" and DBID is 1838014073
RMAN> RUN
ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
crosscheck backup of controlfile;
2> 3> 4> 5>
allocated channel: ch1
channel ch1: sid=1093 devtype=SBT_TAPE
channel ch1: Oracle Secure Backup
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=1em30ngu_1_1 recid=40 stamp=741367328
Crosschecked 1 objects
released channel: ch1
RMAN> list backup of controlfile;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
1479 Full 512.00K SBT_TAPE 00:00:18 25-JAN-11
BP Key: 1480 Status: AVAILABLE Compressed: YES Tag: STB_CTL
Handle: 1em30ngu_1_1 Media: mf_rman-000003
Standby Control File Included: Ckp SCN: 33567224 Ckp time: 25-JAN-11
RMAN> RUN
ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
RESTORE CONTROLFILE FROM TAG 'STB_CTL';
2> 3> 4> 5>
allocated channel: ch1
channel ch1: sid=1093 devtype=SBT_TAPE
channel ch1: Oracle Secure Backup
Starting restore at 25-JAN-11
released channel: ch1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 01/25/2011 15:35:20
RMAN-06026: some targets not found - aborting restore
RMAN-06024: no backup or copy of the control file found to restore
RMAN> RUN
ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
delete noprompt backup of controlfile;
2> 3> 4> 5>
allocated channel: ch1
channel ch1: sid=1093 devtype=SBT_TAPE
channel ch1: Oracle Secure Backup
List of Backup Pieces
BP Key BS Key Pc# Cp# Status Device Type Piece Name
1480 1479 1 1 AVAILABLE SBT_TAPE 1em30ngu_1_1
deleted backup piece
backup piece handle=1em30ngu_1_1 recid=40 stamp=741367328
Deleted 1 objects
released channel: ch1
RMAN>You cannot specify a tag for a standby control file.
read here
http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmstand.htm#1002594
Edited by: Adigozalov Gurban on Jan 25, 2011 2:14 PM -
Can't drag disk icon in Disk Utility to restore backup image
I'm restoring my MacBook from a backup image I made on my external HD with SuperDuper! and I've run into a big problem. I've booted from my OS X CD. I'm in Disk Utility, and while my external drive mounts and I can select the image in the 'restore' pane, I can't for the life of me drag any icon to the 'destination' field. Any help with this?
Hi
I have exactly the same problem,i backed up my internal HD, and want to restore it by starting my mac mini intel single core with the original delivered os dvd including diskutilities.But no way it is not possible to drag a volume or partition to the required field to the left.I called apple support and the guy did not understand what I'm talking about at all, and told me he will forward to the developer dep.
Never mind, I recovered the mac mini intel with ccc , thanks God I did an image backup and a ccc !
Yesterday my mac mini intel audio hardware has broken, so I have to do another bkp with booted up os dvd to bring in to a serviceprovider.
Tried to recover for security issues , but disk utilitiy did not work again , no drag 'n' drop possible - this problem never exists under powermac before and its driving me mad under intel macs
I did a trick to show thats it is definitely the revision of this os dvd and disk utilities (x86 intel rev.)
I did a clean install form this os dvd, then cloned the interal harddisk to a external firewire disk making it bootable (using ccc for all)
I did no software update just clean from the dvd, restarted , choosed external firewire harddisk, et voila - opened disk utilitiy to restore dmg image for the internal hd and drag 'n' drop works without problems!!
Resumee:
my delivered os dvd 10.4.5 AHT vesrion 3A102 disc version 1.0 2Z691-5738-A has the biggest bug of all, it can not recover a backed up image at all - that is a revision e.g. release bug (error).
I will have to return this dvd !
Greetings Tobias -
I have an iMac 2013 running OSX 10.9.4. I want to use Carbon Copy Cloner to backup user files to an external hard drive to free up space on my iMack Hard drive.
So, say I make the backup today, delete iphoto libraries from my iMac, and then backup my iMac in a week. What happens to the iphoto libraries that are on the external backup drive now that I am backing up the iMac where they no longer exist?
I will have them backed up to a separate second external drive as well.
I'm just very cautious about removing them from the hard drive.
Thanks for helping and understanding my crazy caution!I'd like to store my Aperture /IMovie Libraries on an external hard drive.
That is fine and recommended.. use the fastest disk you can afford.. ie Thunderbolt>USB3>FW800>USB2.
In addition, I'd like to partition the external hard drive so that Time Machine can use it to both back up my IMac and the external library drives.
Let me be clear.. you want to partition the one disk.. use it for TM and move your files to the external disk.. and then backup to the same disk.. You can do it.. but that is not a backup.. that is an experiment in how long you can get away with running files and backups on the same disk before you lose everything.. like Russian Roulette.. pull the trigger enough times and laws of probability will do you in.
You must have backups on a different disk .. otherwise it is pointless.
Can I set up a RAID 5 format for redundancy?
No.. you can buy special USB and Thunderbolt external drives that support RAID..
BUT that is still not a backup.. let me show why.. you make a silly move and corrupt your file in aperture.. it is not that rare.
Raid will corrupt all copies of the files.. it is replicated across all disks.
Delete a photo it is deleted across all disks.. you have no recovery.
Alway, always consider RAID system one disk.. backup onto another disk.. and if the photos or movies are at all important to you.. ie your family .. make another copy and store in a relatives house.. There is no such thing as too much redundancy. -
[CS3][JS]avoid overlap image?
Hi,
When I am placing graphic/Image, Is there any way to avoid overlap image( the image lie on the top of other image)? When I am placing textframe in the document, textframe has the textwrappreferences to avoid the overlap. Like that is it possible with Image? I have placed my graphic/image inside the textframe/rectangle.
Please advice me.Sorry for any confusion.
Regards,
Kumar.You should understand what happens with the text in a text frame, when it hits the border of a Text Wrapped object. The text itself reflows; yet, it stays inside its own text frame. If the text frame is not large enough to contain the reformatted text, you get the red 'overflow' marker.
Now imagine there is such a thing such as Image Wrap. You import an image and -- as usual -- you want its frame to have exactly the size of the image itself. What happens if you drag this frame over another one? The image inside the image frame should shift, but where to? (As there is no such thing as 'overset image' -- you would need to invent that too!) So, still analogous to our text frame-with-text (where the text frame is usually much larger than actually needed), you would need to make the image frame large enough to have a reasonable space for the image inside it to move around.
You can even try this out right now: cut an image and paste it into a text frame. Set the text leading to Automatic, so the image stays totally inside the text frame. Now drag this frame over another one with text wrap and see what happens to the image.
As this is the Scripting forum, I suppose one could write a javascript that checks whether any image overlaps any other, but having the same javascript solve it automatically seems a bit optimistic.
Maybe you are looking for
-
[svn] 3229: Made some updates to the config test framework.
Revision: 3229 Author: [email protected] Date: 2008-09-16 12:15:34 -0700 (Tue, 16 Sep 2008) Log Message: Made some updates to the config test framework. This should be able to run on all the regression boxes now assuming I got the names of all the lo
-
ITunes Library destroyed, help reconfigure where iTunes looks
Apple was unable to help me, so I'm really hoping there is an expert here that can save me hours of tedious work. Long story short -- iTunes changed hundreds of my folders and files within them on my PC. It 'organized' them to artist/album within my
-
10.4.9 ppc won't install through Software Update
Tried to use SW Update to update to 10.4.9. It downloaded OK, but then came up with the following message: "This update "Mac OS X Update (PowerPC)" can't be installed "The digital signature for this package is incorrect. "The package may have been ta
-
When I took the OD/ODA class from Oracle a couple of years ago, they mentioned that there existed OD reports on the contents of the EUL itself. How do I go about getting hold of these?
-
Need help - Safari crashes on opening after 104.11 install
I've just installed 10.4.11 which includes an upgrade to safari 3.04. Now safari crashes on opening. I've removed downloads and history.plist but the problem persists. A previous contributor has described the same problem and he's provided the error