MySQL Oracle sqlplus 在哪里?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24307385/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 20:39:53  来源:igfitidea点击:

Where is Oracle sqlplus located?

mysqlsqloraclecommand-linesqlplus

提问by Xiao

Background

背景

Coming from a mysqlbackground, I find getting started with Oracle quite a different experience.

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

Question

Where do I find this command tool for Oracle?

我在哪里可以找到这个用于 Oracle 的命令工具?

I have checked wikipediaand it only says:

我查过维基百科,它只说:

An Oracle programmer in the appropriately configured software environment can launch SQL*Plus

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

And it's not in the PATH on my Windows:

它不在我的 Windows 的 PATH 中:

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

回答by Joshua Huber

You can locate the sqlplusexecutable in Windows by running in a CMD shell

您可以sqlplus通过在 CMD shell 中运行来定位Windows 中的可执行文件

dir /s /b c:\sqlplus.exe

Suppose you find the file at

假设您在以下位置找到该文件

c:\oracle\product.2.0\client_1\bin\sqlplus.exe

Then you have determined that your ORACLE_HOME is:

那么你已经确定你的 ORACLE_HOME 是:

c:\oracle\product.2.0\client_1

Assuming the above ORACLE_HOME, set your environment variables (Control Panel > System > Environment Variables). Below is example, so modify these to match the ORACLE_HOME you determined above.

假设上述 ORACLE_HOME,设置您的环境变量(控制面板 > 系统 > 环境变量)。下面是示例,因此请修改它们以匹配您在上面确定的 ORACLE_HOME。

ORACLE_HOME=c:\oracle\product.2.0\client_1

TNS_ADMIN=c:\oracle\product.2.0\client_1\network\admin

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

回答by Lajos Veres

Usually in $ORACLE_HOME/bin and usually they suggest to run

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

. oraenv

to prepare your environment.

准备你的环境。

回答by Thomas N

If you are running Oracle Server on your local computer you can also find it by right clicking the running Oracle process:

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

enter image description here

在此处输入图片说明

In my case it is in

就我而言,它在

C:\app\TZNind\virtual\product.2.0\dbhome_2\bin