ksaitoの日記

日々試したことの覚え書き

Oracle 10gのnls_lang.shのエラー

移転しました。

自動的にリダイレクトします。

Linuxの標準シェルのbashとの構文の違いで下記のようなエラーが出るようです。

/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

nls_lang.shの1行目の/bin/shを/bin/bashにするとエラーが出なくなります。

$ head /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh
#!/bin/bash
#
# NAME
#   nlslang.sh
#
# DESCRIPTION
#   This script generates the NLS_LANG value derived from the target
#   system's locale configuration.
#
#   Mapping rule from Linux locale to NLS_LANG follows.
$