Oracle-xe on Ubuntu
2010-02-02 10:54
344 查看
My purpose is not to write another
installation
guide for Oracle Express Edition on Ubuntu (Feisty). This is very well documented and quite easy.
However, despite a fresh installation, you will get the following error when loading
:
/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
You're not to be blamed, there is a slight error in the script.
The solution is to simply edit it (as root) and remove a pair of square brackets on lines #108 and #110.
if [ -n
"$LC_ALL"
];
then
locale=$LC_ALL
elif [ -n "$LANG"
];
then
locale=$LANG
else
locale=
fi
An alternative solution is to change the shell declaration on the very first line of the script.
Now, after reexecuting oracle_env.sh, the variable NLS_LANG should be set.
> echo $NLS_LANG
> AMERICAN_AMERICA.AL32UTF8
The explanation of this issue is that the Bourne Shell does not support the [[ compound command while the Bash shell does
.
原文出处:http://beardedmagnum.com/2007/09/15/oracle-xe-on-ubuntu/
installation
guide for Oracle Express Edition on Ubuntu (Feisty). This is very well documented and quite easy.
However, despite a fresh installation, you will get the following error when loading
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.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
/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
You're not to be blamed, there is a slight error in the script.
The solution is to simply edit it (as root) and remove a pair of square brackets on lines #108 and #110.
if [ -n
"$LC_ALL"
];
then
locale=$LC_ALL
elif [ -n "$LANG"
];
then
locale=$LANG
else
locale=
fi
if [ -n "$LC_ALL" ]; then locale=$LC_ALL elif [ -n "$LANG" ]; then locale=$LANG else locale= fi
An alternative solution is to change the shell declaration on the very first line of the script.
Now, after reexecuting oracle_env.sh, the variable NLS_LANG should be set.
> echo $NLS_LANG
> AMERICAN_AMERICA.AL32UTF8
> echo $NLS_LANG > AMERICAN_AMERICA.AL32UTF8
The explanation of this issue is that the Bourne Shell does not support the [[ compound command while the Bash shell does
.
原文出处:http://beardedmagnum.com/2007/09/15/oracle-xe-on-ubuntu/
相关文章推荐
- Oracle 10g XE Notes on Ubuntu
- Installing Oracle 11g On Ubuntu 8.04 LTS
- Ubuntu9.04安装Oracle XE
- 在Ubuntu Server下安装Oracle XE
- ubuntu安装Oracle 11g XE在Configure时的罕见问题?
- ubuntu环境变量(jdk6.0+tomcat6.0.28+10 Oracle Database XE )
- [Ubuntu]Ubuntu 10.04 安装Oracle 10g XE
- ubuntu 安装 oracle 11g xe
- Oracle Java JDK 7 on Ubuntu Linux
- ubuntu 安装 oracle-xe-universal
- How to Install Oracle Java JDK 6/7/8 on Ubuntu 13.04 / 12.10 / 12.04
- Compiere on Oracle XE
- ubuntu 安装 oracle-xe-universal
- Ubuntu 11.04 安装 Oracle XE 11.2
- Ubuntu下安装Oracle 10g XE版
- Ubuntu下安装Oracle XE
- Install oracle-xe-client_10.2.0.1-1.0_i386 on Ubuntu
- 在Ubuntu 8.04 x86_64上安装Oracle 10g XE和Oracle Application Express(apex) 3.1.1
- How to Install Oracle Java JDK on Ubuntu Linux
- how to install oracle jdk 7 on ubuntu lucid lts 10.04