RMAN duplication issue
Dba's
Previously we used the following scripts to take the RMAN duplication when we have the same mount in both the servers.
run {
allocate auxiliary channel c1 type disk;
allocate auxiliary channel c2 type disk;
duplicate target database to SIDB;
But, we have added two new mount points to our production servers and add new datafiles over there, but we didn't add any mount point to our auxiliary server. In this case what will be the script to duplicate the database.
Regards
Rana
Hi,
Here is the sample script
connect catalog xxx/xxxxx@xxxxxxx
connect target /
connect auxiliary sys/xxxxx@xxxxxxx
run{
allocate channel d1 device type disk;
allocate channel d2 device type disk;
allocate auxiliary channel a1 device type disk;
allocate auxiliary channel a2 device type disk;
set until sequence 96280 thread 1; -- in case if you want to duplication until specific seq.
set newname for datafile 1 to '/oracle/dbs1/testdb/user02.dbf';
set newname for datafile 2 to '/oracle/dbs2/testdb/user03.dbf';
set newname for datafile 10 to '/oracle/dbs8/testdb/tools.dbf';
duplicate target database to testdb
release channel d1;
release channel d2;
exit;
Hope this helps.
Regards,
Satishbabu Gunukula
http://oracleracexpert.blogspot.com [How to validate RMAN backup|http://oracleracexpert.blogspot.com/2009/08/how-to-validate-rman-backup.html]
Similar Messages
-
Rman duplication fails with RMAN-00600
Hi All,
I'm trying to perform a database duplication from a prod server to a non prod one with ORacle 11gR2.
I'm performing a backup-based duplication without target connection from DEV3 database to DEV1 database. I followed the steps mentionned in the "backup & Recovery Guide" http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmdupdb.htm
Here are the steps I followed:
1. I configured my spfile of the auxiliary database like the target one. I also added these lines to change the location of the restores:
SQL> alter system set log_file_name_convert='/u04/DEV3/rdo','/u04/DEV1/rdo','/u03/DEV3/rdo','/u03/DE V1/rdo','/u02/DEV3/rdo','/u02/DEV1/rdo' scope=spfile;
SQL> alter system set db_file_name_convert='/u04/DEV3/rdo','/u04/DEV1/rdo','/u03/DEV3/rdo','/u03/DEV1/rdo','/u02/DEV3/rdo','/u02/DEV1/rdo','/u02/DEV3/dbf/DEV3','/u02/DEV1/dbf/DEV1' scope=spfile;
2. I then shutdown the database, and start it in nomount mode.
3. I connect to the auxiliary database, and the recovery catalog
4. I run the following rman duplication command:
RUN{
DUPLICATE DATABASE DEV3 to DEV1;
The restore succeeds but at the end, the recovery ends with the following error:
channel ORA_AUX_DISK_6: reading from backup piece /RMAN/DEV3/DEV3_0_14:27:01-05-31-2011_2_138.rman
channel ORA_AUX_DISK_4: piece handle=/RMAN/DEV3/DEV3_0_14:27:01-05-31-2011_2_136.rman tag=LVL0_DB_BKP
channel ORA_AUX_DISK_4: restored backup piece 2
channel ORA_AUX_DISK_4: restore complete, elapsed time: 02:24:10
channel ORA_AUX_DISK_6: piece handle=/RMAN/DEV3/DEV3_0_14:27:01-05-31-2011_2_138.rman tag=LVL0_DB_BKP
channel ORA_AUX_DISK_6: restored backup piece 2
channel ORA_AUX_DISK_6: restore complete, elapsed time: 02:25:09
Finished restore at 06/06/11 15:22:58
contents of Memory Script:
catalog clone datafilecopy "/u02/DEV1/dbf/DEV1/undotbs01.dbf";
switch clone datafile 3 to datafilecopy
"/u02/DEV1/dbf/DEV1/undotbs01.dbf";
switch clone datafile all;
executing Memory Script
cataloged datafile copy
datafile copy file name=/u02/DEV1/dbf/DEV1/undotbs01.dbf RECID=70 STAMP=753117778
datafile 3 switched to datafile copy
input datafile copy RECID=70 STAMP=753117778 file name=/u02/DEV1/dbf/DEV1/undotbs01.dbf
datafile 1 switched to datafile copy
input datafile copy RECID=71 STAMP=753117780 file name=/u02/DEV1/dbf/DEV1/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=72 STAMP=753117780 file name=/u02/DEV1/dbf/DEV1/sysaux01.dbf
contents of Memory Script:
set until scn 7241504550365;
recover
clone database
delete archivelog
executing Memory Script
executing command: SET until clause
Starting recover at 06/06/11 15:23:15
using channel ORA_AUX_DISK_1
using channel ORA_AUX_DISK_2
using channel ORA_AUX_DISK_3
using channel ORA_AUX_DISK_4
using channel ORA_AUX_DISK_5
using channel ORA_AUX_DISK_6
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00601: fatal error in recovery manager
RMAN-03012: fatal error during compilation of command
RMAN-03028: fatal error code for command recover : 600
RMAN-00600: internal error, arguments [8029] [1] [] [] []
Can someone please help me resolve this issue???it's quite urgent.
Thank you,
FarahI am facing same error, did any of you find a resolution yet?
contents of Memory Script:
set until scn 7243533883622;
recover
clone database
delete archivelog
executing Memory Script
executing command: SET until clause
Starting recover at 10/12/11 19:33:12
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00601: fatal error in recovery manager
RMAN-03012: fatal error during compilation of command
RMAN-03028: fatal error code for command recover : 600
RMAN-00600: internal error, arguments [8029] [1] [] [] []
Wed Oct 12 19:33:14 CEST 2011 Remove the lock file
ERROR: RMAN FAILUR
I see many kblockd processes, can this be an indication:
applprod@gvaebsdb3:~ $ ps -ef|grep kblockd
root 231 211 0 Oct05 ? 00:00:00 [kblockd/0]
root 232 211 0 Oct05 ? 00:00:00 [kblockd/1]
root 233 211 0 Oct05 ? 00:00:00 [kblockd/2]
root 234 211 0 Oct05 ? 00:00:00 [kblockd/3]
root 235 211 0 Oct05 ? 00:00:00 [kblockd/4]
root 236 211 0 Oct05 ? 00:00:00 [kblockd/5]
root 237 211 0 Oct05 ? 00:00:00 [kblockd/6]
root 238 211 0 Oct05 ? 00:00:00 [kblockd/7]
root 239 211 0 Oct05 ? 00:00:00 [kblockd/8]
root 240 211 0 Oct05 ? 00:00:00 [kblockd/9]
root 241 211 0 Oct05 ? 00:00:00 [kblockd/10]
root 242 211 0 Oct05 ? 00:00:00 [kblockd/11]
root 243 211 0 Oct05 ? 00:00:00 [kblockd/12]
root 244 211 0 Oct05 ? 00:00:00 [kblockd/13]
root 245 211 0 Oct05 ? 00:00:00 [kblockd/14]
root 246 211 0 Oct05 ? 00:00:00 [kblockd/15]
Thanks,
Horia -
Rman duplication of database to the same server and same disk group
Hi,
We have multiple databases - rmsprd1 and oidprd1 on asm disk groups - ASMDG_DAT01 and ASMDG_FRA01 on a server.
Both these databases are single instance asm based databases.
I am trying to do a rman duplication from rmsprd1 to rmsprd2 in the same server. I intend to use the same asm disk groups - ASMDG_DAT01 and ASMDG_FRA01.
Is this possible ?
Currently I have the following structure
+ASMDG_DAT01/RMSPRD1/DATAFILE
+ASMDG_DAT01/RMSPRD1/CHANGETRACKING/
+ASMDG_DAT01/RMSPRD1/CONTROLFILE/
+ASMDG_DAT01/RMSPRD1/DATAFILE/
+ASMDG_DAT01/RMSPRD1/ONLINELOG/
+ASMDG_DAT01/RMSPRD1/PARAMETERFILE/
+ASMDG_DAT01/RMSPRD1/TEMPFILE/
+ASMDG_FRA01/RMSPRD1/AUTOBACKUP/
+ASMDG_FRA01/RMSPRD1/BACKUPSET/
+ASMDG_FRA01/RMSPRD1/CONTROLFILE/
+ASMDG_FRA01/RMSPRD1/DATAFILE/
+ASMDG_FRA01/RMSPRD1/ONLINELOG/
Will I be able to create something like
+ASMDG_DAT01/RMSPRD2/DATAFILE
+ASMDG_DAT01/RMSPRD2/CHANGETRACKING/
+ASMDG_DAT01/RMSPRD2/CONTROLFILE/
+ASMDG_DAT01/RMSPRD2/DATAFILE/
+ASMDG_DAT01/RMSPRD2/ONLINELOG/
+ASMDG_DAT01/RMSPRD2/PARAMETERFILE/
+ASMDG_DAT01/RMSPRD2/TEMPFILE/
+ASMDG_FRA01/RMSPRD2/AUTOBACKUP/
+ASMDG_FRA01/RMSPRD2/BACKUPSET/
+ASMDG_FRA01/RMSPRD2/CONTROLFILE/
+ASMDG_FRA01/RMSPRD2/DATAFILE/
+ASMDG_FRA01/RMSPRD2/ONLINELOG/
I know that I can create a different asm disk group for the rman duplication but this is proving to be a hassle.
Thanks
SandeepHi,
I have found the answer working with Oracle via a service request. Admittedly there was no direct oracle documentation for doing this and hence documenting the steps here.
No legalities, formalities involved please.
Here are the steps - rmsprd1 is the source, rmsprd2 is the target, +ASM is the asm instance supporting both rmsprd1 and rmsprd2. The intention is to put both the source and destination in the same server. The backupset backup in location /dbaadm/sandeep_rman_refresh will be used for the duplication.
1) Take rman backupset backup of the source database - rmsprd1
rman_take_backup.ksh ( Take backup of source - rmsprd1 using rman ). The contents of the rman_take_backup.sh script are given below :
rm /dbaadm/sandeep_rman_refresh/*
export NLS_DATE_FORMAT='YYYY-MM-DD:HH24:MI:SS'
rman target / <<EOF
run
allocate channel d1 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
allocate channel d2 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
allocate channel d3 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
allocate channel d4 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
allocate channel d5 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
allocate channel d6 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/dbaadm/sandeep_rman_refresh/%F';
backup as backupset database plus archivelog tag 'clonebackupset';
EOF
2) Make the directories for destination database ( rmsprd2 )
/opt/oracle/admin> mkdir -p rmsprd2/adump rmsprd2/dpdump rmsprd2/pfile rmsprd2/scripts
3) Create pfile from rmsprd1 spfile. copy/rename the pfile to make a pfile for rmsprd2.
4) Edit listener.ora in ASM ORACLE_HOME and edit tnsnames.ora in DB ORACLE_HOME
listener.ora
LISTENER_RMSPRD2 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
(ADDRESS = (PROTOCOL = TCP)(HOST = kirkjerpdb01.kirklands.com)(PORT = 1522))
SID_LIST_LISTENER_RMSPRD2 =
(SID_LIST =
(SID_DESC =
( ORACLE_HOME = /opt/oracle/product/11.2.0/db_1 )
( SID_NAME = rmsprd2 )
ADR_BASE_LISTENER_RMSPRD2 = /opt/oracle
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_RMSPRD2=ON # Section added by Sandeep
SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER_RMSPRD2=OFF
ADMIN_RESTRICTIONS_LISTENER_RMSPRD2=ON
tnsnames.ora ( http://francispaulraj.wordpress.com/ora-12528-tnslistener-all-appropriate-instances-are-blocking-new-connections/ )
RMSPRD2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = kirkjerpdb01.kirklands.com)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = rmsprd2)
(UR = A)
5) Build a passwordfile ( I just copied and renamed it )
6) Edit /etc/oratab to add database entry for rmsprd2
7) Set the environment for rmsprd2
. oraenv
rmsprd2
8) Startup nomount of rmsprd2
sqlplus / as sysdba
startup nomount pfile=/opt/oracle/admin/rmsprd2/pfile/initrmsprd2.ora
9) Create spfile from pfile='/opt/oracle/admin/rmsprd2/pfile/initrmsprd2.ora';
10) shutdown and startup rmsprd2 with spfile
SQL> shutdown abort;
ORACLE instance shut down.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 1068937216 bytes
Fixed Size 2213632 bytes
Variable Size 788531456 bytes
Database Buffers 268435456 bytes
Redo Buffers 9756672 bytes
11) We are now ready for duplication from rmsprd1 ( source ) to rmsprd2 ( destination ) both using +ASM standalone asm instance. set the environment to rmsprd1and fire away.
Please note that the duplicate script is only connecting to auxilary database ( rmsprd2 ) and using the backup location for the duplication.
I used a unix shell script -rman_duplicate_from_backup.ksh. The contents are given below :
$ORACLE_HOME/bin/rman auxiliary sys/prd123@rmsprd2 log=rman_duplicate_from_backup.log << EOF
run
allocate auxiliary channel d1 device type disk;
allocate auxiliary channel d2 device type disk;
allocate auxiliary channel d3 device type disk;
allocate auxiliary channel d4 device type disk;
allocate auxiliary channel d5 device type disk;
allocate auxiliary channel d6 device type disk;
DUPLICATE DATABASE TO rmsprd2
BACKUP LOCATION '/dbaadm/sandeep_rman_refresh';
EOF
12) Voila - the rmsprd1 to rmsprd2 is done.....
Hope this helps somebody else wanting to do the same excercize. Have Fun.....
regards
Sandeep -
RMAN Backup Issue when Full backup file was missing
Hi,
On : 11.2.0.2 version, Recovery Manager
RMAN Backup issue
Last week we had the NFS Issue where we backup the files onto NFS.
The problem occurred in the below sequence
Saturday the backup was successful
Saturday before deleting the backup files they are copied to tape
Deleting the backup files via OS command
Sunday Full backup started but due the NFS issue backup failed(Killed the instance and restarted)
Did the RMAN Incremental backup which worked on Monday
On Tuesday RMAN started complaining and started doing the Full backup.
no parent backup or copy of datafile 1 found
no parent backup or copy of datafile 3 found
no parent backup or copy of datafile 24 foundSony any idea why the Incremental backup worked on Monday but not on Tuesday
Regards
NMOk here is why I would like exact filenames..
1) to speed the time of recovery. I am much more familiar with traditional recovery methods than RMAN, and while I myself installed and suggested RMAN for backups, our other (11i) database does not use RMAN and so I am more familiar with traditional recovery. So to be able to recover quickly I want to have these files as close as possible to the original names so that I can use my standard script (from a trace file) to recreate the control fiile. If I can get RMAN to spit out the filies with original names but keep RMAN for making the backup, I may ditch the rman bacjup script in chron and write a traditional hot backup script which copies the files the old fashioned way.
2) to reduce cloning time. The RMAN duplicate command is not as good as I thought. I was actually easier for me to restore RMAN backups first to a box that has all the same paths, and THEN shutdown (cold) these files and copy them cold to another server, and restore from there. Agaiin if I can get the original file names, I could choose to do recovery either way (RMAN or traditional) in a real emergency instead of being forced to use rman.
3) to be able to switch to a backup file in the FRA without having to rename it. Seems logical if it is already named correctly.
thanks ! Marvi -
Hi Everyone,
I'd like to share an issue I am having with photo syncing between my iDevices.
Here is how I USED to sync my Photos between my iDevices (no issues with photo duplication)
Note: In this scenario, I use iTunes and iPhoto on my Mac. iCloud and Photo stream have NOT been activated in this case.
1. Take photos via iPhone that saves in Camera Roll
2. After a month or so, I will connect my iPhone to my Mac.
3. Import my Photos in iPhoto and arrange Events and Photos in monthly sections and add some of them in a separate Albums (ex. Written Notes Photos) for easy access.
4. Once the import is done, iPhoto prompts an option to delete photos in my Camera Roll which I do as I like to start a fresh month with empty Camera Roll in my iPhone.
5. In order to access the Photos I have imported in iPhoto in my iPhone, I go to iTunes and sync all my photos to my iPhone. This syncs my events, photos, faces, albums as they have been arranged in iPhoto in my Mac. (I cant delete them in my iPhone once they are synced. I have to delete in my iPhoto and sync again to have similar setup in my iPhone which isn't a problem).
NOW I decided I don't want to manually go through all this process and went on to enable the Photo Stream ON in my iPhone and iPhoto with iCloud.
THIS IS WHERE THE PROBLEM ENSUES.
1. I Take photos with my iPhone that saves in Camera Roll
2. This automatically syncs with my Mac due to Photo Stream which a really convenient.
3. It syncs automatically to Photo Stream, Events, Photos, Faces section in the iPhoto and I put put some of them (notes) in a separate album.
THE PROBLEM:
The Photos does not show up in the Album, Events and Photos Folder in my iPhone. They are only shown in Camera Roll. So I thought to sync using iTunes so the new Photos will be arranged in their appropriate folder like it used to with my prior process of syncing. This worked, HOWEVER the photos in my iPhone started showing DUPLICATES! Apparently, one comes from Photo Stream (which, if I delete on my phone also deletes in all my iDevices) and the other duplicate is from the iTunes sync (this sets up my photos as arranged in iPhoto which is what i WANT to happen as Photo Stream does not sync them accordingly).
SOLUTION I AM IN SEARCH FOR:
I want to be able to take photos with my iPhone that automatically syncs in iCloud AND iPHOTO AS ARRANGED IN MY MAC (Albums, Events etc) WITHOUT PROBLEM OF PHOTO DUPLICATES.Other folks have resolved similar issues by trashing the iPod Photo Cache.
Regards
TD -
RMAN script issue ....
Oracle Server - Enterprise Edition - Version: 10.2.0.3
RMAN Catalog : 10.2.0.4
I am using the follwoing script for backup :
4> run
5> {
6> allocate channel dev1 type disk format 'Z:\Rbackup\DMP\db_t%t_s%s_p%p';
7> allocate channel dev2 type disk format 'Z:\Rbackup\DMP\db_t%t_s%s_p%p';
8> backup database FILESPERSET 20 ;
9> backup archivelog all archivelog until time 'sysdate-1' delete all input ;
10> release channel dev1 ;
11> release channel dev2 ;
12> }The issue is with backup archivelog all archivelog until time 'sysdate-1' delete all input ;
This command gives error
ORA-19588: Archived Log Recid Stamp Is No Longer Valid
even after doing crosscheck .
Referred Metalink ID : 1189883.1
which clearly indicates that the statement
backup archivelog all archivelog until time 'sysdate-1' delete all input ;
is wrong by logic and is the reason for the issue .
And suggests to use
backup archivelog until time 'sysdate-1' delete all input ;
or
backup archivelog all delete input ;
which definitely do not serve the purpose .
The logic that needs to be implemented is
I need to backup all archivelogs and delete archivelogs until sysdate-1 .....
How can I do this ? Please help ....
Regards
Renjith MadhavanOf course. You have asked Oracle to backup files as of 1 day old. Your command is explicitly stating that it is not to backup files newer than 1 day old.
Read and understand "archivelogRecordSpecifier" at
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta008.htm#sthref121
UNTIL TIME "Specifies the end date for a sequence of archived redo log files"
It is actually used when doing RECOVER and RESTORE so as to do Point In Time Recovery.
Backups are not done with UNTIL TIME. The only scenario where someone would backup until TIME is when he is writing separate sets of backups deliberately to different backupsets (e.g. one backupset representing 01-Dec will subsequently be copied to another location or to Tape-1, the next backupset representing 02-Dec will be copied to a different location or to Tape-2 etc).
However, when you do a BACKUP DATABASE today, you have to ensure that you BACKUP ARCHIVELOG upto the latest archivelog else, you will NOT be able to use today's database backup for restore and recovery.
Hemant K Chitale
Edited by: Hemant K Chitale on Dec 6, 2010 2:57 PM -
Anyone else having duplication issues?
every so often after having edge animate open for an undeterminate ammount of time I'd press ctrl+d to duplicate something.
and in the undo history it says object is duplicated while there's nothing new in the elements tab.
I'd have to save close edge animate, then reopen it for the duplication to work again.
is this a known issue? Is there anything I can do to prevent this?
It happens quite frequently and I have no idea if I'm doing something to set off this bug.I saved out the an file to a new folder and it still crashes.
Another weird issue is I can't select an element, right-click copy and right-click paste either, paste is always greyed out
I also tried letting edge rebuild it's settings
http://forums.adobe.com/message/5746134#5746134
following this issue. same problem, I can't copy and paste
seems I may have found a temporary solution.
I made a new scene, tested out copying an pasting (ctrl+d, alt-drag,right-click copy/paste), and everything worked fine.
I opened the comp with the issues.
went to the main stage tried all the copy and paste functions, everything worked
went into the symobl layer (where the issues happened) that gets pulled into the main stage
tried to copy and paste things, and this time it worked. Although the elements panel scroll flickers a bunch of times scrolling up and down on it's own, it seems to work now. odd. -
Oracle 11.2.0.1
Windows 7 Home Premium
RMAN> backup database;
Starting backup at 05-MAR-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 03/05/2012 12:25:05
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 05-MAR-12
channel ORA_DISK_1: finished piece 1 at 05-MAR-12
piece handle=E:\APP\NISHA\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_03_05\O1_MF_NCSNF_TAG20120305T122505_7O8RTBXJ_.BKP tag=TAG20120305T122505 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 03/05/2012 12:25:05
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
RMAN> 1.What is the problem in above scnerio ?
2.How to take RMAN backup when db is down ?
3.How to take RMAN backup when db is noarchivelog mode ?
Please help me. Thank you.I am trying to do a full RMAN cold backup and am getting the following :
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
What’s the cause ?
Here’s the example
connected to target database (not started)
Oracle instance started
database mounted Total System Global Area 1610612736 bytes Fixed Size 2056504 bytes
Variable Size 603983560 bytes
Database Buffers 989855744 bytes
Redo Buffers 14716928 bytes using target database control file instead of recovery catalog
allocated channel: backup_disk1
channel backup_disk1: sid=4977 instance=TEST1 devtype=DISK Starting backup at 31-OCT-13
channel backup_disk1: starting full datafile backupset
channel backup_disk1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on backup_disk1 channel at 31/10/2013 20:18:45
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel backup_disk1: starting full datafile backupset
channel backup_disk1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on backup_disk1 channel at 13/10/2013 20:18:45
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel backup_disk1: starting full datafile backupset
channel backup_disk1: specifying datafile(s) in backupset
RMAN-03009: failure of backup command on backup_disk1 channel at 13/10/2013 20:18:46
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel backup_disk1: starting full datafile backupset
channel backup_disk1: specifying datafile(s) in backupset
released channel: backup_disk1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on backup_disk1 channel at 13/10/2013 20:18:47
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
RMAN>
The cause is simple, the database has not been shutdown cleanly. You will require to restart the database and shutdown again, if in a RAC you will have to shutdown all instances cleanly.
Disabing archive log and attempting to backup the database will demonstrate the cause.
SQL> startup force;
ORACLE instance started.
Total System Global Area 1235959808 bytes
Fixed Size 2175288 bytes
Variable Size 620760776 bytes
Database Buffers 603979776 bytes
Redo Buffers 9043968 bytes
Database mounted.
Database opened.
SQL> shutdown abort;
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 1235959808 bytes
Fixed Size 2175288 bytes
Variable Size 620760776 bytes
Database Buffers 603979776 bytes
Redo Buffers 9043968 bytes
Database mounted.
SQL>
Now we’ll try again to backup datafile 1.
RMAN> backup datafile 1;
Starting backup at 31-OCT-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=133 device type=DISK
channel ORA_DISK_1: starting compressed full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 13/10/2013 20:43:34
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
This is simply because we issue a shutdown abort on the instance. However, just preforming a recovery will allow you to backup as required.
SQL> recover database;
Media recovery complete.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:UsersGary>rman target sys/passwd@db11g
Recovery Manager: Release 11.2.0.1.0 – Production on Thu Oct 31 20:44:15 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: DB10G (DBID=3002158372, not open)
RMAN> backup datafile 1;
Starting backup at 06-DEC-10using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1channel ORA_DISK_1: SID=125 device type=DISK
channel ORA_DISK_1: starting compressed full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=C:APPGARYORACLEPRODUCT10.2.0DB_1ORADATADB10GSYSTEM01.DBF
channel ORA_DISK_1: starting piece 1 at 31-OCT-13
channel ORA_DISK_1: finished piece 1 at 31-OCT-13
piece handle=C:APPGARYORACLEPRODUCT10.2.0DB_1FLASH_RECOVERY_AREADB10GBACKUPSET2010_12_06O1_MF_NNNDF_TAG20101206T204423_6HTCR810_.BKP tag=TAG20101206T204423 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
Finished backup at 31-OCT-13
Starting Control File and SPFILE Autobackup at 31-OCT-13
piece handle=C:APPGARYORACLEPRODUCT10.2.0DB_1FLASH_RECOVERY_AREADB10GAUTOBACKUP2010_12_06O1_MF_S_737066556_6HTCSQVF_.BKP comment=NONE
Finished Control File and SPFILE Autobackup at 31-OCT-13
RMAN> exit
Interestingly, even with the recovery performed, we cannot switch back to archivelog mode without a clean shutdown.
SQL> alter database archivelog;
alter database archivelog*
ERROR at line 1:ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
SQL> recover database;
ORA-00283: recovery session canceled due to errors
ORA-00264: no recovery required
SQL> alter database archivelog;
alter database archivelog*
ERROR at line 1:ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
So we’ll startup and shutdown again. You cannot use the force option since that still does not perform a normal shutdown and you’ll get the same error.
SQL> alter database open;
Database altered.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 1235959808 bytes
Fixed Size 2175288 bytes
Variable Size 620760776 bytes
Database Buffers 603979776 bytes
Redo Buffers 9043968 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered. -
Material Master duplication issue
hi,
We are EPC company where we procure different kind of Pipes , flanges other erection materials for e.g.
We have a large number of variations under these categories which is forcing us to create a new material master where tere is slight deviation .
e.g. we have a 30" MS PIPE . But it can have dis 32",34".36",thickness 2", 4",6" , iner lining may be of teflon, glass...
so there are large numbe rof combnation whic can happen. this end up in creating large numbe rof materials.
Is there any way to minimise numbe rof materials in this?
Also, we are facing issue of duplication of materials.
For e.g. different Sites may ask for same material . so same material may be created with different description for different sites. Is there any way to standardise material description template?
Thanks
Manojmanoj.ltrm wrote:
hi,
>
> We are EPC company where we procure different kind of Pipes , flanges other erection materials for e.g.
>
> We have a large number of variations under these categories which is forcing us to create a new material master where tere is slight deviation .
>
> e.g. we have a 30" MS PIPE . But it can have dis 32",34".36",thickness 2", 4",6" , iner lining may be of teflon, glass...
> so there are large numbe rof combnation whic can happen. this end up in creating large numbe rof materials.
>
> Is there any way to minimise numbe rof materials in this?
>
>
> Also, we are facing issue of duplication of materials.
>
> For e.g. different Sites may ask for same material . so same material may be created with different description for different sites. Is there any way to standardise material description template?
>
>
> Thanks
> Manoj
Hi Manoj,
The best way to deal with this scenario is to use "Configurable Materials".
You need to create (variant configuration with class type 100, 200, 300) where you can define the variations in the material having same application and features such as yours.
Go thru this thread..
http://help.sap.com/saphelp_46c/helpdata/en/9f/fb79385feddf6ae10000009b38f8cf/content.htm
Regards
Shiva -
Data duplication issue. Please advise.
Hi,
I created a multiprovider on notification item and causes. I need Cause code from causes and Damage code from Items. When i report on this multiprovider data is getting duplicated.
I tried. Excluding # one's it's wprking but missing out some records like the notifications without cause code/damage code. But i want all the notifications to be displayed in my report without duplications.
I tried infoset option there also same issue Not all the notifications in Items are not there in causes.
I think multiprovider can solve the issue if i keep cause code or damage code in free chars but they want both to be displayed in the report.
I appreciate your response.
Thanks,
NaveenI would combine this data first in an ODS. That will combine the data for you and you can report on a single line granted you create the ODS key properly.
Brian -
hi,
I have taken fresh rman backup of the source which is on ASM.
RMAN>List backup;
1 Full 1619742 28-SEP-11 +DATA/devdb/datafile/system.256.705775043
4 Full 1619742 28-SEP-11 +DATA/devdb/datafile/users.259.705775045
2 Full 1619875 28-SEP-11 +DATA/devdb/datafile/sysaux.257.705775043
3 Full 1619875 28-SEP-11 +DATA/devdb/datafile/undotbs1.258.705775045
5 Full 1619875 28-SEP-11 +DATA/devdb/datafile/undotbs2.264.705775347
I have ASM Configured and also creted the +DATA diskgrounp and the system is in no-mount.
Auxiliary and Target path is same. ie., DATA. Also, on auxiliary i have specified db_create_file_dest='DATA'
When I run teh below duplicate command, It is trying to restore it to a different path on Auxiliary.
run {
allocate auxiliary channel ch1 type disk;
duplicate target database to ORCL;
ORA-19504: failed to create file "/u02/app/oradata/rman/system01.dbf"
ORA-27040: file create error, unable to create file
Linux Error: 2: No such file or directory
Ideally, it should get the info about the PATH / file system from the SOURCE controlfile.
But no idea from where it is getting this.Thanks for your repply !
I can get the point of the ORA-279, that can be a normal error.
But why about the performance issue ?
Of course it is depence what I have in the archive log.
Some body can help me to monitor what is take match times ?
I have get a look at : Alert.log, rman.log, ASM alert.log et SAN disk load with out information !
Is it posible to start more detail log at RMAN level ?
Thanks for your advice !!
Best Regards -
RMAN - Duplication Date ?
Hello there !, I've got a database that gets duplicated everyday by RMAN, everything its ok but I need to know the duplication date using SQL. There's any table that show this ?
ThanksThDn wrote:
Hello there !, I've got a database that gets duplicated everyday by RMAN, everything its ok but I need to know the duplication date using SQL. There's any table that show this ?Yes. You can use gv$rman_output of target database (i.e not of cloning database)
e.g
### Using Source Database (i.e target database)
SQL > set pagesize 0
SQL > select OUTPUT from GV$RMAN_OUTPUT order by RMAN_STATUS_RECID
contents of Memory Script:
set until scn 5390215;
recover
clone database
delete archivelog
executing Memory Script
### Get SCN and convert to DATE
SQL > select to_char(scn_to_timestamp(5390215),'dd-mm-yyyy hh24:mi:ss') DATE_USED_ON_CLONE from dual;
DATE_USED_ON_CLONE
18-10-2012 13:55:04
Handle: ThDn
Status Level: Newbie (55)
Registered: Jan 18, 2010
Total Posts: 138
Total Questions: 49 (42 unresolved) :(Please, consider close all thread (marking as answered) when you get your answer. Keep the forum clean the community thanks you.
HTH,
Levi Pereira
Edited by: Levi Pereira on Oct 18, 2012 3:33 PM -
Hi friend;
I have 11.2.0.1 RAC+ASM system on IAX6. My db size almost 3 Tb. In a day i take 2 full backup via rman,evert 20 min archivelog taken
My question is:
1. When i use list backup i have very long list which its hard to understad for me,is there any easy method?
2. If i want to see my lastest backup details how i can achive this
3. If i want to restore just one of my tabespace to sysdate-1, which syntax i should use(There are different tags for backup,what syntax should be) for this issue
Thanksuser12203572 wrote:
Hi friend;
I have 11.2.0.1 RAC+ASM system on IAX6. My db size almost 3 Tb. In a day i take 2 full backup via rman,evert 20 min archivelog taken
My question is:
1. When i use list backup i have very long list which its hard to understad for me,is there any easy method?
2. If i want to see my lastest backup details how i can achive thisI do not understand what is exactly problem.But if this is performance problem then you have to take AWR/STATSPACK report and investigate exact problem.In additionally you can use views like v$backup_files,v$backup_set,v$backup_datafile and according COMPLATION TIME you can get last and any time backup.
3. If i want to restore just one of my tabespace to sysdate-1, which syntax i should use(There are different tags for backup,what syntax should be) for this issue
In this case you have use SET UNTIL TIME clause through rman then RESTORE DATABASE ,RECOVER DATABASE. -
Hi friends;
I need one advice,Before start my rman backup i allocate channel like
run
ALLOCATE CHANNEL C1 device type 'sbt_tape' ;
ALLOCATE CHANNEL C2 device type 'sbt_tape' ;
ALLOCATE CHANNEL C3 device type 'sbt_tape' ;
ALLOCATE CHANNEL C4 device type 'sbt_tape' ;
ALLOCATE CHANNEL C5 device type 'sbt_tape' ;
ALLOCATE CHANNEL C6 device type 'sbt_tape' ;
ALLOCATE CHANNEL C7 device type 'sbt_tape' ;
BACKUP SCRIPT HERE
RELEASE CHANNEL C1;
RELEASE CHANNEL C2;
RELEASE CHANNEL C3;
RELEASE CHANNEL C4;
RELEASE CHANNEL C5;
RELEASE CHANNEL C6;
RELEASE CHANNEL C7;
Backup is very slow db size almost 5 Tb and almost it takes 4-5 hours.We use virtaul disk library(AIX TSM) My question is there any way to run this process more faster, or is there any comment which i cant find to direct each channel different disk in rman script?
Thanks
HeliosHi,
I have this kind of issues quite a few times. Restarting the master backup server (where backup software runs, TSM server in your case), or restarting tape library resolved the problem (I never found problem or resolved at ORacle/RMAN side).
Currently i have a Linux server where backup speed is very very low and this is because of slow read from the file system which is on my storage for which my vendor asks to install latest storage firmware. So, if your file system IO is OK, you can try resolving efforts to be ishifted at tape library or backup server side.
Thanks -
Hi Expert,
I having a issue when do db recovery with following error. My db is not in archivelog mode. Kindly advise Tks
channel dev1: restore complete
Finished restore at 20-AUG-10
Starting recover at 20-AUG-10
starting media recovery
unable to find archive log
archive log thread=1 sequence=1
Oracle Error:
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01190: controlfile or data file 1 is from before the last RESETLOGS
ORA-01110: data file 1: '/export/home/oracleas/oradata/orcl/system01.dbf'
released channel: dev1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 08/20/2010 15:12:34
RMAN-06054: media recovery requesting unknown log: thread 1 seq 1 lowscn 8165752
Recovery Manager complete.Hi,
Information as per below:
RMAN> list incarnation of database;
using target database controlfile instead of recovery catalog
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
1 1 ORCL 1236121495 PARENT 1 20-JUN-06
2 2 ORCL 1236121495 CURRENT 743480 15-JAN-10
3 3 ORCL 1236121495 ORPHAN 8165752 20-AUG-10
RMAN> list backup;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
1 Full 1G DISK 00:01:58 20-AUG-10
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20100820T122103
Piece Name: /export/home/oracleas/infra/backup/01llqgtf_1_1
List of Datafiles in backup set 1
File LV Type Ckp SCN Ckp Time Name
1 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/system01.dbf
2 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/undotbs01.dbf
3 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/sysaux01.dbf
4 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/users01.dbf
5 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/portal.dbf
6 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/ptldoc.dbf
7 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/ptlidx.dbf
8 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/ptllog.dbf
9 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/ias_meta01.dbf
10 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/discopltm1.dbf
11 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/discopltc1.dbf
12 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/dcm.dbf
13 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/oss_sys01.dbf
14 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/wcrsys01.dbf
15 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/b2b_rt.dbf
16 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/b2b_dt.dbf
17 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/b2b_idx.dbf
18 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/b2b_lob.dbf
19 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/orabpel.dbf
20 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/bam.dbf
21 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/oca.dbf
22 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/uddisys01.dbf
23 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/attrs1_oid.dbf
24 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/battrs1_oid.dbf
25 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/gcats1_oid.dbf
26 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/gdefault1_oid.dbf
27 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/svrmg1_oid.dbf
28 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/very_large_data.dbf
29 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/very_large_indexes. dbf
30 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/large_indexes.dbf
31 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/medium_data.dbf
32 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/medium_indexes.dbf
33 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/small_data.dbf
34 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/small_indexes.dbf
35 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/TBS_MYGST.DBF
36 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/very_large_data_k b.dbf
37 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/very_large_indexe s_kb.dbf
38 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/large_data_kb.dbf
39 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/large_indexes_kb. dbf
40 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/medium_data_kb.db f
41 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/medium_indexes_kb .dbf
42 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/small_data_kb.dbf
43 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/small_indexes_kb. dbf
44 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/TBS_MYKBGST.DBF
Maybe you are looking for
-
Error in creation of database (planning 9.3.1) base- SQL2005
This error appears when you create database (planning 9.3.1) base- SQL2005. com.hyperion.planning.olap.EssbaseException (1019060) I would be grateful, if you give me advices how to solve it. Thank you
-
Hi, I would like to buy a good speaker system for my Laptop. The problem is that I have only one stereo jack output on the laptotp (headphones). I want to buy 5.1 speakers but how I will connect them to the Laptop. There Is need of multichanell sound
-
Accessing client using Windows 2008 Terminal Service - Web Access?
Dear experts, We are developing a network infrastructure solution for our new customer's B1 8.8 implementation. Our customer would like to utilize Windows Server 2008 Terminal Service to connect B1 client in remote branch with server in head office a
-
How to close apps on IOS 7?
Any advice?
-
I have been using RoboInfo Pro 5.0, RoboEngine v4.0 for 2 years, as a documentation tool to publish our PAID system documentation on our web site. Roboinfo was discountinued as a stand alone product by our Procurement dept and they purchased Adobe 4