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 ...
随机推荐
- leetcode简单题目两道(4)
心情还是有问题,保持每日更新,只能如此了. Problem Given a binary tree, return the level order traversal of its nodes' va ...
- 端口扫描工具nmap
nmap 使用介绍 nmap是目前为止最广为使用的国外端口扫描工具之一.我们可以从[url]http://www.insecure.org/[/url]进行下载,可以很容易的安装到Windows和un ...
- 使用 Flask 框架写用户登录功能的Demo时碰到的各种坑(二)——使用蓝图功能进行模块化
使用 Flask 框架写用户登录功能的Demo时碰到的各种坑(一)——创建应用 使用 Flask 框架写用户登录功能的Demo时碰到的各种坑(二)——使用蓝图功能进行模块化 使用 Flask 框架写用 ...
- 撩课-Web大前端每天5道面试题-Day13
1.前端需要注意哪些SEO? 合理的title.description.keywords:搜索对着三项的权重逐个减小,title值强调重点即可,重要关键词出现不要超过2次,而且要靠前,不同页面titl ...
- UML 简介笔记
1. UML 是什么? UML 统一建模语言是一组图形表示法,可以帮助描述和设计软件系统,特别是使用面向对象 OO 风格建造的软件系统. 2. 使用 UML 的方式 UML 有 3 种使用模式:草稿, ...
- golang label breaks
我们在for多层嵌套时,有时候需要直接跳出所有嵌套循环, 这时候就可以用到go的label breaks特征了. 先看一个范例代码: package main import ( "f ...
- BZOJ4598: [Sdoi2016]模式字符串(点分治 hash)
题意 题目链接 Sol 直接考虑点分治+hash匹配 设\(up[i]\)表示\(dep \% M = i\)的从下往上恰好与前\(i\)位匹配的个数 \(down\)表示\(dep \% M = i ...
- codechef Many Lists(树状数组 set)
题意 题目链接 Sol 直接做肯定不好搞(反正我不会..) 直接开\(n\)个Pair类型的set,维护每个数的出现位置 每次在set中二分后暴力合并即可 然后就是树状数组的基本操作了 时间复杂度:\ ...
- ionCube 安装
有些程序在php环境下运行需要安装ionCube Loader的扩展支持,得到如下提示 Site error: the ionCube PHP Loader needs to be installed ...
- bootstrap学习笔记细化(按钮)
button:btn 圆角灰色按钮 button:btn btn-default 圆角灰色边框按钮 button:btn btn-success 绿色 button:btn btn-primary 蓝 ...