Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql Oracle sqlplus位于哪里?_Mysql_Sql_Oracle_Command Line_Sqlplus - Fatal编程技术网

Mysql Oracle sqlplus位于哪里?

Mysql Oracle sqlplus位于哪里?,mysql,sql,oracle,command-line,sqlplus,Mysql,Sql,Oracle,Command Line,Sqlplus,背景 来自mysql的背景,我发现开始使用Oracle是一种完全不同的体验 问题 在哪里可以找到此Oracle命令工具 我查过了,上面只写着: 在适当配置的软件环境中,Oracle程序员可以启动SQL*Plus 而且它不在我的Windows上的路径中: C:\Users\jeff>sqlplus 'sqlplus' is not recognized as an internal or external command, operable program or batch file. 通

背景

来自
mysql
的背景,我发现开始使用Oracle是一种完全不同的体验

问题

在哪里可以找到此Oracle命令工具

我查过了,上面只写着:

在适当配置的软件环境中,Oracle程序员可以启动SQL*Plus

而且它不在我的Windows上的路径中:

C:\Users\jeff>sqlplus
'sqlplus' is not recognized as an internal or external command,
operable program or batch file.

通常在$ORACLE_HOME/bin中,通常他们建议运行

. oraenv

准备您的环境。

您可以通过在CMD shell中运行,找到Windows中的可执行文件
sqlplus

dir /s /b c:\sqlplus.exe
假设您在以下位置找到该文件:

c:\oracle\product\11.2.0\client_1\bin\sqlplus.exe
然后您确定您的ORACLE_主页为:

c:\oracle\product\11.2.0\client_1
假设上述ORACLE_主页,设置环境变量(控制面板>系统>环境变量)。下面是一个示例,因此请修改它们以匹配上面确定的ORACLE_主页

ORACLE_HOME=c:\oracle\product\11.2.0\client_1

TNS_ADMIN=c:\oracle\product\11.2.0\client_1\network\admin

PATH=  *(add this below the end of your PATH)*
         ;c:\oracle\product\11.2.0\client_1\bin

如果您在本地计算机上运行Oracle Server,也可以通过右键单击正在运行的Oracle进程找到它:

在我的情况下,它是在

C:\app\TZNind\virtual\product\12.2.0\dbhome_2\bin

问题:例如,WINDOWS.X64_193000_db_主文件夹中缺少文件

解决方法:重新安装oracle db。精确解


第一个命令可以工作,但是
dir/s/b sqlplus.exe
似乎更少confusing@failedProgrammer不完全是。执行
dir/s/b sqlplus.exe
将显示在当前目录下找到的所有sqlplus.exe。要遍历整个磁盘,您必须首先
cd\
,然后
dir/s/b sqlplus.exe
,或者作为一个步骤,只需
dir/s/b c:\sqlplus.exe
,它将从c:\递归搜索,无论您当前的dir是什么。为确保正确性,我尝试了其他方法,但这似乎仍然是最好的方法。还是很困惑,救命恩人。谢谢:)