RMAN-20098 after controlfile recreate
Hi,
I recreated the controlfile and after that, RMAN backup with recovery catalog prompt out the following errors:
starting full resync of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of allocate command at 02/13/2008 10:03:52
RMAN-03014: implicit resync of recovery catalog failed
RMAN-03009: failure of full resync command on default channel at 02/13/2008 10:03:52
RMAN-20098: invalid backup redo log low scn
Anyone know how to resolve this?
Thanks
Vincent Pek
The new controlfile has no records about previous backups and is now incompatible with the recovery catalog. Unregister and re-register the database (if it is 10g and higher):
unregister database;
register database;
You may also try to re-catalog the backupsets to the new controlfile.
Werner
Similar Messages
-
Mount after controlfile creation
When I create a controlfile and open the database, I notice that the status of the database is mounted.
Even I dont issue "alter database mount", why does the status of the database become mounted, after controlfile creationOracle database will go to mount stage whenever controlfile is available in the respective location.when you create controlfile,new files are available in the location.so by default oracle will be mounted.all you need is to just open the database.
mark answered post as helpful / correct* -
RMAN restore after using catalog command
Hi:
I am on 10.2.0.3; hp-ux B.11.23 ia64.
I need to restore 2 weeks-old RMAN backup into a different database. RMAN runs at 11:00 pm each night.
Here are the steps I've taken:
1. Copied all backuppieces from tape into RMAN backup location where my RMAN process puts them (do I have to copy something else beside pieces?
I do full backup - BACKUP as compressed backupset DATABASE plus archivelog;)
2. Ran "catalog backuppiece" on every backuppiece.
3. Ran list backup to see that this backup from tape has been registered in the catalog and has "AVAILABLE" status.
4. Startup nomount on NEWDB.
5.rman sys/passwd@ORIGINALDB.
6. Ran my duplicate script (below is an extarct):
run {
connect catalog rman/passwd@RECCAT;
connect auxiliary /
set newname for datafile 1 to '/db/data2/NEWDB/system01.dbf';
set newname for datafile 2 to '/db/data2/NEWDB/undotbs01.dbf';
allocate auxiliary channel c1 type disk;
set until time "to_date('28-08-2008 22:30:00','dd-mm-yyyy hh24:mi:ss')";
duplicate target database to NEWDB
logfile
group 1 ('/db/data1/NEWDB/redo01.log','/db/data6/NEWDB/redo01_2.log') size 100M reuse,
Here is the error I am getting:
executing command: SET NEWNAME
executing command: SET NEWNAME
allocated channel: c1
channel c1: sid=333 devtype=DISK
executing command: SET until clause
Starting Duplicate Db at 10-SEP-08
datafile 1 not processed because file is offline
datafile 2 not processed because file is offline
Am I missing something?
Maybe that - my RMAN runs at 11pm so I am trying to set time at 10:30pm?
TIA.Hi Hemant:
Are you sure that you are connecting to the right instance as your >AUXILIARY ?
normally it would be
connect target /
connect catalog rman/passd@RECCAT
connect auxiliary sys/sys@NEWDBYes I am, RMAN sends a confirmation message: "connected to auxiliary NEWDB (not mounted).
I did this many times with my RMAN backup still online. The question is that now, when I brought 2-weeks old rman backup from tape, duplication does not work although RMAN lists this old backup as available after I cataloged every backup piece...Is this all I need to catalog? I don't think controlfile snapshot matters.
Anyone actually tried that? Bring old backup from tape (I do backupset), catalog it, then duplicate it into a new database? All comments greatly appreciated! -
Rman Error after non-unicode to unicode Conversion
Dear All,
I got the below error in SAP ECC 6.0 after converting to unicode version
I scheduled Redo log backup in DB13 with verify option.Redo log backup is successful but Rman verify fails( not connected to database) with the below error.
BR0002I BRARCHIVE 7.00 (44)
BR0006I Start of offline redo log processing: aecxcgeb.svd 2010-03-31 05.00.17
BR0484I BRARCHIVE log file: E:\oracle\HRD\saparch\aecxcgeb.svd
BR0477I Oracle pfile E:\oracle\HRD\102\database\initHRD.ora created from spfile E:\oracle\HRD\102\database\spfileHRD.ora
BR0101I Parameters
Name Value
oracle_sid HRD
oracle_home E:\oracle\HRD\102
oracle_profile E:\oracle\HRD\102\database\initHRD.ora
sapdata_home E:\oracle\HRD
sap_profile E:\oracle\HRD\102\database\inithrd.sap
backup_dev_type disk
archive_copy_dir E:\zz_backup\HRD
compress no
disk_copy_cmd copy
cpio_disk_flags -pdcu
archive_dupl_del only
system_info SAPServiceHRD QCHR1 Windows 5.2 Build 3790 Service Pack 2 AMD64
oracle_info HRD 10.2.0.2.0 8192 1399 12442755 QCHR1 UTF8 UTF8
sap_info 700 SAPHRD 0002LK0003HRD0011F01141457250015Maintenance_ORA
make_info NTAMD64 OCI_10201_SHARE Dec 14 2009
command_line brarchive -u / -jid LOG__20100326050000 -c force -p inithrd.sap -sd -w use_rmv
BR0280I BRARCHIVE time stamp: 2010-03-31 05.00.23
BR0008I Offline redo log processing for database instance: HRD
BR0009I BRARCHIVE action ID: aecxcgeb
BR0010I BRARCHIVE function ID: svd
BR0048I Archive function: save_delete
BR0011I 33 offline redo log files found for processing, total size 1439.778 MB
BR0112I Files will not be compressed
BR0130I Backup device type: disk
BR0106I Files will be saved on disk in directory: E:\zz_backup\HRD
BR0136I Verify option with value 'use_rmv' set - double work to do
BR1391I RMAN will be used for verification
BR0134I Unattended mode with 'force' active - no operator confirmation allowed
BR0202I Saving init_ora
BR0203I to E:\zz_backup\HRD\HRD ...
BR0202I Saving E:\oracle\HRD\102\database\inithrd.sap
BR0203I to E:\zz_backup\HRD\HRD ...
BR0280I BRARCHIVE time stamp: 2010-03-31 05.00.23
BR0198I Profiles saved successfully
BR0428W File E:\zz_backup\HRD\HRDARCHARC01366_0711116899.001 will be overwritten
BR0202I Saving E:\oracle\HRD\oraarch\HRDARCHARC01366_0711116899.001
BR0203I to E:\zz_backup\HRD\HRDARCHARC01366_0711116899.001 ...
#ARCHIVE.. E:\oracle\HRD\oraarch\HRDARCHARC01366_0711116899.001
#SAVED.... E:\zz_backup\HRD\HRDARCHARC01366_0711116899.001 #1/1
BR0428W File E:\oracle\HRD\sapreorg\HRDARCHARC01366_0711116899.001 will be overwritten
BR0280I BRARCHIVE time stamp: 2010-03-31 05.00.25
BR0351I Restoring E:\oracle\HRD\sapreorg\HRDARCHARC01366_0711116899.001
BR0355I from E:\zz_backup\HRD\HRDARCHARC01366_0711116899.001 ...
BR0280I BRARCHIVE time stamp: 2010-03-31 05.00.25
BR0568I Verifying E:\ZZ_BACKUP\HRD\HRDARCHARC01366_0711116899.001 using RMAN...
BR0278E Command output of 'E:\oracle\HRD\102\BIN\rman nocatalog':
Recovery Manager: Release 10.2.0.2.0 - Production on Wed Mar 31 05:00:28 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN>
RMAN> connect target *
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
ORA-12640: Authentication adapter initialization failed
RMAN> *end-of-file*
RMAN>
host command complete
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of catalog command at 03/31/2010 05:00:29
RMAN-06171: not connected to target database
RMAN> 2> 3>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of allocate command at 03/31/2010 05:00:29
RMAN-06171: not connected to target database
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of uncatalog command at 03/31/2010 05:00:29
RMAN-06171: not connected to target database
RMAN>
Recovery Manager complete.
BR0280I BRARCHIVE time stamp: 2010-03-31 05.00.29
BR0279E Return code from 'E:\oracle\HRD\102\BIN\rman nocatalog': 1
BR0536E RMAN call for database instance HRD failed
BR0280I BRARCHIVE time stamp: 2010-03-31 05.00.29
BR0587E Verification of archivelog file using RMAN failed
BR0570E Verification of backup of E:\oracle\HRD\oraarch\HRDARCHARC01366_0711116899.001 using RMAN failed due to previous errors
BR0016I 0 offline redo log files processed, total size 45.003 MB
BR0007I End of offline redo log processing: aecxcgeb.svd 2010-03-31 05.00.29
BR0280I BRARCHIVE time stamp: 2010-03-31 05.00.29
BR0005I BRARCHIVE terminated with errors
Please help on this
Thanks and Regards,
Vadivelan.NHi,
FInd the trans.log file content below after commenting in both the locations
4 ETW000 r3trans version 6.14 (release 700 - 03.11.09 - 14:15:00).
4 ETW000 unicode enabled version
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 01.04.2010 - 21:45:00
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: r3trans -d
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [dev trc ,00000] Thu Apr 01 21:45:00 2010 0 0.000000
4 ETW000 [dev trc ,00000] db_con_init called 0 0.000000
4 ETW000 [dev trc ,00000] create_con (con_name=R/3) 0 0.000000
4 ETW000 [dev trc ,00000] Loading DB library 'dboraslib.dll' ... 0 0.000000
4 ETW000 [dev trc ,00000] DlLoadLib success: LoadLibrary("dboraslib.dll"), hdl 0, addr 00000001887A0000
4 ETW000 3905 0.003905
4 ETW000 [dev trc ,00000] using "D:\usr\sap\HRD\SYS\exe\uc\NTAMD64\dboraslib.dll" 8 0.003913
4 ETW000 [dev trc ,00000] Library 'dboraslib.dll' loaded 9 0.003922
4 ETW000 [dev trc ,00000] function DbSlExpFuns loaded from library dboraslib.dll 11 0.003933
4 ETW000 [dev trc ,00000] Version of 'dboraslib.dll' is "700.08", patchlevel (0.234) 177 0.004110
4 ETW000 [dev trc ,00000] function dsql_db_init loaded from library dboraslib.dll 10 0.004120
4 ETW000 [dev trc ,00000] function dbdd_exp_funs loaded from library dboraslib.dll 17 0.004137
4 ETW000 [dev trc ,00000] New connection 0 created 18 0.004155
4 ETW000 [dev trc ,00000] 000: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , hc = NO , perm = YES,
4 ETW000 reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
4 ETW000 52 0.004207
4 ETW000 [dev trc ,00000] db_con_connect (con_name=R/3) 14 0.004221
4 ETW000 [dev trc ,00000] find_con_by_name found the following connection for reuse: 8 0.004229
4 ETW000 [dev trc ,00000] 000: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , hc = NO , perm = YES,
4 ETW000 reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
4 ETW000 22 0.004251
4 ETW000 [dev trc ,00000] CLIENT_ORACLE_HOME is not set as environment variable or 255 0.004506
4 ETW000 DIR_CLIENT_ORAHOME is not set as profile parameter.
4 ETW000 assuming using instant client with unspecified location.
4 ETW000 [dev trc ,00000] -->oci_init1 30 0.004536
4 ETW000 [dev trc ,00000] Oracle Client Version: '10.2.0.2.0' 5667 0.010203
4 ETW000 [dev trc ,00000] Default connection: tnsname ='HRD' 14 0.010217
4 ETW000 [dev trc ,00000] -->oci_initialize(con_hdl=0, char='', nchar='') 12 0.010229
4 ETW000 [dev trc ,00000] application info callback registered 9 0.010238
4 ETW000 [dev trc ,00000] OCIEnvCreate(mode=16384=OCI_UTF16) returned 0 (for default NLS handle)
4 ETW000 2149 0.012387
4 ETW000 [dev trc ,00000] OCIHandleAlloc(OCI_HTYPE_ERROR, con_hdl=0, ErrHp=000000000031BCB0)
4 ETW000 74 0.012461
4 ETW000 [dev trc ,00000] OCIHandleAlloc(OCI_HTYPE_ERROR, con_hdl=0, ErrBt=0000000000321478)
4 ETW000 20 0.012481
4 ETW000 [dev trc ,00000] Client character set UTF16 -> UTF8 88 0.012569
4 ETW000 [dev trc ,00000] Client NLS setting (OCINlsGetInfo): connection handle 0 -> 'AMERICAN_AMERICA.UTF8'
4 ETW000 16 0.012585
4 ETW000 [dev trc ,00000] charset='', chset='UTF8', UNI_ASC=FALSE/FALSE 9 0.012594
4 ETW000 [dev trc ,00000] Logon as OPS$-user to get SAPHRD's password 9 0.012603
4 ETW000 [dev trc ,00000] Connecting as /@HRD on connection 0 (nls_hdl 0) ... (dbsl 700 251109)
4 ETW000 18 0.012621
4 ETW000 [dev trc ,00000] Nls CharacterSet NationalCharSet EnvHp ErrHp ErrHpBatch
4 ETW000 16 0.012637
4 ETW000 [dev trc ,00000] 0 UTF8 00000000076DF090 000000000031BCB0 0000000000321478
4 ETW000 17 0.012654
4 ETW000 [dev trc ,00000] Allocating service context handle for con_hdl=0 33 0.012687
4 ETW000 [dev trc ,00000] Allocating server context handle 13 0.012700
4 ETW000 [dev trc ,00000] Attaching to DB Server HRD (con_hdl=0,svchp=0000000000321338,srvhp=00000000076FE0E8)
4 ETW000 43 0.012743
4 ETW000 [dev trc ,00000] Assigning server context 00000000076FE0E8 to service context 0000000000321338
4 ETW000 9179 0.021922
4 ETW000 [dev trc ,00000] Allocating user session handle 34 0.021956
4 ETW000 [dev trc ,00000] Starting user session: OCISessionBegin(con_hdl=0, usr='/',svchp=0000000000321338, srvhp=00000000076FE0E8, usrhp=000000000031C4C8)
4 ETW000 23 0.021979
4 ETW000 [dev trc ,00000] OCISessionBegin(OCI_DEFAULT) failed with -1=OCI_ERROR 26181 0.048160
4 ETW000 [dev trc ,00000] OCISessionBegin(OCI_DEFAULT) failed with SQL error 1017: 75 0.048235
4 ETW000 [dev trc ,00000] ORA-01017: invalid username/password; logon denied
4 ETW000 26 0.048261
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '1017' 27 0.048288
4 ETW000 [dev trc ,00000] set_ocica() -> SQL error code 1017 18 0.048306
4 ETW000 [dev trc ,00000] -->oci_get_errmsg (con_hdl=0, rc=1017) 20 0.048326
4 ETW000 [dev trc ,00000] OCIErrorGet -> SQL error code: 1017 35 0.048361
4 ETW000 [dev trc ,00000] ORA-01017: invalid username/password; logon denied
4 ETW000 16 0.048377
4 ETW000 [dev trc ,00000] Try to connect with default password 9 0.048386
4 ETW000 [dev trc ,00000] Connecting as SAPHRD/<pwd>@HRD on connection 0 (nls_hdl 0) ... (dbsl 700 251109)
4 ETW000 54 0.048440
4 ETW000 [dev trc ,00000] Nls CharacterSet NationalCharSet EnvHp ErrHp ErrHpBatch
4 ETW000 15 0.048455
4 ETW000 [dev trc ,00000] 0 UTF8 00000000076DF090 000000000031BCB0 0000000000321478
4 ETW000 17 0.048472
4 ETW000 [dev trc ,00000] Assigning username to user session: con_hdl=0, usrhp=000000000031C4C8
4 ETW000 13 0.048485
4 ETW000 [dev trc ,00000] Assigning password to user session: con_hdl=0, usrhp=000000000031C4C8
4 ETW000 20 0.048505
4 ETW000 [dev trc ,00000] Starting user session: OCISessionBegin(con_hdl=0, usr=SAPHRD/<pwd>, svchp=0000000000321338, srvhp=00000000076FE0E8, usrhp=000000000031C4C8)
4 ETW000 20 0.048525
4 ETW000 [dev trc ,00000] OCISessionBegin(OCI_DEFAULT) failed with -1=OCI_ERROR 2398 0.050923
4 ETW000 [dev trc ,00000] OCISessionBegin(OCI_DEFAULT) failed with SQL error 1017: 61 0.050984
4 ETW000 [dev trc ,00000] ORA-01017: invalid username/password; logon denied
4 ETW000 25 0.051009
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '1017' 17 0.051026
4 ETW000 [dev trc ,00000] set_ocica() -> SQL error code 1017 13 0.051039
4 ETW000 [dev trc ,00000] -->oci_get_errmsg (con_hdl=0, rc=1017) 14 0.051053
4 ETW000 [dev trc ,00000] OCIErrorGet -> SQL error code: 1017 55 0.051108
4 ETW000 [dev trc ,00000] ORA-01017: invalid username/password; logon denied
4 ETW000 29 0.051137
4 ETW000 [dblink ,00433] ***LOG BY2=>sql error 1017 performing CON [dblink#8 @ 433] 32 0.051169
4 ETW000 [dblink ,00433] ***LOG BY0=>ORA-01017: invalid username/password; logon denied [dblink#8 @ 433]
4 ETW000 14 0.051183
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'HRD'" -
Error U9KP7Q94 when logged in with the deleted user after its recreation...
Hi All,
How to get default screen for the deleted user when we recreate the same user with same name?
i have deleted the user for ex. 'XYZ' (from the catalog user group managemet) and when again i am trying to browse the obiee with the same user i.e. XYZ (after passing the authentication using some LDAP) then i am getting the error like 'Error U9KP7Q94'.
can anyone help me in this..
thanks
Edited by: user10946827 on Apr 26, 2009 4:32 AMI don't really see your problem. Do you have any error message ?
You may have may be a security problem.
Have you see in the catalog manager if you have the right / grant for the user on the report.
You can log as administrator / go to the catalog manager / shared folder / catalog root / users /
- on your user / in the items properties, set the owner ship to the administrator
- go to the security icon of the directory user
- give the access to the administrator
and then you have access to the directory
To see the grant of each file, you must do the same manipulation (become the owner, change the security, ...)
Success
Nico -
Restore rman backup whitout controlfile or backup controlfile
hi,
I have a rman database backup and rman archivelogs bakups but no controlfile or backup controlfile.
How can restore the database?
thanksthanks for replay
yes, i have a human readable trace controlfile and i could generate CREATE CONTROLFILE command but still can not create the controlfile because i have not datafile 1 which is in rman backupset and which can not be restored because of controlfile:
SQL> @D:\oServers\databases102\ploiesti\control.txt
CREATE CONTROLFILE set DATABASE "PRIM" RESETLOGS ARCHIVELOG
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in identifying file
'D:\oServers\databases102\ploiesti\data\SYSTEM01.DBF'
ORA-27041: unable to open file
OSD-04002: fi║ierul nu a putut fi deschis
O/S-Error: (OS 2) The system cannot find the file specified.
I will try to create a new database and to use new controlfile for catalog rman backupset.
thanks again -
We recently had a system crash (hardware issue). When the system came back up I noticed an error in the event log (ORA-19816) that instructed me to use CATALOG RECOVERY AREA in RMAN. When I did this I received an RMAN-07527 error indicating that the copies of the redo logs and archivelog files that are duplexed there were not created using the DB_RECOVERY_FILE_DEST initialization parameter. Can I just delete these files? Will Oracle recreate them if necessary?
Thanks,
MarkRMAN-07527:
Reason: File was not created using DB_RECOVERY_FILE_DEST initialization parameter
Cause: This message should be accompanied by other message(s) indicating the name of file that was not created using DB_RECOVERY_FILE_DEST initialization parameter. One of the following scenarios caused this error: 1) This is an archived log file and was created when the LOG_ARCHIVE_DEST_n initialization parameter was set explicitly to flash recovery area location. For example, LOG_ARCHIVE_DEST_1="location=+FRA" where "+FRA" was also your DB_RECOVERY_FILE_DEST value. 2) This is an RMAN backup file and was created in a flash recovery area using the FORMAT option of the BACKUP command. 3) This is an online log file or current control file and was created prior to setting the flash recovery area. 4) This file fits none of the above scnearios and is not supported by the flash recovery area.
Action: All of following actions will resolve future occurences of this error: 1) To create archived logs in flash recovery area, set the LOG_ARCHIVE_DEST_n initialization parameter to "location=USE_DB_RECOVERY_FILE_DEST". Do not explicitly set the LOG_ARCHIVE_DEST_n initialization parameter to a flash recovery area location. 2) To create RMAN backups in flash recovery area, do not use the FORMAT option of the BACKUP command. All of following actions will resolve current problem: 1) If this is an archived log file or an RMAN backup file, use the CATALOG command to re-catalog the files. 2) If this is an online log file or a current control file to be managed by the flash recovery area, re-create the file using the DB_RECOVERY_FILE_DEST initialization parameter. -
RMAN Backup after gracefull Switchover
We have Oracle 11.2.0.1 .
We are going to switchoever to standby databse for 6 months.
We take rman backup with catalog .
do i need to reregister database to catalog after grace full switchoever ?
Thanks,851707 wrote:
Hi,
By using
when we do full database recovery or when we open database using alter database open resetlogs;
does we need to take again fresh backup or old back will work further also.After performing a full database recovery it would be better to take a fresh backup, although you can reset the incarnation after opening the database with RESETLOGS
Kamran Agayev A.
Oracle ACE
My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/ -
OAS Cant start https after wallet recreate
Hello
I have recreated new wallet by owm, make request, signed by Microsoft CA from domain, imported signed certificate and CA certificate, save new ewallet.p12 on location from ssl.conf, everything seems to be ok.
But after restar http service, it can't start ssl and i have got error:
[09/May/2012 19:48:28 28767] [error] Init: Server oashpux:4443: SSL setup failed: call to nzosSetCredential returned error 28885
[09/May/2012 19:48:28 28767] [error] Unknown error
from oracle faq:
ORA-28885: No certificate with the required key usage found.
Cause: Your certificate was not created with the appropriate X.509 Version 3 key usage extension.
Action: Use Oracle Wallet Manager to check the certificate's key usage. See Table 13-4, "X.509 Version 3 KeyUsage Extension Types, Values, and Descriptions".
Is it possible use Microsoft CA to sign oas wallet? With which key usage? Or what could cause this error?
There is OAS version:
Server version: Oracle-Application-Server-10g/9.0.4.0.0 Oracle-HTTP-Server
on HP-UX OS
Thanks
PavolYou likely neglected to download/install the Glassfish load balancer plugin (see [step one|https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html#lbplugin] ). This means that you've configured Web Server to load this library at startup, but that you haven't actually provided the library at the specified location.
You could also use Web Server 7's built-in load balancer/reverse proxy feature. -
RMAN-06571 after switch database to copy
Hi all,
I rolled forward a physical standby database using RMAN incremental backups as detailed in Oracle support ID **836986*.1* and it all went well until i tried to switch the standby database to copy.
I get the error RMAN-06571 datafile 24 does not have recoverable copy
Now datafile 24 is a datafile created after the scn of the standby database and there's unfortunately no documentation on how to restore this datafile from the backup piece created as part of the incremental backup created from the primary. The oracle document says
*"if any datafiles have been added to primary after scn <n> they will also have to restored to the standby host and cataloged before doing the switch"*
Unfortunately it does not say how this is to be done.
I have tried to restore datafile 24 but even that produces an
RMAN-12008 could not locate backup piece /x/y/piecename
even though the backup piece is in the location /x/y/piecename and has been cataloged via rman. The same backup piece was used to restore the datafiles that existed earlier. i.e. the other 23, successfully so i know it has the datafile i need.
My environment is a 3-node RAC (Primary & Standby). I am really at my wits end.
All help appreciated.rman> restore datafile 24;
It accurately determines that the datafile to be restored is in the backuppiece /x/y/piecename but then informs me it cannot find it.
RMAN> @restoredatafile24.txt
RMAN> run {
2> allocate channel c1 device type disk format '/opt/dbe/forstandby_%U';
3> restore datafile 24;
4> release channel c1;
5> }
allocated channel: c1
channel c1: SID=1347 instance=rac1 device type=DISK
Starting restore at 19-JUL-2012 22:49:15
released channel: c1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 07/19/2012 22:49:16
RMAN-12009: command aborted because some backup pieces could not be located
RMAN-12008: could not locate backup piece /opt/dbe/forstandby_f0ngb1k4_1_1
RMAN> **end-of-file**
Thanks.
Edited by: user11970290 on Jul 20, 2012 12:53 PM -
RMAN info in controlfile and V$ views
Hi all,
I was just wondering about how the information in the RMAN information held in the controlfile actually relates to that in the V$BACKUP_SET and V$BACKUP_PIECE views?
I'm slightly confused because, as part of experimenting with selecting certain backups for deletion (based on a hellish retention policy laid down in my place of work) we were trying to pick out backups based on the views and delete them from RMAN using the tag.
However, the output of LIST BACKUP.. does not seem to correspond to what's in the above views. In other words there are backups with tags in the views that are not actually known to RMAN itself (so when executing LIST BACKUP TAG '...' and entering a tag that is present in the views, RMAN returns no data).
Apologies if this is a bit rambling - although it somewhat sums up my scrambled thought process in this regard. Any advice/info would be greatly appreciated.
Cheers,
IanMHi,
Really I didn't understand your question.
But I can share with you :
RMAN> list backup summary;
using target database control file instead of recovery catalog
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
479 B A A DISK 16-JUL-13 1 1 NO TAG20130716T220012
480 B F A DISK 16-JUL-13 1 1 NO TAG20130716T220042
481 B A A DISK 16-JUL-13 1 1 NO TAG20130716T220214
482 B F A DISK 16-JUL-13 1 1 NO TAG20130716T220216
and we can found this backupset informations from v$backup_set and v$backup_piece views, too
SQL> select bs.recid, bp.Handle, bp.tag, bp.bytes
2 from v$backup_set bs, V$backup_Piece bp
3 where Bs.Recid = bp.recid;
RECID, HANDLE, TAG, BYTES
479
D:\ORACLE\FRA\PORTDB\PORTDB\BACKUPSET\2013_07_16\O1_MF_ANNNN_TAG20130716T220012_8YBZ0YVQ_.BKP
TAG20130716T220012
837262336
480
D:\ORACLE\FRA\PORTDB\PORTDB\BACKUPSET\2013_07_16\O1_MF_NNNDF_TAG20130716T220042_8YBZ1VPV_.BKP
TAG20130716T220042
2975236096
481
D:\ORACLE\FRA\PORTDB\PORTDB\BACKUPSET\2013_07_16\O1_MF_ANNNN_TAG20130716T220214_8YBZ4PQ6_.BKP
TAG20130716T220214
2450944
482
D:\ORACLE\FRA\PORTDB\PORTDB\AUTOBACKUP\2013_07_16\O1_MF_S_820965736_8YBZ4RXF_.BKP
TAG20130716T220216
10469376
Regards
Mahir M. Quluzade -
Restore old rman backup after changing dbid?
Hi,
I backed up database using rman. then i changed dbid for that databases. can i restore backup what i backed up before changing DBID?No.
When you change the DBID for a database, it becomes a different database. All the datafiles are stamped with the new DBID.
And you cannot select a DBID value either, so you cannot choose to change the DBID back to the previous value.
A RESTORE verifies that it is restoring to the same database -- it uses the DBID to verify. Since the DBIDs for the Backup and the now-present database do not match, a RESTORE cannot be attempted.
You can remove the database with the changed DBID and do a complete RESTORE from the backup.
Hemant K Chitale -
Rman recovery after DBID has been changed
Hi. I am on 10.2.0.3.
On one of my databases dbid was changed using NID. Is there any way to recover or duplicate the database using rman backup made PRIOR to the dbid change? TIA!If you restore a backup done with the old DBID, your restored database would have the old DBID. It would be "different" from the current database.
You wouldn't be able to use a backup done with the old DBID to do a "DUPLICATE DATABASE" -- you'd have to create a fresh backup of the database using the current DBID to DUPLICATE (which means that it can't be "duplicated" to a point in time in the past !).
Your best bet would be to RESTORE an older backup. But you can't "apply" archivelogs of the new DBID to that restored database. -
Bookmarks disappeared after a recreated PDF
I recreated a PDF print from a PDF file that I made with acrobat Pro but all my bookmarks disappeared. Any suggestions. Thanks
Hi,
I would like to inform you that if you create a "PDF Print", You will lose any "meta" data in the file, like fields, links, bookmarks, annotations, etc.
You may use "Convert to PDF" and set the conversion options to create bookmarks and select the items to use for creating bookmarks.
Regards,
Nakul -
RMAN: How to apply Archive Logs after recoverying of all physical files
Hi;
I am using RMAN Oracle10g; my test database has being corrupted. I have already taken 0 level backup through this command
run {
allocate channel c1 type disk;
backup incremental level 0 tag = Test_Weekly_database format 'O:\rman\backup\Full_Weekly_%d_%s_%p_%t'(database);
release channel c1;
configure controlfile autobackup format for device type disk to 'O:\rman\backup\Auto_Ctrl_weekly_%F';
allocate channel c1 type disk;
sql 'alter system archive log current';
BACKUP tag = Test_Weekly_Arch ARCHIVELOG UNTIL TIME 'SYSDATE-7' format 'O:\rman\backup\Archive_weekly_%d_%s_%p_%t';
DELETE ARCHIVELOG UNTIL TIME 'SYSDATE-7';
release channel c1;
After backing up I inserted few records in TEST123 table. And switch current log file.
Then my database has been corrupted. Now I have last 0 level backup (RMAN) and archive logs files on OS level.
I am recovering my database with the following commands; but archive logs have not being applied. And my inserted records were not presented in TEST123 table.
Kindly guide me
SQL> startup nomount
CMD> RMAN target=/
RMAN>set DBID 1168995671
RMAN>RUN {
SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'O:\rman\backup\Auto_Ctrl_weekly_%F';
RESTORE CONTROLFILE from autobackup;
RMAN> ALTER DATABASE MOUNT;
RMAN> RESTORE DATABASE CHECK READONLY;
RMAN> RECOVER DATABASE NOREDO;
RMAN> restore archivelog all;
SQL> startup mount
SQL> alter database backup controlfile to trace;
SQL> shut immediate
SQL> startup nomount
SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS ARCHIVELOG................;
SQL> alter database open resetlogs
---Database altered.
SQL> select * from TEST123;
Not record found
regards;
AsimDear Khurram;
Kindly advise where i m worrg???????
C:\>RMAN target=/
RMAN> set DBID 1168995671
executing command: SET DBID
RMAN> RUN {
2> SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'O:\rman\backup\Auto_Ctrl_weekly_%F';
3> RESTORE CONTROLFILE from autobackup;
4> }
executing command: SET CONTROLFILE AUTOBACKUP FORMAT
Starting restore at 27-DEC-07
using channel ORA_DISK_1
recovery area destination: O:\rman\backup
database name (or database unique name) used for search: ORCL
channel ORA_DISK_1: no autobackups found in the recovery area
channel ORA_DISK_1: looking for autobackup on day: 20071227
channel ORA_DISK_1: autobackup found: O:\rman\backup\Auto_Ctrl_weekly_c-11689956
71-20071227-04
channel ORA_DISK_1: control file restore from autobackup complete
output filename=D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL01.CTL
output filename=D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL02.CTL
output filename=D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\CONTROL03.CTL
Finished restore at 27-DEC-07
RMAN> ALTER DATABASE MOUNT;
database mounted
released channel: ORA_DISK_1
RMAN> RESTORE DATABASE CHECK READONLY;
Starting restore at 27-DEC-07
Starting implicit crosscheck backup at 27-DEC-07
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=155 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=154 devtype=DISK
Crosschecked 9 objects
Finished implicit crosscheck backup at 27-DEC-07
Starting implicit crosscheck copy at 27-DEC-07
using channel ORA_DISK_1
using channel ORA_DISK_2
Finished implicit crosscheck copy at 27-DEC-07
searching for all files in the recovery area
cataloging files...
no files cataloged
using channel ORA_DISK_1
using channel ORA_DISK_2
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
restoring datafile 00002 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
restoring datafile 00003 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
restoring datafile 00004 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
restoring datafile 00005 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST.DBF
restoring datafile 00006 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST2
channel ORA_DISK_1: reading from backup piece O:\RMAN\BACKUP\FULL_WEEKLY_ORCL_3_
1_642420573
channel ORA_DISK_1: restored backup piece 1
piece handle=O:\RMAN\BACKUP\FULL_WEEKLY_ORCL_3_1_642420573 tag=Test_WEEKLY_DATAB
ASE
channel ORA_DISK_1: restore complete, elapsed time: 00:00:46
Finished restore at 27-DEC-07
RMAN> restore archivelog all;
archive log thread 1 sequence 1 is already on disk as file O:\ARCHIVE\ARC00001_0642356125.001
archive log thread 1 sequence 2 is already on disk as file O:\ARCHIVE\ARC00002_0642356125.001
archive log thread 1 sequence 3 is already on disk as file O:\ARCHIVE\ARC00003_0642356125.001
archive log thread 1 sequence 4 is already on disk as file O:\ARCHIVE\ARC00004_0642356125.001
archive log thread 1 sequence 5 is already on disk as file O:\ARCHIVE\ARC00005_0642356125.001
archive log thread 1 sequence 6 is already on disk as file O:\ARCHIVE\ARC00006_0642356125.001
archive log thread 1 sequence 7 is already on disk as file O:\ARCHIVE\ARC00007_0642356125.001
archive log thread 1 sequence 8 is already on disk as file O:\ARCHIVE\ARC00008_0642356125.001
archive log thread 1 sequence 9 is already on disk as file O:\ARCHIVE\ARC00009_0642356125.001
archive log thread 1 sequence 10 is already on disk as file O:\ARCHIVE\ARC00010_0642356125.001
archive log thread 1 sequence 11 is already on disk as file O:\ARCHIVE\ARC00011_0642356125.001
archive log thread 1 sequence 12 is already on disk as file O:\ARCHIVE\ARC00012_0642356125.001
channel ORA_DISK_1: starting archive log restore to default destination
channel ORA_DISK_1: restoring archive log
archive log thread=1 sequence=15
channel ORA_DISK_1: restoring archive log
archive log thread=1 sequence=16
channel ORA_DISK_1: restoring archive log
archive log thread=1 sequence=17
channel ORA_DISK_1: restoring archive log
archive log thread=1 sequence=18
channel ORA_DISK_1: restoring archive log
archive log thread=1 sequence=19
channel ORA_DISK_1: restoring archive log
archive log thread=1 sequence=20
channel ORA_DISK_1: reading from backup piece O:\RMAN\BACKUP\ARCHIVE_WEEKLY_ORCL_5_1_642420630
channel ORA_DISK_1: restored backup piece 1
piece handle=O:\RMAN\BACKUP\ARCHIVE_WEEKLY_ORCL_5_1_642420630 tag=Test_WEEKLY_ARCH
channel ORA_DISK_1: restore complete, elapsed time: 00:00:08
Finished restore at 27-DEC-07
RMAN> ALTER DATABASE OPEN;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 12/27/2007 10:27:10
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF'
Regards;
Asim
Maybe you are looking for
-
Can't Boot neither from Recovery partition or CD recovery disks
Hello everybody, I already purchased Laptopo with the following specifications: - HP Pavilion DV6-6160 SE Entertainment Notebook PC - Operating System is windows 7 64-bit - Error message : an error occurred while attempting to read the boot configura
-
I have a PC running windows 2000 and Java 1.4. I would like to create a package somewhere on my hard disk and have my utility classes saved in that package. I have tried to fiddle with Environment variables but to no avail. What is the correct proced
-
I would like to select name from db1..table and db2..table and I want all from both where ident = ? When I do that I only get results from db1. How do I make sure that I get all the results from both db1 and db2. BR. Badleif
-
Hi, The requirement is that there is a table and there is a column named 'status' in the table. If the value of the staus is 'PASS' then Pass should be highlighted in that row and if the value of the staus is 'FAIL' then Fail should not be highlighte
-
Maxl command to logout users for particular application
Hello Everybody, Can you please help me on the below question. I have essbase 11.1.2.2 and I have a maxl script which does copy of applications A to B for maintenance, but during this process, the script logs out all the users from the system even th