标题: .bash_profile 问题
laester
新生入学
Rank: 1
注册用户



UID 152998
精华 0
积分 2(积分有什么用?)
帖子 2
阅读权限 10
注册 2006-3-18
状态 离线
发表于 2008-4-15 23:22  资料  个人空间  短消息  加为好友 

Linux爱好者的盛会
.bash_profile 问题

我在AS4下安装ORACLE一切正常 装完后 将.bash_profile文件中的ORACLE_HOME进行设置。推出后用命令evn|grep ORA
查看 ,但文件没执行。后运行 source .bash_profile有如下错误提示:
[oracle@localhost ~]$ source .bash_profile
bash: id: command not found
bash: id: command not found
bash: id: command not found
bash: [: too many arguments
bash: dircolors: command not found
bash: grep: command not found
bash: grep: command not found
bash: id: command not found
bash: [: =: unary operator expected
bash:   : command not found
bash: /OD/oracle/oracle/product/10.2.0/db_1/bin: 没有那个文件或目录
请各位给我看看 是怎么回事
还有 .bash_profile文件配置如下
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATHHOME/bin

export PATH
unset USERNAME

   ORACLE_BASE=/OD/oracle
    ORACLE_SID=laester
   export ORACLE_BASE ORACLE_SID
ORACLE_HOME=/OD/oracle/oracle/product/10.2.0/db_1
PATH=/OD/oracle/oracle/product/10.2.0/db_1/bin ;$PATH
export ORACLE_HOME PATH


unset TNS_ADMIN

各位高手请帮帮忙吧
现在这个文件不能生效。oracle就不能正常运行啊

顶部
laester
新生入学
Rank: 1
注册用户



UID 152998
精华 0
积分 2(积分有什么用?)
帖子 2
阅读权限 10
注册 2006-3-18
状态 离线
发表于 2008-4-16 09:33  资料  个人空间  短消息  加为好友 
问题解决了
有2个问题:第一是PATH=/OD/oracle/oracle/product/10.2.0/db_1/bin ;$PATH
不是; 而是:
第二个是
PATH=/OD/oracle/oracle/product/10.2.0/db_1/bin ;$PATH
/binPATH中间不能有空格

顶部
不容错过的IBM 集群技术资源汇总
ruru023
新生入学
Rank: 1



UID 208891
精华 0
积分 15(积分有什么用?)
帖子 5
阅读权限 10
注册 2007-8-27
状态 离线
发表于 2008-4-19 22:01  资料  个人空间  短消息  加为好友  添加 ruru023 为MSN好友 通过MSN和 ruru023 交谈
这个文件不生效并不=oracle不能正常使用哦。呵呵~这个只是用的环境变量文件。不能用还有其他文件可用。oracle之所以“不能用”是要取得这些参数,如果取得不了就有默认的给出,如果默认的不对就无法执行一些常规的操作就会导致貌似不可用了。其实能否可用与安装相关,装好了就能用,环境变量只是提供一些快捷的方式访问而已。

顶部
 



当前时区 GMT+8, 现在时间是 2008-5-13 13:54

    Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.042400 second(s), 5 queries

清除 Cookies - 联系我们 - Linux伊甸园 - Archiver - WAP