问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

oracle10g的12518和12560错误

发布网友 发布时间:2022-04-30 01:47

我来回答

1个回答

热心网友 时间:2022-04-13 19:06

Troubleshooting Details

Section I: Steps to approach ORA-12518/TNS-12518 Error:

ORA-12518/TNS-12518 indicates a problem while listener hands off the client connection to the server process or dispatcher process.TNS-12518 is logged in the listener log. The client might receive ORA-12518 or some other disconnection errors like ORA-12537. Once TNS-12518 is noted in the listener log, follow the below steps to approach and resolve this error.

Let us have a small discussion about how actually database connections are made:

In Dedicated mode, database client contacts listener and supplies the SERVICE NAME of the database. Then listener spawns a dedicated server process and hands off the client connection to this dedicated server process. TNS-12518 indicates a problem while handing off the client connection to the server process.

In Shared Server mode, database client contacts listener and supplies the SERVICE NAME of the database. Then listener hands off the client connection to one of the dispatcher configured for that service. TNS-12518 indicates a problem while handing off the client connection to the dispatcher server process.

Though this error is logged in the listener log, the listener is just the messenger, ORA-12518/TNS-12518 is mostly related to RDBMS and OS resources.

Step 1. Is listener version compatible to the database

Check if you are using compatible listener version for your database version.

If the database is 8i then use 8i or 9i listeners only. 10g listeners are not compatible to work with 8i databases.
For 9i databases, 9i or 10g listeners can be used.
For 10g databases, only 10g listeners can be used.

The general rule is that use the higher version of the listener when there is a version mismatch between database and the listener.

Step 2. Gather more information from listener log

The first place you would look for the TNS-12518 error is the listener log. Usually the listener log would be located under $ORACLE_HOME/network/log directory. You can use 'lsnrctl status' command output to look for the location of the listener log file.
$lsnrctl status
- - -
- - -
Listener Parameter File /ora10g/home_ora10g/network/admin/listener.ora
Listener Log File /ora10g/home_ora10g/network/log/listener.log
- - -
- - -

listener log gives the complete error stack and the database service name to which the client tried to connect to.
19-SEP-2007 13:55:34 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=test.oracle.com)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.3)(PORT=36030)) * establish * test.oracle.com * 12518
TNS-12518: TNS:listener could not hand off client connection
TNS-12547: TNS:lost contact
TNS-12560: TNS:protocol adapter error
TNS-00517: Lost contact
Linux Error: 32: Broken pipe

In the above example, listener log shows the complete error stack, the bottom error being 32 is the OS error. It also shows that the jdbc client from IP 10.10.10.3 has tried to connect to the database service 'test.oracle.com' and failed with the error 12518.

Look for the lowest error in the stack. That is the error we have to concentrate on and try to resolve it. In the above example, the lower error is 'Linux Error: 32: Broken pipe'.

Step 3. Is service handlers in blocked state

Check if the handlers are in blocked state. Check the output of the 'lsnrctl services'. Examine the status information under the database service name. From the listener log you would know which database service was affected by the 12518 error, now with the output of the 'lsnrctl services' under that service name gather more information.
Service "test.oracle.com" has 1 instance(s).
Instance "db10g", status READY, has 2 handler(s) for this service...
Handler(s):
"DEDICATED" established:9 refused:0 state:ready
LOCAL SERVER
"D000" established:10 refused:0 current:0 max:972 state:ready
DISPATCHER <machine: oid.mohan.com, pid: 25908>
(ADDRESS=(PROTOCOL=tcp)(HOST=oid.mohan.com)(PORT=33487))

The highlighted state should be in 'ready' state for the connection to be successful. If the state is in 'blocked' then the connection are not possible. The state of a handler could be in blocked state in the following scenario:
i. The database parameter processes reached its value.
ii. The database is in the process of startup or shutting down.

In shared server mode, the number of dispatchers should be set according to the load that you expect. 'lsnrctl services' output shows the maximum number(max:997) of connections that the dispatcher would accept and the number connections refused (refused:0) by this dispatcher. If any connections refused by the dispatcher, then consider increasing the number of dispatchers.

If you are using PFILE edit init.ora and increase the dispatchers parameter. If you are using SPFILE you can dynamically increase the dispatchers parameter by the 'alter system set' command.
oracle10g的12518和12560错误

Section I: Steps to approach ORA-12518/TNS-12518 Error:ORA-12518/TNS-12518 indicates a problem while listener hands off the client connection to the server process or dispatcher process.TNS-12518 is logged in the listener log. The client might receive ORA-12518 or some other discon...

Load Port、SMIF

威孚(苏州)半导体技术有限公司是一家专注生产、研发、销售晶圆传输设备整机模块(EFEM/SORTER)及核心零部件的高科技半导体公司。公司核心团队均拥有多年半导体行业从业经验,其中技术团队成员博士、硕士学历占比80%以上,依托丰富的软件底层...

ORACLE11g The Network Adapter could not establish the connection相关...

TNS-12571: TNS: 包写入程序失败 TNS-12560: TNS: 协议适配器错误 TNS-00530: 协议适配器错误 64-bit Windows Error: 54: Unknown error &lt;/txt&gt;&lt;/msg&gt;网上查了一下“TNS-12518: TNS: 监听程序无法分发客户机连接” ,根据提示查询了一下“process和session“这两个都够使用 process:38/150 ; session:33/...

...DESCRIPTION=(TMP=)(VSNNUM=169869568)(ERR=12518

&lt;!--连接池中保留的最小连接数。--&gt; &lt;property name="minPoolSize"&gt; &lt;value&gt;5&lt;/value&gt; &lt;/property&gt; &lt;!--连接池中保留的最大连接数。Default: 15 --&gt; &lt;property name="maxPoolSize"&gt; &lt;value&gt;40&lt;/value&gt; &lt;/property&gt; &lt;!--初始化时获取的连接数,取值应在minPoolSize与maxPoolSize之间。...

oracle错误12560 遇到oracle错误 12154 oracle11g 12518 oracle8004错误 遇到oracle12560 oracle12518 oracle 12505 oracle12514 oracle 12170
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
环球黑卡里面有钱吗 收留我歌词 让我们相爱歌词 ...只知道前面的歌词是‘我燃烧了翅膀,你却像风一样,那风铃在摇晃,倾听... 酒店集中隔离期后,为啥还要经过研讨才能出 ...我燃烧了翅膀 你却想风一样 那风铃在摇晃 倾听一种悲伤~~~_百度知... 多吃辣椒对皮肤好吗? 集中隔离到期结束流程是什么 关于时间换算的问题... 从1998年到2024年一共经过了多少年? 宋体最早是由谁提出来的? oracle8!的ORA-12560:TNS:协议适配器错误(顽固性的)错如何解决_百度知 ... 宋体字起源于什么朝代,谁发明的??? 在创建Oracle数据库时出现ORA 12560:协议适配器错误是怎么回事?_百度... 汉字书法宋体是谁发明的? oracle本地进行连接的时候报错ORA-12560: TNS: 协议适配器错误_百度知 ... 关于赞美西湖的古诗 ERROR - ORA-12560: TNS:protocol adapter error 怎么解决? 关于西湖的古诗有哪些 小学三年级赞美西湖的古诗 西湖诗句大全? 四年级描写西湖的诗句古诗词 有关西湖的诗句 古诗大全 请问地质年代上的Ma是什么意思?比如说新太古代末期(2412~2600Ma)一Ma是多少年呢? 关于西湖的古诗词句 为什么油性颗粒物能使融喷布过滤效果降低很多? 关于西湖诗句的古诗有哪些? 在&lt;&lt;小学生必背古诗80首&gt;&gt;中,描写西湖的有哪些? 手机屏幕能承受多大重量 小学三年级语文。描写西湖的诗? Windows7安装Oracle数据成功后,创建自己的数据库出现了ORA-12560错误,求高手指点 我是新手 不太懂 求解 lg的显示器加载哪个icc和MacBook pro比较接近 买了一个LG 21:9的显示屏 接MacBook pro13寸的笔记本 但是现实出来的字体啊 图标 苹果对显示器要求很高 苹果显示器多用lg 说明lg是苹果认可的 为什么有人说戴尔显示器比lg好? Angelababy这个单词汉语是什么意思? 如何辨别macbook pro的屏幕是三星的还是lg的? Macbook Pro Retina 13寸 可以完美外接 LG 34寸系列的显示器吗 。 angelababy 什么意思 苹果供应商LG显示器遭遇什么危机? Angelababy是谁?什么意思? angelababy 是什么意思 这款LG显示器是什么型号 LG UltraFine 4K显示器可以兼容之前老的MacBook Pro 吗 angelababy中文意思是什么? PCI内存控制器是什么? pci内存控制器感叹号不装可以吗 华硕b460主板pci内存控制器是什么驱动 PCI内存控制器是用来干嘛的??? PCI内存控制器的讯盘 pci内存控制器感叹号