Oracle10G Express 如何找到bashrc并添加环境变量。

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
memory_tree
帖子: 5
注册时间: 2007-08-07 19:16

Oracle10G Express 如何找到bashrc并添加环境变量。

#1

帖子 memory_tree » 2007-08-09 20:16

我刚装上了Oracle10g Express版本的。但是再控制台里输入sqlplus 出现error message :bash: sqlplus command cannot found.
原来是没有添加环境变量所造成的,搜索了一下资料,但是还是不是清楚:
搜索了一下:

Code:

ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
ORACLE_OWNER=oraclexe
ORACLE_SID=XE
export ORACLE_HOME
export ORACLE_SID
export PATH=$ORACLE_HOME/bin:$PATH

You should also put these in /etc/bash/bash.rc (I'm not sure where we are supposed to add environment variables in Ubuntu - Gentoo has a nice /etc/env.d directory which has many files with the variables that are needed for all the different packages).

但是却找不到.bashrc这个文件。
请问一下:如何敲命令才能够编辑这个文件。
头像
datafly
帖子: 117
注册时间: 2005-12-12 19:10
来自: 山西左权
联系:

#2

帖子 datafly » 2007-09-14 9:47

cd
vi .bashrc
m34791496
帖子: 2
注册时间: 2012-09-22 20:29
系统: Win7+Linux

Re: Oracle10G Express 如何找到bashrc并添加环境变量。

#3

帖子 m34791496 » 2013-07-19 20:55

在我的尝试中,vi是不可以的,需要安装vim,直接vim bash.rc
回复