RMAN LIST command
Hi,
I'm getting this error
RMAN> restore validate controlfile;
Starting restore at 25-JUL-07
using channel ORA_DISK_1
channel ORA_DISK_1: starting validation of datafile backupset
channel ORA_DISK_1: reading from backup piece G:\ORACLE\PRODUCT\10.2.0\DB_1\FLAS
H_RECOVERY_AREA\CCBPROD\AUTOBACKUP\2007_07_25\O1_MF_S_628863998_3BG29Z6O_.BKP
ORA-19870: error reading backup piece G:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVE
RY_AREA\CCBPROD\AUTOBACKUP\2007_07_25\O1_MF_S_628863998_3BG29Z6O_.BKP
ORA-19505: failed to identify file "G:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY
_AREA\CCBPROD\AUTOBACKUP\2007_07_25\O1_MF_S_628863998_3BG29Z6O_.BKP"
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified
failover to previous backup
channel ORA_DISK_1: starting validation of datafile backupset
channel ORA_DISK_1: reading from backup piece G:\ORACLE\PRODUCT\10.2.0\DB_1\FLAS
H_RECOVERY_AREA\CCBPROD\AUTOBACKUP\2007_07_25\O1_MF_S_628863480_3BG1SS7V_.BKP
ORA-19870: error reading backup piece G:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVE
RY_AREA\CCBPROD\AUTOBACKUP\2007_07_25\O1_MF_S_628863480_3BG1SS7V_.BKP
ORA-19505: failed to identify file "G:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY
_AREA\CCBPROD\AUTOBACKUP\2007_07_25\O1_MF_S_628863480_3BG1SS7V_.BKP"
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified
failover to previous backuphow do I LIST other details by the filename?
you mean I've actually scroll to find the details regarding the filename?
there is no other way to enLIST / search based on the filename?
Similar Messages
-
Formating RMAN "LIST" command output
I am running following command at rman prompt which has a output over 10 pages which I cant scroll back to see the entire output.
RMAN> LIST BACKUP OF ARCHIVELOG ALL;
Is there any way where in I can use something similar to "set pause on" of sqllpus within rman.
One way I am achieveing this is by using cmdfile and logfile option in whicle connecting. But its not that feasible to write command file for each and every command.
Pls advise...You can try this to run the rman command and also you can have the options what you are looking for.
$ echo 'list backup of archivelog all;' |
rman rcvcat rman/rman target backup_admin/backup_admin@sri
Recovery Manager: Release 10.2.0.1.0 - Production on Mon Mar 6 15:18:30 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: SRI (DBID=1762478285)
connected to recovery catalog database
RMAN>
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
9936 374.63M DISK 00:00:32 06-MAR-06
BP Key: 9941 Status: AVAILABLE Compressed: NO Tag: TAG20060306T115312
Piece Name: E:\ORADATA\SRI\FLASH_RECOVERY_AREA\SRI\BACKUPSET\2006_03_06\O1_MF_ANNNN_TAG20060306T115312_20S4SD4B_.BKP
List of Archived Logs in backup set 9936
Thrd Seq Low SCN Low Time Next SCN Next Time
1 81 12350590 02-MAR-06 12405197 02-MAR-06
1 82 12405197 02-MAR-06 12474206 03-MAR-06
1 83 12474206 03-MAR-06 12580631 06-MAR-06
1 84 12580631 06-MAR-06 12609253 06-MAR-06
1 85 12609253 06-MAR-06 12614028 06-MAR-06
RMAN>
Recovery Manager complete.
But I have no idea what exactly you want to track in the output. Meaning which part of the output you want to grep and perform sort etc.,
well you can try..
$ echo 'list backup of archivelog all;' |
rman rcvcat rman/rman target backup_admin/backup_admin@sri |
grep < required string> | awk... bla bla... -Sri -
Oracle 9i rman list incarnation command empty
Hello,
We have switched to a standby DB and now trying to backup that particular db on the same catalog database...
When we do a list incarnation on the standby DB the list is empty , why is that ?
RMAN> list incarnation;
RMAN>
Any ideas , thx
sorry for the double post in wrong section
now we are getting this message ...
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on ch1 channel at 12/07/2009 21:38:25
ORA-03113: end-of-file on communication channel
Edited by: jrmtl on Dec 7, 2009 7:02 PMHi,
Can you try:
select * from V$DATABASE_INCARNATION;in sqlplus and post the output?
The ORA 3113 can have a lot of reasons for example instable network or no resources on the server.
Regards
Tycho -
I am using the following commands.
RMAN> sql "alter session set nls_date_format=''dd-mon-yyyy HH24:MI:SS''";
2> report unrecoverable database;
3> report need backup days 2 database;
4> list backup;
5> EXIT;
BS Key Type LV Size Device Type Elapsed Time Completion Time------- ---- -- ---------- ----------- ------------ ---------------
6249525 Full 68G SBT_TAPE 01:38:05 *25-OCT-2010*
BP Key: 6249547 Status: AVAILABLE Tag: TAG20101025T040741
Even after setting nls_date_format, completion time in list backup command is not returning exact time..it is returning just the date..
how to get completion time in RMAN LIST BACKUP COMMAND with hour,minute and second details...please let me know
I am using catalog database...target database version 9i and catalog db version is 10g.
Thanks,
dbNLS_DATE_FORMAT at OS level
I tied this export NLS_DATE_FORMAT=DD-MON-YYYY HH24:MI:SS is throwing error
NLS_DATE_FORMAT=DD-MON-YYYY: is not an identifier, please tell me what i am missing? -
Oracle 9i RMAN list incarnation query empty?
Hello,
We have switched to a standby DB and now trying to backup that particular db on the same catalog database...
When we do a list incarnation on the standby DB the list is empty , why is that ?
RMAN> list incarnation;
RMAN>
Any ideas , thx
now we are getting this message ...
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on ch1 channel at 12/07/2009 21:38:25
ORA-03113: end-of-file on communication channel
Edited by: jrmtl on Dec 7, 2009 7:08 PMWhen we try to register the database it says already registered?!?
RMAN> register database;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of register command on default channel at 12/07/2009
7
RMAN-20002: target database already registered in recovery catalog -
I want to know if it is possible to re-direct the output of the list command in rman to an external file. reason beeing that in rman, when ai issue the command rman> list backup summary, I get a hell of infos (as mai db is arround 1.2T and we have approx 2 yrs of data kept!) and cant scroll to see all the infos.
is there a link that gives all the options used with the list command???
Any kinda help with be appreciated.
DIDthanks for the option! really forgot about the log option!
wanna ask if its possible to backup a single archivelog out of many?
the command backup archivelog backs up everythng! say ai want to backup only sequence 100??
DID -
A possible bug in RMAN CATALOG command in 10g on Linux (SLES9 SP3)
Hi,
I ran into this issue while using RMAN command "CATALOG DATAFILECOPY <filename> TAG <tagname>". In this instance, RMAN is actually trying to write 8K data at block 1. Since a copy is being cataloged, it doen't make any sense to modify it. Please note that this modification doesn't happen without TAG option. This behavious doesn't seem to be present on Oracle 9 on Solaris 8. For more details, please check the following thread:
help with RMAN CATALOG command
Thanks,
Raghu.Hi Steve,
Unfortunately this is a bug, bug 3612370 in fact. I've published the bug so that it can be tracked via metalink if you have a support contract.
The bug is as you suspected with JDev's parse of the modules. We don't have a workaround at the moment but I'll post here again if we make any progress.
Thanks for reporting this,
Geoff
JDev Test Team -
Rman list backup; until scn
Hello,
my question might be a little strange, but I would just like to confirm my understanding to be sure about my testing.
Consider the following:
RMAN> list backup
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
5520 396.79M DISK 00:02:38 15-OCT-11
BP Key: 5541 Status: AVAILABLE Compressed: YES Tag: TAG20111015T190048
Piece Name: E:\KPZ\PROD_BACKUP\2011_10_15\O1_MF_ANNNN_TAG20111015T190048_79MKSH03_.BKP
List of Archived Logs in backup set 5520
Thrd Seq Low SCN Low Time Next SCN Next Time
1 37170 690296258 14-OCT-11 690301863 14-OCT-11
1 37171 690301863 14-OCT-11 690306944 14-OCT-11
1 37172 690306944 14-OCT-11 690312517 14-OCT-11
1 37173 690312517 14-OCT-11 690326343 14-OCT-11
1 37174 690326343 14-OCT-11 690328734 14-OCT-11
1 37175 690328734 14-OCT-11 690334332 14-OCT-11
1 37176 690334332 14-OCT-11 690354457 14-OCT-11
1 37177 690354457 14-OCT-11 690365309 14-OCT-11
1 37178 690365309 14-OCT-11 690383830 14-OCT-11
1 37179 690383830 14-OCT-11 690389381 14-OCT-11
1 37180 690389381 14-OCT-11 690399124 14-OCT-11
1 37181 690399124 14-OCT-11 690403117 14-OCT-11
1 37182 690403117 14-OCT-11 690408333 14-OCT-11
1 37183 690408333 14-OCT-11 690411748 14-OCT-11
1 37184 690411748 14-OCT-11 690417353 14-OCT-11
1 37185 690417353 14-OCT-11 690422345 14-OCT-11
1 37186 690422345 14-OCT-11 690428300 15-OCT-11
1 37187 690428300 15-OCT-11 690433347 15-OCT-11
1 37188 690433347 15-OCT-11 690439543 15-OCT-11
1 37189 690439543 15-OCT-11 690444502 15-OCT-11
1 37190 690444502 15-OCT-11 690450317 15-OCT-11
1 37191 690450317 15-OCT-11 690453707 15-OCT-11
1 37192 690453707 15-OCT-11 690457501 15-OCT-11
1 37193 690457501 15-OCT-11 690458775 15-OCT-11
1 37194 690458775 15-OCT-11 690464449 15-OCT-11
1 37195 690464449 15-OCT-11 690469446 15-OCT-11
1 37196 690469446 15-OCT-11 690474941 15-OCT-11
1 37197 690474941 15-OCT-11 690481459 15-OCT-11
1 37198 690481459 15-OCT-11 690484981 15-OCT-11
1 37199 690484981 15-OCT-11 690490292 15-OCT-11
1 37200 690490292 15-OCT-11 690495899 15-OCT-11
1 37201 690495899 15-OCT-11 690500991 15-OCT-11
1 37202 690500991 15-OCT-11 690508506 15-OCT-11
1 37203 690508506 15-OCT-11 690514835 15-OCT-11
1 37204 690514835 15-OCT-11 690519918 15-OCT-11
1 37205 690519918 15-OCT-11 690535732 15-OCT-11
1 37206 690535732 15-OCT-11 690626387 15-OCT-11
1 37207 690626387 15-OCT-11 690629393 15-OCT-11
1 37208 690629393 15-OCT-11 690634991 15-OCT-11
1 37209 690634991 15-OCT-11 690640154 15-OCT-11
1 37210 690640154 15-OCT-11 690646056 15-OCT-11
1 37211 690646056 15-OCT-11 690651236 15-OCT-11
1 37212 690651236 15-OCT-11 690656775 15-OCT-11
1 37213 690656775 15-OCT-11 690662593 15-OCT-11
1 37214 690662593 15-OCT-11 690668154 15-OCT-11
1 37215 690668154 15-OCT-11 690673574 15-OCT-11
1 37216 690673574 15-OCT-11 690677649 15-OCT-11
1 37217 690677649 15-OCT-11 690683129 15-OCT-11
1 37218 690683129 15-OCT-11 690688406 15-OCT-11
1 37219 690688406 15-OCT-11 690693988 15-OCT-11
1 37220 690693988 15-OCT-11 690698971 15-OCT-11
1 37221 690698971 15-OCT-11 690705146 15-OCT-11
1 37222 690705146 15-OCT-11 690710236 15-OCT-11
1 37223 690710236 15-OCT-11 690715886 15-OCT-11
1 37224 690715886 15-OCT-11 690719326 15-OCT-11
1 37225 690719326 15-OCT-11 690724866 15-OCT-11
1 37226 690724866 15-OCT-11 690729976 15-OCT-11
1 37227 690729976 15-OCT-11 690735596 15-OCT-11
1 37228 690735596 15-OCT-11 690740660 15-OCT-11
1 37229 690740660 15-OCT-11 690746167 15-OCT-11
1 37230 690746167 15-OCT-11 690751851 15-OCT-11
1 37231 690751851 15-OCT-11 690756900 15-OCT-11
1 37232 690756900 15-OCT-11 690759044 15-OCT-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
5521 Incr 0 494.68M DISK 00:03:24 15-OCT-11
BP Key: 5542 Status: AVAILABLE Compressed: YES Tag: TAG20111015T195017
Piece Name: E:\KPZ\PROD_BACKUP\2011_10_15\O1_MF_NNND0_TAG20111015T195017_79MKZP6W_.BKP
List of Datafiles in backup set 5521
File LV Type Ckp SCN Ckp Time Name
14 0 Incr 690768806 15-OCT-11 E:\ORACLE\ORADATA\KPZP\DATAFILES\CCAPP.DBF
126 0 Incr 690768806 15-OCT-11 E:\ORACLE\ORADATA\KPZP\DATAFILES\WAAPP.DBF
131 0 Incr 690768806 15-OCT-11 E:\ORACLE\ORADATA\KPZP\DATAFILES\PSDEFAULT02.DBF
BS Key Type LV Size Device Type Elapsed Time Completion Time
5522 Incr 0 193.66M DISK 00:01:38 15-OCT-11
BP Key: 5543 Status: AVAILABLE Compressed: YES Tag: TAG20111015T195017
Piece Name: E:\KPZ\PROD_BACKUP\2011_10_15\O1_MF_NNND0_TAG20111015T195017_79ML6DXJ_.BKP
List of Datafiles in backup set 5522
File LV Type Ckp SCN Ckp Time Name
3 0 Incr 690769344 15-OCT-11 E:\ORACLE\ORADATA\KPZP\DATAFILES\UNDOTBS01.DBF
4 0 Incr 690769344 15-OCT-11 E:\ORACLE\ORADATA\KPZP\DATAFILES\USERS01.DBF
128 0 Incr 690769344 15-OCT-11 E:\ORACLE\ORADATA\KPZP\DATAFILES\SYSAUX02.DBF
132 0 Incr 690769344 15-OCT-11 E:\ORACLE\ORADATA\KPZP\DATAFILES\UNDO3.DBF
BS Key Type LV Size Device Type Elapsed Time Completion Time
5523 Incr 0 644.30M DISK 00:04:11 15-OCT-11
BP Key: 5544 Status: AVAILABLE Compressed: YES Tag: TAG20111015T195017
Piece Name: E:\KPZ\PROD_BACKUP\2011_10_15\O1_MF_NNND0_TAG20111015T195017_79ML9NMK_.BKP
List of Datafiles in backup set 5523
File LV Type Ckp SCN Ckp Time Name
1 0 Incr 690770341 15-OCT-11 E:\ORACLE\ORADATA\KPZP\DATAFILES\SYSTEM01.DBF
2 0 Incr 690770341 15-OCT-11 E:\ORACLE\ORADATA\KPZP\DATAFILES\SYSAUX01.DBF
127 0 Incr 690770341 15-OCT-11 E:\ORACLE\ORADATA\KPZP\DATAFILES\SYSTEM02.DBF
129 0 Incr 690770341 15-OCT-11 E:\ORACLE\ORADATA\KPZP\DATAFILES\SYSAUX03.DBF
BS Key Size Device Type Elapsed Time Completion Time
5524 18.86M DISK 00:00:10 15-OCT-11
BP Key: 5545 Status: AVAILABLE Compressed: YES Tag: TAG20111015T200023
Piece Name: E:\KPZ\PROD_BACKUP\2011_10_15\O1_MF_ANNNN_TAG20111015T200023_79MLKTVM_.BKP
List of Archived Logs in backup set 5524
Thrd Seq Low SCN Low Time Next SCN Next Time
1 37233 690759044 15-OCT-11 690764137 15-OCT-11
1 37234 690764137 15-OCT-11 690768526 15-OCT-11
1 37235 690768526 15-OCT-11 690770962 15-OCT-11
RMAN> /** I left out some lines that seemed duplicate for my question - lines with the same SCN and some older archived logs. I can post the whole thing if it should turn out to be relevant.
What SCN would be appropriate for me to use, taking into account this is a level 0 incremental backup, to restore to the point of a full backup?
I'm fairly sure i can do the following: (and yes, this will result in a successful restore/recover)
run{
set until scn 690770341;
restore database;
switch datafile all;
recover database;
} But is that really the point that I should recover to? The other alternative would be to recover to the SCN of those archivelogs at the very bottom?
Thank you for any comments, whatever they are :-)I am copying the backups between different hosts (or external tape applications) and building the database from backups. So I create a blank instance and catalog the backup files, then specify an SCN to restore/recover.
Would the SCN part be unneeded? I guess if I want to recover to the latest possible state, I do not need to specify any SCN :-). For testing purposes I only specified the full backup SCN to save time, but in the event this would be needed in a production environment, you are right that I would need to recover to the latest possible SCN. Thanks for pointing that out. -
ASCII Mode Connection & FTP LIST command
Hi All,
I want to realize a simple Java FTP Client. At the beginning I tought to write a dir/file listing method, but I have no less difficulties to do it.
As RFC says LIST is the appropriate command to be implemented.
As I read RFC I should to open an ASCII Mode Connection but I don't know How.
Connecting some ftp Server and sending it a "LIST" command I receive these replyes:
331 User name okay, need password.
230 User logged in, proceed.
150 Opening ASCII mode data connection for /bin/ls.
426 Data connection closed, transfer aborted.
So, after 150 I should receive directory content, but it doesn't work. On the other side, if I want to send "HELP" command, using readLine() method I can display all reply from server.
How can I make directory listing for my FTP Client?
Thanks a lot...I prefer fireftp, but yea thats what I use to do any sort of ftp with the crio. At the time I was testing it I was able to log onto the ftp server of the crio, list directory and do get and put operations. Good to hear its working fine for you though.
Looks like the device is having problems now (has become completely unresponsive) and is deployed 350 miles from here so we have some new problems to deal with. Maybe it was the device, I am not sure but I guess this is on hold until the device is back up.
[will work for kudos] -
RMAN's commands to check the datafiles for any sort of corruptions
what are RMAN's commands to check the datafiles for any sort of corruptions
RMAN is check database or backups here? i think its checking backups? and
You mean to say that its not checking the datafiles but the backup of them for corruption is it?If this is what you meant than I guess you haven't read teh link that I referred.From there,
When performing a BACKUP... VALIDATE, RMAN reads the files to be backed up in their entirety, as it would during a real backup. It does not, however, actually produce any backup sets or image copies.This command wont check the backups and neither its taking a backup.Its checking it for corruptions.
[i]
RMAN>backup validate database ;
not working when db is in no-archivelog mode
Are you trying to run it in the open stage ? If you are in Noarchive mode, you can't run backup related commands in open stage.Run it in the mount stage.
Aman.... -
"xm list" command shows wrong name
Hi,
I have created a virtual machine called "testobi1" using VM Manager. And when I run "xm list" command then it shows the wrong name "50_testobi1"
[root@test01 ~]# xm list
Name ID Mem VCPUs State Time(s)
*50_testobi1* 1 1024 1 -b---- 0.8
Domain-0 0 543 8 r----- 87.1
Any suggestion on how to correct *50_testobi1* to *"testobi1"*?
I have changed the name line in /OVS/running_pool/50_testobi1/vm.cfg file, restarted whole VM server but no success.
Thank you for your help.as09 wrote:
Actually I thought that I would connect to domain by given name in VM Manager. For example: * #xm console testobi1* But now I will have to remember prefix counter information which is auto set. what could be reason for such design?I suspect it's to ensure that all guests always have a unique name, but that's just a guess.
When I try to create domain manually on command line without VM Manager then it created domain name as given and did not prefix counter to it.Correct -- the prefix is created by Oracle VM Manager itself, as it adds the guest to the database. You'll notice that when you import a manually created guest, it will be given a prefix by Oracle VM Manager during the import process. -
Yum list command throws repomd.xml file damaged error on OEL6.4 client
Hi,
I have an OEL6.4 client and it points to our internal YUM server. When i run yum list command on the client it throws an error given below,
[root@client 6.4]# yum list
Loaded plugins: security
ol6_base | 982 B 00:00
http://server1/yum/6/Latest/patch/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for ol6_UEK_latest: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol6_UEK_latest. Please verify its path and try again
Can someone help me in fixing this issue.Let me explain a bit about my setup. I have a YUM server which is located in US and clients are located in both US and in UK.
Working server in US and details requested are below,
OS - Oracle Linux Server release 5.7
YUM rpm - yum-3.2.22-37.0.1.el5
# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything
# yum repolist
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
ol6_base | 1.9 kB 00:00
ol6_base/primary_db | 4.7 MB 00:00
ol6_patch | 1.9 kB 00:00
ol6_patch/primary_db | 1.7 MB 00:00
repo id repo name status
ol6_base Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64) 6,245
ol6_patch Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64) 745
repolist: 6,990
========================================
2 Servers in UK which are not working,
Client 1:-
OS - Oracle Linux Server release 6.4
YUM rpm - yum-3.2.29-40.0.1.el6.noarch
# yum clean all
Loaded plugins: security
Cleaning repos: ol6_base ol6_patch
Cleaning up Everything
YUM repolist:-
#yum repolist
Loaded plugins: security
ol6_base | 984 B 00:00
http://yum-server/yum/6/Latest/base/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for ol6_base: Damaged repomd.xml file
Trying other mirror.
repo id repo name status
ol6_base Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64) 0
ol6_patch Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64) 0
repolist: 0
Client2:-
OS - Oracle Linux Server release 5.9
YUM rpm - yum-3.2.22-40.0.1.el5
# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything
=====================================
Server in UK which is working,
OS - Oracle Linux Server release 5.8
YUM rpm - yum-3.2.22-39.0.2.el5
# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything
YUM repolist -
yum repolist
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
ol6_base | 1.9 kB 00:00
ol6_base/primary_db | 4.7 MB 00:02
ol6_patch | 1.9 kB 00:00
ol6_patch/primary_db | 1.7 MB 00:00
repo id repo name status
ol6_base Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64) 6,245
ol6_patch Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64) 745
repolist: 6,990
===================================
YUM server details are below,
OS - Oracle Linux Server release 5.8
YUM rpm - yum-3.2.22-39.0.2.el5
Looks like issue with some of the clients in UK, can you tell me the config files of the clients which i should take a look and that should help us in fixing the problem.
Thank you for your sincere efforts in spending so much of your valuable time to fix this problem. I truly appreciate it. -
Our dataabse is Oracle 11g2/Redhat 5.2. I am creating a RAMN script for scheduling a cron job :MAN> CREATE SCRIPT level_0_backup
backup incremental level 0 cumulative device type disk tag 'level0' database;
backup device type disk tag 'level0' archivelog all not backed up delete all input;
2> 3> 4> 5>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of create script command at 08/27/2010 13:43:37
RMAN-06002: command not allowed when not connected to a recovery catalogCan I create a script without using recovery catalog?
Or is there a way to create a rman backup job scheduled with the oS without using recovery catalog?Can I create a script without using recovery catalog?No
Or is there a way to create a rman backup job scheduled with the oS without using recovery catalog?yes using cronjob
refer the links and threads:
http://www.oracle-base.com/articles/misc/OracleShellScripting.php
http://jhdba.wordpress.com/2008/03/20/rman-backup-script-example/
Re: schedule rman using cron job
Re: rman automatic batch script (windows) -
I am executing this command at the MOUNT mode and it is giving me an error. Can anyone specify the correct procedure for SWITCHING files
RMAN> SWITCH DATAFILE 'f:\oracle\oradata\ora1\user01.dbf' TO DATAFILECOPY 'f:\or
acle\oradata\user01.dbf';
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found "switch": expecting one of: "allocate, alter, ba
ckup, beginline, blockrecover, catalog, change, connect, copy, create, crosschec
k, configure, duplicate, debug, delete, drop, exit, endinline, host, {, library,
list, mount, open, print, quit, recover, register, release, replace, report, re
normalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, spool
, startup, shutdown, send, show, test, upgrade, validate"
RMAN-01007: at line 1 column 1 file: standard inputAssuming 10.2: http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta061.htm#sthref967
-
The RMAN Duplicate Command Fails During The Recover.
This exact script works fine in our lab. We are using Oracle 10.2.0.4.0.
The hot backup for standby is also a script which runs without error in both the lab and
the production machine.
I am obviously missing something.
Any help would be greatly appreciated.
Thanks,
Jeff
=================
RMAN BACKUP SCRIPT
=================
RMAN> run
2> {
3> allocate channel c1 device type disk format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_BK4STDBY_%U';
4> backup current controlfile for standby format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_CNTRL4STDBY_%U';
5> backup as compressed backupset check logical tag='1NETCMN1_3261_BK4STDBY' database include current controlfile for standby;
6> backup archivelog from sequence 463 format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_LOGS4STDBY_%U';
7> release channel c1;
8> }
released channel: ORA_DISK_1
allocated channel: c1
channel c1: sid=578 devtype=DISK
Starting backup at 22-JAN-13
channel c1: starting full datafile backupset
channel c1: specifying datafile(s) in backupset
including standby control file in backupset
channel c1: starting piece 1 at 22-JAN-13
channel c1: finished piece 1 at 22-JAN-13
piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_CNTRL4STDBY_05o02f01_1_1 tag=TAG20130122T144104 comment=NONE
channel c1: backup set complete, elapsed time: 00:00:02
Finished backup at 22-JAN-13
Starting backup at 22-JAN-13
channel c1: starting compressed full datafile backupset
channel c1: specifying datafile(s) in backupset
input datafile fno=00004 name=/u01/oradata/apoint/users01.dbf
input datafile fno=00001 name=/u01/oradata/apoint/system01.dbf
input datafile fno=00002 name=/u01/oradata/apoint/undotbs01.dbf
input datafile fno=00003 name=/u01/oradata/apoint/sysaux01.dbf
channel c1: starting piece 1 at 22-JAN-13
channel c1: finished piece 1 at 22-JAN-13
piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_BK4STDBY_06o02f05_1_1 tag=1NETCMN1_3261_BK4STDBY comment=NONE
channel c1: backup set complete, elapsed time: 00:22:35
channel c1: starting compressed full datafile backupset
channel c1: specifying datafile(s) in backupset
including standby control file in backupset
channel c1: starting piece 1 at 22-JAN-13
channel c1: finished piece 1 at 22-JAN-13
piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_BK4STDBY_07o02gah_1_1 tag=1NETCMN1_3261_BK4STDBY comment=NONE
channel c1: backup set complete, elapsed time: 00:00:07
Finished backup at 22-JAN-13
Starting backup at 22-JAN-13
current log archived
channel c1: starting archive log backupset
channel c1: specifying archive log(s) in backup set
input archive log thread=1 sequence=463 recid=5 stamp=805323439
input archive log thread=1 sequence=464 recid=6 stamp=805331764
input archive log thread=1 sequence=465 recid=7 stamp=805387242
input archive log thread=1 sequence=466 recid=8 stamp=805387245
input archive log thread=1 sequence=467 recid=9 stamp=805388633
channel c1: starting piece 1 at 22-JAN-13
channel c1: finished piece 1 at 22-JAN-13
piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_LOGS4STDBY_08o02gaq_1_1 tag=TAG20130122T150354 comment=NONE
channel c1: backup set complete, elapsed time: 00:00:36
Finished backup at 22-JAN-13
released channel: c1
RMAN> exit
Recovery Manager complete.
=====================
RMAN DUPLICATE SCRIPT
=====================
RMAN> run
2> {
3> allocate auxiliary channel c1 device type disk;
4>
5> duplicate target database for standby dorecover nofilenamecheck;
6> release channel c1;
7> }
allocated channel: c1
channel c1: sid=299 devtype=DISK
Starting Duplicate Db at 21-JAN-13
contents of Memory Script:
set until scn 143395851;
restore clone standby controlfile;
sql clone 'alter database mount standby database';
executing Memory Script
executing command: SET until clause
Starting restore at 21-JAN-13
channel c1: starting datafile backupset restore
channel c1: restoring control file
channel c1: reading from backup piece /u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_BK4STDBY_03o008gn_1_1
channel c1: restored backup piece 1
piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_BK4STDBY_03o008gn_1_1 tag=1NETCMN1_6874_BK4STDBY
channel c1: restore complete, elapsed time: 00:00:04
output filename=/u01/oradata/apoint/control01.ctl
output filename=/u02/oradata/apoint/control02.ctl
output filename=/u03/oradata/apoint/control03.ctl
Finished restore at 21-JAN-13
sql statement: alter database mount standby database
contents of Memory Script:
set until scn 143395851;
set newname for tempfile 1 to
"/u01/oradata/apoint/temp01.dbf";
switch clone tempfile all;
set newname for datafile 1 to
"/u01/oradata/apoint/system01.dbf";
set newname for datafile 2 to
"/u01/oradata/apoint/undotbs01.dbf";
set newname for datafile 3 to
"/u01/oradata/apoint/sysaux01.dbf";
set newname for datafile 4 to
"/u01/oradata/apoint/users01.dbf";
restore
check readonly
clone database
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
renamed temporary file 1 to /u01/oradata/apoint/temp01.dbf in control file
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 21-JAN-13
channel c1: starting datafile backupset restore
channel c1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to /u01/oradata/apoint/system01.dbf
restoring datafile 00002 to /u01/oradata/apoint/undotbs01.dbf
restoring datafile 00003 to /u01/oradata/apoint/sysaux01.dbf
restoring datafile 00004 to /u01/oradata/apoint/users01.dbf
channel c1: reading from backup piece /u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_BK4STDBY_02o0076b_1_1
channel c1: restored backup piece 1
piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_BK4STDBY_02o0076b_1_1 tag=1NETCMN1_6874_BK4STDBY
channel c1: restore complete, elapsed time: 00:21:32
Finished restore at 21-JAN-13
contents of Memory Script:
switch clone datafile all;
executing Memory Script
datafile 1 switched to datafile copy
input datafile copy recid=5 stamp=805323205 filename=/u01/oradata/apoint/system01.dbf
datafile 2 switched to datafile copy
input datafile copy recid=6 stamp=805323205 filename=/u01/oradata/apoint/undotbs01.dbf
datafile 3 switched to datafile copy
input datafile copy recid=7 stamp=805323206 filename=/u01/oradata/apoint/sysaux01.dbf
datafile 4 switched to datafile copy
input datafile copy recid=8 stamp=805323206 filename=/u01/oradata/apoint/users01.dbf
contents of Memory Script:
set until scn 143395851;
recover
standby
clone database
delete archivelog
executing Memory Script
executing command: SET until clause
Starting recover at 21-JAN-13
starting media recovery
channel c1: starting archive log restore to default destination
channel c1: restoring archive log
archive log thread=1 sequence=462
channel c1: reading from backup piece /u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_LOGS4STDBY_04o008gu_1_1
channel c1: restored backup piece 1
piece handle=/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_6874_LOGS4STDBY_04o008gu_1_1 tag=TAG20130121T183822
channel c1: restore complete, elapsed time: 00:00:03
archive log filename=/u03/oradata/apoint/DB_ARCHIVE_LOGS/apoint_1_688761648_462.arch thread=1 sequence=462
Oracle Error:
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/u01/oradata/apoint/system01.dbf'
released channel: c1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/21/2013 20:53:44
RMAN-03015: error occurred in stored script Memory Script
RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/u03/oradata/apoint/DB_ARCHIVE_LOGS/apoint_1_688761648_462.arch'
ORA-16145: archival for thread# 1 sequence# 462 in progress
RMAN> exitJeff;
I think the issue is in your backup. If you compare your command with mine, you may or may not see the issue, but this is how I got this to work.
Yours
RMAN run
allocate channel c1 device type disk format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_BK4STDBY_%U';
backup current controlfile for standby format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_CNTRL4STDBY_%U';
backup as compressed backupset check logical tag='1NETCMN1_3261_BK4STDBY' database include current controlfile for standby;
backup archivelog from sequence 463 format '/u03/oradata/apoint/DB_BACKUPS/1NETCMN1_3261_LOGS4STDBY_%U';
release channel c1;
Mine
RMAN RUN {
allocate channel d1 type disk;
backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database;
sql 'alter system archive log current';
backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all;
backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p';
release channel d1;
}Your duplicate is very close to what I use :
Yours
RMAN> run
allocate auxiliary channel c1 device type disk;
duplicate target database for standby dorecover nofilenamecheck;
release channel c1;
Mine
RMAN> run {
allocate channel C1 device type disk;
allocate auxiliary channel C2 device type disk;
duplicate target database for standby nofilenamecheck;
}Short notes :
http://www.visi.com/~mseberg/duprman.html
Best Regards
mseberg
Maybe you are looking for
-
Inserting Images with full web address
I would like to set Dreamweaver so that when I insert images, it uses the full internet address so that if I copy and paste the HTML code elsewhere, the images will work. This should be simple, right? Presently, when you insert am image, the code is
-
After Archive and Install, music and photos lost
Hello, I installed Leopard yesterday on my Imac desktop and it went fine, but then somehow it locked me out of the hard drive, and then...the blue screen. I put the orginal Tiger disk back in and re-installed the previous software, opting for 'archiv
-
Cannot resolve symbol: HashMap, put and strings
Hi, why woudl I get a "cannot resolve symbol" at the line indicated by <============ sec_cands[i] should be a String already. Can someone help me ? Thanks in advance. HashMap temp = new HashMap(); String [] sec_cands = sec_ex.getTargetPhrases(); int
-
Hi all, We have a configured CTS+ on Netweaver 7.0, we are using it for EP deploys. (transporting ivews and so on). Now we have installed CE 7.2 and would like to integrate it in the existing CTS+. After trying to configure we get the following error
-
Hi all: How can i run the program "RSR_GEN_DIRECT_ALL_QUERIES" in planning fuction? hope for your help. thanks.