<?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>DBAlife &#187; shared</title>
	<atom:link href="http://www.dbalife.com/archives/tag/shared/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dbalife.com</link>
	<description>网站系统架构实践</description>
	<lastBuildDate>Wed, 27 Jul 2011 09:57:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SHARED转为DEDICATED及ORA-12519错误</title>
		<link>http://www.dbalife.com/archives/139.html</link>
		<comments>http://www.dbalife.com/archives/139.html#comments</comments>
		<pubDate>Tue, 01 Jul 2008 11:45:12 +0000</pubDate>
		<dc:creator>skywalker</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[数据库管理]]></category>
		<category><![CDATA[dedicated]]></category>
		<category><![CDATA[ora-]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[shared]]></category>

		<guid isPermaLink="false">http://www.dbalife.com/archives/139</guid>
		<description><![CDATA[很多资料讲了如何将ORACLE设置为SHARED SERVER模式运行，那么如何将SHARED SERVER转回DEDICATED SERVER？ ORACLE 判断是否是SHARED SERVER只有一个参数 SQL&#62; show parameter shared_servers NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ max_shared_servers integer shared_servers integer 1 当shared_servers&#62;=1时，ORACLE运行为SHARED SERVER模式 当shared_servers=0时，ORACLE运行为DEDICATED SERVER模式 由于shared server运行时还需要dispatcher，因此我们关闭SHARED SERVER只需要做3步： alter system set shared_servers=0 scope=both; alter system set dispatchers=''; 再将tnsname.ora中（SERVER＝SHARED）修改为（SERVER＝DEDICATED） 这样Oracle就运行在了DEDICATED SERVER模式下。 但是事情还没完，当你再次连接数据库时，很可能遇到ORA-12519错误。 这个错误是因为客户端指定的SID与dedicated server handler匹配不上，这就需要用LOCAL_LISTENER参数来指定服务名 例如在tnsname可能这样写 DPPC = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL [...]
Related posts:<ol>
<li><a href='http://www.dbalife.com/archives/125.html' rel='bookmark' title='Listerner.ora写法问题导致的监听器启动失败'>Listerner.ora写法问题导致的监听器启动失败</a></li>
<li><a href='http://www.dbalife.com/archives/58.html' rel='bookmark' title='打包安装oracle'>打包安装oracle</a></li>
<li><a href='http://www.dbalife.com/archives/271.html' rel='bookmark' title='compatible参数'>compatible参数</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>很多资料讲了如何将ORACLE设置为SHARED SERVER模式运行，那么如何将SHARED SERVER转回DEDICATED SERVER？<br />
ORACLE 判断是否是SHARED SERVER只有一个参数</p>
<div style="margin-left: 40px;">SQL&gt; show parameter shared_servers</p>
<p>NAME                     TYPE     VALUE<br />
------------------------------------ ----------- ------------------------------<br />
max_shared_servers             integer<br />
shared_servers                 integer     1</p></div>
<p>当shared_servers&gt;=1时，ORACLE运行为SHARED SERVER模式<br />
当shared_servers=0时，ORACLE运行为DEDICATED SERVER模式</p>
<p>由于shared server运行时还需要dispatcher，因此我们关闭SHARED SERVER只需要做3步：</p>
<div style="margin-left: 40px;">alter system set shared_servers=0 scope=both;<br />
alter system set dispatchers='';<br />
再将tnsname.ora中（SERVER＝SHARED）修改为（SERVER＝DEDICATED）</div>
<p>这样Oracle就运行在了DEDICATED SERVER模式下。</p>
<p>但是事情还没完，当你再次连接数据库时，很可能遇到ORA-12519错误。<br />
这个错误是因为客户端指定的SID与dedicated server handler匹配不上，这就需要用LOCAL_LISTENER参数来指定服务名<br />
例如在tnsname可能这样写</p>
<div style="margin-left: 40px;">DPPC =<br />
(DESCRIPTION =<br />
(ADDRESS_LIST =<br />
(ADDRESS = (PROTOCOL = TCP)(HOST = vip01)(PORT = 1521))<br />
(ADDRESS = (PROTOCOL = TCP)(HOST = vip02)(PORT = 1521))<br />
(LOAD_BALANCE = yes)<br />
)<br />
(CONNECT_DATA =<br />
(SERVER = DEDICATED)<br />
(SERVICE_NAME = dppc)<br />
)<br />
)</div>
<p>那么就需要执行</p>
<div style="margin-left: 40px;">alter system LOCAL_LISTENER='DPPC' scope=both;</div>
<p>现在你的客户端又可以正常连接了，以DEDICATED SERVER模式</p>
<div class="flockcredit" style="text-align: right; color: #CCC; font-size: x-small;">Blogged with the <a style="color: #999; font-weight: bold;" title="Flock Browser" href="http://www.flock.com/blogged-with-flock" target="_new">Flock Browser</a></div>
<p><!-- technorati tags begin --></p>
<p style="font-size:10px;text-align:right;">Tags: <a rel="tag" href="http://technorati.com/tag/dedicated">dedicated</a>, <a rel="tag" href="http://technorati.com/tag/shared">shared</a>, <a rel="tag" href="http://technorati.com/tag/ora-12519">ora-12519</a>, <a rel="tag" href="http://technorati.com/tag/local_listener">local_listener</a></p>
<p><!-- technorati tags end --></p>
<p>Related posts:<ol>
<li><a href='http://www.dbalife.com/archives/125.html' rel='bookmark' title='Listerner.ora写法问题导致的监听器启动失败'>Listerner.ora写法问题导致的监听器启动失败</a></li>
<li><a href='http://www.dbalife.com/archives/58.html' rel='bookmark' title='打包安装oracle'>打包安装oracle</a></li>
<li><a href='http://www.dbalife.com/archives/271.html' rel='bookmark' title='compatible参数'>compatible参数</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dbalife.com/archives/139.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

