ORA-12514
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor监听器目前不知道在连接描述符中的服务请求。 Expert Oracle Database Tips by Donald BurlesonAugust 27, 2015 在2015年8月27日,Donald Burleson一个oracle数据库专家技巧。 |
Question: I am attempting to enter SQL*Plus and I am getting this error:
问题:我打算进入SQL*Plus得到了一个这个错误。
oracle> sqlplus system/manager@mysid
ERROR
ORA-12514: TNS: Listener does not currently know of service requested in connect descriptor
监听器目前不知道连接描述中的服务请求。
How do I prevent this form of the ORA-12514 error? Also, I often get a TNS-12514 along with the ORA-12514. Are these the same error? If not, how do I avoid the TNS-12514?
如何的我可以避免ORA-12514错误?并且,随着ORA-12514错误我经常得到TNS-12514错误,这些是相同的错误吗?如果不是,我可以如何的避免TNS-12514错误。
permutation of the ORA-12514: TNS listener cannot resolve service name error as shown below.
root> oerr ora 12514
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
监听器目前不知道连接描述中的服务请求。
Cause:(原因)
The listener received a request to establish a connection to a database or other service.
监听器收到请求建立一个数据库或者其他服务请求。
The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener.
那个连接描述符接收到通过一个监听器指定的服务名称关于一个服务(通常是数据库的服务)要么尚未有动态的注册那个监听器,要么没有静态的配置监听器。
This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
这里可以有一些暂时状态例如:监听器开始之后但是,数据库实例有使用监听器注册之前。
Action:(方案)
Wait a moment and try to connect a second time.(等待一会,尝试第二次)
Check which services are currently known by the listener by executing: lsnrctl services
检查目前监听器已知的服务。通过执行:lsnrctl services
Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
- 检查那个在连接描述符中的服务名称参数,网络服务名称使用被监听器已知的指定的服务。
If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
- 如果一个简单的连接名称连接标识符被使用,检查监听器已知的服务指定服务名称 。
Check for an event in the listener.log file.
- 在listener.log 文件检事件。
To register the database with the listener
是用监听器注册数据库。
You have two options to register your database with the listener:
使用监听器注册数据库有两种方法。
- Simply add a service name to your tnsnames.ora file. 简单的直接添加服务名称到你的tnsname.ora文件
- If you have the multiple listeners and have specified the database name in your pfile/spfile with local_listener=mysid then you can dynamically register the database with the listener.
如果你有多个监听器使用local_listener=sid在你的 pfile/spfile 指定数据库名称然后可以使用监听器动态的注册数据库。
The TNS-12514 is very similar to the ORA-12514 for a reason. Sometimes Oracle does not get far enough along in the process for an Oracle error, so a similar network error will appear. Resolving one should take care of the other.
TNS-12514是相似的原因和ORA-12514.有时oracle不能得到足够远的沿着在那个oracle错误进程,因此出现了类似的网络错误。解决一个问题错误应该注意另外一个错误。
Read on for specific information on dealing with the TNS-12514 on Windows.
读特定的信息在windows系统处理TNS-12514问题。
ORA-12514: TNS listener cannot resolve service name error
监听器不能够解决服务名称错误。
Question: I have an issue causing a ORA-12514: TNS: listener could not resolve SERVICE_NAME error:
我有一个问题引起ora-12514错误,监听器不能解决服务名称错误。
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
I'm using Oracle 10g on Windows 2000.
What's cause of this error and how to resolve it?
什么是引起错误和如何的解决这个问题
Answer by Edward Stoever:
I avoid using a listener connection when I startup or shutdown, as a matter of practice. I realize that cannot always be done. Are you physically on the machine? Can you ssh or telnet in and run sqlplus on the box? Then connect like so:
export ORACLE_SID=mydb ###Unix/Linux
sqlplus sys as sysdba
[no password needed - just hit return ]
SQL> startup mount
...
Do not connect with the @mydb to avoid the listener.
Also, Windows systems are subject to a variety of other issues from screen savers that hog the CPU to the Catch-22 of either anti-virus protection or a virus interfering with connections. These conditions and a few others can cause TNS-12514 to appear.
因此,windows系统是属于不同其他问题从屏幕保护,占用cpu到Catch-22或使用连接防病毒保护或者病毒接口,这些条件是其他的原因促使TNS-12514.
Also note the similarities in numbering and content for ORA-12154, which deals with TNS inability to resolve the service name.
ORA-12514的更多相关文章
- Oracle:使用过程中的问题集锦
导读:在使用Oracle的过程中,又频繁的出问题.突然间就连接不上,各种报错了.在此,将问题给记录下来,方便以后查看. 一.ora 12514监听程序当前无法识别 之前一直链接使用的好好的,突然就连接 ...
- Oracle 11g 发行版2的安装,PLSQL_Developer安装 , Oracle数据库安装失败,完全卸载,常用的命令
Oracle 11g 发行版2的安装 PLSQL_Developer安装 Oracle数据库安装失败,完全卸载oracle11g 常用的命令 Oracle 11g 发行版2的安装 1. 下载 下载地址 ...
- oracle client PLSQL配置
date:20140525auth:Jin platform :windows 一.服务端启动服务和创建账号# su - oracle$ lsnrctl start$ sqlplus / as sys ...
- Oracle sqlldr数据加载
1 sqlldr 传统路径:sqlldr会利用sql插入为我们加载数据 直接路径加载:sqlldr不适用sql,直接格式化数据块,绕开undo,避开redo,最快的方法就是并行直接路径加载 sqlld ...
- oracle的sqlnet.ora,tnsnames.ora,listener.ora三个配置文件
总结: 1 .三个配置文件都是放在$ORACLE_HOME\network\admin目录下. 2 .sqlnet.ora确定解析方式 3 .listener.ora上设SID_NAME,通常用于JD ...
- Oracle Data Guard PING[ARC2]: Heartbeat failed to connect to standby ''. Error is 12514 故障分析
朋友搭建的一套DG,折腾了很长时间,一直都是报如下错误: ORA-12514: TNS:listener does not currentlyknow of service requested in ...
- ORA-12541:TNS:no listener 客户端tnsnames.ora配置,以及服务端listener.ora配置
需求:客户端(192.168.25.1)需要访问服务端(192.168.7.215)的Oracle库ORCL. 步骤一:配置客户端tnsnames.ora 步骤二:配置服务端listener.ora ...
- Oracle的tnsnames.ora配置(PLSQL Developer)
首先打开tnsnames.ora的存放目录,一般为D:\app\Administrator\product\11.2.0\client_1\network\admin,就看安装具体位置了. 步骤阅读 ...
- Oracle RAC客户端tnsnames.ora相关配置及测试
1.Oracle RAC服务端/etc/hosts部分内容如下 2.查看服务端的local_listener和remote_listener参数 3.客户端tnsnames.ora配置参考 3.1 1 ...
随机推荐
- XXX is not in the sudoers file. This incident will be reported 的问题解决方案
不多说,直接上干货! 说的是,这种问题,是出现在ubuntu系统里. root@SparkSingleNode:/usr/local/jdk# pwd /usr/local/jdk root@Spar ...
- java值传递与引用传递
看代码: import java.lang.reflect.Field; public class Test { public static void main(String[] args) { In ...
- 深入理解java集合框架之---------Linked集合 -----构造函数
linked构造函数 1.LinkedList(): 构造一个空列表的集合 /** * 序列化 */ private static final long serialVersionUID = 1090 ...
- varchar(n) 和 int(n)
mysql(测试版本为5.6) 的varchar必须加范围,否则报错: mysql> CREATE TABLE test ( -> id INT, -> name VARCHAR - ...
- 小菜读书---《Effective C#:改善C#程序的50种方法》
一.用属性代替可访问的字段 1..NET数据绑定只支持数据绑定,使用属性可以获得数据绑定的好处: 2.在属性的get和set访问器重可使用lock添加多线程的支持. 二.readonly(运行时常量) ...
- SecureCRT远程连接Linux下的sqlplus中退格键不能使用之解决方法
^H不是H键的意思,是backspace 主要是当你的终端backspace有问题的时候才需要设置 在linux环境下使用sqlplus,在回删(backspace)时往往会出现 一串的乱码.出现 ...
- java工厂模式个人体会
上一边文章主要对单例模式做了一个总结,这篇文章主要对工厂模式也写一写个人的体会. 工厂模式是设计模式的一种,它主要是把实现产品对象的过程封装起来,然后提供给客户端相应的接口.工厂模式也是有3种,分别为 ...
- C#画个控件,指定字符特殊颜色显示
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; usin ...
- PHP new StdClass() 创建空对象
PHP可以用 $object = new StdClass(); 创建一个没有成员方法和属性的空对象.很多时候,程序员们会将一些参数配置项之类的信息放在数组中使用,但是数组操作起来并不是很方便,很多时 ...
- angular排序
说点小案例angular的排序 <!DOCTYPE html> <html ng-app="mk"> <head> <meta chars ...