Connection to Oracle failed. [66000][12505] Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor .

时间:2021-07-14 17:06:32

我安装了Oracle数据库,默认的数据库用户名是system,密码口令是安装过程中你自己设置的。可以先使用命令框,输入

sqlplus system;

然后再输入密码即可。

然后我的数据库连接工具使用的是DataGrip,我在使用DataGrip连接的时候发现,报了这个错误

Connection to Oracle failed.[66000][12505] Listener refused the connection with the following error:ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

可以看到SID有什么问题,我们刚好可以使用上面的命令框来查SID是多少,使用这个语句

select INSTANCE_NAME from v$instance;

可以查出来SID,然后再在DataGrip里面输入SID,我再次使用DataGrip连接,又报如下错误

Connection to Oracle failed.[60000][600] ORA-00600: 内部错误代码, 参数: [ksacl_ValidateAccess: !snlinGetNameInfo], [7005], [], [], [], [], [], [], [], [], [], []

我解决不了,烦死了,Oracle怎么那么多问题?????????????????????????????????????????????????

烦死了

Connection to Oracle failed. [66000][12505] Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor .