RAC 10.2.0.5,客户端登陆间断遭遇ORA-12545

试验环境:

服务端:OEL 5.7 + Oracle 10.2.0.5
RAC

客户端:Windows 7 + Oracle 11.2.0.1
Client

1.客户端登陆间断遭遇ORA-12545,现象如下:


C:\Users\xiaoyu>sqlplus system/[email protected]192.168.1.171/jy.oracle.com

SQL*Plus: Release 11.2.0.1.0 Production on 星期二 5月 20 19:43:52 2014

Copyright (c) 1982, 2010, Oracle. All rights reserved.

ERROR:
ORA-12545: 因目标主机或对象不存在, 连接失败

请输入用户名:
C:\Users\xiaoyu>sqlplus system/[email protected]192.168.1.171/jy.oracle.com

SQL*Plus: Release 11.2.0.1.0 Production on 星期二 5月 20 19:44:03 2014

Copyright (c) 1982, 2010, Oracle. All rights reserved.

连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options

SQL> exit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options 断开

C:\Users\xiaoyu>sqlplus system/[email protected]192.168.1.171/jy.oracle.com

SQL*Plus: Release 11.2.0.1.0 Production on 星期二 5月 20 19:44:06 2014

Copyright (c) 1982, 2010, Oracle. All rights reserved.

ERROR:
ORA-12545: 因目标主机或对象不存在, 连接失败

请输入用户名:

2.检查相关配置信息:

2.1.检查网络:


ping 192.168.1.171 -t 

网络没有丢包(实验过程遇到的网络是有丢包的是路由问题,已经事先将网络问题解决,但还报错)


tnsping 192.168.1.171 1000 

也很顺畅

2.2.检查RAC节点1主机的/etc/hosts内容:


[[email protected] ~]$ more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.1.171 rac1-server
192.168.1.172 rac1-server-vip

192.168.1.173 rac2-server
192.168.1.174 rac2-server-vip

10.10.10.171 rac1-server-priv
10.10.10.173 rac2-server-priv
[[email protected]-server ~]$

2.3.检查确认RAC节点1数据库的各种名字


[[email protected] admin]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.5.0 - Production on Tue May 20 08:19:43 2014

Copyright (c) 1982, 2010, Oracle. All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options

SQL> show parameter name

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert string
db_name string jy
db_unique_name string jy
global_names boolean FALSE
instance_name string jy1
lock_name_space string
log_file_name_convert string
service_names string jy.oracle.com
SQL>

2.4.检查RAC节点1主机的监听配置文件:


[[email protected] ~]$ cd /s01/oracle/product/10.2.0/db_1/network/admin
[[email protected]-server admin]$ ls
listener.ora samples shrept.lst tnsnames.ora
[[email protected]-server admin]$ more listener.ora
# listener.ora.rac1-server Network Configuration File: /s01/oracle/product/10.2.0/db_1/network/admin/listener.ora.rac1-server
# Generated by Oracle configuration tools.

LISTENER_RAC1-SERVER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-server-vip)(PORT = 1521)(IP = FIRST))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.171)(PORT = 1521)(IP = FIRST))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
)
)

[[email protected]-server admin]$

2.5.检查RAC节点1的监听状态:


[[email protected]server admin]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.5.0 - Production on 20-MAY-2014 07:58:46

Copyright (c) 1991, 2010, Oracle. All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER_RAC1-SERVER
Version TNSLSNR for Linux: Version 10.2.0.5.0 - Production
Start Date 20-MAY-2014 07:06:32
Uptime 0 days 0 hr. 52 min. 14 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /s01/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /s01/oracle/product/10.2.0/db_1/network/log/listener_rac1-server.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.172)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.171)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status BLOCKED, has 1 handler(s) for this service...
Service "+ASM_XPT" has 1 instance(s).
Instance "+ASM1", status BLOCKED, has 1 handler(s) for this service...
Service "jy.oracle.com" has 2 instance(s).
Instance "jy1", status READY, has 2 handler(s) for this service...
Instance "jy2", status READY, has 1 handler(s) for this service...
Service "jyXDB.oracle.com" has 2 instance(s).
Instance "jy1", status READY, has 1 handler(s) for this service...
Instance "jy2", status READY, has 1 handler(s) for this service...
Service "jy_XPT.oracle.com" has 2 instance(s).
Instance "jy1", status READY, has 2 handler(s) for this service...
Instance "jy2", status READY, has 1 handler(s) for this service...
The command completed successfully
[[email protected]-server admin]$  

3.解决思路:

3.1查看ora-12545错误号


[[email protected] admin]$ oerr ora 12545
12545, 00000, "Connect failed because target host or object does not exist"
// *Cause: The address specified is not valid, or the program being
// connected to does not exist.
// *Action: Ensure the ADDRESS parameters have been entered correctly; the
// most likely incorrect parameter is the node name. Ensure that the
// executable for the server exists (perhaps "oracle" is missing.)
// If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the
// host name to a numeric IP address and try again.
[[email protected] admin]$

3.2检查Windows客户机的hosts配置

路径:C:\Windows\System32\drivers\etc\hosts

添加RAC集群环境对外的public地址和网络名的对应关系:


# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#‘ symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
#127.0.0.1 webiq-cdn.appspot.com
192.168.1.171 rac1-server
192.168.1.172 rac1-server-vip

192.168.1.173 rac2-server
192.168.1.174 rac2-server-vip

添加成功后测试客户端连接不会再遭遇ORA-12545。

4.延伸:

针对RAC环境,客户端tnsnames.ora配置参考:

路径:F:\app\xiaoyu\product\11.2.0\client_1\network\admin\tnsnames.ora


JY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-server-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-server-vip)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = jy.oracle.com)
(FAILOVER_MODE =
(TYPE = session)
(METHOD = basic)
(RETRIES = 180)
(DELAY = 5)
)
)
)

5.总结:

客户端连接RAC环境,客户端需要配置hosts文件。否则会间断遭遇ORA-12545。

RAC 10.2.0.5,客户端登陆间断遭遇ORA-12545

时间: 2024-10-23 14:55:42

RAC 10.2.0.5,客户端登陆间断遭遇ORA-12545的相关文章

Apply Bug10010310 On Oracle RAC 10.2.0.5

9月24日数据库上频繁出现如下错误 Errors in file /u04/admin/njord/udump/njord_ora_25895.trc: ORA-27300: OS system dependent operation:invalid_process_id failed with status: 0 ORA-27301: OS failure message: Error 0 ORA-27302: failure occurred at: skgpalive1 该错误将影响客户端

Oracle RAC 10.2.0.5 Install For redhat 5.8(use raw device)

因为客户数据库需要打补丁,所以安装相似测试环境.需要先安装10.2.0.1 然后再升级到10.2.0.5.因为我有很多篇关于安装的文章,所以这篇只说关键步骤,以及遇见的bug安装错误 注意:我已经在redhat 6.3测试过,不能完成安装,主要是在跑root.sh脚本的时候无法通过.换成redhat 5.8不会出现这种问题. Steps: 1.防火墙and selinux 2.kernel parameter 3.source limit 4.create user and group 5.建立

【Oracle】RAC 10.2.0.1升级10.2.0.5

环境: OS:OEL5.6 RAC:10.2.0.1.0 相关环境变量: CRS_HOME /u01/app/oracle/product/10.2.0/db_1 ORACLE_HOME   /u01/app/oracle/product/10.2.0/db_2 crs_stop -all关闭所有资源 [[email protected] ~]$ crs_stat -t Name           Type           Target    State     Host --------

rac 10g 10.2.0.1升级到10.2.0.5具体解释

    RAC 10.2.0.1 升级到 10.2.0.5 一. 准备: Patch 包:p8202632_10205_LINUX.zip   节点数:3个节点       RAC1    RAC2   RAC3 当前节点状态 节点1: [[email protected] bin]# ./crs_stat -t Name          Type           Target    State    Host ---------------------------------------

rac 10g 10.2.0.1升级到10.2.0.5详解

    RAC 10.2.0.1 升级到 10.2.0.5 一. 准备: Patch 包:p8202632_10205_LINUX.zip   节点数:3个节点       RAC1    RAC2   RAC3 当前节点状态 节点1: [[email protected] bin]# ./crs_stat -t Name          Type           Target    State    Host ---------------------------------------

Redhat 5.4 Orcle RAC 数据库 从10.2.0.1升级到 10.2.0.4

之前安装的是两个节点的RAC 平台. 数据库版本是10.2.0.1. 这个实验的目的就是将这个数据库版本从10.2.0.1 升级到 10.2.0.4.  升级包可以从Oracle metalink上进行下载,这个下载需要Oracle 付费的帐号. 网络可能也有资源下载. 10.2.0.4的patch number 是:p6810189. 两个节点的RAC 安装,参考Blog: Redhat 5.4 + ASM + RAW+ Oracle 10g RAC 安装文档 http://blog.csdn

RAC分解步骤之一,在oracle linux 4u4上安装oracle 10.2.0.1.0操作日志

练习oracle的rac组建过程,第一步,先练习4u4上安装oracle 10.2.0.1.0.直接安装rac,有些难度.从简单的做起.总RAC步骤,参照小布老师的RAC组建. 1. 启动vc,登陆vsphere 5.1 , 2. 新建一个虚拟机,Redhat 4 32bit 兼容的虚拟机,内存1G,硬盘30G.移除软驱,把光驱选择为ISO镜像文件. 3. 启动虚拟机,选择英文,选择美式键盘,选择custom,选择自己手动分区.分区为2个,一个swap,2100M,强制主分区,另一个为ext3,

Oracle 10g 10.2.0.1 在Oracle Linux 5.4 32Bit RAC安装手冊(一抹曦阳)

Oracle 10g 10.2.0.1 在Oracle Linux 5.4 32Bit RAC安装手冊(一抹曦阳).pdf下载地址 ,step by step http://download.csdn.net/detail/rlhua/7699223

hpux mcsg 方式的oracle 10.2.0.4 rac 做存储的镜像

最近遇到一个案例: 现状:hp-ux 操作系统,oracle 10.2.0.4 的rac, mcsg 方式的,2个ocr和3个voting disk 各自对应同一个并发卷组中的一个lv 目的:对共享存储做镜像,所采用的技术是HP自带的HP MirrorDisk/UX,这个组件貌似需要单独安装. 搜索hpux 的官方文档,有如下的记录: 使用 LVM 最多可同时存储和更新同一数据的六个副本.此功能称为对逻辑卷进行镜像,需要安装可选产品 HP MirrorDisk/UX.请参阅"通过镜像提高数据可用