我刚刚开始使用Linux下的Oracle,所以对它一无所知。
我已经从 here 安装了 oracle-xe-11.2.0-1.0.x86_64
之后我登录到 sqlplus
通过此命令:sqlplus sys as sysdba
之后我创建了一个用户并通过 grant connect, resource to MYUSER;
授予对其的访问权限
一切正常,现在我可以通过我的用户名和密码进入 sql plus,但在 sqldeveloper 中
当我想创建连接时它返回一些错误
:
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
但是我输入的信息是正确的!
hostname : localhost or 127.0.0.1
port : 1521
sid : xe or db
测试两者 最后,不工作 sqldeveloper form
最佳答案
您可以更新oracle目录中的tnsnames.ora
和listener.ora
文件中的主机名(计算机名)。保存并重试。
关于java - 无法登录sqldeveloper,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50971352/