Ubuntu – Problem installing Oracle 10g Express edition

installationoracleuninstall

I have installed Oracle 10g Express edition in Ubuntu 10.10 and it doesn't show or ask to give my password during installation.

When I click on "start database" it gave the warning "Operation failed, abhi is not a member of 'dba' group." and when clink on "Run SQL command line" it shows /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found

When I click on "GOTO Database home page", it opens Mozilla's "Ubuntu Google search page".

Can anyone help me get my Oracle to work or tell me how to remove that because it is also not getting removed.
I tried all the commands that are given as suggestions by Ubuntu.

Please help me because I don't want to format my Ubuntu.

Best Answer

For:

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

The solution is to simply edit it (as root) and remove a pair of square brackets on lines #108 and #110.

Type:

sudo -H gedit /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh

Scroll down until you find this:

if [[ -n "$LC_ALL" ]]; then  
  locale=$LC_ALL  
elif [[ -n "$LANG" ]]; then  
  locale=$LANG  
else  
  locale=  
fi 

Then change it to this (remove a pair of brackets):

if [ -n "$LC_ALL" ]; then  
  locale=$LC_ALL  
elif [ -n "$LANG" ]; then  
  locale=$LANG  
else  
  locale=  
fi  

Then click SAVE. Now try this command again to set your environment variables:

/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh

Nothing appears to happen when you do it but, it auto-sets your variables. DONE!

Enjoy.

Thanks to this blog: http://beardedmagnum.com/2007/09/15/oracle-xe-on-ubuntu/

Related Question