lsnrctl:在Ubuntu 18.04中找不到命令

问题描述 投票:0回答:1

我正在尝试使用sqldeveloper连接到Oracle Database 18c XE,

但是我得到了:

Status : Failure -Test failed: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

所以我正在尝试启动我的监听器/ opt / oracle / product / 18c / dbhomeXE / network / admin / samples

而且我得到了lsnrctl: command not found

我还在/ opt / oracle / product / 18c / dbhomeXE / bin中得到sqlplus的相同消息]

我知道您要说的是Ubuntu不支持Oracle,

但是我真的只能使用Ubuntu。

我正在尝试使用sqldeveloper建立与Oracle Database 18c XE的连接,但是我得到:状态:失败-测试失败:侦听器拒绝连接并出现以下错误:ORA-12505,TNS:...

oracle ubuntu sqlplus oracle18c
1个回答
0
投票

您需要执行以下步骤来访问Installation Guide for Linux x86-64中记录的Oracle可执行文件:

$ export ORACLE_SID=XE 
$ export ORAENV_ASK=NO 
$ . /opt/oracle/product/18c/dbhomeXE/bin/oraenv

ORACLE_HOME = [] ? /opt/oracle/product/18c/dbhomeXE
The Oracle base has been set to /opt/oracle
© www.soinside.com 2019 - 2024. All rights reserved.