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.

Comments:

Hi Chris. Sometimes i think you are the right man at the right time... :) I explain you why: I wrote my thesis for degree about Plone and GetPaid, so i read a lot of things you wrote and they were all so helpful. Now i'm using oracle and i find you another time... Anyway, i followed the instructions you posted and i have this error no more but when I write the "SQLPLUS" command, once again i have "command not found", just like if the enviroment variables are not setted. Could you tell me why? thank you so much! Davide

Posted by Davidinho on December 30, 2009 at 02:21 AM PST #

Post a Comment:
Comments are closed for this entry.
About

Tourists looking out over an Opal mine
I'm a Product Manager in Server Technologies, working on scripting languages and developer-access.
Email: christopher.jones@oracle.com
Twitter: http://twitter.com/ghrd
Book: Free PHP Oracle book
Download: PHP Linux RPMs with the OCI8 extension
Links: OTN PHP Developer Center

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today