OCI and executable path limitations

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
pcz
Posts: 81
Joined: Tue 04 Aug 2015 12:53

OCI and executable path limitations

Post by pcz » Tue 28 Jun 2016 08:56

Hello

It seems that executables that use OCI have some strange limitations...
Launching exe file from directory that contains round brackets in directory name always results with ORA-12154...

Why?... :P

Regards
P.C.

PS. Related topic: viewtopic.php?f=5&t=33886

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: OCI and executable path limitations

Post by AlexP » Thu 30 Jun 2016 12:04

Hello,

Please specify the exact version of the Oracle client you use. We have checked the OCI mode connection on Oracle Client 11.2.0.1 and found any problems. However, when using Oracle Client 10, if an application is in the directory incuding brackets, the application cannot connect to Oracle, as it cannot find the tnsnames.ora file. Please try moving your application to the root of any disk and running it - if the problem doesn't recur, you should update your Oracle Client

pcz
Posts: 81
Joined: Tue 04 Aug 2015 12:53

Re: OCI and executable path limitations

Post by pcz » Thu 30 Jun 2016 13:07

AlexP wrote:Hello,

Please specify the exact version of the Oracle client you use. We have checked the OCI mode connection on Oracle Client 11.2.0.1 and found any problems. However, when using Oracle Client 10, if an application is in the directory incuding brackets, the application cannot connect to Oracle, as it cannot find the tnsnames.ora file. Please try moving your application to the root of any disk and running it - if the problem doesn't recur, you should update your Oracle Client
You are right - I'm doing tests on machine with OCI 9.x.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: OCI and executable path limitations

Post by AlexP » Thu 30 Jun 2016 14:25

Unfortunately, old Oracle clients (up to 10 inclusively) don't work when using such a path.

pcz
Posts: 81
Joined: Tue 04 Aug 2015 12:53

Re: OCI and executable path limitations

Post by pcz » Mon 04 Jul 2016 06:21

OK
Thanks for confirmation! :)

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: OCI and executable path limitations

Post by AlexP » Mon 04 Jul 2016 08:14

Feel free to contact us if you have any further questions.

Post Reply