Recover database in NOarchivelog mode :)
Hi all. How to recover a database wich is in noarchivelog mode? B-)
Suppose,
I have 3 redolog groups (with two members in each, the second members are located on another drive ). When first redo log group was 1/2 full I took a full backup. Then there were 2 switches from first to second and from second to third. Now the currnet redolog group - 3 (just started). At this point we faced media failer. How to roll forward changes using backup + online redologs?
Edited by: Junior Oracle DBA on Oct 16, 2008 1:53 PM
Restore your database cold backup (excluding redo logs).
Then issue this command :
RECOVER DATABASE USING BACKUP CONTROLFILE
provide the names of the last ACTIVE / CURRENT Redo Logs in the database when Oracle prompts for an ArchiveLog.
When Oracle has finished recovery to a consistent point in time, it will return to the command prompt without any error.
Now issue this command :
ALTER DATABASE OPEN RESETLOGS
You would have a Complete Recovery.
This is provided that Oracle had NOT cycled through all the Online Redo Logs since the time when the Cold Backup was taken. (If Oracle had cycled through all the Online Redo Logs, it would have overwrriten the oldest log because it wasn't in ArchiveLog mode).
Hemant K Chitale
http://hemantoracledba.blogspot.com
Similar Messages
-
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Hi All,
Need help from the gurus.
Currently we are in state unable to do anything.
Was using a database and all of a sudden it crashed. Tried to mount the database, open it, it failed. Also tried the recover and alter database open, even that failed. Errors are as follows.
Errors in file e:\oracle\product\10.2.0 \admin\devrevdb\bdump\devrevdb_p000_2620.trc:
ORA-00603: ORACLE server session terminated by fatal error
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
ORA-00449: background process 'DBW0' unexpectedly terminated with error 1242
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
In my spfile, the administrator has set only two control files and there is no mirroring and hence do not have another control file that will help me boot the db.
Please let me know how I should go about it. I am only a timebeing person trying to carryout a db activity. Any help would be of great help.Hemant,
thanks for the reply.
I tried the way you suggested and it threw an error.
ORA-01145: offline immediate disallowed unless media recovery enabled
I searched and found that an additional tag of drop needs to be added to the command which you suggested.
ALTER DATABASE DATAFILE '<filename>' OFFLINE DROP.
i don't know what will the drop command have an effect ?
i have copied the data file to another location. Since i don't know much, i just want to be sure of what im doing.
if the above command is successfull, will it drop the datafile or the tablespace and i can no more use it. How can i use the copied datafile.
Thanks,
Sachin
I -
Database in noarchivelog mode, truncate command issued
Database in noarchivelog mode, truncate command has been issued how to restore the table?
FACTS:-
1. DB In noarchivelog Mode
2. Cannot enable flash back mode because of 1. above
3. No exports available
4. No backup's Available.
Any thoughts ?Oracle Support/ Professional Services has a Data Unloader (DUL) and ORA-00600 has DUDE, both of which may be able to extract information from data files that are corrupted, where the control files are lost, etc.
These are not, however, cheap utilities. Unless the data itself is really valuable, it is generally not a viable option.
Justin -
Running a physical standby database in noarchivelog mode
Primary Database: 2 node rac cluster, 11.2.0.2 GI and RDBMS
Standby Database: single instance 11.2.0.2
OS: AIX 7.1
Hello,
I'm in the process of implementing a data guard standby system. To make this system simpler to admin, I want to run the standby database in NOARCHIVELOG mode. This standby is used only as a mirror of production (to be copied to a 3rd site for separate user activity) and will never be switched to active mode. Maintaining another set of archive logs seems to be redundant to me and another point of failure, so I want to disable archiving. I wanted to ask if any of the DG experts on the forums have ever had experience with this? Does anyone know if this is recommended? I've searched the Oracle Data guard documentation online... it says that the primary obviously needs to be in archive mode, but I'm not seeing anything specific about the standby. Please let me know if anyone has experience with this.
ThanksHello again;
If this is the case, then I have nothing to worry about here. Does that sound right to you?Yes.
For this :
b) monthly, shutdown this system and copy it to a 3rd site to host a separate set of business activityI would consider RMAN Duplicate in which case you may avoid the shutdown.
And for this :
resync the "mirror" with productionAll you have to do if DEFER the primary to the standby, then ENABLE and Data Guard will catch up.
--- Will post a detailed example here in a moment.
Right at the first of the year they wanted to work on our Primary server room ( Power ). What I did was switchover to the Standby but I kept log_archive_dest_state_2 on the new primary set to DEFER. Then I shutdown
all the databases at the Primary site. At the end of work two days later I started the databases at the Primary site in standby mode. Switched log_archive_dest_state_2 to ENABLE. When the databases were back in SYNC
I did another switchover and it was done. I used TAF and none of the users even noticed.
Best Regards
mseberg -
Changing database to noarchivelog mode during impdp
Hi Guys,
I am using Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production on RHEL5.
I am in the middle on the impdp and I want my database to run on noarchivelog as it creates a lot of archivelogs.
Will it be proper if I stop the import:
e.g Import> STOP_JOB=IMMEDIATE
and shutdown the database put the database on noarchivelog mode.
then opne database and
impdp hr/hr@mydb ATTACH=myfulljob Will these work fine?
Or should I execute:
alter system archive log stop;
Please Help !!!!!!!!!!!Vinod Dhandapani wrote:
Running the database in Noarchivelog mode means you should be ready to lose data incase there is any crash. I would recommend you to change the size of the redologs so that it will not create frequent archivelogs. Which does nothing about the space required for the archivelogs. If you are generating redo at the rate of 1gb/hour, you will consume archivelog dest space at the rate of 1gb/hour. Doesn't matter if those files are 10mb each or 100mb each.
If space is the problem then use a shell script to move the archivelog to another location (Tape)....And hopefully that shell script is invoking rman to do the work, so that in the event of recovery, rman will know that backups were taken and where they are located.
>
Incase you want to convert the database from archivelog to noarchivelog, follow the steps provided in the following link.
http://racadmin.blogspot.com/2011/06/convert-archivelog-mode-to-noarchivelog.html
Thanks -
Recover datafile in noarchivelog mode
hi all
i faced problem when opening the database that there are datafile needed recovery
i'm working in noarchivelog mode
i tried to take this datafile offline but this failed
what are the exactly procedures to recover this file ?i tried to take this datafile offline but this failed Please check your alert log file. Since you are working with noarchivelog mode. You must be having a backup. Do you ?
what are the exactly procedures to recover this file ?You have not provided enough information but here are hints;
- What kind of backups you have? Rman or user managed backups?
Also read;
http://www.oracle.com/technology/documentation/index.html
Ex Senior DBA
Lazy: Those who do not read documentation -
System datafile block corruption - no backups and database in NOARCHIVELOG mode
Dear All,
Database version - oracle 11.1 Enterprise
OS - RHELinux 5.8
What are the options of recovering from physical block corruption when there are no backup available to perform block media recovery?
V$DATABASE_BLOCK_CORRUPTION reports two segments corrupted (please see attached image for details).
1 table in system datafile - sys_fba_barrierscn
1 index - (applicaiton index)
What are my options?
I know there is a possibility that the database will not restart after a shutdown due to corruption in system tablespace.
Database is in noarchivelog mode. So online backups are not possible and there aren't any full backups either.
I am thinking of below,
1. Run dbms_repair with fix_block_corruption. - Still database startup might fail?
2. Shutdown the database and take offline full backup with RMAN MAXCorrupt option.
Appreciate your suggestions and advises.
Thanks
StefanThanks Sybrand,
Agree with your first two suggestions .
Also scheduled a expdp job tonight. (Only backup like thing they had was a expdp cron, but until today all the large tables were failing due to small undo_retention).
Yes. Flashback is not used. So hopefully it will not affect the a database restart i guess?
Related to dbms_repair, I was referring to - http://askdba.org/weblog/2010/08/physical-corruption-ora-1578-part-3/.
Where DBMS_REPAIR.FIX_CORRUPT_BLOCKS and DBMS_REPAIR.SKIP_CORRUPT_BLOCKS used.
Which i think will not use any redo.
Thanks
Stefan -
[HELP]Recover database from NOarchivelog
HAi all...
I run oracle 9.2.0.4 on linux, NOARCHIVELOG
I got this error when I tried to restore from my backup with create new control file.
SQL> Alter database open resetlogs
ORA-01113: file 1 need media recovery
ORA-01110: datafile 1: '/home/oracle/OraHome1/oradata/Mir/system01.dbf'
SQL> recover database;
ORA-00283: recovery session canceled due to error
ORA-01610: recovery using backup controlfile options must be done
SQL> recover database until cancel using backup controlfile;
ORA-00279: change 136236075 generated at 06/14/2006 19:23.03 need for thread 1
ORA-00289: suggestion: /home/oracle/Orahome1/dbs/arch_1053.dbf
ORA-00280: change 136236075 for thread 1 is in sequence #1053
specify log:
AUTO
ORA-00308: cannot open archived log '/home/oracle/OraHome1/dbs/arch1_1053.dbf'
ORA-27037: unable to obtain file status
Linux error; 2 : no such file or directory
ORA-01547: warning recover secceeded but open resetlogs would get error below
ORA-01194: file 1 need more recovery to be consistent
ORA-01110: data file 1; '/home/oracle/OraHome1/oradata/Mir/system01.dbf'
How I solve this?
Why the oracle ask me archivelog log file...? I'm using noarchivelog mode?
Regard
ERI got this error when I tried to restore from my backup with create new control file.Are you sure your backup is consistent cold backup.
Cause: An incomplete recovery session was started, but an insufficient number of logs were applied to make the file consistent. The reported file was not closed cleanly when it was last opened by the database. It must be recovered to a time when it was not being updated. The most likely cause of this error is forgetting to restore the file from a backup before doing incomplete recovery.
Action: Either apply more logs until the file is consistent or restore the file from an older backup and repeat recovery. -
Can't backup database in NOarchivelog mode
Hi there,
I get this error when I run this command from rman:
backup database
Starting backup at 19-JAN-11
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 01/19/2011 17:18:10
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
please help.
Thanks in advance!user13286861 wrote:
ok it finally shutdown cleanly.
I altered it in archivelog mode.
Now I can run a backup database command from rman?What does it cost to try it and see? What would be the worst thing that could possibly happen? An error message saying you can't do that?
And please note, this forum is not a chat line. Operators are NOT standing by. Posting a new message every two minutes to give an update on the fact that the database hasn't shut down yet is not necessary and not productive.
If there are a lot of pending transactions when you issue SHUTDOWN IMMEDIATE, they will all have to be rolled back as part of the shutdown. That can take some time. And if you bypass that with SHUTDOWN ABORT, they will have to be rolled back as part of instance crash recovery on the next startup, which will also take some time. Five minutes may feel like an eternity when you are sitting there waiting for your command to complete, but is no reason to panic. -
How to set the database in NOARCHIVELOG mode
hellow world,
I knewly joined this organization.
Our database is very small < 4GB data.
Database is running in ARCHIVELOG MODE.
since we are not keeping any physical backup, so I opted to run the datbase in NOARCHIVELOG mode.
For bringing the database in NOARCHIVE MODE, I simply changed the init.ora parameter LOG_ARCHIVE_START = FALSE and restart the database.
offcourse the archiving stopped, but to my strange after 30 to 40 minutes my all log files filled an error message is being displayed to the server, saying
log files are filled, waiting for the archiving, Oh my God, What has happened, All users came to my head, DATABASE HANGED, NOT RESPONSING.
SIR, MY QUESTION IS
WHAT FOR ALL LOG FILES WAITING?
when i am saying NOARCHIEVE than
please explain me, where i committed mistake. I am new to ADMINISTRATION.1. Not keeping any physical backup is all the more reason to stay in archivelog mode.
2. You need to shutdown the database, startup mount, and issue 'alter database noarchivelog', the alter database open. -
Start database in NOARCHIVELOG mode
Hi,
I would like to know if there is a way to set some oracle paramete so that each time database is restarted, it comes up in NOARCHIEVELOG mode.
Regards,
Andrijayour answer is completelly wrong.
Please check description of log_archive_start parameter in documentation:
LOG_ARCHIVE_START
Parameter type
Boolean
Default value
false
Parameter class
Static
Range of values
true | false
Real Application Clusters
Multiple instances can have different values.
LOG_ARCHIVE_START is applicable only when you use the redo log in ARCHIVELOG mode. It indicates whether archiving should be automatic or manual when the instance starts up.
Values:
true
Indicates that archiving is automatic
false
Indicates that the database administrator will archive filled redo log files manually
The SQL*Plus statements ARCHIVE LOG START or ARCHIVE LOG STOP override this parameter.
In ARCHIVELOG mode, if all online redo log files fill without being archived, Oracle issues an error and suspends instance operations until the necessary archiving is performed. This delay is more likely if you use manual archiving. You can reduce its likelihood by increasing the number of online redo log files.
To use ARCHIVELOG mode while creating a database, set this parameter to true. Normally, a database is created in NOARCHIVELOG mode and then altered to ARCHIVELOG mode after creation. -
Recovery of datafile which is in RECOVER state in NOARCHIVELOG mode
Hi,
i have following datafile in recover state
12 /oradata/ORADATA/undo_tbs.dbf OFFLINE
I tried to recover but getting following errors....
SQL> recover datafile 12;
ORA-00279: change 29659636 generated at 03/26/2011 00:47:23 needed for thread 1
ORA-00289: suggestion : /u01/app/oracle/product/10.2.0/flash_recovery_area/ORCL/archivelog/2011_04_07/o1_mf_1_4608_%u_.arc
ORA-00280: change 29659636 for thread 1 is in sequence #4608
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
ORA-00308: cannot open archived log '/u01/app/oracle/product/10.2.0/flash_recovery_area/ORCL/archivelog/2011_04_07/o1_mf_1_4608_%u_.arc'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
due to this datafile we r not able to create tables...is there any solution except restoring from backup...Pl helpppSQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 6150
Current log sequence 6153
SQL>
this is the output
Edited by: 850520 on Apr 7, 2011 2:46 AM -
ORA-00257: archiver error. and database is noarchivelog mode
Hi,
I've a Oracle 10.2.0.4 64bit database under Windows. The database has been from the beginning in noarchive log mode. How is it possible it's generating ora-0257 errors?
regards,
IvanHelios and oradba,
This is the output of archive list:
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination d:\oradata\DBN\arch
Oldest online log sequence 5249
Current log sequence 5251
On D: there is 10 Gbyte free space. And the error in the alert-log is:
Thu Oct 06 08:30:37 2011
Errors in file d:\oracle\product\10.2.0\admin\dbn\bdump\dbn_j000_3612.trc:
ORA-12012: error on auto execute of job 143
ORA-00257: archiver error. Connect internal only, until freed.
Ivan -
My database in noarchivelog mode. How I can open it?
-bash-3.00$ sqlplus system as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 17 15:24:45 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select open_mode from v$database;
OPEN_MODE
MOUNTED
SQL> startup;
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01190: control file or data file 1 is from before the last RESETLOGS
ORA-01110: data file 1: '/oracle/app/oradata/Arju/system01.dbf'
SQL> !rman
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 17 15:27:28 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect target;
connected to target database: ARJU (DBID=222697548, not open)
RMAN> list backup;
using target database control file instead of recovery catalog
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
1 Full 521.71M DISK 00:01:11 11-JUL-07
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20070711T105344
Piece Name: /oracle/app/flash_recovery_area/ARJU/backupset/2007_07_11/o1_mf_nnndf_TAG20070711T105344_399vqr8f_.bkp
List of Datafiles in backup set 1
File LV Type Ckp SCN Ckp Time Name
1 Full 598070 11-JUL-07 /oracle/app/oradata/Arju/system01.dbf
2 Full 598070 11-JUL-07 /oracle/app/oradata/Arju/undotbs01.dbf
3 Full 598070 11-JUL-07 /oracle/app/oradata/Arju/sysaux01.dbf
4 Full 598070 11-JUL-07 /oracle/app/oradata/Arju/users01.dbf
5 Full 598070 11-JUL-07 /oradata1/test02.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
2 Full 6.80M DISK 00:00:01 11-JUL-07
BP Key: 2 Status: AVAILABLE Compressed: NO Tag: TAG20070711T105459
Piece Name: /oracle/app/flash_recovery_area/ARJU/autobackup/2007_07_11/o1_mf_s_627648694_399vt445_.bkp
Control File Included: Ckp SCN: 598070 Ckp time: 11-JUL-07
SPFILE Included: Modification time: 11-JUL-07
RMAN> restore database from tag TAG20070711T105344;
Starting restore at 17-JUL-07
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=158 devtype=DISK
skipping datafile 1; already restored to file /oracle/app/oradata/Arju/system01.dbf
skipping datafile 2; already restored to file /oracle/app/oradata/Arju/undotbs01.dbf
skipping datafile 3; already restored to file /oracle/app/oradata/Arju/sysaux01.dbf
skipping datafile 4; already restored to file /oracle/app/oradata/Arju/users01.dbf
skipping datafile 5; already restored to file /oradata1/test02.dbf
restore not done; all files readonly, offline, or already restored
Finished restore at 17-JUL-07
RMAN> ^D
Recovery Manager complete.
SQL> select log_mode from v$database;
LOG_MODE
NOARCHIVELOGIn 10gR2, you can drop a datafile, however the following restrictions apply:
* The database must be open.
* If a datafile is not empty, it cannot be dropped.
* You cannot drop the first or only datafile in a tablespace.
(This means that DROP DATAFILE cannot be used with a bigfile tablespace.)
* You cannot drop datafiles in a read-only tablespace.
* You cannot drop datafiles in the SYSTEM tablespace.
* If a datafile in a locally managed tablespace is offline, it cannot be dropped.
Otherwise, there is no SQL command that you can issue to delete all the files associated with a tablespace and still keep the tablespace. -
Database Recovery in NOARCHIVELOG Mode
Hi All,
I was trying to 'startup' my database & encountered the following error in the alert.log
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
ORA-01122: database file 469 failed verification check
ORA-01110: data file 469: '/ora/ctcm_uat02/CMOLP1/undo/CMOLP1_undots_30.dbf'
ORA-01209: data file is from before the last RESETLOGS
I then looked up on the internet and since the error was related to the UNDO TABLESPACE, i did the following:
sql>startup mount
sql>alter database datafile '/ora/ctcm_uat02/CMOLP1/undo/CMOLP1_undots_30.dbf' offline drop;
sql>alter database open
Thereafter the database kept on erroring on all the datafiles belonging to the undo tablespaces and i dropped all the datafiles belonging to the undo tablespace using the above command. (alter database datafile ....offline drop).
Next, i tried to open the database and got the following error from the alert log:
Tue May 12 18:15:24 2009
alter database open
Tue May 12 18:15:33 2009
Beginning crash recovery of 1 threads
Tue May 12 18:15:33 2009
Started redo scan
Tue May 12 18:15:33 2009
Completed redo scan
21 redo blocks read, 3 data blocks need recovery
Tue May 12 18:15:33 2009
Started recovery at
Thread 1: logseq 252, block 2, scn 1917.14626262
Tue May 12 18:15:33 2009
Recovery of Online Redo Log: Thread 1 Group 3 Seq 252 Reading mem 0
Mem# 0 errs 0: /ora/ctcm_dev/CMOLP1/redo/CMOLP1_redo03a.dbf
Tue May 12 18:15:33 2009
Completed redo application
Tue May 12 18:15:33 2009
Ended recovery at
Thread 1: logseq 252, block 23, scn 1917.14646284
3 data blocks read, 3 data blocks written, 21 redo blocks read
Crash recovery completed successfully
Tue May 12 18:15:35 2009
Thread 1 advanced to log sequence 253
Thread 1 opened at log sequence 253
Current log# 4 seq# 253 mem# 0: /ora/ctcm_dev/CMOLP1/redo/CMOLP1_redo04a.dbf
Successful open of redo thread 1
Tue May 12 18:15:38 2009
LOG_CHECKPOINT_INTERVAL was set when MTTR advisory was switched on.
Tue May 12 18:15:38 2009
SMON: enabling cache recovery
Tue May 12 18:15:38 2009
Successfully onlined Undo Tablespace 1.
Tue May 12 18:15:39 2009
SMON: enabling tx recovery
Tue May 12 18:15:39 2009
Database Characterset is US7ASCII
Tue May 12 18:15:39 2009
SMON: about to recover undo segment 1
Can someone please help me on this issue? Thanks and RegardsHi ERROR,
I think i figured out the hidden parameter that you were referring to.
(1) I set the allowresetlogs_corruption=TRUE and commented undo_management. Then opened the database using--> alter database open resetlogs;
But still was not able to start the database. The alert log entries are as below:
ALTER DATABASE MOUNT
Thu May 14 18:11:56 2009
Successful mount of redo thread 1, with mount id 4113112614
Thu May 14 18:11:56 2009
Database mounted in Exclusive Mode.
Completed: ALTER DATABASE MOUNT
Shutting down instance: further logons disabled
Shutting down instance (immediate)
License high water mark = 2
Thu May 14 18:12:05 2009
ALTER DATABASE CLOSE NORMAL
ORA-1109 signalled during: ALTER DATABASE CLOSE NORMAL...
Thu May 14 18:12:05 2009
ALTER DATABASE DISMOUNT
Completed: ALTER DATABASE DISMOUNT
ARCH: Archiving is disabled
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
ARCH: Archiving is disabled
Would be great if you can help me further on this.
Regards,
Fuzzy
Maybe you are looking for
-
Merge a remote database table using dblink
We have a merge statement running in source database which is merging to a table in remote database using db link. The remote table is partitonoed (interval) table.Source db is 10g and target is 11g. this merge statement is failing with error saying,
-
MBAM 2.5 SCOM Management Pack
With the newest release of MBAM 2.5 is there a SCOM management pack? Or will the original version 1 that has been released work with this?
-
I cannot open pdf with safari
-
Send/Receive multiple attachments using SwA (no MTOM)
Hello all, I would appreciate if someone can put me in the right direction about the following implementation: - web service method able to receive multiple attachment using weblogic tools (wsdlc, jwsc) without MTOM. I tried JAXRPC and JAXWS, startin
-
Table panel won't flow over 2 pages
I am busy with a job that has a couple of long tables in it, the text in one panel excedes my page size, how do I get it to run on to the next page? All I have is the little red dot bottom right. CS5 Lion Lou