Oracle协议适配器错误 [英] Oracle Protocol Adapter Error

查看:792
本文介绍了Oracle协议适配器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,
我刚刚在我的笔记本电脑上安装了Oracle 10g Express Edition。平台是Windows XP SP3。安装正常进行。 BUt当我尝试通过SqlPlus连接到Oracle数据库时,我得到TNS协议适配器错误。我的笔记本电脑是在网络上。我安装了相同的数据库到Windows Server 2003和它的工作正常。问题是什么?

I've just installed Oracle 10 g Express Edition on to my laptop. The platform is Windows XP SP3. Installation went normally. BUt when I try to get connected to the Oracle database via SqlPlus I get "TNS Protocol adapter error".My laptop is on the network.I'd installed the same database on to a Windows Server 2003 and it works fine. What could the problem be?

推荐答案

我认为这是 ORA-12560:TNS:protocol adapter error Oracle文档将其描述为通用TNS错误,但有两个非常常见的原因。

I presume this is ORA-12560: TNS:protocol adapter error. The Oracle documentation describes it as a generic TNS error, but there are two very common causes of it.


  1. OracleXE的Windows服务尚未启动,因此数据库不是向上。

  2. 未设置Oracle SID

如果服务已启动,请尝试将SID。在命令窗口类型中:

If the service is started then try setting the SID. In a command window type:

C:>  set oracle_sid=XE   

(或任何你叫它)。然后你应该能够使用SQL * Plus连接到数据库。如果这解决了你的问题,你应该可以将它添加到环境变量(系统信息,高级选项卡)。

(or whatever you called it). Then you should be able to connect to the database using SQL*Plus. If this does solve your problem you should probably add it to the environment variables (System info, Advanced tab).

这篇关于Oracle协议适配器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆