<?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>Sys-Admin Information&#039;s &#187; Hilman-Lupus</title>
	<atom:link href="http://sysinfo.bascomp.org/author/hilman-lupus/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +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>Troubleshooting for startup inconsistent DB</title>
		<link>http://sysinfo.bascomp.org/2008/05/troubleshooting-for-startup-inconsistent-db/</link>
		<comments>http://sysinfo.bascomp.org/2008/05/troubleshooting-for-startup-inconsistent-db/#comments</comments>
		<pubDate>Tue, 27 May 2008 03:14:36 +0000</pubDate>
		<dc:creator>Hilman-Lupus</dc:creator>
				<category><![CDATA[Backup & Recovery]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[startup inconsistent DataBase]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/?p=53</guid>
		<description><![CDATA[for e.g. database unable up cause of datafile corruption

SQL&#38;gt; startup
ORACLE instance started.
&#160;
Total System Global Area 1610612736 bytes
Fixed Size                  2177912 bytes
Variable Size             396149896 bytes
DATABASE Buffers   [...]]]></description>
			<content:encoded><![CDATA[<p>for e.g. database unable up cause of datafile corruption</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL&amp;gt; startup
ORACLE instance started<span style="color: #66cc66;">.</span>
&nbsp;
Total System Global Area <span style="color: #cc66cc;">1610612736</span> bytes
Fixed Size                  <span style="color: #cc66cc;">2177912</span> bytes
Variable Size             <span style="color: #cc66cc;">396149896</span> bytes
<span style="color: #993333; font-weight: bold;">DATABASE</span> Buffers         <span style="color: #cc66cc;">1207959552</span> bytes
Redo Buffers                <span style="color: #cc66cc;">4325376</span> bytes
<span style="color: #993333; font-weight: bold;">DATABASE</span> mounted<span style="color: #66cc66;">.</span>
ORA<span style="color: #66cc66;">-</span>01113: file <span style="color: #cc66cc;">2</span> needs media recovery
ORA<span style="color: #66cc66;">-</span>01110: <span style="color: #993333; font-weight: bold;">DATA</span> file <span style="color: #cc66cc;">2</span>: <span style="color: #ff0000;">'/oradata/oracle/ts/undotbs01.</span></pre></div></div>

<p>commonly  the database unable be startup if UNDO or SYSTEM table space need recovery, if these happen we need correct temporary workaround to handle this, all workaround for each tablespace datafile is similar</p>
<p>do the recovery</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL&amp;gt; recover <span style="color: #993333; font-weight: bold;">DATABASE</span>;
ORA<span style="color: #66cc66;">-</span>00279: <span style="color: #993333; font-weight: bold;">CHANGE</span> <span style="color: #cc66cc;">7516226638</span> generated at 05<span style="color: #66cc66;">/</span>05<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">2008</span> <span style="color: #cc66cc;">12</span>:<span style="color: #cc66cc;">32</span>:<span style="color: #cc66cc;">11</span>
needed <span style="color: #993333; font-weight: bold;">FOR</span> thread <span style="color: #cc66cc;">1</span>
ORA<span style="color: #66cc66;">-</span>00289: suggestion : <span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>ts<span style="color: #66cc66;">/</span>arc<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">1</span>_42_653916655<span style="color: #66cc66;">.</span>dbf
ORA<span style="color: #66cc66;">-</span>00280: <span style="color: #993333; font-weight: bold;">CHANGE</span> <span style="color: #cc66cc;">7516226638</span> <span style="color: #993333; font-weight: bold;">FOR</span> thread <span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">IS</span> <span style="color: #993333; font-weight: bold;">IN</span> sequence <span style="color: #808080; font-style: italic;">#42</span>
&nbsp;
Specify log: <span style="color: #66cc66;">&#123;</span>ret<span style="color: #66cc66;">=</span>suggested <span style="color: #66cc66;">|</span> filename <span style="color: #66cc66;">|</span> AUTO <span style="color: #66cc66;">|</span> CANCEL<span style="color: #66cc66;">&#125;</span>
AUTO
ORA<span style="color: #66cc66;">-</span>00308: cannot open archived log
‘<span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>ts<span style="color: #66cc66;">/</span>arc<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">1</span>_42_653916655<span style="color: #66cc66;">.</span>dbf’
ORA<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">27037</span>: unable <span style="color: #993333; font-weight: bold;">TO</span> obtain file <span style="color: #993333; font-weight: bold;">STATUS</span>
SVR4 Error: <span style="color: #cc66cc;">2</span>: No such file <span style="color: #993333; font-weight: bold;">OR</span> directory
Additional information: <span style="color: #cc66cc;">3</span></pre></div></div>

<p><span id="more-53"></span></p>
<p>Open database</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL&amp;gt; <span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> open;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> open
<span style="color: #66cc66;">*</span>
ERROR at line <span style="color: #cc66cc;">1</span>:
ORA<span style="color: #66cc66;">-</span>01113: file <span style="color: #cc66cc;">2</span> needs media recovery
ORA<span style="color: #66cc66;">-</span>01110: <span style="color: #993333; font-weight: bold;">DATA</span> file <span style="color: #cc66cc;">2</span>: <span style="color: #ff0000;">'/oradata/oracle/ts/undotbs01.dbf'</span></pre></div></div>

<p>this condition force us to append archivelog or logfile consist appropriate  sequence, if there not available... database unable up till to ever</p>
<p>but we have a temporary solution, below :</p>
<ul>
<li> Edit Init file<br />
Remark parameter <code>undo_management</code> dan <code>undo_tablespace</code><br />
add this parameter :<br />
<code>UNDO_MANAGEMENT=MANUAL<br />
_ALLOW_RESETLOGS_CORRUPTION = TRUE<br />
_ALLOW_ERROR_SIMULATION = TRUE<br />
_CORRUPTED_ROLLBACK_SEGMENTS =(_SYSSMU1,_SYSSMU2,_SYSSMU3, ...)</code></li>
<li> get value _CORRUPTED_ROLLBACK_SEGMENTS from [OS] the command <code>cd system_datafile_directory<br />
strings system01.dbf | grep _SYSSMU | cut -d $ -f 1 | sort -u</code></li>
<li> shutdown database , and turn on with that initfile already edited. Pfile must be wrote in startup command .

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL&amp;gt; startup mount
pfile<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'/data1/oracle/product/10.2.0/dbs/initts.ora'</span>;
ORACLE instance started<span style="color: #66cc66;">.</span>
Total System Global Area <span style="color: #cc66cc;">1610612736</span> bytes
Fixed Size                  <span style="color: #cc66cc;">2177912</span> bytes
Variable Size             <span style="color: #cc66cc;">396149896</span> bytes
<span style="color: #993333; font-weight: bold;">DATABASE</span> Buffers         <span style="color: #cc66cc;">1207959552</span> bytes
Redo Buffers                <span style="color: #cc66cc;">4325376</span> bytes
<span style="color: #993333; font-weight: bold;">DATABASE</span> mounted<span style="color: #66cc66;">.</span></pre></div></div>

</li>
<li> Recover database until cancel

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL&amp;gt; recover <span style="color: #993333; font-weight: bold;">DATABASE</span> until cancel;
ORA<span style="color: #66cc66;">-</span>00279: <span style="color: #993333; font-weight: bold;">CHANGE</span> <span style="color: #cc66cc;">7516226638</span> generated at 05<span style="color: #66cc66;">/</span>05<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">2008</span> <span style="color: #cc66cc;">12</span>:<span style="color: #cc66cc;">32</span>:<span style="color: #cc66cc;">11</span>
needed <span style="color: #993333; font-weight: bold;">FOR</span> thread <span style="color: #cc66cc;">1</span>
ORA<span style="color: #66cc66;">-</span>00289: suggestion :
<span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>ts<span style="color: #66cc66;">/</span>arc<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">1</span>_42_653916655<span style="color: #66cc66;">.</span>dbf
ORA<span style="color: #66cc66;">-</span>00280: <span style="color: #993333; font-weight: bold;">CHANGE</span> <span style="color: #cc66cc;">7516226638</span> <span style="color: #993333; font-weight: bold;">FOR</span> thread <span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">IS</span> <span style="color: #993333; font-weight: bold;">IN</span> sequence <span style="color: #808080; font-style: italic;">#42</span>
Specify log: <span style="color: #66cc66;">&#123;</span>ret<span style="color: #66cc66;">=</span>suggested <span style="color: #66cc66;">|</span> filename <span style="color: #66cc66;">|</span> AUTO <span style="color: #66cc66;">|</span> CANCEL<span style="color: #66cc66;">&#125;</span>
CANCEL
ORA<span style="color: #66cc66;">-</span>01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA<span style="color: #66cc66;">-</span>01194: file <span style="color: #cc66cc;">1</span> needs more recovery <span style="color: #993333; font-weight: bold;">TO</span> be consistent
ORA<span style="color: #66cc66;">-</span>01110: <span style="color: #993333; font-weight: bold;">DATA</span> file <span style="color: #cc66cc;">1</span>: ‘<span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>ts<span style="color: #66cc66;">/</span>system01<span style="color: #66cc66;">.</span>dbf’
ORA<span style="color: #66cc66;">-</span>01112: media recovery <span style="color: #993333; font-weight: bold;">NOT</span> started</pre></div></div>

</li>
<li>Open database

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL&amp;gt; <span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> OPEN RESETLOGS;
<span style="color: #993333; font-weight: bold;">DATABASE</span> altered<span style="color: #66cc66;">.</span></pre></div></div>

</li>
</ul>
<p>after the database up, backup important data  using exp/imp</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/05/troubleshooting-for-startup-inconsistent-db/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
