Not able to open database in Oracle [message #662176] |
Thu, 20 April 2017 01:22 |
|
Patel86
Messages: 7 Registered: April 2017
|
Junior Member |
|
|
I am facing an issue where i am not able to open the database. Gettting the error "ORA-00312: online log 2 thread 1: '/u01/app/oracle/fast_recovery_area/XE/onlinelog/o1_mf_2_dgy5sxv5_.log'"
Since i am unable to open the database, i cant do log switching. If anyone has faced this issue, please share the inputs to overcome above error and open the database. Tried all the different ways mentioned in different forums but still stuck.
SQL> ALTER SYSTEM SWITCH LOGFILE
2 ;
ALTER SYSTEM SWITCH LOGFILE
*
ERROR at line 1:
ORA-01109: database not open
SQL> ALTER SYSTEM ARCHIVE LOG GROUP 2;
ALTER SYSTEM ARCHIVE LOG GROUP 2
*
ERROR at line 1:
ORA-00259: log 2 of open instance XE (thread 1) is the current log, cannot archive
|
|
|
|
Re: Not able to open database in Oracle [message #662181 is a reply to message #662178] |
Thu, 20 April 2017 01:48 |
|
Patel86
Messages: 7 Registered: April 2017
|
Junior Member |
|
|
I want to Open the database, but because of that error i am unable to do that.
Since this log is the CURRENT log, i am unable to DROP it.
SQL> ALTER DATABASE DROP LOGFILE GROUP 2;
ALTER DATABASE DROP LOGFILE GROUP 2
*
ERROR at line 1:
ORA-01623: log 2 is current log for instance XE (thread 1) - cannot drop
ORA-00312: online log 2 thread 1: '/u01/app/oracle/fast_recovery_area/XE/onlinelog/o1_mf_2_dgy5sxv5_.log'
Is there any way where we can perform the log switch offline ?
[Updated on: Thu, 20 April 2017 01:50] Report message to a moderator
|
|
|
Re: Not able to open database in Oracle [message #662182 is a reply to message #662181] |
Thu, 20 April 2017 01:52 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Please use [code] tags when you post. I have already directed you towards a doc describing them, if you are not familiar with the standard [bb] tags.
If your problem is that you cannot open the database, you should show the error (and stop going on about the redo log).
|
|
|
|
Re: Not able to open database in Oracle [message #662185 is a reply to message #662183] |
Thu, 20 April 2017 02:36 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
You need to give a lot more detail on how you got into this situation. Did you, for example, copy online logfile members by hand?
In principal, if your current group is damaged then your only option is incomplete recovery: restore all the datafiles from backup and recover up to the damaged sequence number.
|
|
|
|
|
|
|
Re: Not able to open database in Oracle [message #662193 is a reply to message #662189] |
Thu, 20 April 2017 07:36 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Restore all the datafiles and then
SHU ABORT;
STARTUP MOUNT;
RECOVER DATABASE UNTIL CHANGE 21317324;
ALTER DATABASE OPEN RESETLOGS;
you may have to take the change number a bit further back, but try the above first. You will of course have lost all work done later on.
|
|
|
|
|
|
|
|
|