sqlplus出现协议适配器错误11g怎么办

温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
Test 11g client by running sqlplusOpen a new CMD window by going to Start-&RunIn the Run Window type in: cmd and press “Ok”:in the CMD window prompt type in:sqlplus user/pass@TNS_ALIASwhere:user: is the database username given to you by the DBApass: is the database password given to you by the DBATNS_ALIAS: The alias you setup in the tnsnames.ora fileexample:
C:\&sqlplus xxx/xxxxxxxx@XRACQ_MYSERVICE_TAF
SQL*Plus: Release 11.1.0.7.0 - Production on Wed Aug 26 16:24:23 2009
Copyright (c) , Oracle.
All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL&If you get the ORA-12705 error while running sqlplus test:C:\&sqlplus xxxxxx/xxxxxxxx@xxxxxxxxxxx
SQL*Plus: Release 11.1.0.7.0 - Production on Wed Aug 26 16:58:33 2009
Copyright (c) , Oracle.
All rights reserved.
ORA-12705: Cannot access NLS data files or invalid environment specified
Enter user-name:Here’s the solution:To fix the “ORA-12705: Cannot access NLS data files or invalid environment specified” error, go to your registry editor (run regedit from Start-&Run) and then:- Navigate to Windows Registry in \HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE- Remove the NLS_LANG from there (select it and delete)Re-run the sqlplus test to make sure it works (you will need to open a new CMD window for the registry changes to take place).End.No related posts.
阅读(4312)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
在LOFTER的更多文章
loftPermalink:'',
id:'fks_',
blogTitle:'解决windows下 Oracle sqlplus登录时错误 ORA-12560: TNS:协议适配器错误',
blogAbstract:'Installing Oracle instantclient basic and instantclient sqlplus on win32Sometimes basic things like installing the latest Oracle instantclient on the PCs of all of your developers can take considerable time. I typically setup a dedicated DBA Portal website wherever I work and then write up instructions for repetitive things like these. It’s all about —&do it once and forget it. Here’s the copy of the writeup I did to install the latest',
blogTag:'',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:0,
publishTime:5,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
hmcon:'1',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}> oracle服务器和客户端装一台机器,sqlplus报协议适配器错误如题,sqlplus用scot
oracle服务器和客户端装一台机器,sqlplus报协议适配器错误如题,sqlplus用scot
kejia9988 & &
发布时间: & &
浏览:10 & &
回复:1 & &
悬赏:0.0希赛币
oracle 服务器和客户端装一台机器,sqlplus报协议适配器错误如题,sqlplus用scott用户登录时报错。
我的机器是win7&64位。
oracle&11g。
现只有一台机子,我知道oracle大部分情况是只需装服务器就可以用了。
但是现在想用plsql,而plsql貌似必须用32位的oracle客户端来连接服务端。
所以发生了现在情况,
先装oracle服务端,使用服务端的sqlplus可以正常登录
同一台机器上再装了oracle客户端后,使用客户端的sqlplus(此时有两个sqlplus,一个是服务器的,一个是客户端的)没法用户登录。
更别提plsql了。
错误如下:
请输入用户名:&&scott
ORA-12560:&TNS:&协议适配器错误
网上找过一些协议适配器错误的结局方法,如重启服务,修改注册表都没用。
把几个配置文件也贴上来吧。
tnsnames.ora
&&(DESCRIPTION&=
&&&&(ADDRESS&=&(PROTOCOL&=&TCP)(HOST&=&localhost)(PORT&=&1521))
&&&&(CONNECT_DATA&=
&&&&&&(SERVER&=&DEDICATED)
&&&&&&(SERVICE_NAME&=&orcl)
listener.ora
LISTENER&=
&&(DESCRIPTION_LIST&=
&&&&(DESCRIPTION&=
&&&&&&(ADDRESS&=&(PROTOCOL&=&IPC)(KEY&=&EXTPROC1521))
&&&&(DESCRIPTION&=
&&&&&&(ADDRESS&=&(PROTOCOL&=&TCP)(HOST&=&localhost)(PORT&=&1521))
tnsnames.ora
&&(DESCRIPTION&=
&&&&(ADDRESS_LIST&=
&&&&&&(ADDRESS&=&(PROTOCOL&=&TCP)(HOST&=&localhost)(PORT&=&1521))
&&&&(CONNECT_DATA&=
&&&&&&(SERVER&=&DEDICATED)
&&&&&&(SERVICE_NAME&=&orcl)
帮帮忙,如果需要其他的诊断信息,会后续提供。
郁闷了,不知道是我哪个方面理解有误区还是怎样,请指点。
因为你装了多个版本的原因。环境变量要指定正确的
你可以在网上搜索&&32位&pl/sql&连接64位&oracle&
我给你贴下我以前找的。
我是用32位的oracle10g的客户端,安装完以后一直出现tns错误.这搞那搞方法试了一大堆...
直到最后找到原因,原来64位装32位软件默认装在Program&Files&(x86)里,
oracle无法解析Program&Files&(x86)里的圆括号.....把他换一个文件夹安装就正常了,我靠就是这么简单
还有有安装64位的oralce数据库,用pl/sql登陆会出现oci.dll的错误,
解决办法也是装32位的客户端,然后在PLSQL&Developer选择Tools&$>$Preferences&$>$options&$>$"Oracle&Home"&and&"OCI&Library",例如:
Oracle10g装在D:\oracle\
则:Oracle&Home为OraClient10g_home2
&&&&&&&OCI&Library为F:\Oracle\product\10.1.0\Client_1\bin\oci.dll
----------------------------------------------
PL/SQL&Developer在64位windows上的使用&10:29
PL/SQL&Developer版本:7.0.0.1050
OS:windows&2003&SP2&64位
Oracle&DB:10.2.0.4&64位
Oracle&client&10.2.0.1&32位
在64位的windows上安装的64位的Oracle无法用PL/SQL&Developer访问,登录时找不到数据库实例,解决办法如下:
1.安装64位oracle&DB。
2.安装32位Oracle&Client。
3.安装PL/SQL&Developer。
4.PL/SQL&Developer中设置OracleHome:OraClient109_home1
OCI&library:OraClient109_home1\bin\oci.dll
64位win7下PL/SQL&Developer&报"ORA-12154:&TNS:无法解析指定的连接标识符"问题的一个解决办法&
&&&&接着上次的话题,在64位win7上装了32位oracle10g&以后又出现了新的问题:kejixueyuan & &
00:05:53 & &
& & (0)(0)
本问题标题:
本问题地址:
温馨提示:本问题已经关闭,不能解答。
暂无合适的专家
&&&&&&&&&&&&&&&
希赛网 版权所有 & &&2017年1月 总版技术专家分月排行榜第二
2016年12月 总版技术专家分月排行榜第三
2015年1月 Oracle大版内专家分月排行榜第一2014年12月 Oracle大版内专家分月排行榜第一2014年11月 Oracle大版内专家分月排行榜第一2014年10月 Oracle大版内专家分月排行榜第一2014年9月 Oracle大版内专家分月排行榜第一2014年8月 Oracle大版内专家分月排行榜第一
2015年5月 Oracle大版内专家分月排行榜第二2015年3月 Oracle大版内专家分月排行榜第二2015年2月 Oracle大版内专家分月排行榜第二
2016年1月 Oracle大版内专家分月排行榜第一2015年6月 Oracle大版内专家分月排行榜第一2015年4月 Oracle大版内专家分月排行榜第一2015年3月 Oracle大版内专家分月排行榜第一2015年2月 Oracle大版内专家分月排行榜第一2014年6月 Oracle大版内专家分月排行榜第一2009年11月 Oracle大版内专家分月排行榜第一2009年10月 Oracle大版内专家分月排行榜第一
2015年9月 Oracle大版内专家分月排行榜第二2015年7月 Oracle大版内专家分月排行榜第二2015年1月 Oracle大版内专家分月排行榜第二2014年12月 Oracle大版内专家分月排行榜第二2014年11月 Oracle大版内专家分月排行榜第二2014年8月 Oracle大版内专家分月排行榜第二2014年7月 Oracle大版内专家分月排行榜第二2014年5月 Oracle大版内专家分月排行榜第二2010年1月 Oracle大版内专家分月排行榜第二2009年9月 Oracle大版内专家分月排行榜第二
匿名用户不能发表回复!|
每天回帖即可获得10分可用分!小技巧:
你还可以输入10000个字符
(Ctrl+Enter)
请遵守CSDN,不得违反国家法律法规。
转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。解决jdbc连接oracle协议适配器错误_数据库教程_编程技术
您的位置: &
& 解决jdbc连接oracle协议适配器错误
oracle|错误|解决
解决oracle协议适配器错误现象:jdbc连接oracle817 for Linux出现适配器错误,sqlplus连接正常。方法:编辑init.ora文件屏蔽mts_dispatchers = &(PROTOCOL=TCP)(SER=MODOSE)&重新启动oracle。import java.sql.*;import java.lang.*;import java.util.*;class testjdbc {&public static void main(String arg[]) {&&try {&&&Class.forName(&oracle.jdbc.driver.OracleDriver&);&&&Connection c = DriverManager.getConnection(&jdbc:oracle:thin:@10.1.61.197:1521:ora8&,&scott&,&tiger&);&&&Statement s = c.createStatement();&&&ResultSet r = s.executeQuery(&select * from dual&);&&&while(r.next()) {&&&&System.out.println(r.getString(1));&&&}&&}catch(Exception e) {&&&System.out.println(e.toString());&&}&&}}jdbc连接正常。
( 01:34:05)
( 01:34:03)
( 01:34:01)
( 01:33:58)
( 01:33:57)
( 01:33:53)
( 01:33:52)
( 01:33:49)
相关排行总榜

我要回帖

更多关于 协议适配器错误10g 的文章

 

随机推荐