<?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>Parm Patram &#187; Database Recovery</title>
	<atom:link href="http://oracle.3dub.com/category/administration/database-recovery/feed/" rel="self" type="application/rss+xml" />
	<link>http://oracle.3dub.com</link>
	<description>Oracle, Linux and UNIX tips, tricks and stuff</description>
	<lastBuildDate>Fri, 03 Feb 2012 18:14:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Recovery Scenario: bad datafile AND missing online redo</title>
		<link>http://oracle.3dub.com/2009/05/02/recovery-scenario-bad-datafile-and-missing-online-redo/</link>
		<comments>http://oracle.3dub.com/2009/05/02/recovery-scenario-bad-datafile-and-missing-online-redo/#comments</comments>
		<pubDate>Sun, 03 May 2009 01:50:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database Recovery]]></category>
		<category><![CDATA[RMAN]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=338</guid>
		<description><![CDATA[1. Trying to start the database using &#8217;startup&#8217; will fail trying to open the datafile. It will give the datafile number let&#8217;s say D.
2. Make sure we have backups of all the datafiles. In RMAN type:
REPORT NEED BACKUP REDUNDANCY 1;
If there are datafiles that were not backed up as yet, there are 2 options:
a) delete [...]]]></description>
			<content:encoded><![CDATA[<p>1. Trying to start the database using &#8217;startup&#8217; will fail trying to open the datafile. It will give the datafile number let&#8217;s say D.</p>
<p>2. Make sure we have backups of all the datafiles. In RMAN type:<br />
REPORT NEED BACKUP REDUNDANCY 1;</p>
<p>If there are datafiles that were not backed up as yet, there are 2 options:<br />
a) delete the datafiles. (RMAN will create them and apply their data from redo logs).<br />
b) issue RMAN command:<br />
BACKUP DATAFILE N;</p>
<p>3. Use RMAN to restore and recover the datafile found missing in step #1. The recovery operation will fail because the online redo is missing.<br />
RESTORE DATAFILE D;<br />
RECOVER DATAFILE D;</p>
<p>4. Find the last log sequence:<br />
SELECT SEQUENCE# FROM V$ARCHIVED_LOG WHERE RECID = (SELECT MAX(RECID) FROM V$ARC<br />
HIVED_LOG);</p>
<p>5. Run the following RMAN script. The nunber X will be 1 more than the number you got from step 4. This is because the UNTIL SEQUENCE clause of RMAN goes to one less than the number specified.</p>
<p>RUN {<br />
SET UNTIL SEQUENCE X THREAD 1;<br />
RESTORE DATABASE;<br />
RECOVER DATABASE;<br />
ALTER DATABASE OPEN RESETLOGS;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2009/05/02/recovery-scenario-bad-datafile-and-missing-online-redo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving datafiles/logfiles to another disk/location</title>
		<link>http://oracle.3dub.com/2008/08/31/moving-datafileslogfiles-to-another-disklocation/</link>
		<comments>http://oracle.3dub.com/2008/08/31/moving-datafileslogfiles-to-another-disklocation/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 12:07:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database Recovery]]></category>

		<guid isPermaLink="false">http://oracle.3dub.com/?p=94</guid>
		<description><![CDATA[$ sqlplus "/ as sysdba"

SQL&#62; shutdown immediate

SQL&#62; !mv orig_file target_file
...
SQL&#62; startup mount

SQL&#62; alter database rename file 'orig_file' to 'target_file';
...

    Do not disconnect after this step. Stay logged in
    and proceed to open the database!

SQL&#62; alter database open;

SQL&#62; exit
]]></description>
			<content:encoded><![CDATA[<pre><a name="Moving Datafiles while the Instance is Mounted">$ <strong>sqlplus "/ as sysdba"</strong>

SQL&gt; <strong>shutdown immediate</strong>

SQL&gt; <strong>!mv <em>orig_file target_file
...
</em></strong>SQL&gt; <strong>startup mount</strong>

SQL&gt; <strong>alter database rename file 'orig_file' to 'target_file';
...
</strong>
    <em><span style="color: red;">Do not disconnect after this step. Stay logged in
    and proceed to open the database!</span></em>

SQL&gt; <strong>alter database open;</strong>

SQL&gt; <strong>exit</strong></a></pre>
]]></content:encoded>
			<wfw:commentRss>http://oracle.3dub.com/2008/08/31/moving-datafileslogfiles-to-another-disklocation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

