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
Tags: Database
Similar Questions
-
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 -
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 knowuser603328 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 knowIf 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... -
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 -
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 -
All,
We have lost all control files and no backups available now...
How to proceed on this to recover the database without data loss is possible...?
Oracle 10g on solarisHello
Check out the link:
http://Myracle.WordPress.com/2008/01/11/recover-database-without-control-files-and-redo-log-files/Thank you
A H E E R X -
A data file has lost, but has the backup of control files
Version: 10.2.0.1.0
In our test DB, we lost a data file. This database has not been saved. It is not in ARCHIVELOG mode.
This data file belongs to the SYSTEM or SYSAUX tablespaces. It is a user created tablespace.
I have the backup of control file. But this isn't a control created using file
This is the original (binary) control fileALTER DATABASE BACKUP CONTROLFILE TO TRACE;
How can I make the data base to the top?control03.ctl
According to Kamran Agayev, if you can mount the database, then you can do an "alter database backup controlfile to trace;"
Then you can drop theSQL > startup mount
ORACLE instance started.Total System Global Area 1068937216 bytes
Bytes of size 2145048 fixed
763364584 variable size bytes
297795584 of database buffers bytes
Redo buffers 5632000 bytes
Mounted database.
SQL > alter database backup controlfile to trace;Database altered.
Then you should be able to use the file to create a new controlfile and we hope to open the database.
-
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.
-
restore / recover the control file
Hello
in 10g, I lost all the files of ctl and I want to restore/recovery of backups RMAN.
Oracle documentation:
After that I should publish any statement to RECOVER or change the editing of the database and alter database open would be enough?6.4.1.4 Restoring a Control File When Using a Recovery Catalog Restoring a lost control file from autobackup is easier when using a recovery catalog than when using only the control file to store the RMAN repository. The recovery catalog contains a complete record of your backups, including backups of the control file. Therefore, you do not have to specify your DBID or control file autobackup format. To restore the control file, connect RMAN to the target database and the recovery catalog, and bring the database to NOMOUNT state. Then issue the RESTORE CONTROLFILE command with no parameters, as in this example: % rman TARGET rman/rman CATALOG catdb/catdb RMAN> RESTORE CONTROLFILE;
Thank you.
Is there a complete senario anywhere?The restoration is correct.
Please see the following:
http://www.SC.EHU.es/siwebso/KZCC/Oracle_10g_Documentacion/server.101/B10734/rcmrecov.htm#1006247
-
error occurred in the quick clone (control files creation failed)
Hi all
I have 2 nodes ERP server running EBS 11.5.10 with 9.2.0.5 database and OS HP UX 11.11
While running perl adcfgclone.pl dbTier
I met the following error
Check that adcrdbclone.sql
RC-00115: not able to read temp001.dbf
Asked by oracle.apps.ad.clone.ApplyDatabase
RC-00115: not able to read temp002.dbf
Asked by oracle.apps.ad.clone.ApplyDatabase
RC-00115: not able to read temp003.dbf
Asked by oracle.apps.ad.clone.ApplyDatabase
RC-00115: not able to read temp004.dbf
Asked by oracle.apps.ad.clone.ApplyDatabase
RC-00115: not able to read temp005.dbf
Asked by oracle.apps.ad.clone.ApplyDatabase
RC-00115: not able to read temp006.dbf
Asked by oracle.apps.ad.clone.ApplyDatabase
RC-00115: not able to read temp001.dbf
Asked by oracle.apps.ad.clone.ApplyDatabase
RC-00115: not able to read temp002.dbf
Asked by oracle.apps.ad.clone.ApplyDatabase
RC-00115: not able to read temp003.dbf
Asked by oracle.apps.ad.clone.ApplyDatabase
RC-00115: not able to read temp004.dbf
Asked by oracle.apps.ad.clone.ApplyDatabase
RC-00115: not able to read temp005.dbf
Asked by oracle.apps.ad.clone.ApplyDatabase
RC-00115: not able to read temp006.dbf
Asked by oracle.apps.ad.clone.ApplyDatabase
RC-00116: error reading of dbf files. Creation of control files will fail.
a later part of the log file
Creating the database DVP_test control file...
SQL * more: release 9.2.0.5.0 - Production on Sun Jan 11 18:29:27 2009
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connect to an instance is idle.
ORACLE instance stops.
Connect to an instance is idle.
ORACLE instance started.
Total System Global Area 598700552 bytes
Bytes of size 737800 fixed
419430400 variable size bytes
167772160 of database buffers bytes
Redo buffers 10760192 bytes
Created control file.
Database altered.
alter tablespace TEMP1 add tempfile ' / oradvp/ora/proddata/temp001.dbf' REUSE
*
ERROR on line 1:
ORA-00959: tablespace "TEMP1" does not exist
alter tablespace TEMP1 add tempfile ' / oradvp/ora/proddata/temp002.dbf' REUSE
*
ERROR on line 1:
ORA-00959: tablespace "TEMP1" does not exist
alter tablespace TEMP1 add tempfile ' / oradvp/ora/proddata/temp003.dbf' REUSE
*
ERROR on line 1:
ORA-00959: tablespace "TEMP1" does not exist
alter tablespace TEMP1 add tempfile ' / oradvp/ora/proddata/temp004.dbf' REUSE
*
ERROR on line 1:
ORA-00959: tablespace "TEMP1" does not exist
alter tablespace TEMP1 add tempfile ' / oradvp/ora/proddata/temp005.dbf' REUSE
*
ERROR on line 1:
ORA-00959: tablespace "TEMP1" does not exist
alter tablespace TEMP1 add tempfile ' / oradvp/ora/proddata/temp006.dbf' REUSE
*
ERROR on line 1:
ORA-00959: tablespace "TEMP1" does not exist
but when I query v$ tablespace temporary tablespace TEMP shows no temp1
even on my production system temporary Tablespace is TEMP
When I see the alert file
It is said
Tablespace 'TEMP' #2 found in the data dictionary,
but not in the controlfile. Adding to controlfile.
File #143 found in the data dictionary, but not in controlfile.
Creation of "MISSING00143" offline file in the controlfile.
This file can no longer be retrieved, so it should be removed.
File #144 found in the data dictionary, but not in controlfile.
Creation of "MISSING00144" offline file in the controlfile.
This file can no longer be retrieved, so it should be removed.
File #145 found in the data dictionary, but not in controlfile.
Creation of "MISSING00145" offline file in the controlfile.
This file can no longer be retrieved, so it should be removed.
File #146 found in the data dictionary, but not in controlfile.
Creation of "MISSING00146" offline file in the controlfile.
This file can no longer be retrieved, so it should be removed.
File #147 found in the data dictionary, but not in controlfile.
Creation of "MISSING00147" offline file in the controlfile.
This file can no longer be retrieved, so it should be removed.
File #148 found in the data dictionary, but not in controlfile.
Creation of "MISSING00148" offline file in the controlfile.
This file can no longer be retrieved, so it should be removed.
File #149 found in the data dictionary, but not in controlfile.
Creation of "MISSING00149" offline file in the controlfile.
This file can no longer be retrieved, so it should be removed.
File #150 found in the data dictionary, but not in controlfile.
Creation of "MISSING00150" offline file in the controlfile.
This file can no longer be retrieved, so it should be removed.
File #151 found in the data dictionary, but not in controlfile.
Creation of "MISSING00151" offline file in the controlfile.
This file can no longer be retrieved, so it should be removed.
File #152 found in the data dictionary, but not in controlfile.
Creation of "MISSING00152" offline file in the controlfile.
This file can no longer be retrieved, so it should be removed.
File #153 found in the data dictionary, but not in controlfile.
Creation of "MISSING00153" offline file in the controlfile.
This file can no longer be retrieved, so it should be removed.
How can I get out of this confusion?Looks like your scene preclone directory is not correct (corrupted), and I think that it is because preclone does not run successfully.
Either you follow the steps described in the following notes to change the existing to a new undo tablespace or run preclone and copy the files again.
Note: 431652.1 - how to change the Undo existing Tablespace to a new Undo Tablespace
https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=431652.1Note: 1013221.6 - RECOVERY of a file of DATA LOST IN an UNDO TABLESPACE
https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=1013221.6Published by: hsawwan on January 11, 2009 22:17 - change the 2nd number of the Note to 1013221.1 to 1013221.6
-
A month ago, I moved my photos from my laptop on my external hard drive. The hard drive has stopped working some time later, so I lost some valuable files. Windows recovery retrieves these photos lost?
Hello
If the drive hard failed and no longer spin, contact a data recovery specialist
-
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
-
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
Maybe you are looking for
-
First HP: Complete the square
Is it possible to fill the spot on the first HP? The TI-Nspire to do this with ease. Ex.(s^2+2S+5) = (s + 1) ^ 2 + 4
-
Baterry PA3780U-1BRS for Satellite T110-11U
HelloI'm looking for batteries for my T110-11U, but in the Toshiba store and other shops is not available.The number of PA3780U-1BRS battery.Can I use another battery for my laptop?If yes which? Sorry for my English. Thank youBest regards
-
Windows does not start after recovery
Hey, satellite 1800 started son to have more and more slow to the point where it took close to an hour to boot in Windows. It got to the stage where it seemed that recovery from the CD was the only road - so we did. Everything had to look successful
-
Cannot play Blu Ray DVD, locks on my Windows 7, 64-bit on HPE-440f
see 'subject line' above I tried many Blu Ray DVDs, none will play, I have to update? How?
-
Suddenly can't access local users and groups permissions list
In computer management (my computer / manage) "Local users and groups" icon has a red x on it and when I click on it I get this message: Local users and groupsUnable to access the computer {computer name} toa. The error was: library not registered. H