« April 29, 2008 | Main | May 8, 2008 »

May 1, 2008 Archives

May 1, 2008

Oracle XE, Ubuntu Hardy

After upgrading to Ubuntu 8.04 and deciding to reinstall a bunch of software, I had to revisit a quirk in one Oracle XE shell script:

/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found

I get the error when I source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh to set my environment variables.

The well known solution, for the OS variants where this is a problem, is to edit that file and change the tests to use single brackets.
if [ -n "$LC_ALL" ]; then
  locale=$LC_ALL
elif [ -n "$LANG" ]; then
  locale=$LANG
else
  locale=
fi
Other than that, XE is running fine for my needs so far.  The XE install notes for Ubuntu are at: http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html

BTW, the verdict on Ubuntu Hardy 8.04 is stay with 7.10 for the time being.  I'm finding it quirky and not snappy.

About May 2008

This page contains all entries posted to PHP and Oracle: Christopher Jones in May 2008. They are listed from oldest to newest.

April 29, 2008 is the previous archive.

May 8, 2008 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle