[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. Oracle错误——ORA-03113:在通信信道文件的末尾 解决方案

    起源 今天跟往常一样,登陆PL/SQL,确登陆失败,出现一个错误"ORA-01034"和"ORA-27101"如图: 然后就就通过命令提示符去登陆Oracle, ...

  2. WebView使用配置文件

    录制webview示例使用,以免以后忘记. 布局文件: <WebView android:layout_width="fill_parent" android:layout_ ...

  3. 基于j2ee的程序代写MVC架构

    人力资源管理系统 完成系统静态页面设计,页面数量不少于10个,页面需用CSS进行美化,并为需要验证的信息利用JavaScript提供客户端验证.要求至少包含部门信息及部门内员工信息的添加.修改.删除和 ...

  4. 重新想象 Windows 8 Store Apps (10) - 控件之 ScrollViewer 特性: Chaining, Rail, Inertia, Snap, Zoom

    原文:重新想象 Windows 8 Store Apps (10) - 控件之 ScrollViewer 特性: Chaining, Rail, Inertia, Snap, Zoom [源码下载] ...

  5. Cocos-2dx-Lua中使用Luaj的完整示例(转)

    如何使用Luaj进行java与Lua之间的交互调用 一.主要分为两个大步骤,Lua工程的修改,android工程的修改 二.工程环境 开发工具:Cocos-Code-IDE Lua版本 : Lua 5 ...

  6. Type mismatch: cannot convert from Enumeration&lt;String&gt; to Enumeration&lt;Object&gt;

    完整的错误信息: Description Resource Path Location TypeType mismatch: cannot convert from Enumeration<St ...

  7. Python re正则表达式

    参考: 博客园<Python正則表達式指南> 博客园<Python之re模块> 在此感谢博主的无私奉献,本文主要介绍python中re模块的几个简单使用方法.具体的使用方法请參 ...

  8. MySQL 最经常使用的一千行

    /* 启动MySQL */ net start mysql /* 连接和断开server */ mysql -h 住址 -P port -u username -p password /* 跳过许可认 ...

  9. Lua 服务器与客户端实例(转)

    =============================================================== 服务器,main.lua ======================= ...

  10. zoj3829 Known Notation --- 2014 ACM-ICPC Asia Mudanjiang Regional Contest

    根据规则,可以发现,一*之前必须有至少2数字.一(11*)这反过来可以被视为一数字. 因此,总位数必须大于*号码,或者你会加入数字. 添加数字后,,为了确保该解决方案将能够获得通过交流.那么肯定是*放 ...