<?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>天道酬勤 &#187; Database</title>
	<atom:link href="http://www.ochef.net/category/database/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ochef.net</link>
	<description>Oracle and My Life</description>
	<lastBuildDate>Mon, 09 Jan 2012 05:39:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Oracle Database Fails to Start with Error ORA-12547</title>
		<link>http://www.ochef.net/2012/01/error-ora-12547.html</link>
		<comments>http://www.ochef.net/2012/01/error-ora-12547.html#comments</comments>
		<pubDate>Mon, 09 Jan 2012 05:35:39 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[errors]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=978</guid>
		<description><![CDATA[今天我的虚拟测试环境中的11.2的库自上次关机后今天启动突然报错，记录以下过程备查。 1 2 3 4 5 6 7 8 9 SQL&#62; SELECT * FROM v$version; &#160; BANNER -------------------------------------------------------------------------------- Oracle DATABASE 11g Enterprise Edition RELEASE 11.2.0.2.0 - 64bit Production PL/SQL RELEASE 11.2.0.2.0 - Production CORE 11.2.0.2.0 Production TNS FOR Linux: Version 11.2.0.2.0 - Production NLSRTL Version 11.2.0.2.0 - Production 启动数据库时报错： 1 2 3 4 5 6 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F06%2Fvsftpd-dead-but-subsys-locked-error-530.html&from=http%3A%2F%2Fwww.ochef.net%2F2012%2F01%2Ferror-ora-12547.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">vsftpd dead but subsys locked &amp; error 530</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F10%2Fyou-wanna-win-10million.html&from=http%3A%2F%2Fwww.ochef.net%2F2012%2F01%2Ferror-ora-12547.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">You wanna win $10 Million!</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2011%2F04%2Fdust-in-mind-a-bad-experience-x200.html&from=http%3A%2F%2Fwww.ochef.net%2F2012%2F01%2Ferror-ora-12547.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">记X200一次糟糕的除尘经历</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F12%2Foracle-sql-developer-2-1-released.html&from=http%3A%2F%2Fwww.ochef.net%2F2012%2F01%2Ferror-ora-12547.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle SQL Developer 2.1 Released</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天我的虚拟测试环境中的11.2的库自上次关机后今天启动突然报错，记录以下过程备查。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="oracle11" style="font-family:monospace;">SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> v$version;
&nbsp;
BANNER
<span style="color: #808080; font-style: italic;">--------------------------------------------------------------------------------</span>
Oracle <span style="color: #993333; font-weight: bold; text-transform: uppercase;">DATABASE</span> 11g Enterprise Edition <span style="color: #993333; font-weight: bold; text-transform: uppercase;">RELEASE</span> 11.2.0.2.0 <span style="color: #66cc66;">-</span> 64bit Production
PL<span style="color: #66cc66;">/</span><span style="color: #993333; font-weight: bold; text-transform: uppercase;">SQL</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">RELEASE</span> 11.2.0.2.0 <span style="color: #66cc66;">-</span> Production
CORE    11.2.0.2.0      Production
TNS <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FOR</span> Linux: Version 11.2.0.2.0 <span style="color: #66cc66;">-</span> Production
NLSRTL Version 11.2.0.2.0 <span style="color: #66cc66;">-</span> Production</pre></td></tr></table></div>

<p>启动数据库时报错：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="oracle11" style="font-family:monospace;">SQL<span style="color: #66cc66;">&gt;</span> startup
ORACLE instance started.
&nbsp;
Total <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SYSTEM</span> Global Area  <span style="color: #cc66cc;">734892032</span> bytes
Fixed <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SIZE</span>                  <span style="color: #cc66cc;">2230120</span> bytes
Variable <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SIZE</span>             <span style="color: #cc66cc;">448792728</span> bytes
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DATABASE</span> Buffers          <span style="color: #cc66cc;">276824064</span> bytes
Redo Buffers                <span style="color: #cc66cc;">7045120</span> bytes
ORA<span style="color: #66cc66;">-</span>00205: error <span style="color: #993333; font-weight: bold; text-transform: uppercase;">IN</span> identifying control <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FILE</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">CHECK</span> alert <span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FOR</span> more info</pre></td></tr></table></div>

<p>根据alert log找到trace文件：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="oracle11" style="font-family:monospace;"><span style="color: #66cc66;">&#91;</span>oracle@ORCL112 ~<span style="color: #66cc66;">&#93;</span>$ more <span style="color: #66cc66;">/</span>u01<span style="color: #66cc66;">/</span>app<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>diag<span style="color: #66cc66;">/</span>rdbms<span style="color: #66cc66;">/</span>orcl112<span style="color: #66cc66;">/</span>orcl112<span style="color: #66cc66;">/</span>trace<span style="color: #66cc66;">/</span>orcl112_asmb_6745.trc
Trace <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FILE</span> <span style="color: #66cc66;">/</span>u01<span style="color: #66cc66;">/</span>app<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>diag<span style="color: #66cc66;">/</span>rdbms<span style="color: #66cc66;">/</span>orcl112<span style="color: #66cc66;">/</span>orcl112<span style="color: #66cc66;">/</span>trace<span style="color: #66cc66;">/</span>orcl112_asmb_6745.trc
Oracle <span style="color: #993333; font-weight: bold; text-transform: uppercase;">DATABASE</span> 11g Enterprise Edition <span style="color: #993333; font-weight: bold; text-transform: uppercase;">RELEASE</span> 11.2.0.2.0 <span style="color: #66cc66;">-</span> 64bit Production
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">WITH</span> the Partitioning<span style="color: #66cc66;">,</span> OLAP<span style="color: #66cc66;">,</span> Data Mining <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AND</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">REAL</span> Application Testing options
ORACLE_HOME <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">/</span>u01<span style="color: #66cc66;">/</span>app<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>product<span style="color: #66cc66;">/</span>11.2.0<span style="color: #66cc66;">/</span>dbhome_1
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SYSTEM</span> name:    Linux
Node name:      ORCL112
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">RELEASE</span>:        2.6.18<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">92</span>.el5
Version:        #<span style="color: #cc66cc;">1</span> SMP Fri May <span style="color: #cc66cc;">23</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">40</span>:<span style="color: #cc66cc;">43</span> EDT <span style="color: #cc66cc;">2008</span>
Machine:        x86_64
VM name:        VMWare Version: <span style="color: #cc66cc;">6</span>
Instance name: orcl112
Redo thread mounted <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BY</span> this instance: <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&lt;</span>none<span style="color: #66cc66;">&gt;</span>
Oracle process <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NUMBER</span>: <span style="color: #cc66cc;">16</span>
Unix process pid: <span style="color: #cc66cc;">6745</span><span style="color: #66cc66;">,</span> image: oracle@ORCL112 <span style="color: #66cc66;">&#40;</span>ASMB<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">***</span> <span style="color: #cc66cc;">2011</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">10</span> <span style="color: #cc66cc;">12</span>:<span style="color: #cc66cc;">42</span>:<span style="color: #cc66cc;">57.949</span>
<span style="color: #66cc66;">***</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SESSION</span> ID:<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">8.1</span><span style="color: #66cc66;">&#41;</span> <span style="color: #cc66cc;">2011</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">10</span> <span style="color: #cc66cc;">12</span>:<span style="color: #cc66cc;">42</span>:<span style="color: #cc66cc;">57.950</span>
<span style="color: #66cc66;">***</span> CLIENT ID:<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #cc66cc;">2011</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">10</span> <span style="color: #cc66cc;">12</span>:<span style="color: #cc66cc;">42</span>:<span style="color: #cc66cc;">57.950</span>
<span style="color: #66cc66;">***</span> SERVICE NAME:<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #cc66cc;">2011</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">10</span> <span style="color: #cc66cc;">12</span>:<span style="color: #cc66cc;">42</span>:<span style="color: #cc66cc;">57.950</span>
<span style="color: #66cc66;">***</span> MODULE NAME:<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #cc66cc;">2011</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">10</span> <span style="color: #cc66cc;">12</span>:<span style="color: #cc66cc;">42</span>:<span style="color: #cc66cc;">57.950</span>
<span style="color: #66cc66;">***</span> ACTION NAME:<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #cc66cc;">2011</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">10</span> <span style="color: #cc66cc;">12</span>:<span style="color: #cc66cc;">42</span>:<span style="color: #cc66cc;">57.950</span>
&nbsp;
WARNING: failed <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TO</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">START</span> ASMB <span style="color: #66cc66;">&#40;</span>connection failed<span style="color: #66cc66;">&#41;</span> state<span style="color: #66cc66;">=</span>0x1 sid<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'+ASM'</span> home<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'/u01/app/grid/product/11.2.0/grid'</span>
ORA<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">15055</span>: unable <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TO</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">CONNECT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TO</span> ASM instance
ORA<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">12547</span>: TNS:lost contact</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="oracle11" style="font-family:monospace;"><span style="color: #66cc66;">&#91;</span>grid@ORCL112 ~<span style="color: #66cc66;">&#93;</span>$ crsctl stat res <span style="color: #66cc66;">-</span>t
<span style="color: #808080; font-style: italic;">--------------------------------------------------------------------------------</span>
NAME           TARGET  STATE        SERVER     STATE_DETAILS   Local Resources
ora.DG01.dg    <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ONLINE</span>  <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ONLINE</span>       orcl112                         
ora.asm        <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ONLINE</span>  <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ONLINE</span>       orcl112     Started</pre></td></tr></table></div>


<div class="wp_syntax"><div class="code"><pre class="oracle11" style="font-family:monospace;">MOS上有相关文档：<span style="color: #66cc66;">&#91;</span>ID <span style="color: #cc66cc;">1307075.1</span><span style="color: #66cc66;">&#93;</span>
是由于$GRID_HOME<span style="color: #66cc66;">/</span>bin<span style="color: #66cc66;">/</span>oracle和$ORACLE_HOME<span style="color: #66cc66;">/</span>bin<span style="color: #66cc66;">/</span>oracle文件权限不当导致连接ASM实例失败的。
ls <span style="color: #66cc66;">-</span>al $GRID_HOME<span style="color: #66cc66;">/</span>bin<span style="color: #66cc66;">/</span>oracle
<span style="color: #66cc66;">-</span>rwxr<span style="color: #66cc66;">-</span>x<span style="color: #808080; font-style: italic;">--x 1 grid oinstall 200678464 Feb 28 14:54 oracle</span>
&nbsp;
ls <span style="color: #66cc66;">-</span>al $ORACLE_HOME<span style="color: #66cc66;">/</span>bin<span style="color: #66cc66;">/</span>oracle
<span style="color: #66cc66;">-</span>rwxr<span style="color: #66cc66;">-</span>x<span style="color: #808080; font-style: italic;">--x 1 oracle asmadmin 228886191 Feb 28 15:41 oracle </span>
而在我的环境中只有$GRID_HOME<span style="color: #66cc66;">/</span>bin<span style="color: #66cc66;">/</span>oracle文件权限发生改变
<span style="color: #66cc66;">&#91;</span>grid@ORCL112 bin<span style="color: #66cc66;">&#93;</span>$ cd <span style="color: #66cc66;">/</span>u01<span style="color: #66cc66;">/</span>app<span style="color: #66cc66;">/</span>grid<span style="color: #66cc66;">/</span>product<span style="color: #66cc66;">/</span>11.2.0<span style="color: #66cc66;">/</span>grid<span style="color: #66cc66;">/</span>bin
<span style="color: #66cc66;">&#91;</span>grid@ORCL112 bin<span style="color: #66cc66;">&#93;</span>$ ls <span style="color: #66cc66;">-</span>l oracle
<span style="color: #66cc66;">-</span>rwxrwxr<span style="color: #66cc66;">-</span>x <span style="color: #cc66cc;">1</span> grid oinstall <span style="color: #cc66cc;">200678464</span> Jul <span style="color: #cc66cc;">15</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">18</span> oracle</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="oracle11" style="font-family:monospace;">解决方法很简单：
oracle binary的正确权限是：<span style="color: #cc66cc;">6751</span>
cd $GRID_HOME<span style="color: #66cc66;">/</span>bin
chmod <span style="color: #cc66cc;">6751</span> oracle
&nbsp;
cd $ORACLE_HOME<span style="color: #66cc66;">/</span>bin
chmod <span style="color: #cc66cc;">6751</span> oracle
修改之后再检查一下
ls <span style="color: #66cc66;">-</span>l oracle
<span style="color: #66cc66;">-</span>rwsr<span style="color: #66cc66;">-</span>s<span style="color: #808080; font-style: italic;">--x 1 grid oinstall 152400480 Nov 24 15:49 oracle</span>
如果数据库启动仍然失败，重新启动GI</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="oracle11" style="font-family:monospace;">修改之后数据库正常启动
<span style="color: #66cc66;">&#91;</span>root@ORCL112 bin<span style="color: #66cc66;">&#93;</span># chmod <span style="color: #cc66cc;">6751</span> oracle
<span style="color: #66cc66;">&#91;</span>root@ORCL112 bin<span style="color: #66cc66;">&#93;</span># ls <span style="color: #66cc66;">-</span>l oracle
<span style="color: #66cc66;">-</span>rwsr<span style="color: #66cc66;">-</span>s<span style="color: #808080; font-style: italic;">--x 1 grid oinstall 200678464 Jul 15 23:18 oracle</span>
SQL<span style="color: #66cc66;">&gt;</span> startup
ORACLE instance started.
&nbsp;
Total <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SYSTEM</span> Global Area  <span style="color: #cc66cc;">734892032</span> bytes
Fixed <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SIZE</span>                  <span style="color: #cc66cc;">2230120</span> bytes
Variable <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SIZE</span>             <span style="color: #cc66cc;">448792728</span> bytes
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DATABASE</span> Buffers          <span style="color: #cc66cc;">276824064</span> bytes
Redo Buffers                <span style="color: #cc66cc;">7045120</span> bytes
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DATABASE</span> mounted.
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DATABASE</span> opened.</pre></div></div>

<p>-The End-</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F06%2Fvsftpd-dead-but-subsys-locked-error-530.html&from=http%3A%2F%2Fwww.ochef.net%2F2012%2F01%2Ferror-ora-12547.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">vsftpd dead but subsys locked &amp; error 530</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Fstudy-aix-5l-network-performance-a.html&from=http%3A%2F%2Fwww.ochef.net%2F2012%2F01%2Ferror-ora-12547.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">学习：AIX 5L网络性能优化(一)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F10%2Fbirthday-cake.html&from=http%3A%2F%2Fwww.ochef.net%2F2012%2F01%2Ferror-ora-12547.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Birthday Cake</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2011%2F05%2Ftsm-lan-free-test.html&from=http%3A%2F%2Fwww.ochef.net%2F2012%2F01%2Ferror-ora-12547.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">TSM lan-free测试</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2012/01/error-ora-12547.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Oracle EBS R12.1.1 on OEL5.6</title>
		<link>http://www.ochef.net/2011/04/install-ebs-r12-on-oel5-6.html</link>
		<comments>http://www.ochef.net/2011/04/install-ebs-r12-on-oel5-6.html#comments</comments>
		<pubDate>Thu, 14 Apr 2011 13:12:40 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[ebsr12]]></category>
		<category><![CDATA[erp]]></category>
		<category><![CDATA[install]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=931</guid>
		<description><![CDATA[最近公司有一个ERP的项目，客户选用Oracle E-Business Suit R12。在这之前我从未使用过任何ERP软件，既然这样，最好的办法就是自己搭建一个环境感受一下。 Install oracle ebs r12.1.1 on OEL5.6 x86(include demo) View more presentations from ochef yang.<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Finstall-ids-11-5-uc5-for-linux.html&from=http%3A%2F%2Fwww.ochef.net%2F2011%2F04%2Finstall-ebs-r12-on-oel5-6.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install IDS 11.5 UC5 for Linux</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Finstall-sybase-ase-15-0-for-linux.html&from=http%3A%2F%2Fwww.ochef.net%2F2011%2F04%2Finstall-ebs-r12-on-oel5-6.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install Sybase ASE 15.0 for Linux</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F03%2Finstall-9208-on-rhel4-packages.html&from=http%3A%2F%2Fwww.ochef.net%2F2011%2F04%2Finstall-ebs-r12-on-oel5-6.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install oracle9208 on rhel4 required packages</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Finstall-db2-9-1-for-linux.html&from=http%3A%2F%2Fwww.ochef.net%2F2011%2F04%2Finstall-ebs-r12-on-oel5-6.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install DB2 9.1 for Linux</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>最近公司有一个ERP的项目，客户选用Oracle E-Business Suit R12。在这之前我从未使用过任何ERP软件，既然这样，最好的办法就是自己搭建一个环境感受一下。</p>
<div style="width:425px" id="__ss_7626871"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/ochef/install-oracle-ebs-r1211-on-oel56-x86include-demo" title="Install oracle ebs r12.1.1 on OEL5.6 x86(include demo)">Install oracle ebs r12.1.1 on OEL5.6 x86(include demo)</a></strong><object id="__sse7626871" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=installoracleebsr12-1-1onoel5-6x86includedemo-110414075921-phpapp01&#038;stripped_title=install-oracle-ebs-r1211-on-oel56-x86include-demo&#038;userName=ochef" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse7626871" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=installoracleebsr12-1-1onoel5-6x86includedemo-110414075921-phpapp01&#038;stripped_title=install-oracle-ebs-r1211-on-oel56-x86include-demo&#038;userName=ochef" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/ochef">ochef yang</a>.</div>
</div>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Finstall-ids-11-5-uc5-for-linux.html&from=http%3A%2F%2Fwww.ochef.net%2F2011%2F04%2Finstall-ebs-r12-on-oel5-6.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install IDS 11.5 UC5 for Linux</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Finstall-sybase-ase-15-0-for-linux.html&from=http%3A%2F%2Fwww.ochef.net%2F2011%2F04%2Finstall-ebs-r12-on-oel5-6.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install Sybase ASE 15.0 for Linux</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F03%2Finstall-9208-on-rhel4-packages.html&from=http%3A%2F%2Fwww.ochef.net%2F2011%2F04%2Finstall-ebs-r12-on-oel5-6.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install oracle9208 on rhel4 required packages</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Finstall-db2-9-1-for-linux.html&from=http%3A%2F%2Fwww.ochef.net%2F2011%2F04%2Finstall-ebs-r12-on-oel5-6.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install DB2 9.1 for Linux</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2011/04/install-ebs-r12-on-oel5-6.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>无有效备份下恢复数据库一例</title>
		<link>http://www.ochef.net/2010/11/recover-db-without-backup.html</link>
		<comments>http://www.ochef.net/2010/11/recover-db-without-backup.html#comments</comments>
		<pubDate>Wed, 24 Nov 2010 13:30:44 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Backup & Recover]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[recover]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=908</guid>
		<description><![CDATA[昨天通宵恢复一个1T的数据库，早上6点成功恢复，立即开始备份。7点回家睡觉下午三点起床，也许这就是一个DBA的生活。本想现在写写恢复过程，不过又想睡觉了，明天好好写吧。 Updated  @ 2010-12-07 一、系统背景： 硬件：    P690_1和P670_1 操作系统：A IX 5.2 ML04 数据库：  Oracle 9.2.0.1.0  2 Nodes RAC  HA 备库P570（非DG）： 与DG原理类似，利用生产库的归档日志在P570上恢复 故障时间：2010-11-23  13:20 二、故障现象： 数据库系统在13：19报告SYSTEM表空间空间不够无法自动扩展，因为系统使用RAW设备所以无法自动扩展，需要管理员手工增加RAW设备文件。 Tue Nov 23 13:18:41 2010 Completed: alter database backup controlfile to &#8216;/p690_1_arch Tue Nov 23 13:19:20 2010 ORA-1653: unable to extend table WWW.MLOG$_WWW_MONEY_T by 8192 in           tablespace SYSTEM ORA-1653: unable [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fconfigure-backup-optimization.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Frecover-db-without-backup.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CONFIGURE BACKUP OPTIMIZATION</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F12%2Foracle-sql-developer-2-1-released.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Frecover-db-without-backup.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle SQL Developer 2.1 Released</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fthe-first-anniversary-of-marriage.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Frecover-db-without-backup.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">结婚一周年</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F10%2Fyou-wanna-win-10million.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Frecover-db-without-backup.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">You wanna win $10 Million!</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>昨天通宵恢复一个1T的数据库，早上6点成功恢复，立即开始备份。7点回家睡觉下午三点起床，也许这就是一个DBA的生活。本想现在写写恢复过程，不过又想睡觉了，明天好好写吧。</p>
<p>Updated  @ 2010-12-07</p>
<p><strong>一、系统背景：</strong><strong> </strong></p>
<p>硬件：    P690_1和P670_1</p>
<p>操作系统：A IX 5.2 ML04</p>
<p>数据库：  Oracle 9.2.0.1.0  2 Nodes RAC  HA</p>
<p>备库P570（非DG）： 与DG原理类似，利用生产库的归档日志在P570上恢复</p>
<p>故障时间：2010-11-23  13:20</p>
<p><strong>二、故障现象：</strong><strong> </strong></p>
<p>数据库系统在13：19报告SYSTEM表空间空间不够无法自动扩展，因为系统使用RAW设备所以无法自动扩展，需要管理员手工增加RAW设备文件。</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="664" valign="top">Tue Nov 23   13:18:41 2010</p>
<p>Completed: alter   database backup controlfile to &#8216;/p690_1_arch</p>
<p>Tue Nov 23   13:19:20 2010</p>
<p>ORA-1653: unable   to extend table WWW.MLOG$_WWW_MONEY_T by 8192 in           tablespace SYSTEM</p>
<p>ORA-1653: unable   to extend table WWW.MLOG$_WWW_MONEY_T by 8192 in           tablespace SYSTEM</p>
<p>ORA-1653: unable   to extend table WWW.MLOG$_WWW_MONEY_T by 8192 in           tablespace SYSTEM</p>
<p>……</td>
</tr>
</tbody>
</table>
<p>客户工程师在P670_1节点上新增RAW设备并增加到SYSTEM表空间：</p>
<p>RAW设备：/dev/rwwwdb_system04</p>
<p>SQL&gt;alter tablespace system add ‘/dev/rwwwdb_system04’ reuse;</p>
<p>随后系统报错：</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="664" valign="top">ORA-01157:   cannot identify/lock data file 424 &#8211; see DBWR trace file</p>
<p>ORA-01110: data   file 424: &#8216;/dev/rwwwdb_system04&#8242;</p>
<p>ORA-27037:   unable to obtain file status</p>
<p>IBM AIX RISC   System/6000 Error: 2: No such file or directory</p>
<p>Additional   information: 3</p>
<p>Tue Nov 23   14:17:03 2010</p>
<p>Errors in file   /oracle/ora92/admin/wwwdb/bdump/wwwdb1_dbw0_516116.trc:</p>
<p>ORA-01186: file   424 failed verification tests</p>
<p>ORA-01157:   cannot identify/lock data file 424 &#8211; see DBWR trace file</p>
<p>ORA-01110: data   file 424: &#8216;/dev/rwwwdb_system04&#8242;</p>
<p>Tue Nov 23   14:17:03 2010</p>
<p>File 424 not   verified due to error ORA-01157</td>
</tr>
</tbody>
</table>
<p>dbv检查数据文件，报文件坏块：</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="664" valign="top">DBVERIFY &#8211;   Verification starting : FILE = /dev/rwwwdb_system04</p>
<p>Page 1 is influx   &#8211; most likely media corrupt</p>
<p>Corrupt block   relative dba: 0&#215;00000001 (file 0, block 1)</p>
<p>Fractured block   found during dbv:</p>
<p>Data in bad   block:</p>
<p>type: 0 format:   0 rdba: 0&#215;00000000</p>
<p>last change scn:   0&#215;0000.00000000 seq: 0&#215;0 flg: 0&#215;00</p>
<p>spare1: 0&#215;0   spare2: 0&#215;0 spare3: 0&#215;0</p>
<p>consistency   value in tail: 0&#215;00000000</p>
<p>check value in   block header: 0&#215;0</td>
</tr>
</tbody>
</table>
<p>此时，由于系统表空间不足数据库系统被挂起，欲将增加失败的数据文件离线删除后重启数据库实例报错：</p>
<p>SQL&gt;ALTER DATABASE DATAFILE &#8216;/dev/rwwwdb_system04&#8242; offline drop;</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="664" valign="top">Tue Nov 23   14:56:18 2010</p>
<p>ORA-1541   signalled during: ALTER DATABASE DATAFILE &#8216;/dev/rwwwdb_system04&#8242; off&#8230;</p>
<p>This instance   was first to open</p>
<p>ORA-1147   signalled during: alter database open&#8230;</p>
<p>ORA-01122:   database file 424 failed verification check</p>
<p>ORA-01110: data   file 424: &#8216;/dev/rwwwdb_system04&#8242;</p>
<p>ORA-01251:   Unknown File Header Version read for file number 26</td>
</tr>
</tbody>
</table>
<p>不要受<span style="font-family: helvetica;"><strong>[ID 422031.1]</strong></span><strong>ORA-01122, ORA-01251 or data blocks reported as corrupted</strong>影响，否则方向错了会花比较多的时间</p>
<p>时间：16：00</p>
<p>由于系统数据量大，在生产库不能短时间恢复情况下的</p>
<p>措施：启动P570备库</p>
<p>结果：启动备库P570失败</p>
<p>原因：在10月19增加数据库文件/dev/rphoto1026时出错，需要恢复。</p>
<p>时间：16：20</p>
<p>措施：利用生产系统RMAN备份来恢复</p>
<p>结果：无法恢复</p>
<p>原因：每晚8点的定时备份任务在14日由于备份空间不足备份失败，后续没有任务备份；系统归档日志保留策略为7天，若要恢复到14日备份前，缺少1天的归档日志文件。</p>
<p><span id="more-908"></span> 时间：16：30</p>
<p>措施：向公司上级汇报情况，商议决策</p>
<p>结果：与Oracle原厂工程取得系统，商议决策如下：</p>
<p>1.      保护好生产系统现状</p>
<p>2.      使用操作系统级dd命令备份生产系统所有数据文件</p>
<p>3.      将备份的文件用dd命令恢复到备库P570</p>
<p>4.      在备库P570上做恢复测试</p>
<p>时间：24日2：30</p>
<p>措施：在P570备机上重建control file，剔除/dev/rwwwdb_system04数据文件，尝试打开数据库。</p>
<p>结果：open失败</p>
<p>原因：Oracle 9i 系统表空间数据文件不能真正删除（10g开始可以）。</p>
<p>再次如下恢复操作：</p>
<p>重新创建/dev/rwwwdb_system04文件</p>
<p>SQL&gt; alter database create datafile &#8216;/dev/rwwwdb_system04&#8242; as &#8216;/dev/rwwwdb_system04&#8242;;</p>
<p>结果：open成功</p>
<p><strong>三、生产系统恢复过程：</strong></p>
<p>1.      重建control file</p>
<p>获取重建控制文件的脚本，并修改相应部分</p>
<p>SQL&gt; alter database backup controlfile to trace;</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="664" valign="top">CREATE   CONTROLFILE REUSE DATABASE &#8220;WWWDB&#8221; NORESETLOGS   FORCE LOGGING ARCHIVELOG</p>
<p>&#8211;  SET STANDBY TO MAXIMIZE PERFORMANCE</p>
<p>MAXLOGFILES 192</p>
<p>MAXLOGMEMBERS 3</p>
<p>MAXDATAFILES 1024</p>
<p>MAXINSTANCES 32</p>
<p>MAXLOGHISTORY 3403</p>
<p>LOGFILE</p>
<p>GROUP 1 &#8216;/dev/rwwwdb_log24&#8242;  SIZE 268430848,</p>
<p>GROUP 2 &#8216;/dev/rwwwdb_log25&#8242;  SIZE 268430848,</p>
<p>GROUP 3 &#8216;/dev/rwwwdb_log26&#8242;  SIZE 268430848,</p>
<p>GROUP 4 &#8216;/dev/rwwwdb_log27&#8242;  SIZE 268430848,</p>
<p>GROUP 5 &#8216;/dev/rwwwdb_log28&#8242;  SIZE 268430848,</p>
<p>GROUP 6 &#8216;/dev/rwwwdb_log29&#8242;  SIZE 268430848,</p>
<p>GROUP 7 &#8216;/dev/rwwwdb_log14&#8242;  SIZE 268430848,</p>
<p>GROUP 8 &#8216;/dev/rwwwdb_log15&#8242;  SIZE 268430848,</p>
<p>GROUP 9 &#8216;/dev/rwwwdb_log16&#8242;  SIZE 268430848,</p>
<p>GROUP 10 &#8216;/dev/rwwwdb_log17&#8242;  SIZE 268430848,</p>
<p>GROUP 11 &#8216;/dev/rwwwdb_log18&#8242;  SIZE 268430848,</p>
<p>GROUP 12 &#8216;/dev/rwwwdb_log19&#8242;  SIZE 268430848</p>
<p>……</td>
</tr>
</tbody>
</table>
<p>2.      修改启动参数文件，将控制文件存放路径临时指定到一个新位置，并启动数据库到 nomount状态</p>
<p>3.      执行重建控制文件的脚本，启动数据库mount状态</p>
<p>SQL&gt;@bldctl.sql</p>
<p>SQL&gt;alter database mount;</p>
<p>4.      创建数据文件/dev/rwwwdb_system04</p>
<p>SQL&gt;alter database create datafile &#8216;/dev/rwwwdb_system04&#8242; as &#8216;/dev/rwwwdb_system04&#8242;;</p>
<p>5.      重启数据库到mount状态,恢复/dev/rwwwdb_system04文件</p>
<p>SQL&gt;startup mount;</p>
<p>SQL&gt;ALTER DATABASE RECOVER  datafile &#8216;/dev/rwwwdb_system04&#8242; ;</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="664" valign="top">Wed Nov 24   03:37:47 2010</p>
<p>Media Recovery   Datafile: &#8216;/dev/rwwwdb_system04&#8242;</p>
<p>Media Recovery   Start</p>
<p>Starting   datafile 424 recovery in thread 2 sequence 26019</p>
<p>Datafile 424:   &#8216;/dev/rwwwdb_system04&#8242;</p>
<p>Media Recovery Log</p>
<p>Recovery of   Online Redo Log: Thread 2 Group 2 Seq 26019 Reading mem 0</p>
<p>Mem# 0 errs 0: /dev/rwwwdb_log25</p>
<p>Recovery of   Online Redo Log: Thread 1 Group 12 Seq 31759 Reading mem 0</p>
<p>Mem# 0 errs 0: /dev/rwwwdb_log19</p>
<p>Media Recovery   Complete</p>
<p>Completed: ALTER   DATABASE RECOVER  datafile   &#8216;/dev/rwwwdb_syst em04&#8242; ;</td>
</tr>
</tbody>
</table>
<p>6.      尝试打开数据库</p>
<p>SQL&gt;alter database open;</p>
<p>报错：ORA-1113 signalled during: alter database open&#8230;，数据库需要恢复</p>
<p>7.      恢复数据库</p>
<p>SQL&gt;alter database recover database;</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="664" valign="top">Media Recovery Start</p>
<p>Starting datafile 1 recovery in   thread 2 sequence 26019</p>
<p>Datafile 1: &#8216;/dev/rwwwdb_system&#8217;</p>
<p>Starting datafile 2 recovery in   thread 2 sequence 26019</p>
<p>Datafile 2: &#8216;/dev/rwwwdb_index01&#8242;</p>
<p>……</p>
<p>Successfully onlined Undo Tablespace 27.</p>
<p>Dictionary check beginning</p>
<p>Tablespace &#8216;WWW_PHOTO04&#8242; #16 found in data dictionary,</p>
<p>but not in the controlfile. Adding to controlfile.</p>
<p>Tablespace &#8216;WWW_PHOTO06&#8242; #17 found in data   dictionary,</p>
<p>but not in the controlfile. Adding to controlfile.</p>
<p>Tablespace &#8216;WWW_PHOTO07&#8242; #18 found in data   dictionary,</p>
<p>but not in the controlfile. Adding to controlfile.</p>
<p>……</p>
<p>Wed Nov 24 03:38:45 2010</p>
<p>File #370 found in data dictionary but not in   controlfile.</p>
<p>Creating OFFLINE file &#8216;MISSING00370&#8242; in the   controlfile.</p>
<p>File #371 found in data dictionary but not in   controlfile.</p>
<p>Creating OFFLINE file &#8216;MISSING00371&#8242; in the   controlfile.</p>
<p>File #372 found in data dictionary but not in   controlfile.</p>
<p>…</td>
</tr>
</tbody>
</table>
<p>8.      重启数据库</p>
<p>SQL&gt;shutdown  immediate;</p>
<p>SQL&gt;startup;</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="664" valign="top">Wed Nov 24   04:00:11 2010</p>
<p>alter database   open</p>
<p>This instance   was first to open</p>
<p>Picked Lamport   scheme to generate SCNs</p>
<p>Wed Nov 24   04:00:11 2010</td>
</tr>
</tbody>
</table>
<p>9.      将控制文件恢复到RAW设备上</p>
<p>SQL&gt;shutdown immediate;</p>
<p>$dd if= /dbbak/cntrl7 of= /dev/rwwwdb_cntrl3 bs=2m</p>
<p>$dd if= /dbbak/cntrl8 of= /dev/rwwwdb_cntrl4 bs=2m</p>
<p>$dd if= /dbbak/cntrl9 of= /dev/rwwwdb_cntrl5 bs=2m</p>
<p>修改启动参数文件initwwwdb1.ora，还原控制文件存放位置</p>
<p>SQL&gt;startup  pfile=?/dbs/initwwwdb1.ora</p>
<p>SQL&gt;create spfile from pfile;</p>
<p>SQL&gt;shutdown immediate;</p>
<p>SQL&gt;startup;</p>
<p>10.  执行在重建控制文件时没有执行的命令，并将数据库中只读表空间online</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="664" valign="top"># Files in read-only tablespaces are now named.</p>
<p>ALTER DATABASE RENAME FILE &#8216;MISSING00015&#8242;</p>
<p>TO   &#8216;/dev/rwww_photo0611&#8242;;</p>
<p>ALTER DATABASE RENAME FILE &#8216;MISSING00016&#8242;</p>
<p>TO   &#8216;/dev/rwww_photo0612&#8242;;</p>
<p>ALTER DATABASE RENAME FILE &#8216;MISSING00020&#8242;</p>
<p>TO   &#8216;/dev/rwww_photo0626&#8242;;</p>
<p>ALTER DATABASE RENAME FILE &#8216;MISSING00022&#8242;</p>
<p>TO   &#8216;/dev/rwww_photo0627&#8242;;</p>
<p>ALTER DATABASE RENAME FILE &#8216;MISSING00023&#8242;</p>
<p>……</p>
<p># Online the files in read-only tablespaces.</p>
<p>ALTER TABLESPACE &#8220;WWW_PHOTO04&#8243; ONLINE;</p>
<p>ALTER TABLESPACE &#8220;WWW_PHOTO06&#8243; ONLINE;</p>
<p>ALTER TABLESPACE &#8220;WWW_PHOTO07&#8243; ONLINE;</p>
<p>ALTER TABLESPACE &#8220;WWW_PHOTO05&#8243; ONLINE;</p>
<p>ALTER TABLESPACE &#8220;WWW_PHOTO08&#8243; ONLINE;</p>
<p>ALTER TABLESPACE &#8220;WWW_PHOTO09&#8243; ONLINE;</p>
<p># No tempfile entries found to add.</p>
<p>#</td>
</tr>
</tbody>
</table>
<p>至此，生产系统数据库成功打开。</p>
<p>P670_1节点处理：</p>
<p>检查P670_1节点，发现主机访问DS4500存储系统上共享VG出现问题，为数据安全起见，先在P690_1节点备份数据库再处理P670_1节点。</p>
<p><strong>四、故障分析：</strong></p>
<p>在备份成功后，处理P670_1节点发现，DS4500存储系统B控制器坏掉，而引发了增加SYSTEM表空间失败。在更换存储系统控制器后，P670_1节点正常工作。</p>
<p><strong>五、改进与预防措施：</strong></p>
<p>1. 完善备份策略</p>
<p>2. 改善P570备库方式（采用rman备份归档日志，再恢复归档日志）</p>
<p>3. 每天检查生产系统的备份情况，及时发现问题及时处理。</p>
<p>-The End-</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fconfigure-backup-optimization.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Frecover-db-without-backup.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CONFIGURE BACKUP OPTIMIZATION</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F10%2Fyou-wanna-win-10million.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Frecover-db-without-backup.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">You wanna win $10 Million!</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fthe-first-anniversary-of-marriage.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Frecover-db-without-backup.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">结婚一周年</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2011%2F05%2Ftsm-lan-free-test.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Frecover-db-without-backup.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">TSM lan-free测试</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2010/11/recover-db-without-backup.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ORA-00600:[2103],[1],[0],[1],[900]的处理</title>
		<link>http://www.ochef.net/2010/07/ora-00600-2103.html</link>
		<comments>http://www.ochef.net/2010/07/ora-00600-2103.html#comments</comments>
		<pubDate>Mon, 19 Jul 2010 02:00:31 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[ora-600[2103]]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=852</guid>
		<description><![CDATA[上周四中午刚放下订餐电话，手机响起鸟，客户的一套AIX 5.2 ML04  +  Oracle 10.2.0.3.0 (+Dataguard)的系统挂了，业务中断。收拾东西下楼打车赶往客户机房，大致半小时后到达客户机房登录系统检查发现系统报：“ORA-00600: internal error code, arguments: [2103], [1], [0], [1], [900]”错误。[2103]的错误与controlfile有关，[900]是等待的超时时间S。进一步检查发现，问题是出现在每天晚上0点都有crontab调度的系统备份任务：0点将系统置为热备模式&#8212;&#62;连接FTP服务器&#8212;&#62;CP需要备份的所有件&#8212;&#62;最后将系统退出热备模式。metalink [ID 567891.1]说：系统处在热备份模式下，在日志发生切换时获取控制文件队列信息时发生了超时，这个等待时间默认是15分钟（900s）。虽然这里有一个Bug 6018274，但我的习惯是只有在做完了尽可能的尝试之后再认为是bug。 继续检查发现，系统一直在进行kill动作：“Killing enqueue blocker (pid=827572) on resource CF-00000000-00000000”，但遗憾的是这个动作失败了，尝试手工kill，失败。而且此时在系统中只要一发起与log相关的动作系统就挂起，无赖之下想重启oracle(这个想法很邪恶啊，如果待会儿起不来，how?),FT&#8230;&#8230;正常关闭失败（意料中的），abort关机失败，回到OS中kill -9失败。万般无赖之下，只能重启OS，没想到的是AIX重启到一般的时候挂起，此时已经13：30了，还没有吃饭（12点客户叫俺一起去吃饭看到她那表情俺也有点不好意思。）不管了，先搞定系统再说吧。由于这套系统是P690上的一个分区，只要在HMC上使用“Hard Reset”选项了，鼠标移到此分区上检查了又检查了，俺视力5.2的说，但就怕这时看错了的话，后果，你知道的。在这前后几分钟，真有心跳加速的感觉，就怕待会儿库打不开啊。10分钟之后，my god，库顺利的打开了，哎呀，肚子不饿了，起应用一切顺利，先让别人开工吧。 造成ORA-00600 [2103]错误的原因有下： 1) 控制文件存放在I/O非常慢的存储系统上。 2) 频繁的日志切换，或日志文件过小或日志文件组数目过少。 3) 同时使用了异步I/O或多个数据写进程。 4) Oracle软件内部Bug。 5) OS/硬件问题。 讯问过客户工程师，确实在前一天18：30的时候进行数据整理，发生过非常频繁的日志切换，高峰时1分钟达5次日志切换，但在其后一天是正常的，由于环境复杂，暂时先做如下测试：（以影响业务程度最小化且实施难易程度依次列出） 1. 增大日志组成员大小，同时增加日志组数目。 2. 由于业务的特殊性，商讨能否修改备份策略来避开热备份。 3. 根据官方建议打补丁：Patch 5923866，在失效的情况下，将系统升级到10.2.0.4.0之上（最新分布为10.2.0.5.0） 4. 将操作系统从AIX 5.2 ML04升级到AIX 5.2 ML05（Oracle在[ID [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Frman-ora-1950427038.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F07%2Fora-00600-2103.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">RMAN ORA-19504、ORA-27038错误解决方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fora-12547-tns-lost-contact.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F07%2Fora-00600-2103.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ORA-12547: TNS:lost contact</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2012%2F01%2Ferror-ora-12547.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F07%2Fora-00600-2103.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle Database Fails to Start with Error ORA-12547</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F07%2Fora-00600-2103.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">AIX network buffer参数设置引起RAC故障</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>上周四中午刚放下订餐电话，手机响起鸟，客户的一套<strong>AIX 5.2 ML04  +  Oracle 10.2.0.3.0 (+Dataguard)</strong>的系统挂了，业务中断。收拾东西下楼打车赶往客户机房，大致半小时后到达客户机房登录系统检查发现系统报：“<strong>ORA-00600: internal error code, arguments: [2103], [1], [0], [1], [900]</strong>”错误。[2103]的错误与<strong>controlfile</strong>有关，<strong>[900]</strong>是等待的超时时间S。进一步检查发现，问题是出现在每天晚上0点都有crontab调度的系统备份任务：0点将系统置为热备模式&#8212;&gt;连接FTP服务器&#8212;&gt;CP需要备份的所有件&#8212;&gt;最后将系统退出热备模式。metalink <strong>[ID 567891.1]</strong>说：<strong>系统处在热备份模式下，在日志发生切换时获取控制文件队列信息时发生了超时，这个等待时间默认是15分钟（900s）</strong>。虽然这里有一个<span style="color: #ff0000;">Bug 6018274</span>，但我的习惯是只有在做完了尽可能的尝试之后再认为是bug。</p>
<p>继续检查发现，系统一直在进行kill动作：“<strong>Killing enqueue blocker (pid=827572) on resource CF-00000000-00000000</strong>”，但遗憾的是这个动作失败了，尝试手工kill，失败。而且此时在系统中只要一发起与log相关的动作系统就挂起，无赖之下想重启oracle(这个想法很邪恶啊，如果待会儿起不来，how?),FT&#8230;&#8230;正常关闭失败（意料中的），abort关机失败，回到OS中kill -9失败。万般无赖之下，只能重启OS，没想到的是AIX重启到一般的时候挂起，此时已经13：30了，还没有吃饭（12点客户叫俺一起去吃饭看到她那表情俺也有点不好意思。）不管了，先搞定系统再说吧。由于这套系统是P690上的一个分区，只要在HMC上使用“Hard Reset”选项了，鼠标移到此分区上检查了又检查了，俺视力5.2的说，但就怕这时看错了的话，后果，你知道的。在这前后几分钟，真有心跳加速的感觉，就怕待会儿库打不开啊。10分钟之后，my god，库顺利的打开了，哎呀，肚子不饿了，起应用一切顺利，先让别人开工吧。</p>
<p>造成ORA-00600 [2103]错误的原因有下：</p>
<p>1) 控制文件存放在I/O非常慢的存储系统上。</p>
<p>2) 频繁的日志切换，或日志文件过小或日志文件组数目过少。</p>
<p>3) 同时使用了异步I/O或多个数据写进程。</p>
<p>4) Oracle软件内部Bug。</p>
<p>5) OS/硬件问题。</p>
<p>讯问过客户工程师，确实在前一天18：30的时候进行数据整理，发生过非常频繁的日志切换，高峰时1分钟达5次日志切换，但在其后一天是正常的，由于环境复杂，暂时先做如下测试：（以影响业务程度最小化且实施难易程度依次列出）</p>
<p>1. 增大日志组成员大小，同时增加日志组数目。</p>
<p>2. 由于业务的特殊性，商讨能否修改备份策略来避开热备份。</p>
<p>3. 根据官方建议打补丁：Patch 5923866，在失效的情况下，将系统升级到10.2.0.4.0之上（最新分布为10.2.0.5.0）</p>
<p>4. 将操作系统从AIX 5.2 ML04升级到AIX 5.2 ML05（Oracle在<strong>[ID 406191.1]</strong>中建议）</p>
<p>BTW：在我重启完系统后问客户，此套系统应该有Dataguard的吧，答案是肯定的。到这里，可能大家会说为什么不在出问题的时候将系统切换到备机上。其实切换系统更多决定因素不仅仅只在技术层面的。</p>
<p>-The End-</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Frman-ora-1950427038.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F07%2Fora-00600-2103.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">RMAN ORA-19504、ORA-27038错误解决方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fora-12547-tns-lost-contact.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F07%2Fora-00600-2103.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ORA-12547: TNS:lost contact</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2012%2F01%2Ferror-ora-12547.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F07%2Fora-00600-2103.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle Database Fails to Start with Error ORA-12547</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F07%2Fora-00600-2103.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">AIX network buffer参数设置引起RAC故障</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2010/07/ora-00600-2103.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>expdp的network_link参数</title>
		<link>http://www.ochef.net/2010/05/expdp-of-network_link-parameters.html</link>
		<comments>http://www.ochef.net/2010/05/expdp-of-network_link-parameters.html#comments</comments>
		<pubDate>Wed, 19 May 2010 04:27:33 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[expdp]]></category>
		<category><![CDATA[network_link]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=833</guid>
		<description><![CDATA[expdp是server端工具，但可以通过NETWORK_LINK参数实现远端导出，但是前提是远端也安装有Oracle数据库，只有CLIENT端是没有办法利用数据泵的。 这里要指出的是：network_link不支持远端导出分区表中的某一个分区，但可以导整个分区表。以下为测试过程： 创建分区表sales： [oracle@ora10g ~]$ sqlplus &#8216;/as sysdba&#8217; SQL&#62; CREATE TABLE sales (sale_date DATE NOT NULL) PARTITION BY RANGE (sale_date) (PARTITION sales2010_q1 VALUES LESS THAN (TO_DATE(&#8217;2010-04-01&#8242;,&#8217;YYYY-MM-DD&#8217;)) TABLESPACE sp1, PARTITION sales2010_q2 VALUES LESS THAN (TO_DATE(&#8217;2010-07-01&#8242;,&#8217;YYYY-MM-DD&#8217;)) TABLESPACE sp2, PARTITION sales2010_q3 VALUES LESS THAN (TO_DATE(&#8217;2010-10-01&#8242;,&#8217;YYYY-MM-DD&#8217;)) TABLESPACE sp3); 插入4条记录： SQL&#62; select count(*) from sales; COUNT(*) &#8212;&#8212;&#8212;- 4 SQL&#62; select [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fexpdp-of-network_link-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">AIX network buffer参数设置引起RAC故障</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F01%2Fvip-failover-take-long-time-after-network-cable-pulled.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fexpdp-of-network_link-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIP Failover Take Long Time After Network Cable Pulled</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Flearning-nfs-network-file-system-optimization-b.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fexpdp-of-network_link-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">学习：NFS网络文件系统优化(二)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Fstudy-aix-5l-network-performance-a.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fexpdp-of-network_link-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">学习：AIX 5L网络性能优化(一)</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>expdp是server端工具，但可以通过NETWORK_LINK参数实现远端导出，但是前提是远端也安装有Oracle数据库，只有CLIENT端是没有办法利用数据泵的。</p>
<p>这里要指出的是：network_link不支持远端导出分区表中的某一个分区，但可以导整个分区表。以下为测试过程：</p>
<p><strong>创建分区表sales：</strong></p>
<p>[oracle@ora10g ~]$ sqlplus &#8216;/as sysdba&#8217;</p>
<p>SQL&gt; CREATE TABLE sales</p>
<p>(sale_date DATE NOT NULL)</p>
<p>PARTITION BY RANGE (sale_date)</p>
<p>(PARTITION sales2010_q1</p>
<p>VALUES LESS THAN (TO_DATE(&#8217;2010-04-01&#8242;,&#8217;YYYY-MM-DD&#8217;))</p>
<p>TABLESPACE sp1,</p>
<p>PARTITION sales2010_q2</p>
<p>VALUES LESS THAN (TO_DATE(&#8217;2010-07-01&#8242;,&#8217;YYYY-MM-DD&#8217;))</p>
<p>TABLESPACE sp2,</p>
<p>PARTITION sales2010_q3</p>
<p>VALUES LESS THAN (TO_DATE(&#8217;2010-10-01&#8242;,&#8217;YYYY-MM-DD&#8217;))</p>
<p>TABLESPACE sp3);</p>
<p><strong>插入4条记录： </strong></p>
<p>SQL&gt; select count(*) from sales;</p>
<p>COUNT(*)</p>
<p>&#8212;&#8212;&#8212;-</p>
<p>4</p>
<p>SQL&gt; select * from sales partition(sales2010_q1);</p>
<p>SALE_DATE</p>
<p>&#8212;&#8212;&#8212;&#8212;</p>
<p>23-MAR-10</p>
<p>SQL&gt; select * from sales partition(sales2010_q2);</p>
<p>SALE_DATE</p>
<p>&#8212;&#8212;&#8212;&#8212;</p>
<p>23-JUN-10</p>
<p>22-JUN-10</p>
<p>SQL&gt; select * from sales partition(sales2010_q3);</p>
<p>SALE_DATE</p>
<p>&#8212;&#8212;&#8212;&#8212;</p>
<p>23-SEP-10</p>
<p><strong>远端机器上创建 directory目录、赋权、创建dblink:</strong></p>
<p>[oracle@node1 /]$ sqlplus &#8216;/as sysdba&#8217;</p>
<p>SQL&gt; create directory dump_dir as &#8216;/backup&#8217;;</p>
<p>Directory created.</p>
<p>SQL&gt; grant read,write on directory dump_dir to ochef;</p>
<p>Grant succeeded.</p>
<p>SQL&gt; create database link test connect to ochef identified by oracle using &#8216;primary&#8217;;</p>
<p>Database link created.</p>
<p>SQL&gt; select count(*) from ochef.sales@test;</p>
<p>COUNT(*)</p>
<p>&#8212;&#8212;&#8212;-</p>
<p>4</p>
<p><strong>远程导出整个分区表：</strong></p>
<p>[oracle@node1 ~]$ expdp ochef/oracle directory=dump_dir dumpfile=sales.dmp network_link=test tables=sales</p>
<p>Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 &#8211; Production</p>
<p>With the Partitioning, Real Application Clusters, OLAP, Data Mining</p>
<p>and Real Application Testing options</p>
<p>Starting &#8220;OCHEF&#8221;.&#8221;SYS_EXPORT_TABLE_01&#8243;:  ochef/******** directory=dump_dir dumpfile=sales.dmp network_link=test tables=sales</p>
<p>Estimate in progress using BLOCKS method&#8230;</p>
<p>Processing object type TABLE_EXPORT/TABLE/TABLE_DATA</p>
<p>Total estimation using BLOCKS method: 384 KB</p>
<p>Processing object type TABLE_EXPORT/TABLE/TABLE</p>
<p><span style="color: #ff0000;">. . exported &#8220;OCHEF&#8221;.&#8221;SALES&#8221;                             4.960 KB       4 rows</span></p>
<p>Master table &#8220;OCHEF&#8221;.&#8221;SYS_EXPORT_TABLE_01&#8243; successfully loaded/unloaded</p>
<p>******************************************************************************</p>
<p>Dump file set for OCHEF.SYS_EXPORT_TABLE_01 is:</p>
<p>/backup/sales.dmp</p>
<p>Job &#8220;OCHEF&#8221;.&#8221;SYS_EXPORT_TABLE_01&#8243; successfully completed at 11:12:43</p>
<p><strong>远程导出分区表的某个分区：</strong></p>
<p>[oracle@node1 ~]$ expdp ochef/oracle directory=dump_dir dumpfile=sales.dmp network_link=test tables=sales:sales2010_q2</p>
<p><span style="color: #ff0000;">ORA-39001: invalid argument value</span></p>
<p><span style="color: #ff0000;">ORA-39203: Partition selection is not supported over a network link.</span></p>
<p><strong>本地导出分区表的某个分区：</strong></p>
<p>[oracle@ora10g ~]$ expdp ochef/oracle directory=dump_dir dumpfile=sales.dmp tables=sales:sales2010_q2</p>
<p>Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 &#8211; Production</p>
<p>With the Partitioning, OLAP, Data Mining and Real Application Testing options</p>
<p>Starting &#8220;OCHEF&#8221;.&#8221;SYS_EXPORT_TABLE_01&#8243;:  ochef/******** directory=dump_dir dumpfile=sales.dmp tables=sales:sales2010_q2</p>
<p>Estimate in progress using BLOCKS method&#8230;</p>
<p>Processing object type TABLE_EXPORT/TABLE/TABLE_DATA</p>
<p>Total estimation using BLOCKS method: 128 KB</p>
<p>Processing object type TABLE_EXPORT/TABLE/TABLE</p>
<p><span style="color: #ff0000;">. . exported &#8220;OCHEF&#8221;.&#8221;SALES&#8221;:&#8221;SALES2010_Q2&#8243;              4.937 KB       2 rows</span></p>
<p>Master table &#8220;OCHEF&#8221;.&#8221;SYS_EXPORT_TABLE_01&#8243; successfully loaded/unloaded</p>
<p>******************************************************************************</p>
<p>Dump file set for OCHEF.SYS_EXPORT_TABLE_01 is:</p>
<p>/backup/sales.dmp</p>
<p>Job &#8220;OCHEF&#8221;.&#8221;SYS_EXPORT_TABLE_01&#8243; successfully completed at 11:07:07</p>
<p>关于远程expdp用户权限问题，请移步<a href="http://space.itpub.net/4227/viewspace-448665" target="_blank">这里</a>。</p>
<p>-The End-</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fexpdp-of-network_link-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">AIX network buffer参数设置引起RAC故障</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F01%2Fvip-failover-take-long-time-after-network-cable-pulled.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fexpdp-of-network_link-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">VIP Failover Take Long Time After Network Cable Pulled</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Flearning-nfs-network-file-system-optimization-b.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fexpdp-of-network_link-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">学习：NFS网络文件系统优化(二)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F11%2Fstudy-aix-5l-network-performance-a.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fexpdp-of-network_link-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">学习：AIX 5L网络性能优化(一)</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2010/05/expdp-of-network_link-parameters.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>db_unique_name与service_name</title>
		<link>http://www.ochef.net/2010/05/db_unique_name-and-service_name.html</link>
		<comments>http://www.ochef.net/2010/05/db_unique_name-and-service_name.html#comments</comments>
		<pubDate>Wed, 19 May 2010 01:59:16 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[db_unique_name]]></category>
		<category><![CDATA[service_name]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=830</guid>
		<description><![CDATA[为了data guard在角色切换时不用事先准备好二个init.ora参数文件，那么就需要配置valid_for参数，类似如下配置（备库）： db_unique_name=ora10gstd log_archive_dest_1=&#8217;location=/u01/app/oracle/oradata/ora10g/archive valid_for=(all_logfiles,all_roles) db_unique_name=ora10gstd&#8217; log_archive_dest_2=&#8217;service=standby lgwr async valid_for=(online_logfiles,primary_role)   db_unique_name=ora10g&#8217; db_unique_name在oracle的高可用dataguard的应用中会经常使用，有和db_name不一样的作用，在物理dg中，要求主、从库都有一样的db_name（虽然他们和rac不一样，并不是同一个库），但是他们的db_unique_name是不一样的，用以进行不同的标示。 注意：如果修改了db_unique_name的值，会影响到Service_names，也会影响到动态监听的service_name，因此，也应修改tnsnames.ora文件中service_name的服务名，否则，即使tnsping能通，但无法提供相应的服务。 -The End-<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Fdb2_vs_oracle_01.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fdb_unique_name-and-service_name.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">DB2对比Oracle学习系列之:instance &amp; database concepts</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Finstall-db2-9-1-for-linux.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fdb_unique_name-and-service_name.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install DB2 9.1 for Linux</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Fconfigure-ora11gr2-t-gateway-for-db2udb.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fdb_unique_name-and-service_name.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Configure Ora11gR2 T-gateway for DB2UDB</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fdb_files-and-maxdatafiles-argument.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fdb_unique_name-and-service_name.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">db_files and maxdatafiles argument</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>为了data guard在角色切换时不用事先准备好二个init.ora参数文件，那么就需要配置valid_for参数，类似如下配置（备库）：</p>
<p>db_unique_name=ora10gstd</p>
<p>log_archive_dest_1=&#8217;location=/u01/app/oracle/oradata/ora10g/archive valid_for=(all_logfiles,all_roles) db_unique_name=ora10gstd&#8217;</p>
<p>log_archive_dest_2=&#8217;service=standby lgwr async valid_for=(online_logfiles,primary_role)   db_unique_name=ora10g&#8217;</p>
<p>db_unique_name在oracle的高可用dataguard的应用中会经常使用，有和db_name不一样的作用，在物理dg中，要求主、从库都有一样的db_name（虽然他们和rac不一样，并不是同一个库），但是他们的db_unique_name是不一样的，用以进行不同的标示。</p>
<p><strong>注意：如果修改了db_unique_name的值，会影响到Service_names，也会影响到动态监听的service_name，因此，也应修改tnsnames.ora文件中service_name的服务名，否则，即使tnsping能通，但无法提供相应的服务。</strong></p>
<p>-The End-</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Fdb2_vs_oracle_01.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fdb_unique_name-and-service_name.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">DB2对比Oracle学习系列之:instance &amp; database concepts</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Finstall-db2-9-1-for-linux.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fdb_unique_name-and-service_name.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install DB2 9.1 for Linux</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Fconfigure-ora11gr2-t-gateway-for-db2udb.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fdb_unique_name-and-service_name.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Configure Ora11gR2 T-gateway for DB2UDB</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fdb_files-and-maxdatafiles-argument.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fdb_unique_name-and-service_name.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">db_files and maxdatafiles argument</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2010/05/db_unique_name-and-service_name.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Restart</title>
		<link>http://www.ochef.net/2010/04/oracle-restart.html</link>
		<comments>http://www.ochef.net/2010/04/oracle-restart.html#comments</comments>
		<pubDate>Wed, 21 Apr 2010 05:21:38 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[restart]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=827</guid>
		<description><![CDATA[接上一篇文章，我用同样的安装方法同样的配置成功了，也许还真是版本不兼容的问题。 [oracle@ora11gr2 ~]$ cat /etc/issue Enterprise Linux Enterprise Linux Server release 5.3 (Carthage) [oracle@ora11gr2 ~]$ uname -a Linux ora11gr2 2.6.18-128.el5 #1 SMP Wed Jan 21 07:58:05 EST 2009 i686 i686 i386 GNU/Linux [oracle@ora11gr2 ~]$ srvctl config database -d ora11gr2 -a Database unique name: ora11gr2 Database name: Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1 Oracle user: oracle Spfile: Domain: Start [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Fconfigure-ora11gr2-t-gateway-for-db2udb.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Foracle-restart.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Configure Ora11gR2 T-gateway for DB2UDB</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Ftravel-shang-chuan-dao.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Foracle-restart.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">游记：上川岛</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Fdb2_vs_oracle_01.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Foracle-restart.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">DB2对比Oracle学习系列之:instance &amp; database concepts</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F07%2Fibm-ds4300-firmware-upgrade.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Foracle-restart.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IBM DS4300微码升级失败解决办法</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>接<a href="http://www.ochef.net/2010/04/ora-12547-tns-lost-contact/" target="_blank">上一篇</a>文章，我用同样的安装方法同样的配置成功了，也许还真是版本不兼容的问题。</p>
<p>[oracle@ora11gr2 ~]$ cat /etc/issue<br />
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)</p>
<p>[oracle@ora11gr2 ~]$ uname -a<br />
Linux ora11gr2 2.6.18-128.el5 #1 SMP Wed Jan 21 07:58:05 EST 2009 i686 i686 i386 GNU/Linux</p>
<p>[oracle@ora11gr2 ~]$ srvctl config database -d ora11gr2 -a<br />
Database unique name: ora11gr2<br />
Database name:<br />
Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1<br />
Oracle user: oracle<br />
Spfile:<br />
Domain:<br />
Start options: open<br />
Stop options: immediate<br />
Database role: PRIMARY<br />
Management policy: AUTOMATIC<br />
Disk Groups:<br />
Services:<br />
Database is enabled<br />
[oracle@ora11gr2 ~]$</p>
<p>模拟了进程异常终止之后，restart将其启动的过程：</p>
<p>[oracle@ora11gr2 ~]$ srvctl start database -d ora11gr2<br />
[oracle@ora11gr2 ~]$ ps -ef|grep ora_<br />
oracle    4881     1  0 12:42 ?        00:00:00 ora_pmon_ora11gr2<br />
oracle    4883     1  0 12:42 ?        00:00:00 ora_vktm_ora11gr2<br />
oracle    4887     1  0 12:42 ?        00:00:00 ora_gen0_ora11gr2<br />
oracle    4889     1  0 12:42 ?        00:00:00 ora_diag_ora11gr2<br />
oracle    4891     1  0 12:42 ?        00:00:00 ora_dbrm_ora11gr2<br />
oracle    4893     1  1 12:42 ?        00:00:00 ora_psp0_ora11gr2<br />
oracle    4895     1  1 12:42 ?        00:00:00 ora_dia0_ora11gr2<br />
oracle    4897     1 21 12:42 ?        00:00:03 ora_mman_ora11gr2<br />
oracle    <span style="color: #ff0000;">4899 </span> 1  0 12:42 ?        00:00:00 ora_dbw0_ora11gr2<br />
oracle    4901     1  2 12:42 ?        00:00:00 ora_lgwr_ora11gr2<br />
oracle    4903     1  0 12:42 ?        00:00:00 ora_ckpt_ora11gr2<br />
oracle    4905     1  1 12:42 ?        00:00:00 ora_smon_ora11gr2<br />
oracle    4907     1  0 12:42 ?        00:00:00 ora_reco_ora11gr2<br />
oracle    4909     1  6 12:42 ?        00:00:00 ora_mmon_ora11gr2<br />
oracle    4911     1  0 12:42 ?        00:00:00 ora_mmnl_ora11gr2<br />
oracle    4913     1  0 12:42 ?        00:00:00 ora_d000_ora11gr2<br />
oracle    4915     1  0 12:42 ?        00:00:00 ora_s000_ora11gr2<br />
oracle    4985     1  0 12:42 ?        00:00:00 ora_p000_ora11gr2<br />
oracle    4987     1  0 12:42 ?        00:00:00 ora_p001_ora11gr2<br />
oracle    4989     1  0 12:42 ?        00:00:00 ora_qmnc_ora11gr2<br />
oracle    5007     1  7 12:42 ?        00:00:00 ora_cjq0_ora11gr2<br />
oracle    5011     1 34 12:42 ?        00:00:00 ora_j000_ora11gr2<br />
oracle    5013     1  8 12:42 ?        00:00:00 ora_j001_ora11gr2<br />
oracle    5015  3000  0 12:42 pts/0    00:00:00 grep ora_<br />
[oracle@ora11gr2 ~]$ date<br />
Wed Apr 21 12:42:59 CST 2010<br />
[oracle@ora11gr2 ~]$ kill -9 <span style="color: #ff0000;">4899</span><br />
[oracle@ora11gr2 ~]$ ps -ef|grep ora_<br />
oracle    5100     1 10 12:43 ?        00:00:00 ora_pmon_ora11gr2<br />
oracle    5102     1 11 12:43 ?        00:00:00 ora_vktm_ora11gr2<br />
oracle    5106     1  9 12:43 ?        00:00:00 ora_gen0_ora11gr2<br />
oracle    5108     1  9 12:43 ?        00:00:00 ora_diag_ora11gr2<br />
oracle    5110     1 10 12:43 ?        00:00:00 ora_dbrm_ora11gr2<br />
oracle    5112     1  7 12:43 ?        00:00:00 ora_psp0_ora11gr2<br />
oracle    5114  3000  0 12:43 pts/0    00:00:00 grep ora_<br />
[oracle@ora11gr2 ~]$ ps -ef|grep ora_<br />
oracle    5100     1  1 12:43 ?        00:00:00 ora_pmon_ora11gr2<br />
oracle    5102     1  0 12:43 ?        00:00:00 ora_vktm_ora11gr2<br />
oracle    5106     1  0 12:43 ?        00:00:00 ora_gen0_ora11gr2<br />
oracle    5108     1  0 12:43 ?        00:00:00 ora_diag_ora11gr2<br />
oracle    5110     1  1 12:43 ?        00:00:00 ora_dbrm_ora11gr2<br />
oracle    5112     1  1 12:43 ?        00:00:00 ora_psp0_ora11gr2<br />
oracle    5116     1  1 12:43 ?        00:00:00 ora_dia0_ora11gr2<br />
oracle    5118     1 24 12:43 ?        00:00:02 ora_mman_ora11gr2<br />
oracle    <span style="color: #ff0000;">5120</span> 1  1 12:43 ?        00:00:00 ora_dbw0_ora11gr2<br />
oracle    5122     1  1 12:43 ?        00:00:00 ora_lgwr_ora11gr2<br />
oracle    5124     1  1 12:43 ?        00:00:00 ora_ckpt_ora11gr2<br />
oracle    5126     1  2 12:43 ?        00:00:00 ora_smon_ora11gr2<br />
oracle    5128     1  0 12:43 ?        00:00:00 ora_reco_ora11gr2<br />
oracle    5130     1  6 12:43 ?        00:00:00 ora_mmon_ora11gr2<br />
oracle    5132     1  1 12:43 ?        00:00:00 ora_mmnl_ora11gr2<br />
oracle    5134     1  0 12:43 ?        00:00:00 ora_d000_ora11gr2<br />
oracle    5136     1  0 12:43 ?        00:00:00 ora_s000_ora11gr2<br />
oracle    5206     1  2 12:43 ?        00:00:00 ora_p000_ora11gr2<br />
oracle    5208     1  1 12:43 ?        00:00:00 ora_p001_ora11gr2<br />
oracle    5210     1  1 12:43 ?        00:00:00 ora_qmnc_ora11gr2<br />
oracle    5228     1  2 12:43 ?        00:00:00 ora_cjq0_ora11gr2<br />
oracle    5232  3000  0 12:43 pts/0    00:00:00 grep ora_<br />
[oracle@ora11gr2 ~]$ date<br />
Wed Apr 21 12:43:35 CST 2010</p>
<p><a href="http://www.dbform.com/html/2010/1110.html" target="_blank">这里</a>你还可以参考kamus大师的文章。</p>
<p>-The End-</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Finstall-db2-9-1-for-linux.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Foracle-restart.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install DB2 9.1 for Linux</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F01%2Ftravels-zunyi-conference-hall.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Foracle-restart.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">游记：遵义会议纪念馆</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fnovice-macro-shot.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Foracle-restart.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">新手拍微距</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F10%2Fyou-wanna-win-10million.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Foracle-restart.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">You wanna win $10 Million!</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2010/04/oracle-restart.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-12547: TNS:lost contact</title>
		<link>http://www.ochef.net/2010/04/ora-12547-tns-lost-contact.html</link>
		<comments>http://www.ochef.net/2010/04/ora-12547-tns-lost-contact.html#comments</comments>
		<pubDate>Sun, 18 Apr 2010 13:21:04 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[ORA-12547]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=817</guid>
		<description><![CDATA[这个错误还真没碰到过，记录一下。 背景：原本想在VMware+OEL5.3+ORACLE 11.2（已创建了单实例数据库,32bit）上安装Grid Infrastructure，最终目的就是想使用Oracle Restart，Restart是集成在Grid Infrastructure里面的不能单独安装，可以像在10g里使用SRVCTL来管理数据库，当然单实例也是可以的，且还有另一大好处就是用restart管理的资源譬如instance、listener等在进程异常终止后会自动启动（注：在sqlplus中用命令停止的restart不能再次自动启动）。结果grid是安装成功了，但是在SRVCTL中配置实例、监听信息的时候报错无法配置成功，后来想是不是应该先安装grid再安装Oracle最后再建库（后查阅资料grid是可以在已有库上安装的），说干就干，反正按照自己写的文档ctrl+c、ctrl+v的也快，再加上RHEL不久前发布了5.5，ORACLE在之后的一个多星期也放出了OEL5.5，想着测试一下新版本，从安装OS－&#62;修改系统参数、配置Oracle用户环境变量—&#62;安装Oracle软件一切顺利，哪知DBCA到最后一步出现： ORA-12547: TNS:lost contact 好家伙，半道杀出个程咬金，最初以因xmanager出问题了，由于建库的脚本刚刚已经创建，心想用CRT手工建库得了，往往越想快点看得结果却越看不到结果： [oracle@ora11.2 ~]$ sqlplus &#8216;/as sysdba&#8217; SQL*Plus: Release 11.2.0.1.0 Production on Sun Apr 18 09:24:31 2010 Copyright (c) 1982, 2009, Oracle.  All rights reserved. ERROR: ORA-12547: TNS:lost contact Enter user-name: 兄弟，咋的了，装了无数次系统还从未遇到这种情况啊，什么原因引起的还真不知道，唉，先google一下，说可能是libaio-0.3.106、binutils相关包没有安装，打开Oracle在线文档一个一个检查，可结果是都安装了啊 [root@ora11.2 ~]# uname -a Linux ora11.2 2.6.18-194.el5 #1 SMP Mon Mar 29 20:06:41 EDT 2010 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2012%2F01%2Ferror-ora-12547.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fora-12547-tns-lost-contact.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle Database Fails to Start with Error ORA-12547</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Frman-ora-1950427038.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fora-12547-tns-lost-contact.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">RMAN ORA-19504、ORA-27038错误解决方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F07%2Fora-00600-2103.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fora-12547-tns-lost-contact.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ORA-00600:[2103],[1],[0],[1],[900]的处理</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Fconfigure-ora11gr2-t-gateway-for-db2udb.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fora-12547-tns-lost-contact.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Configure Ora11gR2 T-gateway for DB2UDB</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>这个错误还真没碰到过，记录一下。</p>
<p>背景：原本想在VMware+OEL5.3+ORACLE 11.2（已创建了单实例数据库,32bit）上安装Grid Infrastructure，最终目的就是想使用Oracle Restart，Restart是集成在Grid Infrastructure里面的不能单独安装，可以像在10g里使用SRVCTL来管理数据库，当然单实例也是可以的，且还有另一大好处就是用restart管理的资源譬如instance、listener等在进程异常终止后会自动启动（注：在sqlplus中用命令停止的restart不能再次自动启动）。结果grid是安装成功了，但是在SRVCTL中配置实例、监听信息的时候报错无法配置成功，后来想是不是应该先安装grid再安装Oracle最后再建库（后查阅资料grid是可以在已有库上安装的），说干就干，反正按照自己写的文档ctrl+c、ctrl+v的也快，再加上RHEL不久前发布了5.5，ORACLE在之后的一个多星期也放出了OEL5.5，想着测试一下新版本，从安装OS－&gt;修改系统参数、配置Oracle用户环境变量—&gt;安装Oracle软件一切顺利，哪知DBCA到最后一步出现：</p>
<p>ORA-12547: TNS:lost contact</p>
<p>好家伙，半道杀出个程咬金，最初以因xmanager出问题了，由于建库的脚本刚刚已经创建，心想用CRT手工建库得了，往往越想快点看得结果却越看不到结果：</p>
<p>[oracle@ora11.2 ~]$ sqlplus &#8216;/as sysdba&#8217;</p>
<p>SQL*Plus: Release 11.2.0.1.0 Production on Sun Apr 18 09:24:31 2010</p>
<p>Copyright (c) 1982, 2009, Oracle.  All rights reserved.</p>
<p>ERROR:<br />
ORA-12547: TNS:lost contact</p>
<p>Enter user-name:</p>
<p>兄弟，咋的了，装了无数次系统还从未遇到这种情况啊，什么原因引起的还真不知道，唉，先google一下，说可能是libaio-0.3.106、binutils相关包没有安装，打开Oracle在线文档一个一个检查，可结果是都安装了啊</p>
<p>[root@ora11.2 ~]# uname -a<br />
Linux ora11.2 2.6.18-194.el5 #1 SMP Mon Mar 29 20:06:41 EDT 2010 i686 i686 i386 GNU/Linux<br />
[root@ora11.2 ~]# cat /etc/issue<br />
Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)</p>
<p>[root@ora11.2 ~]# rpm -q &#8211;verify `uname -r | awk -FEL &#8216;{ printf(&#8220;kernel-%s-%sEL\n&#8221;,$2,$1); }&#8217; | sed &#8216;s/&#8211;/-/g&#8217;`<br />
package kernel-2.6.18-194.el5EL is not installed</p>
<p>不知道为什么说我没有安装kernel,实际上是安装了的</p>
<p>[root@ora11.2 ~]# rpm -qa|grep kernel<br />
kernel-headers-2.6.18-194.el5<br />
kernel-2.6.18-194.el5</p>
<p>不行了，上MOS找找，根据ID 272516.1说的，应该是kernel参数设置问题，这里RedHat给出了一张<a href="http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/admin_user/kernel-resources.html" target="_blank">图</a>：</p>
<table border="1" cellspacing="0" cellpadding="4" bgcolor="#e0e0e0">
<thead>
<tr>
<th align="LEFT" valign="TOP">Name</th>
<th align="LEFT" valign="TOP">Description</th>
<th align="LEFT" valign="TOP">Reasonable  Values</th>
</tr>
</thead>
<tbody>
<tr>
<td align="LEFT" valign="TOP"><tt>SHMMAX</tt></td>
<td align="LEFT" valign="TOP">Maximum  size of shared memory segment (bytes)</td>
<td align="LEFT" valign="TOP">250kB  + 8.2kB * <tt>shared_buffers</tt> + 14.2kB * <tt>max_connections</tt> or infinity</td>
</tr>
<tr>
<td align="LEFT" valign="TOP"><tt>SHMMIN</tt></td>
<td align="LEFT" valign="TOP">Minimum size of shared memory segment (bytes)</td>
<td align="LEFT" valign="TOP">1</td>
</tr>
<tr>
<td align="LEFT" valign="TOP"><tt>SHMALL</tt></td>
<td align="LEFT" valign="TOP">Total  amount of shared memory available (bytes or pages)</td>
<td align="LEFT" valign="TOP">if bytes, same as <tt>SHMMAX</tt>; if  pages, <tt>ceil(SHMMAX/PAGE_SIZE)</tt></td>
</tr>
<tr>
<td align="LEFT" valign="TOP"><tt>SHMSEG</tt></td>
<td align="LEFT" valign="TOP">Maximum number of shared memory segments per  process</td>
<td align="LEFT" valign="TOP">only 1 segment is needed, but  the default is much higher</td>
</tr>
<tr>
<td align="LEFT" valign="TOP"><tt>SHMMNI</tt></td>
<td align="LEFT" valign="TOP">Maximum  number of shared memory segments system-wide</td>
<td align="LEFT" valign="TOP">like <tt>SHMSEG</tt> plus room for other  applications</td>
</tr>
<tr>
<td align="LEFT" valign="TOP"><tt>SEMMNI</tt></td>
<td align="LEFT" valign="TOP">Maximum  number of semaphore identifiers (that is, sets)</td>
<td align="LEFT" valign="TOP">&gt;= ceil(max_connections / 16)</td>
</tr>
<tr>
<td align="LEFT" valign="TOP"><tt>SEMMNS</tt></td>
<td align="LEFT" valign="TOP">Maximum number of semaphores system-wide</td>
<td align="LEFT" valign="TOP">ceil(max_connections / 16) * 17 + room for  other applications</td>
</tr>
<tr>
<td align="LEFT" valign="TOP"><tt>SEMMSL</tt></td>
<td align="LEFT" valign="TOP">Maximum  number of semaphores per set</td>
<td align="LEFT" valign="TOP">&gt;= 17</td>
</tr>
<tr>
<td align="LEFT" valign="TOP"><tt>SEMMAP</tt></td>
<td align="LEFT" valign="TOP">Number of entries in semaphore map</td>
<td align="LEFT" valign="TOP">see text</td>
</tr>
<tr>
<td align="LEFT" valign="TOP"><tt>SEMVMX</tt></td>
<td align="LEFT" valign="TOP">Maximum value of semaphore</td>
<td align="LEFT" valign="TOP">&gt;= 255  (The default is often 32767, do not change  unless asked to.)</td>
</tr>
</tbody>
</table>
<p>结果反复的检查调整内核参数，二个比较重要的参数：</p>
<p><span style="color: #ff0000;">kernel.shmall</span> = 2097152  共享内存总量，以页为单位,对于32位系统，一页=4k，也就是4096字节,2097152*4k/1024/1024 = 8G 就是说可用共享内存一共8G<br />
<span style="color: #ff0000;">kernel.shmmax</span> = 2147483648 （默认536870912，512M）  以字节为单位</p>
<p>检查oracle的环境变量，relink all等一系列操作结果错误依旧没有消除。突然想起在安装64位系统的时候，默认只安装了32位的包，必须手工再次安装相应64位的包，<strong>那反过来是不是安装32位是不是也需要64位的某些包（当时确实这样想的，现在觉得有点扯啊）</strong>，在经历三个多小时的下载时间后强行安装部分64位的包后重启系统，测试，FT。</p>
<p>现在怀疑是OEL与Oracle软件版本兼容的问题，如果有解决过相同问题的朋友还请告之。</p>
<p>-The End-</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2012%2F01%2Ferror-ora-12547.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fora-12547-tns-lost-contact.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle Database Fails to Start with Error ORA-12547</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Frman-ora-1950427038.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fora-12547-tns-lost-contact.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">RMAN ORA-19504、ORA-27038错误解决方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F07%2Fora-00600-2103.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fora-12547-tns-lost-contact.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ORA-00600:[2103],[1],[0],[1],[900]的处理</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Fconfigure-ora11gr2-t-gateway-for-db2udb.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fora-12547-tns-lost-contact.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Configure Ora11gR2 T-gateway for DB2UDB</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2010/04/ora-12547-tns-lost-contact.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>db_files and maxdatafiles argument</title>
		<link>http://www.ochef.net/2010/04/db_files-and-maxdatafiles-argument.html</link>
		<comments>http://www.ochef.net/2010/04/db_files-and-maxdatafiles-argument.html#comments</comments>
		<pubDate>Fri, 09 Apr 2010 14:33:59 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[db_files;maxdatafiles]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=814</guid>
		<description><![CDATA[今天学习了db_files和maxdatafiles两个参数，记录一下。比较了9i、10g、11g三个版本，在我的实验环境中（都是默认没有修改过的），9i、10g、11g的db_files默认值为200，而9i、11g的maxdatafiles为100，10g rac环境为1024，单实例为100。db_files参数在数据库的初始化参数文件中指定，maxdatafiles在控制文件中指定,一般db_files&#60;=maxdatafiles。如果在添加一个数据文件时，其编号已经超出了maxdatafiles的设定值，但是小于或等于db_files的设定值，控制文件会自动扩展maxdatafiles的值以满足容纳更多的数据文件信息的需求，所以指定db_files参数的值对数据库更为关键和重要，因为maxdatafiles会自动扩展。 BTW:指定db_files的值会影响数据库内存的使用，详情请参考eagle的相关文章。 -The End-<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Fdb2_vs_oracle_01.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fdb_files-and-maxdatafiles-argument.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">DB2对比Oracle学习系列之:instance &amp; database concepts</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Fconfigure-ora11gr2-t-gateway-for-db2udb.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fdb_files-and-maxdatafiles-argument.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Configure Ora11gR2 T-gateway for DB2UDB</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Finstall-db2-9-1-for-linux.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fdb_files-and-maxdatafiles-argument.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install DB2 9.1 for Linux</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fdb_unique_name-and-service_name.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fdb_files-and-maxdatafiles-argument.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">db_unique_name与service_name</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天学习了db_files和maxdatafiles两个参数，记录一下。比较了9i、10g、11g三个版本，在我的实验环境中（都是默认没有修改过的），9i、10g、11g的db_files默认值为200，而9i、11g的maxdatafiles为100，10g rac环境为1024，单实例为100。db_files参数在数据库的初始化参数文件中指定，maxdatafiles在控制文件中指定,一般db_files&lt;=maxdatafiles。如果在添加一个数据文件时，其编号已经超出了maxdatafiles的设定值，但是小于或等于db_files的设定值，控制文件会自动扩展maxdatafiles的值以满足容纳更多的数据文件信息的需求，所以指定db_files参数的值对数据库更为关键和重要，因为maxdatafiles会自动扩展。</p>
<p>BTW:指定db_files的值会影响数据库内存的使用，详情请参考<a href="http://www.dbafan.com/blog/" target="_blank">eagle</a>的<a href="http://www.dbafan.com/blog/?p=92" target="_blank">相关文章</a>。</p>
<p>-The End-</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Fdb2_vs_oracle_01.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fdb_files-and-maxdatafiles-argument.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">DB2对比Oracle学习系列之:instance &amp; database concepts</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Fconfigure-ora11gr2-t-gateway-for-db2udb.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fdb_files-and-maxdatafiles-argument.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Configure Ora11gR2 T-gateway for DB2UDB</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F09%2Finstall-db2-9-1-for-linux.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fdb_files-and-maxdatafiles-argument.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install DB2 9.1 for Linux</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F05%2Fdb_unique_name-and-service_name.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fdb_files-and-maxdatafiles-argument.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">db_unique_name与service_name</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2010/04/db_files-and-maxdatafiles-argument.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AIX network buffer参数设置引起RAC故障</title>
		<link>http://www.ochef.net/2010/03/aix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html</link>
		<comments>http://www.ochef.net/2010/03/aix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html#comments</comments>
		<pubDate>Fri, 26 Mar 2010 04:49:54 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[ora-600[12333]]]></category>
		<category><![CDATA[rac_udp]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=807</guid>
		<description><![CDATA[故障日期：2010年3月23日 11:30 AM 生产环境：数据库：  Oracle 10.2.0.4  2Nodes RAC 操作系统：AIX 5309 故障现象： 现象1：在23日上午11:30，发现应用系统不能连接到RAC的实例1（Instance name:int1），此时实例2是正常的。 现象2：使用辅助工具TOAD也不能连接到实例1。 现象3：在实例1所在机器的本地使用SQLPLUS可以连接到实例1，此时也能在实例2上通过TNS连接到实例1。 现象4：15：19重启实例1后系统恢复正常。 故障分析： 1.根据实例1的alert log日志记载，在11：30记录的错误如下： Tue Mar 23 11:30:08 2010 WARNING: inbound connection timed out (ORA-3136) Tue Mar 23 11:32:05 2010 WARNING: inbound connection timed out (ORA-3136) 首先来了解ORA-3136这个错误，该错误表示客户端在sqlnet.ora文件中SQLNET.INBOUND_CONNECT_TIMEOUT参数定义的时间内没有完成登录认证，该参数默认值为60S，据Oracle官方文档记载，此默认值能够满足绝大多数条件；此外该错误还涉及到listener.ora文件中定义的参数INBOUND_CONNECT_TIMEOUT_LISTENER，Oracle 10.2.0.1之前默认值为0，从10.2.0.1开始默认值为60S，根据alert log日志记录的其它信息，目前暂时排除实例1的错误是由以上参数造成。 2.Alert log还记载 …… Tue Mar 23 12:15:36 2010 Errors in file [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Faix-using-raw-create-a-non-rac-of-the-asm.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">AIX下使用 raw 创建 non-rac 的ASM</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F07%2Fora-00600-2103.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ORA-00600:[2103],[1],[0],[1],[900]的处理</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Frman-ora-1950427038.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">RMAN ORA-19504、ORA-27038错误解决方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fora-12547-tns-lost-contact.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ORA-12547: TNS:lost contact</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>故障日期：2010年3月23日 11:30 AM</p>
<p>生产环境：数据库：  Oracle 10.2.0.4  2Nodes RAC</p>
<p>操作系统：AIX 5309</p>
<p>故障现象：</p>
<p>现象1：在23日上午11:30，发现应用系统不能连接到RAC的实例1（Instance name:int1），此时实例2是正常的。</p>
<p>现象2：使用辅助工具TOAD也不能连接到实例1。</p>
<p>现象3：在实例1所在机器的本地使用SQLPLUS可以连接到实例1，此时也能在实例2上通过TNS连接到实例1。</p>
<p>现象4：15：19重启实例1后系统恢复正常。</p>
<p><strong>故障分析：</strong></p>
<p>1.根据实例1的alert log日志记载，在11：30记录的错误如下：</p>
<p>Tue Mar 23 11:30:08 2010</p>
<p>WARNING: inbound connection timed out (ORA-3136)</p>
<p>Tue Mar 23 11:32:05 2010</p>
<p>WARNING: inbound connection timed out (ORA-3136)</p>
<p>首先来了解ORA-3136这个错误，该错误表示客户端在sqlnet.ora文件中SQLNET.INBOUND_CONNECT_TIMEOUT参数定义的时间内没有完成登录认证，该参数默认值为60S，据Oracle官方文档记载，此默认值能够满足绝大多数条件；此外该错误还涉及到listener.ora文件中定义的参数INBOUND_CONNECT_TIMEOUT_LISTENER，Oracle 10.2.0.1之前默认值为0，从10.2.0.1开始默认值为60S，根据alert log日志记录的其它信息，目前暂时排除实例1的错误是由以上参数造成。</p>
<p>2.Alert log还记载</p>
<p>……</p>
<p>Tue Mar 23 12:15:36 2010</p>
<p>Errors in file /soft/oracle/admin/int/udump/int1_ora_2617378.trc:</p>
<p>ORA-00600: internal error code, arguments: [12333], [7], [2], [49], [], [], [], []</p>
<p>……</p>
<p>根据Oracle metalink文档[ID 35928.1]描述：<strong>&#8220;Fatal Two-Task Protocol Violation&#8221;</strong></p>
<p>ORA-600 [12333]描述收到一个没有经过验证的无效的网络数据包，这里有二个可能：一是客户端多线程的应用发送了一个无顺序的OCI调用请求，二是网络缓冲区中的数据可能被覆盖，进一步查看trace文件，可以看到每个trace文件的开关处都有：PROTOCOL VIOLATION DETECTED。</p>
<p>另外，由贵行的带内网管软件Tivoli监控到故障当时RAC心跳网络（ent8）的通信流量信息证明，当时心跳网络流量确实比正常情况下高，RAC 采用UDP 协议进行节点间的互联通信，查询系统统计如下：</p>
<p>RACDB1# netstat -p udp -s</p>
<p>udp:</p>
<p>574337869 datagrams received</p>
<p>0 incomplete headers</p>
<p>0 bad data length fields</p>
<p>0 bad checksums</p>
<p><span style="color: #ff0000;">169617 dropped due to no socket</span></p>
<p>32335 broadcast/multicast datagrams dropped due to no socket</p>
<p><span style="color: #ff0000;">243 socket buffer overflows</span></p>
<p>574135674 delivered</p>
<p>500048775 datagrams output</p>
<p>RACDB2# netstat -p udp -s</p>
<p>udp:</p>
<p>500187207 datagrams received</p>
<p>0 incomplete headers</p>
<p>0 bad data length fields</p>
<p>0 bad checksums</p>
<p><span style="color: #ff0000;">171357 dropped due to no socket</span></p>
<p>32333 broadcast/multicast datagrams dropped due to no socket</p>
<p><span style="color: #ff0000;">2108 socket buffer overflows</span></p>
<p>499981409 delivered</p>
<p>574427147 datagrams output</p>
<p>以上信息可以看到，由于系统网络参数network buffer设置不当出现通信问题，查看涉及network buffer大小的参数：</p>
<p>#no -a |pg</p>
<p>sb_max = 1310720</p>
<p>udp_recvspace = 655360</p>
<p>udp_sendspace = 65536</p>
<p>sb_max被用来指定允许的TCP和UDP socket的最大缓冲区大小，默认值为1048576 bytes，1048576 bytes，很显然，udp_recvspace与udp_sendspace设置不对称且sb_max参数设置过小。</p>
<p>3.ORA-600 [12333]的错误也可以由JDBC驱动版本与Oracle数据库版本不一致造成，但贵行此套系统已上线很久，由此可以暂时先排除该原因。另外，根据trace文件的记录，在故障期间有大量的UNION联合查询操作，而这种大量的UNION操作会增加节点间的通信，ashrpt的报告也证实了gc buffer busy随故障时间增加，到最后被剔出RAC降下来。</p>
<p><strong>初步结论：</strong></p>
<p>基于以上情况分析，现初步判断此次故障为：由系统网络buffer参数设置不当引起RAC 节点间的互联网络故障，而节点间的互联网络用于协调各个节点的运行，包括全局锁(global locking) ，队列(enqueue) 和缓存管理(buffer cache management)，建议udp_sendspace 的起始值为db_block_size * db_file_multiblock_read_count ，udp_recvspace 设为udp_sendspace 的4 倍，上限为1048576 。如果发生socket 缓存溢出( 可通过 netstat -s | grep &#8220;socket buffer overflows&#8221; 命令察看) udp_recvspace 参数值需要增加，netstat -p udp -s的结果也证实了这一点。</p>
<p>BTW:这里还有EYGLE大师的文章供参考：</p>
<h3><a href="http://www.eygle.com/digest/2009/07/ibm_aix_oracle_9i_rac_udp.html" target="_blank">IBM AIX Oracle 9i RAC 性能因素 &#8211; udp及其他</a></h3>
<p>-The End-</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Faix-using-raw-create-a-non-rac-of-the-asm.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">AIX下使用 raw 创建 non-rac 的ASM</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F07%2Fora-00600-2103.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ORA-00600:[2103],[1],[0],[1],[900]的处理</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Frman-ora-1950427038.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">RMAN ORA-19504、ORA-27038错误解决方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F04%2Fora-12547-tns-lost-contact.html&from=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ORA-12547: TNS:lost contact</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2010/03/aix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

