<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oracle Database Administration Blog &#187; Restore and Recovery</title>
	<atom:link href="http://www.bestremotedba.com/topics/database-administration/restore-and-recovery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bestremotedba.com</link>
	<description>Oracle Database Administration Blog</description>
	<lastBuildDate>Tue, 07 Sep 2010 03:32:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>ORA-01113 &#8211; On Renaming file Mistakenly</title>
		<link>http://www.bestremotedba.com/ora-01113-on-renaming-file-mistakenly/</link>
		<comments>http://www.bestremotedba.com/ora-01113-on-renaming-file-mistakenly/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 06:53:33 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Restore and Recovery]]></category>
		<category><![CDATA[ORA-01113 - On Renaming file Mistakenly]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=572</guid>
		<description><![CDATA[ORA-01113 - On Renaming file Mistakenly]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>Incident<br />
	DBA tried to add a datafile to database, but misnamed it and issued the following command</p>
<p>		alter database datafile &#8216;/opt/oracle/emtprod/u18/oradata/EMTDB/mtm_data3_03_EMTDB.dbf&#8217; offline drop;</p>
<p>	Copied the file to it&#8217;s new location/name and then issued the following</p>
<p>	alter database rename file &#8216;/opt/oracle/emtprod/u18/oradata/EMTDB/mtm_data3_03_EMTDB.dbf&#8217;<br />
									to &#8216;/opt/oracle/emtprod/u20/oradata/EMTDB/mtm_data2_04_EMTDB.dbf&#8217;;</p>
<p>	When dba made the datafile online &#8230;</p>
<p>	alter database datafile &#8216;/opt/oracle/emtprod/u20/oradata/EMTDB/mtm_data2_04_EMTDB.dbf&#8217; online;</p>
<p>	DBA received the following error </p>
<p>		ERROR at line 1:<br />
		ORA-01113: file 26 needs media recovery<br />
		ORA-01110: data file 26: &#8216;/opt/oracle/emtprod/u20/oradata/EMTDB/mtm_data2_04_EMTDB.dbf&#8217;</p>
<p>Solution:</p>
<p>	If this happened just a few minutes ago, Just needed to do<br />
		SQL> alter database recover datafile &#8230;&#8230;</p>
<p>	Brought file back into offline mode and then you will be able to online the file.  </p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/ora-01113-on-renaming-file-mistakenly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to determine whether the datafiles are synchronized or not</title>
		<link>http://www.bestremotedba.com/how-to-determine-whether-the-datafiles-are-synchronized-or-not/</link>
		<comments>http://www.bestremotedba.com/how-to-determine-whether-the-datafiles-are-synchronized-or-not/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 07:30:15 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Restore and Recovery]]></category>
		<category><![CDATA[How to determine whether the datafiles are synchronized or not]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=561</guid>
		<description><![CDATA[How to determine whether the datafiles are synchronized or not]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>select status, checkpoint_change#,<br />
       to_char(checkpoint_time, &#8216;DD-MON-YYYY HH24:MI:SS&#8217;) as checkpoint_time,<br />
       count(*)<br />
from v$datafile_header<br />
group by status, checkpoint_change#, checkpoint_time<br />
order by status, checkpoint_change#, checkpoint_time;</p>
<p>Check the results of the above query If it return one and only one row for the online datafiles, means they are already synchronized in terms of their SCN. Otherwise the datafiles are still not synchronized yet. </p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/how-to-determine-whether-the-datafiles-are-synchronized-or-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-01122: database file xxx failed verification check</title>
		<link>http://www.bestremotedba.com/ora-01122-database-file-xxx-failed-verification-check/</link>
		<comments>http://www.bestremotedba.com/ora-01122-database-file-xxx-failed-verification-check/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 07:45:43 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Restore and Recovery]]></category>
		<category><![CDATA[ORA-01122: database file xxx failed verification check]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=540</guid>
		<description><![CDATA[ORA-01122: database file xxx failed verification check]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>Error Message :<br />
SQL> startup<br />
ORACLE instance started.</p>
<p>Total System Global Area 2264924160 bytes<br />
Fixed Size                  2022408 bytes<br />
Variable Size             150995960 bytes<br />
Database Buffers         2097152000 bytes<br />
Redo Buffers               14753792 bytes<br />
Database mounted.<br />
ORA-01122: database file 10 failed verification check<br />
ORA-01110: data file 10: &#8216;/opt/oracle/xxxxx/xxxxx.dbf&#8217;<br />
ORA-01207: file is more recent than control file &#8211; old control file</p>
<p>Suggestion:</p>
<p>1. Take a trace of controlfile.</p>
<p>SQL > alter database backup controlfile to trace;</p>
<p>2. You can find the file in userdump dest. Open the trace file and edit for neccesary changes.</p>
<p>  You can create control file script using two methods depends on RESETLOGS/NORESETLOGS</p>
<p>3. Startup the database in nomount state.</p>
<p>SQL > startup nomount</p>
<p>4. Run the controlfile script create in step 2</p>
<p>SQL > @cfile.sql</p>
<p>5. Recover the db</p>
<p>SQL > recover database using backup controlfile</p>
<p>6. Open the database.</p>
<p>SQL > alter database open;</p>
<p>&#8212;&#8211; Recover and Open Database command varies depends on the method you are using to create control file. Best option is alwasy read through your Trace file.</p>
<p>For NORESETLOGS &#8211; You have to use the following Command<br />
RECOVER DATABASE<br />
ALTER DATABASE OPEN;<br />
ALTER TABLESPACE TEMP ADD TEMPFILE &#8216;/xxx/xxxx/Temp01.dbf&#8217; REUSE;</p>
<p>For RESETLOGS &#8211; You have to use the following Command<br />
RECOVER DATABASE USING BACKUP CONTROLFILE<br />
ALTER DATABASE OPEN RESETLOGS;<br />
ALTER TABLESPACE TEMP ADD TEMPFILE &#8216;/xxx/xxxx/Temp01.dbf&#8217; REUSE;</p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/ora-01122-database-file-xxx-failed-verification-check/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ORA-00600:[Kccrbl_stale] at Startup Mount</title>
		<link>http://www.bestremotedba.com/ora-00600kccrbl_stale-at-startup-mount/</link>
		<comments>http://www.bestremotedba.com/ora-00600kccrbl_stale-at-startup-mount/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 13:47:13 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Database Administration]]></category>
		<category><![CDATA[Restore and Recovery]]></category>
		<category><![CDATA[Kccrbl_stale]]></category>
		<category><![CDATA[ORA-00600:[Kccrbl_stale]]]></category>
		<category><![CDATA[ORA-00600:[Kccrbl_stale] at Startup Mount]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=523</guid>
		<description><![CDATA[ORA-00600:[Kccrbl_stale] at Startup Mount]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>ORA-00600:[Kccrbl_stale] at Startup Mount<br />
Scenario:<br />
     One of our Test Database was running on Unix with 10g Rel1.<br />
Due to power outage database went down when the sever comes up<br />
and we tried to startup the database but we got ORA-600 with<br />
first argument as &#8220;Kccrbl_stale&#8221;.</p>
<p>Reason: Control file header is corrupted.</p>
<p>Solution :<br />
   Anyone solution based on the backup method you use<br />
     1. Restore the backup of controlfile and do complete recovery<br />
     2. Recreate control file from using the script generated<br />
     3. Recreate the control file manually with &#8220;NORESETLOGS&#8221; </p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/ora-00600kccrbl_stale-at-startup-mount/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-01113 &#8211; No Archive Log Mode &#8211; No Backup</title>
		<link>http://www.bestremotedba.com/ora-01113-no-archive-log-mode-no-backup/</link>
		<comments>http://www.bestremotedba.com/ora-01113-no-archive-log-mode-no-backup/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 08:44:07 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Restore and Recovery]]></category>
		<category><![CDATA[No Archive Log Mode]]></category>
		<category><![CDATA[No Backup]]></category>
		<category><![CDATA[ORA-01110]]></category>
		<category><![CDATA[ORA-01113]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=502</guid>
		<description><![CDATA[ORA-01113 - No Archive Log Mode - No Backup]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p><strong>Scenario:</strong>  It is a Testing Database while Testing Import Database Storage got falied and Import aborted.<br />
Restarted the storage and while trying to bring the Database up we got ORA-01113</p>
<p>		1. Database is on No Archive Log Mode<br />
		2. There is no Cold Backup of the Database</p>
<p><strong>Solution:</strong><br />
	Since there is no Backup and database is not in archive log mode. We will not be able to go for Restore or Reocovery process.<br />
	Only way is to drop the Datafile and bring the database up.</p>
<p><strong>Example:</strong><br />
SQL> alter database open;<br />
alter database open<br />
*<br />
ERROR at line 1:<br />
ORA-01113: file 5 needs media recovery<br />
ORA-01110: data file 5: &#8216;/u01/test/users02.dbf&#8217;</p>
<p>SQL> select file#,name, status from v$datafile where file#=5;</p>
<p>     FILE# 	NAME														STATUS<br />
&#8212;&#8212;&#8212;- 	&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-  &#8212;&#8212;&#8212;&#8211;<br />
         5 	/u01/test/users02.dbf 				ONLINE</p>
<p>SQL></p>
<p>SQL> alter database datafile &#8216;/u01/test/users02.dbf&#8217; offline drop;</p>
<p>Database altered.</p>
<p>SQL> alter database open;</p>
<p>Database altered.</p>
<p>SQL></p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/ora-01113-no-archive-log-mode-no-backup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
