如何从远程客户端连接到Oracle 10g? [英] How to connect to Oracle 10g from remote client?

查看:122
本文介绍了如何从远程客户端连接到Oracle 10g?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用标准Delphi dbexpress dbexpora.dll + oci.dll(10g)
(已安装Oracle InstantClient)。

Using the standard Delphi dbexpress dbexpora.dll + oci.dll (10g) (the oracle instantclient is installed).

直接在Oracle上运行时数据库框我们可以运行
dbexpress应用程序。在
情况下使用的本地dbxconnections.ini别名只是将数据库服务名称ORCL指定为数据库参数。

When directly on the Oracle Database box we can run dbexpress apps just fine. The local dbxconnections.ini alias used in that case simply specifies our DB service name ORCL as the "database" parameter.

我们正尝试与此连接来自
客户端计算机的同一个数据库并收到一系列错误。

We are trying to connect to this same database from client machines and receiving a series of errors.

自然地,我们正在尝试
数据库参数中的所有字符串形式。使用MOHAWK2:1521:ORCL
这样的字符串,我们至少可以得到一个监听器错误:

Naturally, we are trying all manner of strings in the database parameter. Using a string like, MOHAWK2:1521:ORCL we are at the point where we can at least get a listener error:

连接失败:ORA- 12514 TNS:侦听器目前尚不知道连接描述符中请求的服务。

Failure to Connect: ORA-12514 TNS:listener does not currently know of service requested in connect descripter.

我想有一些工具可以测试命名可用性...

I imagine there are some tools to test the naming availability...

推荐答案

在服务器上使用TNSPING来查看其如何解析服务名称。各种配置选项和文件可以将简单的名称映射到完整的服务器/端口/服务。

Use TNSPING on the server to see how it's resolving the service name. Various configuration options and files can map a simple designation to a full server/port/service.

C:> TNSPING ORCL

C:>TNSPING ORCL

使用TNSNAMES适配器解析别名
尝试联系(描述=(地址=(协议= TCP)(主机= 127.0.0.1)(端口= 1521))(连接_数据=(服务器=专用)(服务名称= XE)))
确定(0毫秒)

Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE))) OK (0 msec)

提取服务器/端口/服务并以您需要使用的组件或连接方法的任何格式构造连接字符串。

Extract out the server/port/service and construct the connect string in whatever format the component or connection method your using needs.

这篇关于如何从远程客户端连接到Oracle 10g?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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