[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. poj 3399 Product(数学)

    主题链接:http://poj.org/problem?id=3399 Product Time Limit: 1000MS   Memory Limit: 65536K Total Submissi ...

  2. Firefox双击关闭标签

  3. Ios 该图显示其出现的相关问题定义UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'

    解决这个问题 在 加上个 标示符 Cell 自己定义 customCell .h 代码例如以下 ViewController.m 文件里 代码例如以下 执行结果 吕 图坚持直接在这里 不行

  4. Silverlight之 xaml布局

    目标:在两周内完成一个界面的功能 第1阶段:完成xaml的布局 准备:视频4-14节 第2阶段: 完成环状图 柱状图 TreeView样式 准备: 矢量绘图  telerik 自定义控件  自定义控件 ...

  5. Windows Phone 8 - Runtime Location API - 1

    原文:Windows Phone 8 - Runtime Location API - 1 在Windows Phone里要做Background Service的方式,除了Background Ag ...

  6. 我不知道你是在一个多线程out该--【ITOO】

    仍向系统负载作出太慢.卡而发愁太?我不知道多线程,你们out该.最近花了大约两三天.多-threaded.通过团队的交流,多线程有更深入的思考.希望可以加入ITOO目里面,优化一下系统性能. 概念 线 ...

  7. 解决adb server is out of date. killing...问题

    在运行 adb 命令时出现了例如以下提示: adb server is out of date.  killing... 导致 adb 无法正常启动,更无法运行其它命令. 有问题怎么办?百度呗.查了查 ...

  8. 乐在其中设计模式(C#) - 访问者模式(Visitor Pattern)

    原文:乐在其中设计模式(C#) - 访问者模式(Visitor Pattern) [索引页][源码下载] 乐在其中设计模式(C#) - 访问者模式(Visitor Pattern) 作者:webabc ...

  9. Oracle性能优化顺序表名称来选择最有效的学习笔记

    选择最有效的顺序表名(只有有效的基于规则的优化)  ORACLE分析器按照订单处理从右到左FROM在FROM子句中的表名,故FROM写在最后的表(基础表 driving table)将被最先处理. 在 ...

  10. 华为上机题汇总----java

        以下华为上机题目都是网上整理得到的,代码都是自己调试过的,由于网上java答案较少,欢迎大家批评指正,也希望对准备华为上机的童鞋们有一点点帮助.在练习的过程中成长,加油!~~  第1题:输入字 ...