<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oracle Database Tips blog &#187; open_links</title>
	<atom:link href="http://oracle-database-tips.com/wp/tag/open_links/feed" rel="self" type="application/rss+xml" />
	<link>http://oracle-database-tips.com/wp</link>
	<description>News for Oracle professionals</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:37:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Limit Oracle database links per session</title>
		<link>http://oracle-database-tips.com/wp/dblinks/limit-oracle-database-links-per-session</link>
		<comments>http://oracle-database-tips.com/wp/dblinks/limit-oracle-database-links-per-session#comments</comments>
		<pubDate>Fri, 23 Oct 2009 12:09:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DB Links]]></category>
		<category><![CDATA[database application]]></category>
		<category><![CDATA[documentation sql]]></category>
		<category><![CDATA[initialization parameter]]></category>
		<category><![CDATA[limit db links]]></category>
		<category><![CDATA[line 1]]></category>
		<category><![CDATA[link syntax]]></category>
		<category><![CDATA[maximum allowable number]]></category>
		<category><![CDATA[open_links]]></category>
		<category><![CDATA[pfile]]></category>
		<category><![CDATA[real time]]></category>
		<category><![CDATA[scope]]></category>

		<guid isPermaLink="false">http://oracle-database-tips.com/wp/?p=122</guid>
		<description><![CDATA[Limit the number of allowable db links per session for your database]]></description>
			<content:encoded><![CDATA[<div class="large"><strong> Determine the maximum allowable number of database links<br />
per session in your database</strong></div>
<p><!-- ============================================================================================================================================================ -->Each session in your database has a limited number of database links that          can be opened at the same time.</p>
<p>This number is determined by a database-wide initialization parameter:          OPEN_LINKS.</p>
<p>The default value is set to 4.</p>
<p>If it is set to 0, distributed transactions are not allowed.</p>
<p>If you are expecting your transactions to have a maximum of 3 database          links open concurrently, set this parameter to 3 or higher.</p>
<p>Do not set it too high, it is better for the application to close database          links when no longer in use than to change the parameter to a high number.</p>
<p>OPEN_LINKS cannot be modified in real-time, so you will have to change          it in the spfile or pfile and bounce the database.<br />
<!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<div id="textbox">
<div>
<pre class="large">SQL&gt; alter system set open_links=10 scope=both;
alter system set open_links=0 scope=both
                 *
ERROR at line 1:
ORA-02095: specified initialization parameter
cannot be modified

SQL&gt; alter system set open_links=10 scope=spfile;

System altered.</pre>
</div>
</div>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --> If you are not sure how many database links are opened up concurrently          by your session&#8217;s database application, you can query v$dblink.</p>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --></p>
<div id="textbox">
<div>
<pre class="large">SQL&gt; select in_transaction, count(*) from v$dblink
     group by in_transaction;

IN_   COUNT(*)
--- ----------
YES          1</pre>
</div>
</div>
<p><!-- ccccccccccccccccccccccccccccccccccccccccccccccccc   --> <!-- ============================================================================================================================================================ --></p>
<h3>Recommended reading:</h3>
<div id="content">
<li><a title="opens new window" onclick="window.open('http://www.oracle-database-tips.com/cgi-bin/counter.pl?url=http%3A%2F%2Fdownload.oracle.com%2Fdocs%2Fcd%2FB19306_01%2Fserver.102%2Fb14231%2Fds_admin.htm%23i1007820&amp;referrer=http%3A%2F%2Fwww.oracle-database-tips.com%2Flimit_oracle_database_links.html'); return false;" href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_admin.htm#i1007820" target="_blank">Oracle Online Documentation : Administrator&#8217;s Guide, Creating Database Links</a></li>
<li><a title="opens new window" onclick="window.open('http://www.oracle-database-tips.com/cgi-bin/counter.pl?url=http%3A%2F%2Fdownload.oracle.com%2Fdocs%2Fcd%2FB19306_01%2Fserver.102%2Fb14200%2Fstatements_5005.htm%23SQLRF01205&amp;referrer=http%3A%2F%2Fwww.oracle-database-tips.com%2Flimit_oracle_database_links.html'); return false;" href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5005.htm#SQLRF01205" target="_blank">Oracle Online Documentation : SQL Reference, Create Datatabase Link syntax</a></li>
</div>
]]></content:encoded>
			<wfw:commentRss>http://oracle-database-tips.com/wp/dblinks/limit-oracle-database-links-per-session/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

