[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. 初探Java8中的HashMap(转)

    HashMap是我们最常用的集合之一,同时Java8也提升了HashMap的性能.本着学习的原则,在这探讨一下HashMap. 原理 简单讲解下HashMap的原理:HashMap基于Hash算法,我 ...

  2. ACM:回溯,八皇后问题,素数环

    (一)八皇后问题 (1)回溯 #include <iostream> #include <string> #define MAXN 100 using namespace st ...

  3. Enhancing the Application: Advanced JDBC Features(转)

    Enhancing the Application: Advanced JDBC Features This chapter describes additional functionality th ...

  4. Spring MVC helloWorld中遇到的问题及解决办法

    1.java.io.FileNotFoundException: Could not open ServletContext resource不能加载ServletContext的用法是配置到web. ...

  5. Spring常见问题解决办法汇总

    解决The prefix 'context' for element 'context:component-scan' is not bound<beans xmlns="http:/ ...

  6. 查看文章strncpy()功能更好的文章

    strncpy()功能 原型:extern char *strncpy(char *dest, char *src, int n);    使用方法:#include <string.h> ...

  7. MessageBox()功能

    MessageBox()功能.这是一个非常频繁使用的Win32 API,在屏幕上显示一个窗体,提出问题,并等待用户输入.它的原型是 int MessageBox(HWND hwnd,LPCTSTR l ...

  8. centos安装和卸载软件

    ==如何卸载: 1.打开一个SHELL终端 2.因为Linux下的软件名都包括版本号,所以卸载前最好先确定这个软件的完整名称. 查找RPM包软件:rpm -qa ×××* 注意:×××指软件名称开头的 ...

  9. 使用邮件发送执行时间久的SQL语句

    ALTER proc [dbo].[usp_EmailLongRunningSQL] as begin declare@LongRunningQueries AS TABLE ( lrqId int ...

  10. POJ--2923--Relocation--如压力DP

    Relocation Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 2288   Accepted: 950 Descrip ...