bash: sqlplus: command not found 解决方法

╰半夏微凉° 2022-03-19 01:58 513阅读 0赞

一.bash: sqlplus: command not found 解决方法

  1. [oracle@dg1 ~]$ sqlplus /nolog
  2. bash: sqlplus: command not found
  3. [oracle@dg1 ~]$ ln -s $ORACLE_HOME/bin/sqlplus /usr/bin
  4. ln: creating symbolic link `/usr/bin/sqlplus' to `/bin/sqlplus': Permission deni ed
  5. [oracle@dg1 ~]$ su - root
  6. Password:
  7. [root@dg1 ~]# ln -s $ORACLE_HOME/bin/sqlplus /usr/bin
  8. [root@dg1 ~]# su - oracle
  9. [oracle@dg1 ~]$ sqlplus /nolog
  10. SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 11 12:51:24 2009
  11. Copyright (c) 1982, 2005, Oracle. All rights reserved.
  12. SQL> conn / as sysdba
  13. Connected to an idle instance.
  14. SQL> startup
  15. ORACLE instance started.
  16. Total System Global Area 167772160 bytes
  17. Fixed Size 1218316 bytes
  18. Variable Size 79694068 bytes
  19. Database Buffers 83886080 bytes
  20. Redo Buffers 2973696 bytes
  21. Database mounted.
  22. Database opened.
  23. SQL>

二.连接数据库

sqlplus 账号/密码@localhost/orcl

  1. sqlplus 账号/密码@localhost/orcl

发表评论

表情:
评论列表 (有 0 条评论,513人围观)

还没有评论,来说两句吧...

相关阅读