免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1973 | 回复: 2
打印 上一主题 下一主题

AS3+Oracle10g 配置.bash_profile后报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-30 17:08 |只看该作者 |倒序浏览
数据库已装好,EM可以起来。
但[oracle@test-server oracle]$ sqlplus /nolog
-bash: sqlplus: command not found

[oracle@test-server oracle]$ cat .bash_profile
# .bash_profile

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

# User specific environment and startup programs

unset USERNAME
ORACLE_BASE= /home/oracle; export ORACLE_BASE
ORACLE_HOME= /home/oracle/product/10.1.0/Db_1; export ORACLE_HOME
ORACLE_SID= orcl
PATH= $PATHORACLE_HOME/binHOME/bin; export PATH
DISPLAY= 192.168.16.3:0:0; export DISPLAY
TEMP= /tmp; export TEMP
TMPDIR= /tmp; export TMPDIR

而且

[oracle@test-server oracle]$ . ./.bash_profile
-bash: /home/oracle: is a directory
-bash: /home/oracle/product/10.1.0/Db_1: is a directory
-bash: orcl: command not found
-bash: /usr/kerberos/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin:/bin:/home/oracle/bin: No such file or directory
-bash: 192.168.16.3:0:0: command not found
-bash: /tmp: is a directory
-bash: /tmp: is a directory

问题在哪,请大家指教。谢谢。

论坛徽章:
0
2 [报告]
发表于 2006-08-30 17:26 |只看该作者
设置环境变量时, 等号两边不能有空格
如果环境变量名称或者值中有空格, 需要使用双引号引起来

论坛徽章:
0
3 [报告]
发表于 2006-08-30 17:37 |只看该作者
谢谢,问题已解决。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP