[oracle@ybdbtest oradata]$ sqlplus /nolog





SQL*Plus: Release 9.2.0.4.0 - Production on Thu Jun 26 10:16:29 2014





Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

SQL> conn / as sysdba

ERROR:

ORA-12545: Connect failed because target host or object does not exist

记得昨天都连上去了,怎么回事。查看oracle进程。进程存在。说明数据库是执行的。

[oracle@ybdbtest ~]$ ps -ef | grep ora_

oracle    5013  4499  0 11:33 pts/1    00:00:00 grep ora_

oracle   11806     1  0  2013 ?

00:00:00 ora_q001_szyb

oracle   12212     1  0  2013 ?        00:08:51 ora_pmon_szyb

oracle   12214     1  0  2013 ?

00:00:02 ora_psp0_szyb

oracle   12216     1  0  2013 ?

00:00:00 ora_mman_szyb

oracle   12218     1  0  2013 ?

00:03:25 ora_dbw0_szyb

oracle   12220     1  0  2013 ?        00:03:35 ora_dbw1_szyb

oracle   12222     1  0  2013 ?        00:03:36 ora_dbw2_szyb

oracle   12224     1  0  2013 ?

00:05:56 ora_lgwr_szyb

oracle   12226     1  0  2013 ?

02:13:23 ora_ckpt_szyb

oracle   12228     1  0  2013 ?

00:19:35 ora_smon_szyb

oracle   12230     1  0  2013 ?        00:00:00 ora_reco_szyb

oracle   12232     1  0  2013 ?        00:06:43 ora_cjq0_szyb

oracle   12234     1  0  2013 ?

00:40:47 ora_mmon_szyb

oracle   12236     1  0  2013 ?        01:23:21 ora_mmnl_szyb

oracle   12238     1  0  2013 ?        00:00:00 ora_d000_szyb

oracle   12240     1  0  2013 ?

00:00:00 ora_s000_szyb

oracle   12280     1  0  2013 ?

00:00:00 ora_qmnc_szyb

oracle   12300     1  0  2013 ?

00:00:00 ora_q000_szyb

通过SQL*Plus: Release 9.2.0.4.0 - Production on Thu Jun 26 10:16:29 2014。能够看出数据库版本号是9i,记忆中昨天的版本号是10g,

检查发现,9i与10g的版本号都有安装,检查.bash_profile文件。发现$ORACLE_HOME指向的是9i,改动$ORACLE_HOME,使其指向

10g(主要是bin文件夹下的可运行程序),再次连接,成功:

[oracle@ybdbtest ~]$ sqlplus / as sysdba





SQL*Plus: Release 10.2.0.5.0 - Production on Thu Jun 26 11:01:17 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, OLAP, Data Mining and Real Application Testing options

当安装了多个版本号oracle,确实要注意。

版权声明:本文博主原创文章,博客,未经同意不得转载。

ORA-12545: Connect failed because target host or object does not exist的更多相关文章

  1. ORA-12545:Connect failed beacuse target host or object does not exist

    更换计算机名,重新启动系统后 oracle 的监听器就无法正常启动, 总是提示ORA-12545:Connect failed beacuse target host or object does n ...

  2. TNS-12545: Connect failed because target host or object does not exist

    问题描述 $ lsnrctl startLSNRCTL for Linux: Version 12.1.0.2.0 - Production on 26-JUL-2017 09:53:42Copyri ...

  3. connect() failed (111: Connection refused) while connecting to upstream

    配置好lamp后,在浏览器中运行程序后,出现上面的错误. 转自:http://www.xuejiehome.com/blread-1828.html I'm experiencing 502 gate ...

  4. MSBuild could not create or connect to a task host with runtime "CLR2" and architecture "x86".

    vs2010 and vs2012 are installed on target machine. Build c# project using vs2010, following error oc ...

  5. JedisConnectionException: Failed connecting to host localhost:6379

    报错原因:没有启动服务,打开服务即可 redis.clients.jedis.exceptions.JedisConnectionException: Exception at redis.clien ...

  6. nginx 解决 connect() failed (111: Connection refused) while connecting to upstream,

    嗯哼,刚装了个ubuntu的lnmp,我的天啊,踩的坑比我脂肪还多了 比如刚装完的时候访问显示502, 也不知道什么问题,就去看了一下nginx日志  /var/log/nginx/error.log ...

  7. [nginx] connect() failed (111: Connection refused) while connecting to upstream, client: 101.18.123.107, server: localhost,

    nginx一直报错, 2016/12/02 10:23:19 [error] 1472#0: *31 connect() failed (111: Connection refused)while c ...

  8. org.apache.http.ProtocolException: Target host is not specified

    对于httpClient4.3访问指定页面,可以从下面的demo抽取方法使用. 注意:对于URL必须使用 http://开始,否则会有如下报错信息: Caused by: org.apache.htt ...

  9. Target host is not specified错误

    对于httpClient4.3访问指定页面,可以从下面的demo抽取方法使用. 注意:对于URL必须使用 http://开始,否则会有如下报错信息: 或者在设置cookie时带上domain: coo ...

随机推荐

  1. HTTP代理与SPDY协议(转)

    原文出处: fqrouter HTTP代理是最经典最常见的代理协议.其用途非常广泛,普遍见于公司内网环境,一般员工都需要给浏览器配置一个HTTP代理才能访问互联网.起初,HTTP代理也用来翻越“功夫网 ...

  2. 利用sendmsg和recvmsg来指定发送接口或者获取接收数据接口

    前言     sendmsg和recvmsg函数是一对相对下层的套接字发送.接受函数. 通过这对函数,我们能够设置或者取得数据包的一些额外的控制信息.这些信息中比較经常使用的就是本文要介绍的发送.接受 ...

  3. 第一章_servlet

    [Servlet与Jsp学习指南] *学习这servlet前.需要下载servlet-api.jar,MyEclipse给自己带来的需求javaEE3.0的天赋足以使用注解获得的版本号servlet ...

  4. Qt国际化相关类

    QTextCodec QTextCodec为文本编码之间提供转换. Qt用Unicode 来存储,绘制和操作字符串.在很多情况下你可能希望操作不同编码的数据.例如,大部分日本文档是以Shift-JIS ...

  5. 从零開始学android<RelativeLayout相对布局.十六.>

    相对布局管理器指的是參考某一其它控件进行摆放,能够通过控制,将组件摆放在一个指定參考组件的上.下.左.右等位置,这些能够直接通过各个组件提供的属性完毕. 以下介绍一下各个方法的基本使用 No. 属性名 ...

  6. Eclipse SVN 安装注意事项

    1. 下载SVN 插件 打开 Eclipse , 菜单条 Help ->  Install New Software  在 Work with 这里加入网址 : http://subclipse ...

  7. 变化App.config其中值,并保存

    using System; using System.Collections.Generic; using System.Configuration; using System.IO; using S ...

  8. 如何设置一个activity透明

    1.在AndroidManifest.xml文件中设置: android:theme="@android:style/Theme.Translucent 此代码固定为全背景透明. 2.在Ac ...

  9. acdream 1211 Reactor Cooling 【边界网络流量 + 输出流量】

    称号:acdream 1211 Reactor Cooling 分类:无汇的有上下界网络流. 题意: 给n个点.及m根pipe,每根pipe用来流躺液体的.单向的.每时每刻每根pipe流进来的物质要等 ...

  10. IOS_多线程_ASI_AFN_UIWebView

    H:/0730/00_多线程4票种_ViewController.h // // ViewController.h // 卖票 // // Created by apple on 13-7-29. / ...