日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

mysql+sqlplus命令找不到_bash: sqlplus: command not found 解决方法

發布時間:2025/1/21 数据库 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mysql+sqlplus命令找不到_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=$PATH:$HOME/bin

export PATH

unset USERNAME

export EDITOR=vi

export ORACLE_SID=dg1

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1

export LD_LIBRARY_PATH=$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=$ORACLE_HOME/bin:$PATH

umask 022

解決方法:

[oracle@dg1 ~]$ sqlplus /nolog

bash: sqlplus: command not found

[oracle@dg1 ~]$ ln -s $ORACLE_HOME/bin/sqlplus /usr/bin

ln: creating symbolic link `/usr/bin/sqlplus' to `/bin/sqlplus': Permission deni ed

[oracle@dg1 ~]$ su - root

Password:

[root@dg1 ~]# ln -s $ORACLE_HOME/bin/sqlplus /usr/bin

[root@dg1 ~]# su - oracle

[oracle@dg1 ~]$ sqlplus /nolog

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

Copyright (c) 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>

-----有在網上充值的朋友,請支持下小店,小店剛開張。。自動快快充1-10分鐘到賬,想了解充值軟件的朋友請聯系店主哦。。

總結

以上是生活随笔為你收集整理的mysql+sqlplus命令找不到_bash: sqlplus: command not found 解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。