ORA-12545: Connect failed because target host or object does not exist
[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的更多相关文章
- ORA-12545:Connect failed beacuse target host or object does not exist
更换计算机名,重新启动系统后 oracle 的监听器就无法正常启动, 总是提示ORA-12545:Connect failed beacuse target host or object does n ...
- 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 ...
- connect() failed (111: Connection refused) while connecting to upstream
配置好lamp后,在浏览器中运行程序后,出现上面的错误. 转自:http://www.xuejiehome.com/blread-1828.html I'm experiencing 502 gate ...
- 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 ...
- JedisConnectionException: Failed connecting to host localhost:6379
报错原因:没有启动服务,打开服务即可 redis.clients.jedis.exceptions.JedisConnectionException: Exception at redis.clien ...
- nginx 解决 connect() failed (111: Connection refused) while connecting to upstream,
嗯哼,刚装了个ubuntu的lnmp,我的天啊,踩的坑比我脂肪还多了 比如刚装完的时候访问显示502, 也不知道什么问题,就去看了一下nginx日志 /var/log/nginx/error.log ...
- [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 ...
- org.apache.http.ProtocolException: Target host is not specified
对于httpClient4.3访问指定页面,可以从下面的demo抽取方法使用. 注意:对于URL必须使用 http://开始,否则会有如下报错信息: Caused by: org.apache.htt ...
- Target host is not specified错误
对于httpClient4.3访问指定页面,可以从下面的demo抽取方法使用. 注意:对于URL必须使用 http://开始,否则会有如下报错信息: 或者在设置cookie时带上domain: coo ...
随机推荐
- springMVC整合JAXB
一.背景 由于项目中要用到将Java对象转为xml返回给调用者.选择使用JAXB,由于它是JDK自带的.不须要引入其它Jar包 它提供了高速而简便的方法将xml和对象互转的方法. 二.重要Class和 ...
- 【HTML5游戏开发小技巧】RPG情形对话中,令文本逐琢夸出
从前用JAVAscript完成过令文本逐琢夸出的效果,明天嗡炒用html5中的canvas完成一下.canvas里的内容可没有像<p>那样好操做,起首,您需求懂得一些html5的API才气 ...
- Vector Clock理解
背景近期在重读"Dynamo: Amazon's Highly Available Key-value Store"(经典好文,推荐!).文章4.4 中聊到了Data Versio ...
- MySQL 存储过程和函数(转)
概述 一提到存储过程可能就会引出另一个话题就是存储过程的优缺点,这里也不做讨论,一般别人问我我就这样回答你觉得它好你就用它.因为mysql中存储过程和函数的语法非常接近所以就放在一起,主要区别就是函数 ...
- Java Web整合开发(附录2) -- NetBeans的(默认)快捷键
1.完成代码:ctrl+\ //任何地方按下此组合键,均会提示相应的参考字段: 2.错误提示:alt + enter //顾名思义,当系统报错时,按下此组合可以查看系统提示: 3.自动完成字符串: c ...
- [转载]使用python上传图片到 yeelink
#/bin/env python # -*-coding:utf=8 -*- import os,time,subprocess,shlex import urllib2 def upload_yee ...
- 重新想象 Windows 8 Store Apps (21) - 动画: ThemeTransition(过渡效果)
原文:重新想象 Windows 8 Store Apps (21) - 动画: ThemeTransition(过渡效果) [源码下载] 重新想象 Windows 8 Store Apps (21) ...
- 使用邮件发送执行时间久的SQL语句
ALTER proc [dbo].[usp_EmailLongRunningSQL] as begin declare@LongRunningQueries AS TABLE ( lrqId int ...
- 使用 WPF 创建单实例应用程序
一个简单的例子就是大家在使用很多应用程序,例如在使用Microsoft Word 时会遇到一种情况,不管你打开多少个文档,系统一次只能加载一个winword.exe 实例.当打开新文档时,文档在新窗口 ...
- hdu 5101 Select(Bestcoder Round #17)
Select Time Limit: 4000/2000 MS (Java/Others) ...