<?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>emphess .NET &#187; OracleXE</title>
	<atom:link href="http://www.emphess.net/tag/oraclexe/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emphess.net</link>
	<description>Christoph Menge&#039;s Blog</description>
	<lastBuildDate>Tue, 15 Jun 2010 00:50:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configuring Oracle 10g XE for Development</title>
		<link>http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/</link>
		<comments>http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 02:08:57 +0000</pubDate>
		<dc:creator>Christoph Menge</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Memory]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[OracleXE]]></category>
		<category><![CDATA[RAM]]></category>

		<guid isPermaLink="false">http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/</guid>
		<description><![CDATA[When I first installed Oracle XE, I was quite impressed how much of the maximum amount of 1GB RAM it uses per default: In my case, about 880MB. I din&#8217;t really care, because my machine has 3GB RAM, and my XP with some old software did not use up too much&#8230;
However, having switched to Windows [...]]]></description>
			<content:encoded><![CDATA[<p>When I first installed Oracle XE, I was quite impressed how much of the maximum amount of 1GB RAM it uses per default: In my case, about 880MB. I din&#8217;t really care, because my machine has 3GB RAM, and my XP with some old software did not use up too much&#8230;</p>
<p>However, having switched to Windows Vista and brand-new versions of all the tools one needs, I have actually hit the limit of my machine - a small window popped up, suggesting to kill both instances of Visual Studio so I would regain free RAM&#8230; For a developer system, it is obviously a good idea to trim the database system&#8217;s size rather than not using the IDE&#8230;</p>
<p>So, even though most people would like their XE Oracles to consume <em>more</em> RAM:</p>
<p>How to make Oracle&#8217;s memory footprint smaller:<br />
1. Start Oracle with its default configuration. You can type <code>net start OracleServiceXE</code> on the (administrator-) console.<br />
2. Find &#8216;C:\YourOracleDirectory\app\oracle\product\10.2.0\server\config\scripts\init.ora&#8217;<br />
Open it and search for <code>sga_target=768M</code>. Replace this with some reasonable value for your machine. You cannot, however, set this value arbitrarily small or Oracle will not work. I used <code>140M</code>.<br />
Also search for <code>pga_aggregate_target=140M</code> and set it to, say, <code>40M</code>.<br />
Save the file.<br />
3. Log into SQLplus. In command window, type</p>
<blockquote><p>sqlplus system/systempass<br />
SQL&gt; CONNECT / AS SYSDBA<br />
Connected.<br />
SQL&gt; create spfile=&#8217;C:\YourOracleDirectory\app\oracle\product\10.2.0\server\dbs/spfilexe_small.ora&#8217;<br />
FROM pfile=&#8217;C:\YourOracleDirectory\app\oracle\product\10.2.0\server\config\scripts\init.ora&#8217;<br />
File created.<br />
SQL&gt;&gt;exit</p></blockquote>
<p>4. Stop Oracle: <code>C:\&gt; net stop OracleServiceXE</code><br />
5. Back up &#8216;C:\YourOracleDirectory\app\oracle\product\10.2.0\server\dbs/spfilexe.ora&#8217; and replace it with our newly-created spfile.<br />
6. Start Oracle again: <code>C:\&gt; net start OracleServiceXE</code></p>
<p>Now, oracle should consume merely about 180MB RAM.</p>
<p>You can also edit the spfile with a hex editor if you are brave enough&#8230; But you have to work very carefully then.</p>
<div style="float: right;"><p align="right"><a rel="nofollow" class="tt" href="http://twitter.com/home/?status=Configuring+Oracle+10g+XE+for+Development+http://bit.ly/aEbEgd" title="Post to Twitter"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-twitter2.png" alt="Post to Twitter" /></a> <a rel="nofollow" class="tt" href="http://delicious.com/post?url=http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/&amp;title=Configuring+Oracle+10g+XE+for+Development" title="Post to Delicious"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-delicious.png" alt="Post to Delicious" /></a> <a rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/&amp;title=Configuring+Oracle+10g+XE+for+Development" title="Post to Digg"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-digg.png" alt="Post to Digg" /></a> <a rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/&amp;t=Configuring+Oracle+10g+XE+for+Development" title="Post to Facebook"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
