bash: sqlplus: command not found 解决方法

bash: sqlplus: command not found 解决方法
环境变量已经配好,但是仍报错:

[oracle@dg1 ~]$ vi .bash_profile

.bash_profile

Get the aliases and functions

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

User specific environment and startup programs

PATH= P A T H : PATH: PATH:HOME/bin

export PATH
unset USERNAME

export EDITOR=vi
export ORACLE_SID=dg1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME= O R A C L E B A S E / p r o d u c t / 10.2.0 / d b 1 e x p o r t L D L I B R A R Y P A T H = ORACLE_BASE/product/10.2.0/db_1 export LD_LIBRARY_PATH= ORACLEBASE/product/10.2.0/db1exportLDLIBRARYPATH=ORACLE_HOME/lib:/usr/lib
export PATH=/u01/app/oracle/product/10.2.0/db_1/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
export PATH= O R A C L E H O M E / b i n : ORACLE_HOME/bin: ORACLEHOME/bin:PATH
umask 022

解决方法:

[oracle@dg1 ~]$ sqlplus /nolog
bash: sqlplus: command not found
[oracle@dg1 ~]$ ln -s O R A C L E H O M E / b i n / s q l p l u s / u s r / b i n l n : c r e a t i n g s y m b o l i c l i n k ‘ / u s r / b i n / s q l p l u s ′ t o ‘ / b i n / s q l p l u s ′ : P e r m i s s i o n d e n i e d [ o r a c l e @ d g 1   ] ORACLE_HOME/bin/sqlplus /usr/bin ln: creating symbolic link `/usr/bin/sqlplus' to `/bin/sqlplus': Permission deni ed [oracle@dg1 ~] ORACLEHOME/bin/sqlplus/usr/binln:creatingsymboliclink/usr/bin/sqlplusto/bin/sqlplus:Permissiondenied[oracle@dg1 ] su - root
Password:
[root@dg1 ~]# ln -s KaTeX parse error: Expected 'EOF', got '#' at position 46: …in [root@dg1 ~]#̲ su - oracle [o… sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 11 12:51:24 2009

Copyright © 1982, 2005, Oracle. All rights reserved.

SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 79694068 bytes
Database Buffers 83886080 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值