local client

sergmzk

Member
Hello!
I upgrade my project, before that I used doa 4.0.7.1 and now 4.1.3.
For my application, i create local oracle client:
Screenshot_1.jpg

And with old vesion - worked perfectly, but new version doesn't use my local tnsnames.ora
Screenshot_2.jpg


tnsnames.ora:
XE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.66)(PORT = 1521))
)
(CONNECT_DATA =
(SID = XE)
)
)

How can i fix this?
 
Last edited:
Can you open your project, go to the "Oracle" menu in RAD Studio and select the "Info" menu item? Let me know what is specified for the OracleHomeKey and OracleHomeDir.
 
I created two small apps with doa 4.1.3.5, one in bds 2006 and in Delphi 10.2.
And launched them on computer without oracle client (in path and registry clear).

Delphi 2006 - worked.
Delphi 10 - crashed.
Screenshot_1.jpg

Screenshot_2.jpg


It's bug? Maybe i can use OracleCI.OracleHome?
Any ideas?
Sorry for bad english.
 
Does this error happen at design-time, run-time, or both?

If it only happens at run-time, then note that if you have generated a 64 bit application you will also need a 64 bit Oracle Client. The Delphi IDE itself (design-time) is 32 bit, and will use a 32 bit Oracle Client.
 
Added before connection
SetEnvironmentVariable(PChar('PATH'),PChar(ExtractFilePath(Application.ExeName) + 'bin')); - worked
 
Back
Top