Oracle XE 10g R2 (10.2.0.1) nls_lang.sh error

  • OS:
  • Kubuntu 8.04 32bit

Following the Oracle Database XE install guide on otn you may get an nls_lang error as follows when you try to export the environment variables.

Error:

root@oravm:/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
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found

Solution:

Kubuntu uses a BASH linux shell. Now open “nls_lang.sh” with a text editor and set the correct shell parameter in the first line of the script.


#!/bin/bash
#
# NAME
#   nlslang.sh

That’s it. Now run “oracle_env.sh” again. It’ll complete without errors.