recovery of control files
Hi allMy db instance running with control 3-files if my 2 controlfiles are lost due to disk failures... is - this run of the instance or an abortion?
I have my doubts regarding... If we put 3 controlfile in INIT.ora... like CONTROL_FILES ='/... Control1.ctl ',' /... Control2.ctl ',' /... Control3.CTL'.
I think oracle server process written information updated at the same time 3 controlfiles right?... If she writes... While the loss of 2 controlfiles why not abort instance occur?
Please let me know
user603328 wrote:
Hi all
My db instance running with control 3-files if my 2 controlfiles are lost due to disk failures... is - this run of the instance or an abortion?
I have my doubts regarding... If we put 3 controlfile in INIT.ora... like CONTROL_FILES ='/... Control1.ctl ',' /... Control2.ctl ',' /... Control3.CTL'.
I think oracle server process written information updated at the same time 3 controlfiles right?... If she writes... While the loss of 2 controlfiles why not abort instance occur?
Please let me know
If you're on a * nix environment, it files are kept open by the oracle process even if they are deleted. This may be a reason that you may not have seen the instance be abandoned immediately. Once you close the database and could therefore stop the process, next start would happen not because of control files is not available. So have you tested this on windows or linux?
HTH
Aman...
Tags: Database
Similar Questions
-
Recovery of control files lost.
Hello
I run my database in noarchivelog mode. This is a database of test of pure on my laptop at home.
Scenario of
1 copy the existing control to another location on my PC.
2. open the database and made some changes to the database (create tables).
3. deletion of the existing control files.
4 database could not be mounted.
5. restore control of the location of backup files.
6. the database is mounted under the mat.
7. recovered using backup controlfile but could not recover.
8 save the control to trace file
9 a created control file by changing the trace file
10. fixed using the database backup, applied to newspapers and recovered control file.
My question is why could not recover the database in the first case of a copy of OS control files, but could recover when I manually created control file.
Thank you
Hello
1. as indicated, you are in noarchive logmode (kind only OLR is used for recovery)
2. now, you closed the database mode compatible and prior (in the db is running), you have taken a backup.
3. the backup controlfile doesn' the changes you have made
4. now, when you start the instance and the restoration of the controlfile back, there he changes (blurred) didn't know where in the end. The CNS is lower compared to datafile_header
5. now you have activated 4 times files newspapers is getting crushed and change is lost at the level of the RSC and it's already emptied to the data files and controlfile (YVERT updated)
6. then, do you think you are looking for old OLR changing
Specify log: {
=suggested | filename | AUTO | CANCEL} /u01/app/oracle/oradata/testdb/redo02.log ORA-00326: log begins at change 939321, need earlier change 918423--- here the log is looking for earlier one ORA-00334: archived log: '/u01/app/oracle/oradata/testdb/redo02.log' So he could not be able to open.
7. When you created new controlfile, he succeeded, since your last stop was in line. so the controlfile read all the headers of data file all in harmony, let me open it.
Cause is switching to log files
-Thank you
Pavan Kumar N
-
Recovery of control files. I need to restore database?
I am using below command procedure files recovery: restore the backup controlfile. I'm not restore database in this procedure with RESTORE DATABASE
==================================================================================
QUESTION: Do I need to restore a full database to be consistent?
=====================================================
SQL > select name from v$ controlfile;
NAME
--------------------------------------------------------------------------------
/ QA/Data/OBT/QA112QA/Data/control01. CTL
/ QA/Data/OBT/QA112QA/Data/control02. CTL
/ QA/Data/OBT/QA112QA/Data/control03. CTL
[oracle@rh56b64-1 rmanbackup] $ rm /qa/data/obt/QA112QA/data/control01.ctl /qa/data/obt/QA112QA/data/control02.ctl /qa/data/obt/QA112QA/data/control03.ctl
SQL > stop the demolition
ORACLE instance stops.
SQL > startup
ORACLE instance started.
Total System Global Area 275615744 bytes
Bytes of size 2212496 fixed
184552816 variable size bytes
Buffers data 83886080 bytes
Redo buffers 4964352 bytes
ORA-00205: error in the identification of control files, see log alerts for more information
[oracle@rh56b64-1 rmanbackup] $ pwd
/ QA/Data/OBT/rmanbackup
[oracle@rh56b64-1 rmanbackup] $ ls - ltr
Total 591368
-rw - r - 1 oracle oinstall 586711040 24 Dec 19:25 1antmgo6_1_1
-rw - r - 1 oracle oinstall 1435648 24 Dec 19:25 1dntmgov_1_1
-rw - r - 1 oracle oinstall 16809984 24 Dec 19:25 d to cfc-1266678734-20121224-0
-set DBID - get the name of the controlfile autobackup.
-For example, if the name of auto backup is
-CTL_SP_BAK_C-1507972899-20050124-00 the the DBID is
-1266678734. This step is not necessary if the instance is
-Start RMAN
RMAN > set dbid 1266678734
executing command: SET DBID
RMAN > restore controlfile to ' / qa/data/obt/rmanbackup/EFA-1266678734-20121224-0;
From restoration to December 24, 12
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 135 type device = DISK
channel ORA_DISK_1: restore the control file
channel ORA_DISK_1: restore complete, duration: 00:00:03
output file name=/qa/data/obt/QA112QA/data/control01.ctl
output file name=/qa/data/obt/QA112QA/data/control02.ctl
output file name=/qa/data/obt/QA112QA/data/control03.ctl
Finished restore at December 24, 12
RMAN > change the editing of the database;
mounted database
output channel: ORA_DISK_1
RMAN > restore database;
From back to December 24, 12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 135 type device = DISK
starting media recovery
Journal archived for thread 1 sequence 2 is already on the disc in the file /qa/data/obt/QA112QA/data/redo02.log
Journal archived for thread 1 with sequence 3 is already on the disc in the file /qa/data/obt/QA112QA/data/redo03.log
Journal archived for thread 1 with sequence 4 is already on the disc in the file /qa/data/obt/QA112QA/data/redo01.log
Archive log file name=/qa/data/obt/QA112QA/data/redo02.log thread = 1 sequence = 2
Archive log file name=/qa/data/obt/QA112QA/data/redo03.log thread = 1 = 3 sequence
Archive log file name=/qa/data/obt/QA112QA/data/redo01.log thread = 1 sequence = 4
media recovery complete, duration: 00:00:01
Finished recover at December 24, 12
RMAN > alter database open resetlogs;
open databaseHello
==================================================================================
QUESTION: Do I need to restore a full database to be consistent?
=====================================================You don't have to restore the full database. You just need to restore the backup controlfile and restore the database.
The steps you mentioned are good restore the controlfile. After recovery, you must open the database in resetlogs.Also, you can take a look at this http://neeraj-dba.blogspot.com/2011/04/loss-of-control-file-in-various.html
Kind regards
Shivananda -
lost control file and datafile addeed restore/recovery without loss of data
Here, I tried the following
created a new table called t2 and made sure the data went to a specific tablespace...
has taken a level 0 backup
remove the control file
couple of datafile to above tablespace was added and then insert more data
then went out to restore the database... but datafile and control file always could not be open? What is wrong here...
-wnet to session 2 and renamed datafile for file unammedSQL> @datafile -- list of datafile Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT ---------- -------- --------- --------- ---------- ---------- ---------- -------- ------------------------------ ---------- --- UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf 3 YES USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf 5 YES CNT_TST Datafile ONLINE AVAILABLE 1 9 10 0 /data3/trgt/cnt_tst01.dbf 7 NO SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf 2 YES USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf 4 YES SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf 1 YES USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf 6 YES 7 rows selected. -- new table is created called t2 and its going into TS called cnt_tst SQL> CREATE TABLE TEST.T2 ( C1 DATE, C2 NUMBER, C3 NUMBER, C4 VARCHAR2(300 BYTE) ) TABLESPACE cnt_tst; 2 3 4 5 6 7 8 Table created. -- data inserted SQL> INSERT INTO test.T2 SELECT * FROM (SELECT SYSDATE, ROWNUM C2, DECODE(MOD(ROWNUM,100),99,99,1) C3, RPAD('A',300,'A') C4 FROM DUAL CONNECT BY LEVEL <= 10000) ; 2 3 4 5 6 7 8 9 10 11 12 13 14 15 10000 rows created. SQL> commit; Commit complete. -- to check of cnt_tst has any free space or not, as we can see its full SQL> @datafile Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT ---------- -------- --------- --------- ---------- ---------- ---------- -------- ------------------------------ ---------- --- UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf 3 YES USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf 5 YES SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf 2 YES USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf 4 YES SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf 1 YES USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf 6 YES CNT_TST Datafile ONLINE AVAILABLE 10 0 10 0 /data3/trgt/cnt_tst01.dbf 7 NO 7 rows selected. SQL> select count(*) from test.t2; COUNT(*) ---------- 10000 1 row selected. -- to get a count and max on date SQL> select max(c1) from test.t2; MAX(C1) ------------------ 29-feb-12 13:47:52 1 row selected. SQL> -- AT THIS POINT A LEVEL 0 BACKUP IS TAKEN (using backup database plus archivelog) SQL> -- now control files are removed SQL> select name from v$controlfile; NAME -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- /ctrl/trgt/control01.ctl /ctrl/trgt/control02.ctl 2 rows selected. SQL> SQL> ! rm /ctrl/trgt/control01.ctl SQL> ! rm /ctrl/trgt/control02.ctl SQL> ! ls -ltr /ctrl/trgt/ ls: /ctrl/trgt/: No such file or directory SQL> -- new datafile is added to CNT_TST TABLESPACE and new data is added as well SQL> ALTER TABLESPACE CNT_TST ADD DATAFILE '/data3/trgt/CNT_TST02.dbf' SIZE 100M AUTOEXTEND OFF; Tablespace altered. SQL> ALTER SYSTEM CHECKPOINT; System altered. SQL> alter system switch logfile; System altered. SQL> / System altered. SQL> / System altered. SQL> ALTER TABLESPACE CNT_TST ADD DATAFILE '/data3/trgt/CNT_TST03.dbf' SIZE 100M AUTOEXTEND OFF; Tablespace altered. SQL> INSERT INTO test.T2 SELECT * FROM (SELECT SYSDATE, ROWNUM C2, DECODE(MOD(ROWNUM,100),99,99,1) C3, RPAD('A',300,'A') C4 FROM DUAL CONNECT BY LEVEL <= 10000) ; 2 3 4 5 6 7 8 9 10 11 12 13 14 15 10000 rows created. SQL> / 10000 rows created. SQL> commit; Commit complete. SQL> INSERT INTO test.T2 SELECT * FROM (SELECT SYSDATE, ROWNUM C2, DECODE(MOD(ROWNUM,100),99,99,1) C3, RPAD('A',300,'A') C4 FROM DUAL CONNECT BY LEVEL <= 40000) ; 2 3 4 5 6 7 8 9 10 11 12 13 14 15 40000 rows created. SQL> commit; Commit complete. SQL> @datafile -- to make sure new datafile has been registered with the DB Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT ---------- -------- --------- --------- ---------- ---------- ---------- -------- ------------------------------ ---------- --- CNT_TST Datafile ONLINE AVAILABLE 9 91 100 0 /data3/trgt/CNT_TST03.dbf 9 NO UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf 3 YES USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf 5 YES CNT_TST Datafile ONLINE AVAILABLE 9 91 100 0 /data3/trgt/CNT_TST02.dbf 8 NO SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf 2 YES USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf 4 YES SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf 1 YES USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf 6 YES CNT_TST Datafile ONLINE AVAILABLE 10 0 10 0 /data3/trgt/cnt_tst01.dbf 7 NO 9 rows selected. -- now the count and max ... note count before backup was 10000 and max(c1) was diff SQL> select count(*) from test.t2; COUNT(*) ---------- 70000 1 row selected. SQL> select max(c1) from test.t2; MAX(C1) ------------------ 29-feb-12 13:58:25 1 row selected. SQL> -- now restore starts SQL> shutdown abort; ORACLE instance shut down. SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options [oracle@berry trgt]$ rman Recovery Manager: Release 11.2.0.1.0 - Production on Wed Feb 29 14:01:48 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. RMAN> connect catalog rman/pass@rcat connected to recovery catalog database RMAN> connect target / connected to target database (not started) RMAN> startup nomount; Oracle instance started Total System Global Area 188313600 bytes Fixed Size 1335388 bytes Variable Size 125833124 bytes Database Buffers 58720256 bytes Redo Buffers 2424832 bytes RMAN> restore controlfile from autobackup; Starting restore at 29-FEB-12 14:02:37 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=20 device type=DISK recovery area destination: /backup/trgt/flash_recovery_area database name (or database unique name) used for search: TRGT channel ORA_DISK_1: no AUTOBACKUPS found in the recovery area channel ORA_DISK_1: looking for AUTOBACKUP on day: 20120229 channel ORA_DISK_1: AUTOBACKUP found: /backup/trgt/backup/cont_c-3405317011-20120229-09 channel ORA_DISK_1: restoring control file from AUTOBACKUP /backup/trgt/backup/cont_c-3405317011-20120229-09 channel ORA_DISK_1: control file restore from AUTOBACKUP complete output file name=/ctrl/trgt/control01.ctl output file name=/ctrl/trgt/control02.ctl Finished restore at 29-FEB-12 14:02:39 RMAN> alter database mount; database mounted released channel: ORA_DISK_1 RMAN> recover database; Starting recover at 29-FEB-12 14:02:55 Starting implicit crosscheck backup at 29-FEB-12 14:02:55 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=20 device type=DISK Crosschecked 96 objects Finished implicit crosscheck backup at 29-FEB-12 14:02:57 Starting implicit crosscheck copy at 29-FEB-12 14:02:57 using channel ORA_DISK_1 Finished implicit crosscheck copy at 29-FEB-12 14:02:57 searching for all files in the recovery area cataloging files... no files cataloged using channel ORA_DISK_1 starting media recovery archived log for thread 1 with sequence 13 is already on disk as file /redo_archive/trgt/online/redo01.log archived log for thread 1 with sequence 14 is already on disk as file /redo_archive/trgt/online/redo02.log archived log for thread 1 with sequence 15 is already on disk as file /redo_archive/trgt/online/redo03.log archived log file name=/redo_archive/trgt/archive/1_10_776523284.dbf thread=1 sequence=10 archived log file name=/redo_archive/trgt/archive/1_10_776523284.dbf thread=1 sequence=10 archived log file name=/redo_archive/trgt/archive/1_11_776523284.dbf thread=1 sequence=11 archived log file name=/redo_archive/trgt/archive/1_12_776523284.dbf thread=1 sequence=12 archived log file name=/redo_archive/trgt/online/redo01.log thread=1 sequence=13 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of recover command at 02/29/2012 14:02:59 ORA-01422: exact fetch returns more than requested number of rows RMAN-20505: create datafile during recovery RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/redo_archive/trgt/online/redo01.log' ORA-00283: recovery session canceled due to errors ORA-01244: unnamed datafile(s) added to control file by media recovery ORA-01110: data file 9: '/data3/trgt/CNT_TST03.dbf' RMAN> -- wnet to session 2 and renamed datafile from unammed
After before was done, went back to session 1 and I tried recovered the DBSQL> select name from v$datafile; NAME -------------------------------------------------------------------------------- /data/trgt/system01.dbf /data/trgt/sysaux01.dbf /data/trgt/undotbs01.dbf /data3/trgt/move/users01.dbf /data3/trgt/user02.dbf /data3/trgt/users03.dbf /data3/trgt/cnt_tst01.dbf /oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00008 /oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00009 9 rows selected. SQL> alter database create datafile '/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00008' as '/data3/trgt/CNT_TST02.dbf'; Database altered. SQL> alter database create datafile '/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00009' as '/data3/trgt/CNT_TST03.dbf'; Database altered. SQL> select name from v$datafile; NAME -------------------------------------------------------------------------------- /data/trgt/system01.dbf /data/trgt/sysaux01.dbf /data/trgt/undotbs01.dbf /data3/trgt/move/users01.dbf /data3/trgt/user02.dbf /data3/trgt/users03.dbf /data3/trgt/cnt_tst01.dbf /data3/trgt/CNT_TST02.dbf /data3/trgt/CNT_TST03.dbf 9 rows selected.
RMAN> recover database; Starting recover at 29-FEB-12 14:06:16 using channel ORA_DISK_1 starting media recovery archived log for thread 1 with sequence 13 is already on disk as file /redo_archive/trgt/online/redo01.log archived log for thread 1 with sequence 14 is already on disk as file /redo_archive/trgt/online/redo02.log archived log for thread 1 with sequence 15 is already on disk as file /redo_archive/trgt/online/redo03.log archived log file name=/redo_archive/trgt/online/redo01.log thread=1 sequence=13 archived log file name=/redo_archive/trgt/online/redo02.log thread=1 sequence=14 archived log file name=/redo_archive/trgt/online/redo03.log thread=1 sequence=15 media recovery complete, elapsed time: 00:00:00 Finished recover at 29-FEB-12 14:06:17 RMAN> alter database open resetlogs; database opened new incarnation of database registered in recovery catalog starting full resync of recovery catalog full resync complete starting full resync of recovery catalog full resync complete RMAN> exit Recovery Manager complete. [oracle@berry trgt]$ [oracle@berry trgt]$ [oracle@berry trgt]$ sq SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 29 14:07:18 2012 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> alter session set NLS_DATE_FORMAT="dd-mon-yy hh24:mi:ss: 2 SQL> SQL> alter session set NLS_DATE_FORMAT="dd-mon-yy hh24:mi:ss"; Session altered. SQL> select count(*) from test.t2; select count(*) from test.t2 * ERROR at line 1: ORA-00376: file 8 cannot be read at this time ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf' SQL> select max(c1) from test.t2; select max(c1) from test.t2 * ERROR at line 1: ORA-00376: file 8 cannot be read at this time ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf' SQL> alter database datafile 8 online; alter database datafile 8 online * ERROR at line 1: ORA-01190: control file or data file 8 is from before the last RESETLOGS ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf' {code} so what did i do wrong in my recovery that i could not get my data?? how can i avoid this?? and restore my DB? Edited by: user8363520 on Feb 29, 2012 12:24 PM
user8363520 wrote:
so can get us this or can't do?You seem to have:
(a) old version of data through rman backup files
(b) old version of the control file
(c) Backed archived redo logs
(d) recovery archived logs that have been recently generated
(e) current online redo logsTherefore, you should be able to bring back the database in the State wherever it was when you made the abandonment.
I don't do enough laps to be able to cite details on the commands to use (and I often find myself using the command line recovery after that file of rman restore, but the steps you need must be)Take a copy of security of the data current, archived and online redo log files.
Restore the backup control file, data files, and archived recovery logs
Recover the database by using up to cancel backup control file
You have to do 'create datafile' bit as the collection hits the 'missing file' bit
You will need to provide the names of the archived and log files online redo recovery reached their
(although, presumably, you could leave copies of the logs stored in the default location)Concerning
Jonathan Lewis
http://jonathanlewis.WordPress.com
Author: core Oracle -
Hi all.
I really need your help on this:
(1) version: 11.2.0.1 EE / Windows.
(2) database does not start, don't get database.
Alert.log info:
Instance of stopped by USER, pid = 3652
2015-11-22 15:57:19.763000 - 04:30
I found this after using adrci:
2015-11-22 15:49:15.727
SESSION ID: (191.1) 2015-11-22 15:49:15.727
CUSTOMER ID :() 2015-11-22 15:49:15.727
NAME OF THE SERVICE :() 2015-11-22 15:49:15.727
MODULE NAME: (sqlplus.exe) 2015-11-22 15:49:15.727
ACTION NAME :() 2015-11-22 15:49:15.727
Informational message:
Control file 1 has seq 2713995, low 2713994 file # 0
Error: kccpb_sanity_check_2
Control file sequence number mismatch!
fhcsq: bhcsq 2713995: 2714016 cfn 0
2015-11-22 15:49:15.758
USER (ospid: 2504): put an end to the instance
Verification of MOS Note: 435436.1 I must:
(1) to restore a backup of a controlfile and recover
OR
(2) to recreate the controlfile
OR
(3) restore the backup data and recovery
It is a database, that I was not, up to now administer. But:
(1) I tried from the database with addressed controlfile (the one located in FRA). No luck. (Create pfile from spfile / startup pfile)
(2) the database is not mount / open. It hangs on the editing process. So I can not issue an alter database controlfile to trace.
It seems that my options are:
(1) manual creation of controlfile with open resetlogs option. This option is viable, but risky if we miss a datafile or something GOLD
(2) restoration of RMAN backup. The thing is that the most recent copy of automatic backup of controlfile is since a few days early (4 / 5 days).
I found this link: http://gavinsoorma.com/2009/07/rman-recovery-from-loss-of-all-control-files/
The procedure seems easy, but since this controlfile is not in the current SNA of database (data files, etc.). I'm not sure it if it would work.
So in short, I think I have an automatic backup controlfile and it's OK. but a little old. I can restore from this copy of CF?
Please I'm pressed real here, so help will be greatly appreciated!....
Thanks in advance!
Best regards, Luis...!
Hello
It seems that my options are:
(1) manual creation of controlfile with open resetlogs option. This option is viable, but risky if we miss a datafile or something GOLD
(2) restoration of RMAN backup. The thing is that the most recent copy of automatic backup of controlfile is since a few days early (4 / 5 days).
It seems that you have few options,
In my opinion, you should start with option 2), but you have logs archived redo and all and all the backups of catalog and perform a restore.
After, if not works, you must manually create the control files, but you are right, you must carefully on all the data files. Here a log generated in the last level 0 RMAN backup could help you, don't forget the newspaper are all entries of data for backup files.
I wish to have more ideas to help you, but I have no other.
I hope this helps.
Kind regards
Juan M
-
Why open DB with RESETLOGS option after either complete or CAMILLE with a backup control file?
Hi all
I'm newbie DBA and totally confused when reading about the recovery.
Why open DB with RESETLOGS option after either complete or CAMILLE with a backup control file?
Using while will happen after we open DB using resetlogs in above mentioned mode of recovery.. .apart from resetting the log sequence 1?
Kind regards
Ritu
Hi Ritu,
Google is a very rich source of information...
I found this article in Hemant which I suppose is very informative for you... Read everything including the comments!
Hemant Oracle DBA blog: OPEN RESETLOGS without making a recovery
HTH,
Thierry
-
strategy of redo and control files
Excuse my ignorance in this area (not oracle or a DBA), but from a risk perspective, I read his best practices for storing a redundant copy of recovery logs and control files on a separate disk / server - for redundancy.
However, if the server is a server database physical, with local storage (in which case files of database and the oracle software resides), no configuration of cluster if the server dies a sudden death, then what exactly are the newspapers redundant recovery and control of files will save you of? Is it to minimize the loss of data, or else (told you I wasn't a DBA or Oracle guru). If you back up your recovery connects dialy then I don't know what exactly the redundant copies really are for/record you leave?
So if the server dies (and the storage is still ok) and then transport the storage to another server and you are in business again. Multiplexing or not does not change your ability to use another server.
In a disaster situation, where you lose the server and the storage is also lost, so you have to go to a backup and multiplexing saves you from what it is because the backup has only 1 copy of the controlfile and archivelogs.
If you get a logical corruption (IE a bug in the software) with controlfiles multiplex, then you're still screwed because all controlfiles are physical copies of each other, so all controlfiles have the same corruption. In this case, you must go to a good backup of the controlfile.
Multiplexing allows you to save when you get corruption Physics (due to the corruption of storage) of your command multiplex or multiplex redo logs file, and so you can use the good copy of the file control or redo logs to continue without losing the validated data.
-
ORA-00221: error on write in the control file
Experts,
Recently, I have been unable to connect to the console em12c and after reviewing the State of who, I got to know that my instance of database crashed.
Status of the WHO . / emctl status SGD
Oracle Enterprise Manager Cloud control 12 c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
WebTier is in place
Oracle Management Server does not work for the following reason:
Unable to connect to the repository database. SGD will be automatically restarted once he identifies database and the listener are on the rise.
I connected and checked the alert log which was below error e/s on the controlfile. I'm afraid to say that my control files are multiplexed not and I don't have a valid backup of controlfile.
alert_log Errors in the /u01/app/oracle/diag/rdbms/trcoem/TRCOEM/trace/TRCOEM_lgwr_25655.trc file:
ORA-00345: redo log write error block 39818 County 15
ORA-00312: thread 1 1 online journal: ' / u01/app/oracle/oradata/TRCOEM/redo01.log'
ORA-27072: IO file error
Linux-x86_64 error: 5: input/output error
Additional information: 4
Additional information: 39818
Additional information:-1
Kill Jan 28 11:34:57 2014
Errors in the /u01/app/oracle/diag/rdbms/trcoem/TRCOEM/trace/TRCOEM_ckpt_25659.trc file:
ORA-00206: error in writing (block 3, block # 1) of the control file
ORA-00202: control file: ' / u01/app/oracle/oradata/TRCOEM/control01.ctl'
ORA-27072: IO file error
Linux-x86_64 error: 5: input/output error
Additional information: 4
Additional information: 3
Additional information:-1
Errors in the /u01/app/oracle/diag/rdbms/trcoem/TRCOEM/trace/TRCOEM_ckpt_25659.trc file:
ORA-00221: error about writing about a control file
ORA-00206: error in writing (block 3, block # 1) of the control file
ORA-00202: control file: ' / u01/app/oracle/oradata/TRCOEM/control01.ctl'
ORA-27072: IO file error
Linux-x86_64 error: 5: input/output error
Additional information: 4
Additional information: 3
Additional information:-1
Kill Jan 28 11:34:57 2014
CKPT (ospid: 25659): put an end to litigation because of the error 221
Please help me what should be the solution to fix this error. Is this just a mistake of e/s on the controlfile, or do I have a disk failure?
var http://www.filedropper.com/messagesVersion of the OS: RHEL 5 (64-bit)
Database Version: 11.2.0.3 (64-bit)
Thank you
Fran,
Syslog does not display the IO error.
I followed the steps below to solve the problem.
1] stop the database
[2] restore control01.dbf to the backup location.
[3] mount the database
[4] recover database until cancel[5] Alter database open resetlogs.
Also, takes a full cold of RMAN backup of the database, the multiplex control files and recovery logs.
-
ORA-00338: 3 log thread 1 is more recent than the control file
Hello
I met the error ORA-00338 while performing the recovery of incomplete data:
ORA-00283: cool cancelled due to errors
ORA-00338: 3 log thread 1 is more recent than the control file
ORA-00312: wire 3 1 online journal: "+ DG_REDO/dbase/onlinelog/group_3.267.814820795".
Complete recovery manager.
I made this recovery on oracle 10g, database of ASM.
1. What are the possible causes of this error ORA-00338?
2. This error occurs at the beginning of the media recovery, RMAN is applying logs archived. If RMAN does newspapers "Online REDO" after applying "archived" logs required for recovery or in front of them?
3 rman is how this journal in line 3 is more recent than the control file? How can I me SNA of the journal online & file control in my environment?
Here are some details related to checkpoint scn / change # info. I found in my environment:
Before recovery:
view
v$ datafile: 642935
v$ datafile_header: 642935
v database $: 642935
Journal of v$: 640956
After the recovery fails (ORA 338 :()
v$ datafile: 640917
v$ datafile_header: 640056
v$ database: 640906
Journal of v$: 640906You could try the incomplete recovery has to do only the RESTORE DATABASE with RMAN.
Then, using the SQLPLUS command line, issue a RECOVER database with the HELP of BACKUP CONTROLFILE until CANCEL. See which he records guests for and monitor messages in the alert.logHemant K Collette
-
Problem to identify the control file when creating physical standby
Hello
(database version: 10.2.0.4)
linux platform)
I use the command below to create physical database from a backup before:
I already tried to cross but always give same errorrman target / auxiliary sys/tiger@paceview Recovery Manager: Release 10.2.0.4.0 - Production on Tue Sep 4 18:05:53 2012 Copyright (c) 1982, 2007, Oracle. All rights reserved. connected to target database: PACEVIEW (DBID=2092349485) connected to auxiliary database: PACEVIEW (not mounted) run { allocate auxiliary channel c1 device type DISK; set until sequence 38; duplicate target database for standby dorecover nofilenamecheck; } released channel: ORA_DISK_1 allocated channel: c1 channel c1: sid=35 devtype=DISK allocated channel: c2 channel c2: sid=36 devtype=DISK executing command: SET until clause Starting Duplicate Db at 04-SEP-12 contents of Memory Script: { set until scn 138180211934; restore clone standby controlfile; sql clone 'alter database mount standby database'; } executing Memory Script executing command: SET until clause Starting restore at 04-SEP-12 channel c1: restoring control file ORA-19625: error identifying file /backup/rman/paceview/DEL1_standby.ctl ORA-27037: unable to obtain file status Linux-x86_64 Error: 2: No such file or directory Additional information: 3 ORA-19600: input file is control file (/backup/rman/paceview/DEL1_standby.ctl) ORA-19601: output file is control file (/PGHProdDB/oradata/paceview/control1.ctl) failover to previous backup released channel: c1 released channel: c2 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 09/04/2012 18:01:44 RMAN-03015: error occurred in stored script Memory Script RMAN-06026: some targets not found - aborting restore RMAN-06024: no backup or copy of the control file found to restore
Thank youHello;
That's what I'd do:
Primary backup (change in your directory as needed)
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; }
Move the backup and duplicate like this:
rman target sys/password@PRIMARY auxiliary / RMAN> run { allocate channel C1 device type disk; allocate auxiliary channel C2 device type disk; duplicate target database for standby nofilenamecheck; }
For details of this method, see:
http://www.Visi.com/~mseberg/duprman2.html
Best regards
mseberg
-
Whwn to create a standby control file?
Hi all
I want to set up a database waiting for my Production DB.
I have a doubt, can we create a watch by control file when the primary database is in place and the mode of running(read-write). or otherwise is a must in Mount State only?
Please notify.
Thank you.Dear IndianDBA,
There is one important thing to remember before you create a standby controlfile. You must create the controlfile after the full database backup, which is taken with the Recovery Manager (RMAN).
You can create standby controlfile is on the mount status or open state of the database in him giving an absolute path. I think that there should be no problem to create during the State opened the database.
Kind regards.
Ogan
-
Hello
I try to simulate recovery scenarios. My Oracle database 11g is configured with two control files. I stopped the database and a corrupt control files by editing with random characters using a hex editor. When I started the database, everything is going like nothing happened. No warning, no errors, in Enterprise Manager the State control of the file is VALID. I opened the control file, but it is still published (so it has not been automatically replaced by the good, which is not a good thing anyway).
Why is this happening? The system is unable to warn me if one of the control files is corrupt?
Thank you
Adrian
Published by: Adrian P on December 7, 2010 10:10Maybe you just edited a part that Oracle doesn't care much in normal conditions of use? Check the v$ archived_log, maybe you'll see your changes?
-
control file has been lost no control backup file avilable in db
Hello
Control file has been lost no avilable to control file backup in the database how to recover the control file and recover the database.Hello
If you have backup controlfile to trace, then you can follow the action plan below
1)
SQL > startup nomount
SQL > execute script
SQL > restore database using backup controlfile;
sqL. ALTER database open resetlogs;Note: datafile header SNA will be stamped to controlfile one
If no backup of the file available trace control, then perform the Ridge below the action plan
Any other database
sqL > ALTER DATABASE BACKUP CONTROLFILE TO trace;
SQL > show dumpcheck in udump
now, you must modify the controlfile and do file parameter etc... You can use alerts to the same log
SQL > execute script
SQL > restore database using backup controlfile;
sqL. ALTER database open resetlogs;You can check the link below also
http://it.Toolbox.com/blogs/database-solutions/create-backup-controlfile-for-scripting-recovery-12133
Hope that I have answered your question
Kind regards
Rakesh jayappa -
Corrupt block is detected in the control file
Hi all
I have a scenario where I have set up regional advisory councils active / standby and I managed archive redo logs applied to sleep - everything was ok
Versions - Oracle 11g R2, RHEL 5
Scenario 1:
Perfectly redo application log on the work of sleep when I don't create our software application tables using sql on the primary scripts until AFTER the stages of CAR/Dataguard completed successfully.
Scenario 2:
Redo log application does not work when I'm not running our sql scripts until I take a RMAN backup of the primary to be duplicated in the Standby
Everything comes in the day before after the rman duplicate, archive logs is transferred, but now they are not applied.
I see the ORA-00227: Corrupt block is detected in the control file: (block 1, block # 1) in the journal alerts when I put on standby in Recovery Mode
My theory is that somehow our sql scripts are breaking my rman backups when I run them before creating a primary RMAN backup to load on Standby - I just need someone to indicate whether there is a possibility of their experience, if so I will contact the support of Oracle to continue the investigation. It's my first time working on CARS DG etc.
Thank youHello
If not solved with 11.2.0.2 I opened a SR.
I don't think that this should be the case...
Sebastian -
RMAN-20033 control file sequence # too low &; ORA-00230
The two RMAN below errors occasionally I think that the cause is if an archive backup is running during a database backup, the controlfile is supported by both and can (but not always) cause these errors. The backup of the database is generally successful and that's just the backup controlfile who complains. I looked at how to avoid this, but it is not easy. Some backups of large database, especially for a full backup, run it for hours so archives have yet to be backed up and deleted.
It might have started when ON CONFIGURE CONTROLFILE AUTOBACKUP has been set up. I don't know if this can be changed for backups of archive without affecting full/comú backups. Any ideas are appreciated.
From control file and SPFILE Autobackup July 23, 10
handful of piece = c-3756288473-20100723-2nd comment = 2.0, MMS Version 5.4.1.0 API Version
File control finished and Autobackup SPFILE to July 23, 10
output channel: T1
output channel: T2
output channel: T3
output channel: T4
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03008: error when executing automatic resynchronization of the recovery catalog
RMAN-20033: control file sequence # too low
From backup 6 August 10
channel T1: starting full datafile backupset
channel T1: specifying datafile (s) in backupset
output channel: T1
output channel: T2
output channel: T3
output channel: T4
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03009: failure of the backup command on channel T1 at 2010-08-06 11:43:52
ORA-00230: forbidden operation: snapshot controls unavailable file enqueueDear DBA2008,
Please find the explanation of the error first;
ORA-00230: operation disallowed: snapshot control file enqueue unavailable Cause: The attempted operation cannot be executed at this time because another process currently holds the snapshot control file enqueue. Action: Retry the operation after the concurrent operation that is holding the snapshot control file enqueue terminates.
There could be an enqueu for the snapshot controlfile and he should be released in order to continue operating.
The other mistake is;
Oracle Error :: RMAN-20033 control file SEQUENCE# too low Cause the control file sequence is less than the one of the previous resync Action make sure that the right control file is used
Thus, there could be another session which was try to resynchronize the catalog or simply access the snapshot controlfile.
Can you connect please for the usual recovery with the connection string manager and type;
RESYNC CATALOG;
Do you still take the enqueue snapshot controlfile error?
Hope that helps.
Ogan
Maybe you are looking for
-
I haven't been able to find the map "recently removed" photos. Who can help me?
I cann't find the item 'lately or recently removed' (in Dutch: both doors) in the Foto card / Albums. Who can help me?
-
Mobile project for external hard drive is not free HD space
Was working on a major project and got a caveat that my internal HD was almost full. FCPX get very laggy. So I moved several large projects HD internal HD of the iMac to my external movie player, following all the instructions on how to do it. Everyt
-
How to return to the previous version? A new is not compatible with my version of OSX.
I'm running 10.4.11 and had 3.6.something of Firefox. I installed the update of Firefox, assuming that, if it was not compatible with my version of OSX, it wouldn't install. First, huge mistake. I need to go back to my previous version. I have no sys
-
G2 600 SFF: Question on Windows 7 Pro + license 600 G2 LTS Pro Windows 10
Hi, I recently bought a 600 SFF G2 which was provided with Win7 - 64 Pro, but which was supposed to include a license to win 10 Pro. The device comes with a DVD of Win7 and a HP DVD driver, but instead of a Win10 DVD or license, they included a phamp
-
Satellite A40-532: could not find any drivers
My toshiba SA40-532, it seems impossible to find its drivers at all! Please help me to get the drivers for it!