ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

本文介绍了当遇到无法登录Oracle数据库的问题时,如何通过重启监听服务和修改listener.ora配置文件来解决问题。文中提供了具体的错误信息ORA-12514及其解决步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

突然无法登陆oracle数据库。无论时通过PLSQL工具远程登陆,还是用sqlplus命令本地登陆都无法连接数据库。

$ sqlplus /nolog
SQL*Plus: Release 10.2.0.5.0 - Production on Mon Dec 24 10:28:49 2012
Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
SQL> connect SYS/passwd@orcl as SYSDBA
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

       baidu一下(google已经被伟光正搞残,只能退而用这个次品)。

       先重启 监听服务。

lsnrctl stop

lsnrctl start

        现在可以在不指定数据库名称的前提下登陆。例如: sqlplus user/passwd。

但如果指定数据库名

$ sqlplus user/passwd@jfdbt
SQL*Plus: Release 10.2.0.5.0 - Production on Mon Dec 24 11:09:35 2012
Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Enter user-name: user
Enter password: 
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
  按照这里  ORA-12514: TNS 的说法,修改 listener.ora。再重启监听服务。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值