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 ...
随机推荐
- 黄聪:Microsoft Enterprise Library 5.0 系列教程(八) Unity Dependency Injection and Interception
原文:黄聪:Microsoft Enterprise Library 5.0 系列教程(八) Unity Dependency Injection and Interception 依赖注入容器Uni ...
- 新浪微博。。openapi 分享 图画+ 写作
新浪微博困难啊 .. . .. .郁闷死了. .在此记录它 1.使用界面:https://api.weibo.com/2/statuses/upload_url_text.json 能够申请,.高级权 ...
- git pull VS git fetch&merge(good)
从图中可以看到,git fetch和git pull的区别, git fetch 不会自动的将结果merge到本地,只是将远程版本同步到本地版本库,而不会merge到本地副本. git pull 将 ...
- Java调用Lua(转)
Java 调用 Lua app发版成本高,覆盖速度慢,覆盖率页低.一些策略上的东西如果能够从服务端控制会方便一些.所以考虑使用Lua这种嵌入式语言作为策略实现,Java则是宿主语言. 总体上看是一个模 ...
- cidaemon.exe过程cpu入住率和关闭cidaemon.exe加工方法
问题叙述性说明: 这个时间机器始终是一个奇怪的问题:cidaemon.exe这个过程需要CUP率98%以上,大大影响了正常使用电脑.多个资源管理器出现cidaemon.exe过程,cpu率最高的一 ...
- Quartz2D裁剪圆形头像
// 0. 载入原有图片 UIImage *image = [UIImage imageNamed:icon]; // 1.创建图片上下文 CGFloat margin = border; CGSiz ...
- hdu 4876 ZCC loves cards(暴力)
题目链接:hdu 4876 ZCC loves cards 题目大意:给出n,k,l,表示有n张牌,每张牌有值.选取当中k张排列成圈,然后在该圈上进行游戏,每次选取m(1≤m≤k)张连续的牌,取牌上值 ...
- 在Linux下,在网络没有配置好前,怎样查看网卡的MAC地址?
在Linux下,在网络没有配置好前,怎样查看网卡的MAC地址? 使用 dmesg 与 grep 命令来实际,例如以下: [root@localhost ~]# dmesg | grep eth e10 ...
- iOS pragma mark要使用
郝萌主倾心贡献,尊重作者的劳动成果.请勿转载. 假设文章对您有所帮助.欢迎给作者捐赠.支持郝萌主,捐赠数额任意.重在心意^_^ 我要捐赠: 点击捐赠 Cocos2d-X源代码下载:点我传送 简单的来说 ...
- UiAutomator喷射事件的源代码分析
上一篇文章<UiAutomator源代码分析之UiAutomatorBridge框架>中我们把UiAutomatorBridge以及它相关的类进行的描写叙述,往下我们会尝试依据两个实例将这 ...