当前位置:  数据库>oracle

配置静态监听解决ORA-12514错误的案例

    来源: 互联网  发布时间:2017-06-10

    本文导语: --查看主库监听 --tnsnames.ora文件内容 --主库tnsping测试网络服务名是否正常 --查看备库监听 --查看备库远程归档路径 SQL> !tnsping    TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 08-OCT-2014 12:39:40   Copyright (c) 1997,  2010, Oracle.  All ...

今天做Linux下DG配置的时候,遇到一个现象,tnsname.ora文件配置都正常,tnsping也正常,监听也正常,但是仍然报ORA-12514错误:
 
SQL> set lin 130 pages 130 
SQL> select dest_id,error from v$archive_dest;
 
   DEST_ID ERROR
---------- -----------------------------------------------------------------
         1
 
         3
         4
         5
         6
         7
         8
         9
        10
 
--查看主库监听
SQL> !lsnrctl status
 
LSNRCTL for Linux: Version 10.2.0.5.0 - Production on 08-OCT-2014 12:31:46
 
Copyright (c) 1991, 2010, Oracle.  All rights reserved.
 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=prd)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.5.0 - Production
Start Date                08-OCT-2014 10:34:51
Uptime                    0 days 1 hr. 56 min. 54 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=prd)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
 has 1 instance(s).
  , status READY, has 1 handler(s) for this service...
Service "prdXDB" has 1 instance(s).
  Instance "prd", status READY, has 1 handler(s) for this service...
Service "prd_XPT" has 1 instance(s).
  Instance "prd", status READY, has 1 handler(s) for this service...
The command completed successfully
 
--tnsnames.ora文件内容
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
 
EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )
 
 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = prd)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      ()
    )
  )
 
 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = std)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      ()
    )
  )
 
--主库tnsping测试网络服务名是否正常
SQL> !tnsping 
 
TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 08-OCT-2014 12:32:35
 
Copyright (c) 1997,  2010, Oracle.  All rights reserved.
 
Used parameter files:
 
 
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = prd)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = prd)))
 
SQL> !tnsping 
 
TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 08-OCT-2014 12:32:43
 
Copyright (c) 1997,  2010, Oracle.  All rights reserved.
 
Used parameter files:
 
 
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = std)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = prd)))
 
--查看备库监听
[oracle@std ~]$ lsnrctl status
 
LSNRCTL for Linux: Version 10.2.0.5.0 - Production on 08-OCT-2014 12:29:52
 
Copyright (c) 1991, 2010, Oracle.  All rights reserved.
 
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=std)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.5.0 - Production
Start Date                08-OCT-2014 09:41:41
Uptime                    0 days 2 hr. 48 min. 11 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=std)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
 has 1 instance(s).
  , status READY, has 1 handler(s) for this service...
Service "std_XPT" has 1 instance(s).
  Instance "prd", status READY, has 1 handler(s) for this service...
The command completed successfully
 
--查看备库远程归档路径
SQL> set lin 130 pages 130 
SQL> col error for a20
SQL> select dest_id,error,status from v$archive_dest;
 
   DEST_ID ERROR                STATUS
---------- -------------------- ---------
         1                      VALID
         3                      INACTIVE
         4                      INACTIVE
         5                      INACTIVE
         6                      INACTIVE
         7                      INACTIVE
         8                      INACTIVE
         9                      INACTIVE
        10                      INACTIVE
        11                      VALID
 
--备库tnsping测试网络服务器名是否正常
SQL> !tnsping 
 
TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 08-OCT-2014 12:39:40
 
Copyright (c) 1997,  2010, Oracle.  All rights reserved.
 
Used parameter files:
 
 
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = prd)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = prd)))
 
SQL> !tnsping 
 
TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 08-OCT-2014 12:39:44
 
Copyright (c) 1997,  2010, Oracle.  All rights reserved.
 
Used parameter files:
 
 
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = std)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = prd)))
 
tnsping测试下来也都是通的,这就比较奇怪了,但是ORA-12514错误很明显是指监听方面的问题,导致服务名无法解析,由于主备库采用的是同一个实例名,因此两边的instance_name用的都是prd,乍一看好像很正常,但是解析确实出现了问题,那么怎么办呢? 

Oracle数据库监听非常慢,基本hang住故障处理

Oracle监听之动态监听与静态监听特点

Oracle 11g RAC 环境下单实例非缺省监听及端口配置

Oracle 监听器日志配置与管理

Oracle错误- ORA-12514:TNS:无监听程序

ORA-12514 监听错误解决

Oracle监听器出现的6种连接问题及其解决方法

Oracle LISTENER 未监听到Oracle实例问题解决

设置 Oracle 监听器密码(LISTENER)

更多详情见请继续阅读下一页的精彩内容:


    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • IIS8.5 配置错误提示不能在此路径中使用此配置节的解决办法
  • PHP.ini中配置屏蔽错误信息显示和保存错误日志的例子
  • linux下配置PHP 编译的时候出现错误
  • rsync服务配置错误之--->auth failed on module
  • 由于扩展配置问题而无法提供您请求的页面错误解决方法
  • 在配置了DNS并启动服务后,使用host命令察看主机,为什么会出现SERVFAIL的错误?
  • 配置PHP环境的时候autoconf-2.61,提示configure错误
  • IIS7配置ASP详细错误信息发送到浏览器显示的方法
  • 【求助】急:Fedora 9 SELinux 配置错误导致启动不了怎么办?
  • 装好mysql,apache后,再装php,配置httpd.conf时出现了如下错误!
  • ubuntu mysql配置错误导致无法启动mysql,希望达人前来帮助。
  • linux下配置subversion之后,用svn checkout 提示这样的错误是什么原因?
  • vim 编程环境配置错误
  • 配置PHP出现的libxml2错误问题
  • 如何配置TOMCAT?运行时出现下面错误
  • 安装配置dns后 启动错误 急
  • 配置netconsole出现错误 eth0 doesn't support polling, aborting
  • 请问出现如下错误,该如何修改pppd的配置?
  • xdm配置问题,输入用户名后输入密码,没有看到******,光标也没有动,但是用户名是看得到的。然后就报登陆错误。
  • 实现Nginx中使用PHP-FPM时记录PHP错误日志的配置方法
  • C++ Strings(字符串) 成员 get_allocator():返回配置器
  • LINUX如何配置网卡,配置TELNET,急!在线等待!
  • C++ MultiMaps 成员 get_allocator():返回multimap的配置器
  • liunx下配置axis2的环境变量怎么配置
  • C++ Lists(链表) 成员 get_allocator():返回list的配置器
  • centos配置JAVA运行环境在配置JK时出错
  • C++ Maps 成员 get_allocator():返回map的配置器
  • 求xmanager3.0 配置root用户,连接redhat linux 6.0 配置文档
  • C++ Double Ended Queues(双向队列) 成员 get_allocator():返回双向队列的配置器
  • 高分求救!!!怎样在linux下配置tomcat文件?同时配置sqlServer数据库?
  • 修改配置真正解决php文件上传大小限制问题(apache+php)


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,