Lost Redo Log
Hi All
I am testing some situations on my test server.
Test database working archive mode and controlfile autobackup on and controlfile format defined.
I have backup full database when database open.After that I close database with immediate and delete all file in oradata folder(control files,datafiles,redologs).I have used controlfile that in the backup ,restore database( all files restored to original location) and last recover database I am receiving error message "unable to find archive log archive log thread=1 sequence=102" but All archive files on folder. what is my problem ? (lost redo file or lost archive log)
how can I restore database to original state ?
Oracle 10g On suselinux I am using Rman to backup and restore.
Best Regards
Message was edited by:
user548890
you are simulating a complete database scenario , which a dba always tries and practice but never wishes to happen to his production databases :)
in a complete loss scenario, you will need openreset logs if you dont have your redo-logs
if you have shutdown your database with abort before taking a full backup, that will also be a proble, oracle never reccomends using shutdown abort before a complete backup, shutdown immediate/transactional should be used to take a consistent backup.
check these notes, they will be very helpfull
http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96519/backup.htm#1004829
Similar Messages
-
Db restore non archive mode lost redo log file..restore from controlfile tr
i have a db 11g I had taken non archive backup but failed to take redo log files backup...
so while i restored the db ... after formatting the machine ..the oracle instance wont start.
I create a controlfile trace but when i run it i get errors.
since i dont have the older log files.. how do i get around with this issue
Thanks
Following is the sample of control file trace ..Note i cannot create the redo log file
since db wont be mounted at most it shall be in nonmount mode
and below is my created controlfile ....
CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1
'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_80L7C259_.LOG'
SIZE 50M BLOCKSIZE 512,
GROUP 2
'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_80L7C375_.LOG'
SIZE 50M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBF',
'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\UNDOTBS1.DBF',
'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX.DBF',
'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\USERS.DBF'
CHARACTER SET AL32UTF8
I dont have these 2 files ..what do i do to get around this situation
'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_80L7C259_.LOG'
SIZE 50M BLOCKSIZE 512,
GROUP 2
'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_80L7C375_.LOG'
SIZE 50M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
Edited by: zycoz100 on Feb 27, 2013 10:57 PMIf you have a cold backup (database shutdown properly) without the redo logs, change this :
CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOGto
CREATE CONTROLFILE REUSE DATABASE "XE" RESETLOGS NOARCHIVELOGYou have to change the NORESETLOGS to RESETLOGS for Oracle to recreate the online redo logs.
Hemant K Chitale -
Lost redo log, how can get database started?
My redo03 log is irretriveably lost. It is never coming back. It had no data in it that I needed. All the real data I have is backed up in an EXP file. I just want to start the DB. Is there any way, short of just reinstalling the whole DB that I can tell Oracle 9.2 to change rdeo logs or rebuild the lost log? I have tried every alter or recover command I can think of.
did you mean allowresetlogs_corruption, or is that first underscore a mistake?
In any event, can I actually accomplish anything by changing the init.ora.somelongnumber file (there is no init.ora file), or must I use the alter system command to change the spfile. I actually tried both. The alter system command won't allow the allow_resetlogs_corruption parameter. If I use the create command to build an init.ora file the beginning of every line in the created file has a couple of stray characters. Am I supposed to put them in front of the allow_etc stuff?
Can you give me the command for clearing the log files and the command for opening the database in resetlogs mode?
I wish I could figure out where this stuff is documented, if any of it is. Perhaps I'm missing some manual. I've looked on the OTN documentation pages for some help, but didn't find anything.
Long ago I worked for Oracle in Redwood City porting the database to IBM mainframes. When we ran into this kind of confusion I visited the kernel group with a large blunt object and just threatened them until I got some documentation. I'm too far away now. -
Redo log files lost in Disk Corruption/failure
DB version:10gR2
In one of our test databases, I have lost all members of a group due to disk corruption(it was a bad practise to store both members on the same filesystem)
Database is still up. We don't have a backup of the lost redo log group. Altogether we had 3 redo log groups. this is what i am going to do to fix this issue.
Step 1. Add a redo log group
ALTER DATABASE
ADD LOGFILE ('/u04/oradata/ora67tst/log4a.rdo',
'/u05/oradata/ora67tst/log4b.rdo') SIZE 15m;Step 2. Drop the corrupted redo log group
ALTER DATABASE DROP LOGFILE GROUP 2;Is this the right way to go about fixing this issue?
The documentation says that you need to make sure a redo log group is archived before you DROP it.
When i use the query
SQL>SELECT GROUP#, ARCHIVED, STATUS FROM V$LOG;
GROUP# ARC STATUS
1 YES ACTIVE
2 NO CURRENT
3 NO INACTIVE
How can i force the archiving of a redo log group 2?
Edited by: Citizen_2 on May 28, 2009 10:10 AM
Edited by: Citizen_2 on May 28, 2009 10:11 AMCitizen_2 wrote:
How can i force the archiving of a redo log group 2?How could you archive a log group when you have lost all members of that group?
Have you checked out this documentation: [Recovering After the Loss of Online Redo Log Files|file://///castle/1862/Home%20Directories/Vaillancourt/Oracle%2010gR2%20Doc/backup.102/b14191/recoscen008.htm#sthref1872]
More specifically:
If the group is . . . Current
Then . . .
It is the log that the database is currently writing to.
And you should . . .
Attempt to clear the log; if impossible, then you must restore a backup and perform incomplete recovery up to the most recent available redo log.
>
HTH! -
Hi All,
I got a scenario in which my current redo log file is lost:
Do I need to:
1)Clear log file group
(or)
2)I should perform incomplete recovery.
What are the steps I should follow to recover this current redo log file?
1)*If it is inactive* I can make use of
ALTER DATABASE CLEAR LOGFILE UNARCHIVED GROUP 2;
which will drop and recreate the log file.To recover from loss of an active online log group in NOARCHIVELOG mode:
If the media failure is temporary, then correct the problem so that the database can reuse the group when required.
Restore the database from a consistent, whole database backup (datafiles and control files) as described in "Restoring Datafiles Before Performing Incomplete Recovery". For example, enter:
% cp /disk2/backup/*.dbf $ORACLE_HOME/oradata/trgt/
Mount the database:
STARTUP MOUNT
Because online redo logs are not backed up, you cannot restore them with the datafiles and control files. In order to allow the database to reset the online redo logs, you must first mimic incomplete recovery:
RECOVER DATABASE UNTIL CANCEL
CANCEL
Open the database using the RESETLOGS option:
ALTER DATABASE OPEN RESETLOGS;
Shut down the database consistently. For example, enter:
SHUTDOWN IMMEDIATE
Make a whole database backup.
To recover from loss of an active online redo log group in ARCHIVELOG mode:
If the media failure is temporary, then correct the problem so that the database can reuse the group when required. If the media failure is not temporary, then use the following procedure.
Begin incomplete media recovery, recovering up through the log before the damaged log.
Ensure that the current name of the lost redo log can be used for a newly created file. If not, then rename the members of the damaged online redo log group to a new location. For example, enter:
ALTER DATABASE RENAME FILE "?/oradata/trgt/redo01.log" TO "/tmp/redo01.log";
ALTER DATABASE RENAME FILE "?/oradata/trgt/redo01.log" TO "/tmp/redo02.log";
Open the database using the RESETLOGS option:
ALTER DATABASE OPEN RESETLOGS;
My question is when the redo log file is current. What steps we should follow?
Best regards,
Rafi.
http://rafioracledba.blogspot.com/
2)If it is active then I can make use of below steps:Rafi (Oracle DBA) wrote:
Hi Asif,
This link I have seen by refering to previous post.I just have a slight doubt in mind.
1)Do I need to make use of statement:
Alter database clear unarchived log file group#;
(or)
Only if your group is current(or you are not able to drop it) and is not archived then you should use above query.
We should perform incomplete recovery for this.If we have to perform incomplete recovery what are the steps I should follow?
I doubt you should be performing incomplete recovery for this.
Eg:Let us say my group 1 is dropped it has only one member and it is in active state.How to recover database?Can I get the steps?
You would not be able to drop it if it is in active state, did you meant it is corrupted? If yes then you can use below query
Alter database clear [unarchived] LOGFILE GROUP #;>
Best regards,
Rafi
http://rafioracledba.blogspot.com/
Make sure to backup your database after above activity.
Regards
Anurag -
Recover from missing files(redo log file/control file) and state of the DB
Hello,
i hv go through the doc. as well. But have some doubts what will happen in each on these situations.
Pls help me to clarify these!
Scenario is like this;
hv 3 redo log files - multiplxed
hv 3 control files - multiplxed
- What will happen if 1 redo log file missing when starting the DB?
- What will happen if 1 redo log file missing when using(performing operations) the DB?
(will it recover automatically/db abort/even redo log lost will the DB run as usual... ?)
-How to recover this lost redo log?
- What will happen if 1 control file missing when starting the DB?
- What will happen if 1 control file missing when using(performing operations) the DB?
(will it recover automatically/db abort/even control file lost will the DB run as usual... ?)
-How to recover this lost redo log?
thanks- What will happen if 1 redo log file missing when starting the DB?IF you have multiplexed the members you can drop the lost file and will be able to open the DB
What will happen if 1 redo log file missing when using(performing operations) the DB?Again if multiplexed it will drop a warinign in the alert log and contnue to write on othere members
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/recoscen.htm#sthref1385
- What will happen if 1 control file missing when starting the DB?Just remove the entry from the init.ora and start the DB
What will happen if 1 control file missing when using(performing operations) the DB?Will shutdown -
Can we use online redo log to recover lost datafile in NOARCHIVE mode?
I am working on OCA exam and confued about these 2 sample questions. (similar questions with totally different answer)
Please give me hint about the different between these 2 questions.
** If the database is in NOARCHIVELOG mode, and one of the datafile for tablespace USERS is lost, what kind of recovery is possible? (answer: B)
A. All transactions except those in the USERS tablespace are recoverable up to the loss of the datafile.
B. Recovery is possible only up to the point in time of the last full database backup.
C. The USERS tablespace is recoverable from the online redo log file as long as none of the redo log files have been reused since the last backup.
D. Tablespace point in time recovery is available as long as a full backup of the USERS tablespace exists.
** The database of your company is running in the NOARCHIVELOG mode. You perform a complete backup of the database every night. On Monday morning, you lose the USER1.dbf file belonging to the USERS tablespace. Your database has four redo log groups, and there have been two log switches since Sunday night's backup.
Which is true (answer: B)
A. The database cannot be recovered.
B. The database can be recovered up to the last commit.
C. The database can be recovered only up to the last completed backup.
D. The database can be recovered by performing an incomplete recovery.
E. The database can be recovered by restoring only the USER!.dbf datafile from the most recent backup.I think Gaurav is correct, you can recover to the last commit even in NOARCHIVELOG, as long as all the changes in the redo logs have not been overwritten. So answer should be B for question 2.
Here is my test:
SQL> select log_mode from v$database;
LOG_MODE
NOARCHIVELOG
SQL> select tablespace_name, file_name from dba_data_files;
TABLESPACE_NAME
FILE_NAME
USERS
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\USERS01.DBF
SYSAUX
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\SYSAUX01.DBF
UNDOTBS1
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\UNDOTBS01.DBF
SYSTEM
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\SYSTEM01.DBF
DATA
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\DATA01.DBF
SQL> create table names
2 ( name varchar(16))
3 tablespace users;
Table created.
so this segment 'names' is created in the datafile users01.
At this point I shut down and mount the DB, then:
RMAN> backup database;
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:29
Finished backup at 06-OCT-07
SQL>alter database open
SQL> insert into names values ('pippo');
1 row created.
SQL> commit;
Commit complete.
SQL>shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
At this point I delete datafile users01 and restart:
SQL> startup
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1247900 bytes
Variable Size 67110244 bytes
Database Buffers 96468992 bytes
Redo Buffers 2945024 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
ORA-01110: data file 4: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\USERS01.DBF'
restoring the backup taken before inserting the value 'pippo' in table names:
RMAN> restore database;
Starting restore at 06-OCT-07
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\SYSTEM01.D
BF
restoring datafile 00002 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\UNDOTBS01.
DBF
restoring datafile 00003 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\SYSAUX01.D
BF
restoring datafile 00004 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\USERS01.DB
F
restoring datafile 00005 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORA101RC\DATA01.DBF
channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\DB_1\DATA
BASE\0AITR52K_1_1
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\0AITR52K_1_1 tag=TAG20071006
T181337
channel ORA_DISK_1: restore complete, elapsed time: 00:02:07
Finished restore at 06-OCT-07
RMAN> recover database;
Starting recover at 06-OCT-07
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:05
Finished recover at 06-OCT-07
SQL> alter database open;
Database altered.
SQL> select * from names;
NAME
pippo
SQL>
enrico -
What if all the redo logs of a database are lost
I want to know how a database can be recovered if all the three redo logs are lost at the same time.
Thanks,
Prabhath.You will be able to find the detail procedures of this kind of recover here:
Backup and Recovery Concepts Contents / Search / Index / PDF
Backup and Recovery Documentation Online Roadmap Contents / Search / /
Recovery Manager Quick Reference Contents / Search / / PDF
Recovery Manager Reference Contents / Search / Index / PDF
Recovery Manager User's Guide Contents / Search / Index / PDF
http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
if you are making backups to the database using RMAN the recover is easier.
Joel Pérez -
Lost seq of redo log due to corruption and cannot recover database.
Hi!
This db I am working on is a test database running 10.2.0.3 on OEL5. Unfortunately due to some human error, we lost the redo log sequence 1_28_xxxxxx.redo. As this was a non-critical db, we didn't plan any backups for the db... and now whenever I try to open the db I get the error:
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/opt/app/oracle/oradata/tadb1/system01.dbf'
SQL> recover until cancel
ORA-00279: change 510956 generated at 08/31/2010 22:00:17 needed for thread 1
ORA-00289: suggestion :
/opt/app/oracle/oradata/tadb1/archive/1_28_728336713.dbf
ORA-00280: change 510956 for thread 1 is in sequence #28
SQL> recover database until time '31-AUG-2010 22:00:00';
ORA-00283: recovery session canceled due to errors
ORA-00314: log 1 of thread 1, expected sequence# 28 doesn't match 0
ORA-00312: online log 1 thread 1: '/opt/app/oracle/oradata/tadb1/redo01.log'
Is there a way to open the database!?
Thanks,
AB007Sorry for the late response guys... had called it a night earlier... well, I tried your suggestion... but still, the database can't recover -
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 510958 generated at 09/02/2010 23:56:37 needed for thread 1
ORA-00289: suggestion : /opt/app/oracle/oradata/tadb1/archive/1_1_728697397.dbf
ORA-00280: change 510958 for thread 1 is in sequence #1
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
CANCEL
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/opt/app/oracle/oradata/tadb1/system01.dbf'
ORA-01112: media recovery not started
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
ALERT LOG
ALTER DATABASE RECOVER database using backup controlfile until cancel
Fri Sep 3 10:14:22 2010
Media Recovery Start
WARNING! Recovering data file 1 from a fuzzy file. If not the current file
it might be an online backup taken without entering the begin backup command.
WARNING! Recovering data file 2 from a fuzzy file. If not the current file
it might be an online backup taken without entering the begin backup command.
WARNING! Recovering data file 3 from a fuzzy file. If not the current file
it might be an online backup taken without entering the begin backup command.
WARNING! Recovering data file 4 from a fuzzy file. If not the current file
it might be an online backup taken without entering the begin backup command.
parallel recovery started with 2 processes
ORA-279 signalled during: ALTER DATABASE RECOVER database using backup controlfile until cancel ...
Fri Sep 3 10:14:25 2010
ALTER DATABASE RECOVER CANCEL
ORA-1547 signalled during: ALTER DATABASE RECOVER CANCEL ...
Fri Sep 3 10:14:26 2010
ALTER DATABASE RECOVER CANCEL
ORA-1112 signalled during: ALTER DATABASE RECOVER CANCEL ...
Fri Sep 3 10:14:43 2010
alter database open resetlogs
Fri Sep 3 10:14:43 2010
RESETLOGS is being done without consistancy checks. This may result
in a corrupted database. The database should be recreated.
RESETLOGS after incomplete recovery UNTIL CHANGE 510958
Resetting resetlogs activation ID 2129258410 (0x7ee9e7aa)
Online log /opt/app/oracle/oradata/tadb1/redo02.log: Thread 1 Group 2 was previously cleared
Online log /opt/app/oracle/oradata/tadb1/redo03.log: Thread 1 Group 3 was previously cleared
Fri Sep 3 10:14:45 2010
Setting recovery target incarnation to 3
Fri Sep 3 10:14:45 2010
Assigning activation ID 2129271722 (0x7eea1baa)
Thread 1 opened at log sequence 1
Current log# 1 seq# 1 mem# 0: /opt/app/oracle/oradata/tadb1/redo01.log
Successful open of redo thread 1
Fri Sep 3 10:14:45 2010
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Fri Sep 3 10:14:45 2010
SMON: enabling cache recovery
Fri Sep 3 10:14:45 2010
Errors in file /opt/app/oracle/admin/tadb1/udump/tadb1_ora_5949.trc:
ORA-00600: internal error code, arguments: [4000], [6], [], [], [], [], [], []
Fri Sep 3 10:14:45 2010
Errors in file /opt/app/oracle/admin/tadb1/udump/tadb1_ora_5949.trc:
ORA-00704: bootstrap process failure
ORA-00704: bootstrap process failure
ORA-00600: internal error code, arguments: [4000], [6], [], [], [], [], [], []
Fri Sep 3 10:14:45 2010
Error 704 happened during db open, shutting down database
USER: terminating instance due to error 704
Instance terminated by USER, pid = 5949
ORA-1092 signalled during: alter database open resetlogs... -
Recover when Online Redo Log lost.
Hi,all.
How do I recover the db while all the online redo log files were lost.
The database is running in archive mode and all the archived redo log files were saved well.
But since last hot backup,I have done some table inserting with nologging.
Now the database can not be opened.
Who can tell me how to recover the db to the recent state.
I remember the db was shutdown immediate.
(Do it make any difference to online redo log file between shutdown immediate and abort?)
Thanks.
wy.I find out if I shutdown immediate and remove all the redo log files,I can recover the database as below:
SQL> startup
ORACLE instance started.
Total System Global Area 109164572 bytes
Fixed Size 75804 bytes
Variable Size 59498496 bytes
Database Buffers 49512448 bytes
Redo Buffers 77824 bytes
Database mounted.
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: 'D:\ORACLE\ORADATA\ORCL\REDO03.LOG'
SQL> recover database until cancel
Media recovery complete.
SQL> alter database open resetlogs;
Database altered.
but if I shutdown abort,I can not recover the database.
SQL> startup
ORACLE instance started.
Total System Global Area 109164572 bytes
Fixed Size 75804 bytes
Variable Size 59498496 bytes
Database Buffers 49512448 bytes
Redo Buffers 77824 bytes
Database mounted.
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: 'D:\ORACLE\ORADATA\ORCL\REDO03.LOG'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) O5M3UR2;5=V86(5DND<~!#
SQL> recover database until cancel
ORA-00279: change 690879 generated at 08/09/2004 16:34:04 needed for thread 1
ORA-00289: suggestion : D:\ORACLE\ORADATA\ORCL\ARCHIVE\ORCLT001S00002.ARC
ORA-00280: change 690879 for thread 1 is in sequence #2
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00279: change 690963 generated at 08/09/2004 16:34:08 needed for thread 1
ORA-00289: suggestion : D:\ORACLE\ORADATA\ORCL\ARCHIVE\ORCLT001S00003.ARC
ORA-00280: change 690963 for thread 1 is in sequence #3
ORA-00278: log file 'D:\ORACLE\ORADATA\ORCL\ARCHIVE\ORCLT001S00002.ARC' no
longer needed for this recovery
ORA-00308: cannot open archived log
'D:\ORACLE\ORADATA\ORCL\ARCHIVE\ORCLT001S00003.ARC'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) O5M3UR2;5=V86(5DND<~!#
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF'
SQL> recover database until cancel
ORA-00279: change 690963 generated at 08/09/2004 16:34:08 needed for thread 1
ORA-00289: suggestion : D:\ORACLE\ORADATA\ORCL\ARCHIVE\ORCLT001S00003.ARC
ORA-00280: change 690963 for thread 1 is in sequence #3
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
CANCEL
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF'
ORA-01112: media recovery not started
SQL> ALTER DATABASE OPEN RESETLOGS;
ALTER DATABASE OPEN RESETLOGS
ERROR at line 1:
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF'
So How to recover the database when the db shutdown abort and all the online redo log were lost? -
REDO log files lost!!!!!
Hi,
I lost my REDO log files, How i can recover???
Thanks
Ashish JainIt failes at the recovery! Is there anything else i can do? Btw Thanks for helping me with this problem!
SQL> recover database until cancel;
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
ORA-00905: missing keyword
SQL> recover database using backup controlfile until cancel
ORA-00279: change 21344768 generated at 09/10/2008 11:54:49 needed for thread 1
ORA-00289: suggestion :
/u01/app/oracle/infrastructure/flash_recovery_area/ASDBDEV/archivelog/2008_09_11
/o1_mf_1_2545_%u_.arc
ORA-00280: change 21344768 for thread 1 is in sequence #2545
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/u02/oradata/asdbdev/asdbdev/system01.dbf'
ORA-01112: media recovery not started -
Dataguard lost both Primary redo log and standby redo log files
Hi,
I am new to data guard, i came acorss a scenario where we loose both primary redo log file and standby redo log files.
Can someone please help me understand how to recover from this situation.
Thanks!>loose both primary redo log file and standby redo log files
We have to be very clear.
There are (set A) online redo log files and (set B) standby redo log files at (location 1) Primary and (location 2) Standby.
The standby redo log files, depending on the configuration, aren't strictly mandatory. The standby can be applying redo without online redo log files present as well, depending on how it was setup.
So, the question is : Did you lose online redo log files at the primary ? Didn't the primary shutdown itself then ? If so, you have to do an incomplete recovery at the primary OR switch over to the standby (which may or may not have received the last transaction, depending on how it was configured and operating) OR restore from the standby (again, with possible loss of transactions) to the primary.
Hemant K Chitale -
How to recover database when all redo logs are losted
pls help me in recovering the database when all the redo logs are losted
In both cases he has to open the database in RESETLOGS option. So try:
recover database until cancel;
Then cancel the recovery, and
alter database open resetlogs;
If you want to check where your database is at then mount your database and issue:
select group#, sequence#,first_change# from v$log;
This will tell you the sequence and SCN of all the online log files then compare it with what it prompted when you issued recovery command.
Daljit Singh -
How to disable write to redo log file in oracle7.3.4
in oracle 8, alter table no logged in redo log file like: alter table tablename nologging;
how to do this in oracle 7.3.4?
thanks.user652965 wrote:
Thanks very much for your help guys. I appreciate it. unfortunately none of these commands worked for me. I kept getting error on clearing logs that redo log is needed to perform recovery so it can't be cleared. So I ended up restoring from earlier snapshot of my db volume. Database is now open.
Thanks again for your input.And now, as a follow-up, at a minimum you should make sure that all redo log groups have at least 3 members. Then, if you lose a single redo log file, all you have to do is shutdown the db and copy one of the good members (of the same group as the lost member) over the lost member.
And as an additional follow-up, if you value your data you will run in archivelog mode and take regular backups of the database and archivelogs. If you fail to do this you are saying that your data is not worth saving. -
Restore in noarchivelog mode ( redo log files have been dropped )
1, A full backup taken using RMAN is available on disk.
2, The current control files were NOT damaged and do not need to be restored.
3, All data files are damaged .
4, The database is in NOARCHIVELOG mode.
I restore database :
1. RMAN> STARTUP MOUNT
2. RMAN> RESTORE DATABASE;
3. RMAN> recover database;
in this step , I got the information about needing redo log files ; but the redo log
files have been dropped , what should i do ?
else
I want to know there is the command 'recover database using backup control file'
in rman or not ?
TksPossibly loss of data (because information in online redo logs is lost):
recover database until cancel;
(cancel immediately)
alter database open resetlogs; (to build a new set of redo logs)
It's not necessary to use a backup controlfile here.
Maybe you are looking for
-
POI getCellStyle and empty string problem
I'm having a problem getting the style of a cell from and excel input file and setting to an output file. I also have a problem recognizing blank cells that are not null in the input file here is my code any help would be great. package Trace; import
-
How to remove the display of DECIMALS in ALV? Any Falg?
Hi Experts, One simle dount that, I am getting some values in some fields as 12.34; 11.22 etc - 2 decimals, but, am looking to hv as 12; 11 - NO DECIMALS. So, I looked any flag in Fileds catalog, Lay out in SLIS, but, did not find any flag? now, am g
-
How do I get sync data from my mobile device to the new hard drive in my computer?
My hard drive crashed and I need to get my synced data back and the instructions for doing so aren't adequately explaining how to do so. I have my mobile device in my hand, which has my Firefox data on it. I can't find the sync key. It is telling me
-
New MacBook Pro 15" won't authorize my iTunes to sync with my other Apple devices, iPad, iMac, iPod and other MacBook Pro 17" since I have authorized other devices (5 is the limit) that I no longer own. How do I get passed this severe limitation? I a
-
Delete project and render files etc
Is it possible to delete a project and all render files related to the specific project?