export ORACLE_BASE=/u01/app/oracle
在SunOS上既然报错: is not an identifier
哎,奇怪吧。
写成这样就可以了:
ORACLE_BASE=/u01/app/oracle
export ORACLE_BASE
但上面那样写在Linux, HPUX, AIX都没有问题的。
==========================================
[RHEL3]:[/templv/oracle9i/gan/SRC]$ sh -x 1.sh
+ cd dmp
+ echo /templv/oracle9i/gan/SRC/dmp
/templv/oracle9i/gan/SRC/dmp
++ pwd
+ echo /templv/oracle9i/gan/SRC/dmp
/templv/oracle9i/gan/SRC/dmp
[RHEL3]:[/templv/oracle9i/gan/SRC]$ uname -a
Linux RHEL3 2.4.21-20.EL #1 Wed Aug 18 20:58:25 EDT 2004 i686 i686 i386 GNU/Linux
[RHEL3]:[/templv/oracle9i/gan/SRC]$ cat 1.sh
cd dmp
echo ${PWD}
echo `pwd`
注意看两个环境差别, SunOS下面${PWD}和`pwd`不一样的,但我测试Linux, HPUX, AIX都是一样的:
[sunv480]:[/dsg/oracle10/ganhk]$ sh -x 1.sh
+ cd dmp
+ echo /dsg/oracle10/ganhk
/dsg/oracle10/ganhk
+ pwd
+ echo /dsg/oracle10/ganhk/dmp
/dsg/oracle10/ganhk/dmp
[sunv480]:[/dsg/oracle10/ganhk]$ cat 1.sh
cd dmp
echo ${PWD}
echo `pwd`
[sunv480]:[/dsg/oracle10/ganhk]$ uname -a
SunOS sunv480 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-480R
阅读(3443) | 评论(0) | 转发(0) |