« Maggie's (almost) one liner to create a tag cloud in PHP | Main | New AJAX & PHP Book from Oracle Press »

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.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)