gpt4 book ai didi

oracle - Delphi XE 5试用-ORA-12154问题

转载 作者:行者123 更新时间:2023-12-02 19:03:39 26 4
gpt4 key购买 nike

我目前正在测试 Delphi XE5,以决定是否升级到它。我偶然发现了 IDE 配置问题。

当我们使用 Oracle(11g 版本 11.2.0.3.0 - 64 位生产)时,我尝试设置 TFDConnectionTSQLConnection 并连接到数据库在设计时仅用于测试目的。

由于某种原因,两者都失败并出现错误 ORA-12154,但仅限于设计时。如果我保留配置的连接并在运行时激活它们,它就可以正常工作。例如,我可以从数据库中检索数据。

我使用tnsnames.ora描述指定数据库。下面可以看到Firedac连接定义(dbExpress连接配置使用相同的数据库、用户等):

Firedac connection definition

环境报告:

================================
Connection definition parameters
================================
Database=DBDES01_NEW
User_Name=SMILO_PRD
Password=*****
DriverID=Ora
================================
FireDAC info
================================
Tool = RAD Studio XE5
FireDAC = 9.0.1 (Build 63974)
Platform = Windows 32 bit
Defines = FireDAC_NOLOCALE_META;FireDAC_MONITOR
================================
Client info
================================
Loading driver Ora ...
Variable [Explicit Oracle Home]: [E:\oracle\product\10.2.0\client_1\]
Variable [Explicit OCI]: [E:\oracle\product\10.2.0\client_1\BIN\oci.dll]
Searching for Instant Client ...
Not found !
Searching for Oracle Home ...
Checking Oracle Home at key [\Software\Oracle] ...
Checking Oracle Home at key [\Software\Oracle\KEY_OraClient10g_home1] ...
Found [E:\oracle\product\10.2.0\client_1\bin\oci.dll], position [2147483647], in [reg: \Software\Oracle\KEY_OraClient10g_home1]
Home = E:\oracle\product\10.2.0\client_1
Version = 1002000100
OCI DLL name = E:\oracle\product\10.2.0\client_1\bin\oci.dll
TNSNAMES dir = E:\oracle\product\10.2.0\client_1\Network\Admin\tnsnames.ora
NLS_LANG = SPANISH_SPAIN.WE8MSWIN1252
================================
Session info
================================
Failed to connect to DBMS !
[FireDAC][Phys][Ora] ORA-12154: TNS:no se ha podido resolver el identificador de conexión especificado

当从 TOAD(我的旧版 Delphi 2006 安装)使用并且在运行时激活连接时,使用 tnsnames.ora 的连接可以正确工作。

问题一定出在我的 IDE 配置中。到目前为止我找不到任何解决方案。关于我可以检查什么的任何想法?

最佳答案

旧版本的 Oracle 客户端中存在一个错误,如果调用应用程序位于包含括号字符的目录路径中,则会导致 ora-12154(对于安装在 64 位 Windows 上的 32 位应用程序,包括 Delphi IDE,会发生这种情况) .) Oracle 修复了 11.2 及更新版本客户端中的错误(我在某些 11.2 系统上看到过该错误。)该错误的 Oracle 错误编号为 #3807408。我的常见问题解答页面 http://www.benthicsoftware.com/faq.html 有更多信息.

关于oracle - Delphi XE 5试用-ORA-12154问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21165035/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com