<?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>Andre Spannig</title>
	<atom:link href="http://www.andre-spannig.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andre-spannig.com</link>
	<description>weblog about web development</description>
	<lastBuildDate>Mon, 30 Apr 2012 18:42:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Prevent Git from pickung up changes in the mode of files</title>
		<link>http://www.andre-spannig.com/2011/10/prevent-git-from-pickung-up-changes-in-the-mode-of-files/</link>
		<comments>http://www.andre-spannig.com/2011/10/prevent-git-from-pickung-up-changes-in-the-mode-of-files/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 17:43:55 +0000</pubDate>
		<dc:creator>Andre</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[file mode]]></category>

		<guid isPermaLink="false">http://www.andre-spannig.com/?p=491</guid>
		<description><![CDATA[Prevent GIT from pickung up changes in the mode of files (chmod) git config core.filemode false]]></description>
			<content:encoded><![CDATA[<p>Prevent GIT from pickung up changes in the mode of files (chmod)</p>
<pre>git config core.filemode false</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.andre-spannig.com/2011/10/prevent-git-from-pickung-up-changes-in-the-mode-of-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make Git ignore files that already exist in the repository</title>
		<link>http://www.andre-spannig.com/2011/09/make-git-ignore-files-that-already-exist-in-your-repository/</link>
		<comments>http://www.andre-spannig.com/2011/09/make-git-ignore-files-that-already-exist-in-your-repository/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 06:24:18 +0000</pubDate>
		<dc:creator>Andre</dc:creator>
				<category><![CDATA[Git Version Control]]></category>
		<category><![CDATA[.gitignore]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.andre-spannig.com/?p=486</guid>
		<description><![CDATA[Adding files to .gitignore that are already tracked does not work. In stead, this command can be used: git update-index --assume-unchanged [filename(s)]]]></description>
			<content:encoded><![CDATA[<p>Adding files to .gitignore that are already tracked does not work. In stead, this command can be used:</p>
<pre>git update-index --assume-unchanged [filename(s)]</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.andre-spannig.com/2011/09/make-git-ignore-files-that-already-exist-in-your-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL dump and compress directly</title>
		<link>http://www.andre-spannig.com/2011/01/mysql-dump-and-compress-directly/</link>
		<comments>http://www.andre-spannig.com/2011/01/mysql-dump-and-compress-directly/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 11:12:08 +0000</pubDate>
		<dc:creator>Andre</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.andre-spannig.com/?p=481</guid>
		<description><![CDATA[Do a mysql dump and compress directly with gzip mysqldump mysqldump_options &#124; gzip > outputfile.sql.gz Gunzip and import using gzip gunzip < outputfile.sql.gz &#124; mysql mysqldump_options]]></description>
			<content:encoded><![CDATA[<p>Do a mysql dump and compress directly with gzip</p>
<pre>mysqldump mysqldump_options | gzip > outputfile.sql.gz</pre>
<p>Gunzip and import using gzip</p>
<pre>gunzip < outputfile.sql.gz | mysql mysqldump_options </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.andre-spannig.com/2011/01/mysql-dump-and-compress-directly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dumping MySQL Stored Procedures, Triggers and Functions</title>
		<link>http://www.andre-spannig.com/2010/10/dumping-mysql-stored-procedures-functions-and-triggers/</link>
		<comments>http://www.andre-spannig.com/2010/10/dumping-mysql-stored-procedures-functions-and-triggers/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 07:24:03 +0000</pubDate>
		<dc:creator>Andre</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[stored procedures]]></category>
		<category><![CDATA[triggers]]></category>

		<guid isPermaLink="false">http://www.andre-spannig.com/?p=456</guid>
		<description><![CDATA[mysqldump will backup by default all the triggers but NOT the stored procedures/functions. There are 2 mysqldump parameters that control this behavior: * –routines – FALSE by default * –triggers – TRUE by default To include in an existing backup script also triggers and stored procedures, add the –routines command line parameter: mysqldump --routines > [...]]]></description>
			<content:encoded><![CDATA[<p>mysqldump will backup by default all the triggers but NOT the stored procedures/functions. There are 2 mysqldump parameters that control this behavior:</p>
<pre>
    * –routines – FALSE by default
    * –triggers – TRUE by default
</pre>
<p>To include in an existing backup script also triggers and stored procedures, add the –routines command line parameter:</p>
<pre>mysqldump <other mysqldump options> --routines > dumpfile.sql </pre>
<p>To dump only the stored procedures and triggers and not the mysql tables and data:</p>
<pre>mysqldump --routines --no-create-info --no-data --no-create-db --skip-opt <database> > dumpfile.sql</pre>
<p>To import them to another database server run:</p>
<pre>mysql <database> < dumpfile.sql</pre>
<p>Or with character encoding settings</p>
<pre>mysql --default_character_set utf8 database <database> < dumpfile.sql</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.andre-spannig.com/2010/10/dumping-mysql-stored-procedures-functions-and-triggers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>install postgresql 8.4 under ubuntu with adminpack</title>
		<link>http://www.andre-spannig.com/2010/10/postgresql-ubunt/</link>
		<comments>http://www.andre-spannig.com/2010/10/postgresql-ubunt/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 19:36:54 +0000</pubDate>
		<dc:creator>Andre</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.andre-spannig.com/?p=449</guid>
		<description><![CDATA[1. basic installation of postgresql server (contrib is needed for adminpack) sudo apt-get install postgresql 2. Install pdadmin GUI apt-get install pgadmin3 3. Reset the password for the ‘postgres’ admin account for the server: $ sudo su postgres -c psql template1 template1=# ALTER USER postgres WITH PASSWORD 'password'; template1=# \q 4. Change the password for [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.andre-spannig.com/wp-content/uploads/2010/10/database-e1286398794689.png" alt="" title="database" width="125" height="125" class="alignright size-full wp-image-451" />1. basic installation of postgresql server (contrib is needed for adminpack)</p>
<pre>sudo apt-get install postgresql</pre>
<p>2. Install pdadmin GUI</p>
<pre>apt-get install pgadmin3</pre>
<p>3. Reset the password for the ‘postgres’ admin account for the server:</p>
<pre>$ sudo su postgres -c psql template1 template1=# ALTER USER postgres WITH PASSWORD 'password'; template1=# \q</pre>
<p>4. Change the password for the unix user ‘postgres’:</p>
<pre>$ sudo passwd -d postgres $ sudo su postgres -c passwd</pre>
<p>5. install adminpack</p>
<pre>$ sudo apt-get install postgresql-contrib
$ sudo su postgres -c psql < /usr/share/postgresql/8.4/contrib/adminpack.sql </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.andre-spannig.com/2010/10/postgresql-ubunt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle APEX / FOP / Cocoon: Invalid characters in XML data</title>
		<link>http://www.andre-spannig.com/2010/05/oracle-apex-fop-cocoon-invalid-characters-in-xml-data/</link>
		<comments>http://www.andre-spannig.com/2010/05/oracle-apex-fop-cocoon-invalid-characters-in-xml-data/#comments</comments>
		<pubDate>Sat, 22 May 2010 08:06:49 +0000</pubDate>
		<dc:creator>Andre</dc:creator>
				<category><![CDATA[Application Express]]></category>
		<category><![CDATA[FOP]]></category>
		<category><![CDATA[Tomcat/Cocoon]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XSL-FO]]></category>
		<category><![CDATA[APEX]]></category>
		<category><![CDATA[Cocoon]]></category>
		<category><![CDATA[illegal character]]></category>

		<guid isPermaLink="false">http://www.andre-spannig.com/?p=427</guid>
		<description><![CDATA[The setup is Oracle APEX with Tomcat / Cocoon as XSL-FO processor to generate PDF reports. PDF reports in some cases do not open, instead in Acrobat (Reader) you are presented with an error message that Acrobat could not open the file because it is either damaged or not a supported file type. If file [...]]]></description>
			<content:encoded><![CDATA[<p>The setup is Oracle APEX with Tomcat / Cocoon as XSL-FO processor to generate PDF reports.</p>
<p>PDF reports in some cases do not open, instead in Acrobat (Reader) you are presented with an error message that Acrobat could not open the file because it is either damaged or not a supported file type.</p>
<p><a href="http://www.andre-spannig.com/wp-content/uploads/2010/05/acrobat-pdf-error.png"><img src="http://www.andre-spannig.com/wp-content/uploads/2010/05/acrobat-pdf-error.png" alt="Acrobat error message after creating new PDF report in APEX" title="acrobat-pdf-error" width="480" height="229" class="alignnone size-full wp-image-428" /></a></p>
<p>If file size of the XML data sent from APEX to the print server is not an issue, another reason might be that you have an invalid character in your XML file.</p>
<p>Turn on debug in APEX to see the error message sent back from Cocoon.<span id="more-427"></span></p>
<p><a href="http://www.andre-spannig.com/wp-content/uploads/2010/05/apex-enable-debug-mode.png"><img src="http://www.andre-spannig.com/wp-content/uploads/2010/05/apex-enable-debug-mode.png" alt="" title="apex-enable-debug-mode" width="545" height="89" class="alignnone size-full wp-image-431" /></a></p>
<p>After hitting the print button in your APEX application again, APEX will open an html page in a new browser window showing Tomcat / Cocoon&#8217;s error report:</p>
<p><a href="http://www.andre-spannig.com/wp-content/uploads/2010/05/apex-cocoon-error-message.png"><img src="http://www.andre-spannig.com/wp-content/uploads/2010/05/apex-cocoon-error-message-300x131.png" alt="" title="apex-cocoon-error-message" width="300" height="131" class="alignnone size-medium wp-image-432" /></a></p>
<p>To find out what character in your XML data is invalid, in APEX in the application builder go to your report query and set OUTPUT FORMAT to &#8220;XML&#8221; instead of &#8220;PDF&#8221;.</p>
<p>Go back to your application page, turn off the debug mode and generate another report. This time APEX will offer an XML document for download. This document contains the XML data that would usually be sent to the print server along with the XSL stylesheet. </p>
<p>You can now open this XML document in your XML editor to check for invalid characters. As a first starting point it can also help to simply open up the XML document in Firefox which presents you with a nice error message that an illegal character was found and where it was found.</p>
<p><a href="http://www.andre-spannig.com/wp-content/uploads/2010/05/apex-firefox-error-message.png"><img src="http://www.andre-spannig.com/wp-content/uploads/2010/05/apex-firefox-error-message-300x137.png" alt="" title="apex-firefox-error-message" width="300" height="137" class="alignnone size-medium wp-image-434" /></a></p>
<p>In my case there was an illegal character in the database record which needed to removed. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.andre-spannig.com/2010/05/oracle-apex-fop-cocoon-invalid-characters-in-xml-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle APEX: XSL-FO with Tomcat/Cocoon</title>
		<link>http://www.andre-spannig.com/2010/05/oracle-apex-fop-tomcat-cocoon/</link>
		<comments>http://www.andre-spannig.com/2010/05/oracle-apex-fop-tomcat-cocoon/#comments</comments>
		<pubDate>Sun, 16 May 2010 04:45:32 +0000</pubDate>
		<dc:creator>Andre</dc:creator>
				<category><![CDATA[APEX]]></category>
		<category><![CDATA[FOP]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tomcat/Cocoon]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[XSL-FO]]></category>
		<category><![CDATA[Cocoon]]></category>

		<guid isPermaLink="false">http://www.andre-spannig.com/?p=408</guid>
		<description><![CDATA[If BI Publisher is not a choice and you also prefer not to use the Apache FOP solution shipped with Oracle APEX (OC4J), you can use another XSL-FO Processing engine which is Apache Cocoon and Apache Tomcat. Carl Backstrom describes the setup process on his blog: http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html For Ubuntu this post on the Ubuntu forums [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.andre-spannig.com/wp-content/uploads/2010/05/Selection_003-e1286398973457.png" alt="" title="reports" width="125" height="134" class="alignright size-full wp-image-454" />If BI Publisher is not a choice and you also prefer not to use the Apache FOP solution shipped with Oracle APEX (OC4J), you can use another XSL-FO Processing engine which is Apache Cocoon and Apache Tomcat.</p>
<p>Carl Backstrom describes the setup process on his blog:<br />
<a href="http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html">http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html</a></p>
<p>For Ubuntu this post on the Ubuntu forums is helpful:<br />
<a href="http://ubuntuforums.org/showthread.php?t=1004742">http://ubuntuforums.org/showthread.php?t=1004742</a></p>
<p><strong>Printing large reports</strong></p>
<p>Printing large reports requires some extra settings</p>
<p>Tomcat has by default a limit on POST size. That prevent you from downloading large PDF files.<br />
On Ubuntu: open /etc/tomcat5.5/server.xml<br />
<code>sudo nano /etc/tomcat5.5/server.xml</code><br />
Find line maxSpareThreads=&#8221;75&#8243; and add after that add the following to a new line<br />
<code>maxPostSize="0"</code></p>
<p>Also you need to increase JAVA memory <span id="more-408"></span></p>
<p>On Ubuntu /etc/default/tomcat5.5<br />
<code>sudo nano /etc/default/tomcat5.5</code><br />
Add the following line to the file:<br />
<code>JAVA_OPTS="-Xms1024m -Xmx2049m"</code><br />
The parameter -Xmx2049 allocates max. 2GB. You can allocate only about half of your physical memory.</p>
<p>Under Windows you can set the parameter when you start up Tomcat from the command line or create yourself a small .bat file that does the job for you, for example:<br />
<code>set JAVA_HOME=c:\Program Files\Java\jdk1.6.0_18<br />
SET JAVA_OPTS=-Xmx2049m<br />
cd c:\APEX_FOP\apache-tomcat-6.0.26\bin<br />
startup.bat</code></p>
<p><strong>Report queries in Oracle APEX</strong></p>
<p>Another thing to consider is the report query in your APEX application. When creating report queries with named columns (under shared components) using SQL statements like &#8220;SELECT * FROM &#8230;&#8221; should be avoided. Instead include only the table columns that are actually being used in the report &#8211; &#8220;SELECT column1, column2 FROM &#8230;&#8221;. Doing so significantly reduces the file size of the XML/FO data sent from APEX to the report server.</p>
<p><strong>Invalid characters in your XML data</strong></p>
<p>See my other blog post about invalid characters in XML data:</p>
<p>General information about Oracle APEX and PDF printing:<br />
<a href="http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html">http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html </a></p>
<p><strong>Links:</strong><br />
- <a href="http://cocoon.apache.org/2.1/performancetips.html">Performance</a><br />
- <a href="http://people.apache.org/~jefft/forrest/samples/wikirenderer-site/wiki/combined.html">Cocoon Wiki Contents</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.andre-spannig.com/2010/05/oracle-apex-fop-tomcat-cocoon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Duplicate Oracle schemas using exp / imp (export / import)</title>
		<link>http://www.andre-spannig.com/2010/05/duplicate-oracle-schemas-using-exp-imp/</link>
		<comments>http://www.andre-spannig.com/2010/05/duplicate-oracle-schemas-using-exp-imp/#comments</comments>
		<pubDate>Sun, 09 May 2010 20:44:58 +0000</pubDate>
		<dc:creator>Andre</dc:creator>
				<category><![CDATA[Custom Applications]]></category>

		<guid isPermaLink="false">http://www.andre-spannig.com/?p=404</guid>
		<description><![CDATA[In Oracle 10g or later you use Datapump to copy a schema and all its content, for example, to move it to a different database server. A different method would be to use exp / imp using parameters owner on export, and fromuser/touser during import. exp userid=system/oracle owner=andre file=c:\temp\andre.dmp Before the import it is required [...]]]></description>
			<content:encoded><![CDATA[<p>In Oracle 10g or later you use Datapump to copy a schema and all its content, for example, to move it to a different database server. A different method would be to use exp / imp using parameters owner on export, and fromuser/touser during import.</p>
<p><code>exp userid=system/oracle owner=andre file=c:\temp\andre.dmp</code></p>
<p>Before the import it is required to set up the new schema user and assign necessary roles and privileges.</p>
<p><code>sqlplus system/oracle<br />
CREATE USER andre_new IDENTIFIED BY password;<br />
GRANT connect, resource TO andre_new;<br />
EXIT;</code></p>
<p>Now you can import the data by remapping the previous user andre to the new user andre_new:</p>
<p><code>imp userid=system/oracle fromuser=andre touser=andre_new file=c:\temp\andre.dmp</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.andre-spannig.com/2010/05/duplicate-oracle-schemas-using-exp-imp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox: access Windows-host shared folders from Ubuntu-guest</title>
		<link>http://www.andre-spannig.com/2010/05/virtualbox-access-windows-host-shared-folders-from-ubuntu-guest/</link>
		<comments>http://www.andre-spannig.com/2010/05/virtualbox-access-windows-host-shared-folders-from-ubuntu-guest/#comments</comments>
		<pubDate>Sun, 09 May 2010 20:34:29 +0000</pubDate>
		<dc:creator>Andre</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Virtualbox]]></category>

		<guid isPermaLink="false">http://www.andre-spannig.com/?p=402</guid>
		<description><![CDATA[Access files on your Windows operating system (host) from Ubuntu (Virtualbox). Guest Additions installed? First make sure the Guest Additions are installed. If not, from the VirtualBox&#8217;s menu go to Devices > Install Guest Additions. A virtual CD will be mounted. As root run the program VBoxLinuxAdditions.run. When the program completes reboot your VirtualBox. Define [...]]]></description>
			<content:encoded><![CDATA[<p>Access files on your Windows operating system (host) from Ubuntu (Virtualbox).</p>
<p><strong>Guest Additions installed?</strong><br />
First make sure the Guest Additions are installed. If not, from the VirtualBox&#8217;s menu go to Devices > Install Guest Additions. A virtual CD will be mounted. As root run the program <em>VBoxLinuxAdditions.run</em>. When the program completes reboot your VirtualBox.</p>
<p><strong>Define a shared folder</strong><br />
With Guest Additions installed you go ahead and define the shared folder(s). From the VirtualBox&#8217;s menu go to Devices > Shared Folders. In the dialog that shows up you can specify which folder from your Windows system you want to share with your Ubuntu OS. You will have to specify a Folder Name for each folder you add. Make sure to memorize that name since it will be required later on.</p>
<p><strong>Create a mountpoint</strong><br />
To mount the shared folder, first you have to create a mounpoint. This is a directory in your Ubuntu OS which will reflect the shared folder from Windows &#8211; for example:</p>
<p><code># sudo mkdir /media/windows-share</code></p>
<p>With your mountpoint created you can now mount the shared folder, like this:</p>
<p><strong>Mount shared folder</strong><br />
<code># sudo mount -t vboxsf shared-folder-name /media/windows-share</code></p>
<p>Where shared-folder-name will be the name you assigned for this folder when you were adding it in the shared folders list.</p>
<p>You could use the /etc/init.d/rc.local script to execute the last command on startup to have the shared folders automatically mounted every time you start your Ubuntu VirtualBox. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.andre-spannig.com/2010/05/virtualbox-access-windows-host-shared-folders-from-ubuntu-guest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Oracle Apex on Ubuntu 8.0.4</title>
		<link>http://www.andre-spannig.com/2010/05/install-oracle-apex-on-ubuntu-8-0-4/</link>
		<comments>http://www.andre-spannig.com/2010/05/install-oracle-apex-on-ubuntu-8-0-4/#comments</comments>
		<pubDate>Tue, 04 May 2010 13:16:31 +0000</pubDate>
		<dc:creator>Andre</dc:creator>
				<category><![CDATA[Custom Applications]]></category>

		<guid isPermaLink="false">http://www.andre-spannig.com/?p=392</guid>
		<description><![CDATA[If you run into some problems after installing Oracle Apex on Ubuntu the following lines might help you fix issues related to starting SQLPLUS in the terminal. sqlplus sys as sysdba sqlplus: command not found SQLPLUS is already on your system but you need to run the oracle_env.sh script: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/./oracle_env.sh /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found [...]]]></description>
			<content:encoded><![CDATA[<p>If you run into some problems after installing Oracle Apex on Ubuntu the following lines might help you fix issues related to starting SQLPLUS in the terminal.</p>
<p><code>sqlplus sys as sysdba<br />
sqlplus: command not found</code></p>
<p>SQLPLUS is already on your system but you need to run the oracle_env.sh script:</p>
<p><code>/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/./oracle_env.sh</code></p>
<p><code>/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found<br />
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found</code></p>
<p>Again an error message. I took out the if statements around line 114 (:set number in vi to view line numbers) and just left the line &#8216;locale=$LANG&#8217; by doing:</p>
<p><code>sudo vi /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh</code></p>
<p>That fixed my language error, then I reran<span id="more-392"></span></p>
<p><code>/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/./oracle_env.sh</code> </p>
<p>Also, edit your .bashrc file<br />
<code>nano ~/.bashrc</code></p>
<p>Add these lines at the end of the file<br />
<code>ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server<br />
PATH=$PATH:$ORACLE_HOME/bin<br />
export ORACLE_HOME<br />
export ORACLE_SID=XE<br />
export PATH</code></p>
<p>Logout and back in so your changes take effect.</p>
<p>Trying to start &#8220;SQLPLUS &#8230;&#8221; again, here&#8217;s what I got:</p>
<p><code>SQL*Plus: Release 10.2.0.1.0 - Production on Tue May 4 15:57:10 2010<br />
Copyright (c) 1982, 2005, Oracle. All rights reserved.<br />
<strong>Enter password: ERROR: ORA-09925: Unable to create audit trail file</strong></code></p>
<p>After further research I found out that I had to set the setuid bit on the Oracle executable. Close your terminal session then start a new one to load your environment variables. CD to your $ORACLE_HOME (mine is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server) then go to the <strong>bin</strong> directory and run the following command:</p>
<p><code>sudo chmod 6755 oracle</code></p>
<p>These changes helped me to fix the problems in my Ubuntu system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.andre-spannig.com/2010/05/install-oracle-apex-on-ubuntu-8-0-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

