Oracle 数据库连接问题

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10353869/
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-09-19 00:45:53  来源:igfitidea点击:

Oracle database connectivity issue

oracle

提问by Barry

I have a oracle database instance on my local machine , which i try to connect to .

我的本地机器上有一个 oracle 数据库实例,我尝试连接到它。

Using SQL Developer , i can connect to it . But when i use sqlplus i cannot connect to the instance.

使用 SQL Developer,我可以连接到它。但是当我使用 sqlplus 时,我无法连接到实例。

The error message i get is

我得到的错误信息是

ORA-28547:connection to server failed,probable oracle net admin error.

I tried restarting my TNS service but still the issue persists.

我尝试重新启动我的 TNS 服务,但问题仍然存在。

And i need to connect to sqlplus because i need to import the dumps using

我需要连接到 sqlplus 因为我需要使用

impdp system/***** schemas=abcd dumpfile=DUMP_500.dmp 

Please let me know what other information is needed , so that i can post

请让我知道还需要什么其他信息,以便我可以发布

Thanks

谢谢

采纳答案by Ollie

Are you using the same tnsnames.ora file for your SQL*Plus that your SQL Developer is using?

您是否在为 SQL*Plus 使用与 SQL Developer 使用的相同的 tnsnames.ora 文件?

Also try adding SQL_AUTHENTICATION_SERVICES = (NONE)to your sqlnet.ora file.

还可以尝试添加SQL_AUTHENTICATION_SERVICES = (NONE)到您的 sqlnet.ora 文件中。