实验环境:
服务端: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/oracle@192.168.1.171/jy.oracle.com

SQL*Plus: Release 11.2.0.1. Production on 星期二 5月  :: 

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

ERROR:
ORA-: 因目标主机或对象不存在, 连接失败 请输入用户名:
C:\Users\xiaoyu>sqlplus system/oracle@192.168.1.171/jy.oracle.com SQL*Plus: Release 11.2.0.1. Production on 星期二 5月 :: Copyright (c) , , Oracle. All rights reserved. 连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.5. - 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. - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options 断开 C:\Users\xiaoyu>sqlplus system/oracle@192.168.1.171/jy.oracle.com SQL*Plus: Release 11.2.0.1. Production on 星期二 5月 :: Copyright (c) , , Oracle. All rights reserved. ERROR:
ORA-: 因目标主机或对象不存在, 连接失败 请输入用户名:
 
2.检查相关配置信息:
2.1.检查网络:
ping 192.168.1.171 -t 
网络没有丢包(实验过程遇到的网络是有丢包的是路由问题,已经事先将网络问题解决,但还报错)
tnsping 192.168.1.171  
也很顺畅
 
2.2.检查RAC节点1主机的/etc/hosts内容:
[oracle@rac1-server ~]$ 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
:: 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
[oracle@rac1-server ~]$
 
2.3.检查确认RAC节点1数据库的各种名字
[oracle@rac1-server admin]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.5. - Production on Tue May  :: 

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

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5. - 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主机的监听配置文件:
[oracle@rac1-server ~]$ cd /s01/oracle/product/10.2./db_1/network/admin
[oracle@rac1-server admin]$ ls
listener.ora samples shrept.lst tnsnames.ora
[oracle@rac1-server admin]$ more listener.ora
# listener.ora.rac1-server Network Configuration File: /s01/oracle/product/10.2./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 = )(IP = FIRST))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.171)(PORT = )(IP = FIRST))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
)
) [oracle@rac1-server admin]$
 
2.5.检查RAC节点1的监听状态:
[oracle@rac1-server admin]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.5. - Production on -MAY- ::

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=))
STATUS of the LISTENER
------------------------
Alias LISTENER_RAC1-SERVER
Version TNSLSNR for Linux: Version 10.2.0.5. - Production
Start Date -MAY- ::
Uptime days hr. min. sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /s01/oracle/product/10.2./db_1/network/admin/listener.ora
Listener Log File /s01/oracle/product/10.2./db_1/network/log/listener_rac1-server.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.172)(PORT=)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.171)(PORT=)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Services Summary...
Service "+ASM" has instance(s).
Instance "+ASM1", status BLOCKED, has handler(s) for this service...
Service "+ASM_XPT" has instance(s).
Instance "+ASM1", status BLOCKED, has handler(s) for this service...
Service "jy.oracle.com" has instance(s).
Instance "jy1", status READY, has handler(s) for this service...
Instance "jy2", status READY, has handler(s) for this service...
Service "jyXDB.oracle.com" has instance(s).
Instance "jy1", status READY, has handler(s) for this service...
Instance "jy2", status READY, has handler(s) for this service...
Service "jy_XPT.oracle.com" has instance(s).
Instance "jy1", status READY, has handler(s) for this service...
Instance "jy2", status READY, has handler(s) for this service...
The command completed successfully
[oracle@rac1-server admin]$  
 
3.解决思路:
3.1查看ora-12545错误号
[oracle@rac1-server admin]$ oerr ora
, , "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.
[oracle@rac1-server admin]$
 
3.2检查Windows客户机的hosts配置
添加RAC集群环境对外的public地址和网络名的对应关系:
# Copyright (c) - 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
# :: 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 = 192.168.1.172)(PORT = ))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.174)(PORT = ))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = jy.oracle.com)
(FAILOVER_MODE =
(TYPE = session)
(METHOD = basic)
(RETRIES = )
(DELAY = )
)
)
)
 
5.总结:
客户端连接RAC环境,客户端建议配置hosts文件。否则可能遭遇ORA-12545。

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

  1. 【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 ...

  2. 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 ...

  3. oracle10G rac 10.2.0.1升级10.2.0.4

    前言 ocr版本查询指令:  ocrcheck vote盘路径查询指令: crsctl query css votedisk 相关指令参考来源:http://hzhg12345.blog.163.co ...

  4. 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  ...

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

    练习oracle的rac组建过程,第一步,先练习4u4上安装oracle 10.2.0.1.0.直接安装rac,有些难度.从简单的做起.总RAC步骤,参照小布老师的RAC组建. 1. 启动vc,登陆v ...

  6. Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part3:db安装和升级

    Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part3:db安装和升级 环境:OEL 5.7 + Oracle 10.2.0.5 RAC 5.安装Database软件 5. ...

  7. Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part1:准备工作

    Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part1:准备工作 环境:OEL 5.7 + Oracle 10.2.0.5 RAC 1.实施前准备工作 1.1 服务器安装操 ...

  8. Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part2:clusterware安装和升级

    Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part2:clusterware安装和升级 环境:OEL 5.7 + Oracle 10.2.0.5 RAC 3.安装Clus ...

  9. Oracle 10.2.0.1 精简客户端配置

    装完Ooracle 11g之后客户端sqlplus复制粘贴的时候不太简单,就 用了实验室的老版本10g客户端. 前提服务端装好了,想换一个客户端.11g sql plus也能用. 文件链接: 链接:h ...

随机推荐

  1. Android控件之Notification

    Android通知就是让设备在屏幕最顶上那栏里面显示图标,当滑下通知栏之后可以看到列表状的通知选项,有些是"通知"类型的,有些是"正在运行"类型的," ...

  2. ViewPager自动轮播

    Android使用ViewPager实现左右循环滑动及轮播效果   ViewPager是一个常用的android组件,不过通常我们使用ViewPager的时候不能实现左右无限循环滑动,在滑到边界的时候 ...

  3. c/c++头文件_string

    string, cstring, string.h 一.string头文件 主要包含一些字符串转换的函数 // sto* NARROW CONVERSIONS// sto* WIDE CONVERSI ...

  4. H5+Mui文件配置 vue-resource基本使用方法

    使用HBuilder空项目搭建h5原生开发框架需要的文件配置: *css:mui.min.css *fonts:mui.ttf mui-icon-extra.ttf *js:mui.js mui.mi ...

  5. PHP基础知识之遍历

    遍历对象的时候,默认遍历对象的所有属性 class MyClass{    public $var1 = 'value 1';    public $var2 = 'value 2';    publ ...

  6. Eclipse更新SDK速度慢,解决办法

    在SDK Manager -> tools -> options中: HTTP Proxy Server: mirrors.neusoft.edu.cn HTTP Proxy Port: ...

  7. 利用结果集元数据将查询结果封装为map

    package it.cast.jdbc; import java.sql.Connection; import java.sql.ParameterMetaData; import java.sql ...

  8. MySQL 数据库主从复制架构

    前文<MySQL 数据库事务与复制>分析了 MySQL 复制过程中如何保证 binlog 和事务数据之间的一致性,本文进一步分析引入从库后需要保证主从的数据一致性需要考虑哪些方面. 原生复 ...

  9. Nova PhoneGap框架 第五章 文件结构

    一个好的项目架构必然有着合理的文件结构,如果一个项目的文件组织混乱,那么可以断言一定是项目架构有问题. 合理的文件结构能够帮你更清晰的管理你的文件,并且当需要添加新的文件的时候,你的程序员很清楚应该加 ...

  10. 日志系统实战(二)-AOP动态获取运行时数据

    介绍 这篇距上一篇已经拖3个月之久了,批评自己下. 通过上篇介绍了解如何利用mono反射代码,可以拿出编译好的静态数据.例如方法参数信息之类的. 但实际情况是往往需要的是运行时的数据,就是用户输入等外 ...