oracle 10g for ubuntu 8.04 一个连接问题

我打开oracle 10g 的sql plus 出
/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

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Nov 13 02:43:45 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

SQL>

[quote]/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh[/quote]
修改这个shell脚本的114行,
[quote]if [[ -n "$LC_ALL" ]]; then
locale=$LC_ALL
elif [[ -n "$LANG" ]]; then
[/quote]
把上面的双引号改成单引号,或者
修改这个文件的最上面那个句:
[code="java"]#!/bin/sh[/code]
改成
[code="java"]#!/bin/bash[/code]
这表明是一个bash shell脚本

推荐第二种方法直接标识这个脚本为一个bash shell脚本