|Just another Perl shrine|
Unable to connect to Oracle 19cby SpaceCowboy (Acolyte)
|on Nov 24, 2021 at 05:19 UTC||Need Help??|
SpaceCowboy has asked for the wisdom of the Perl Monks concerning the following question:
Perl newbie here. I have a windows 10 machine, with Strawberry Perl installed (5.32.1 - Jan 2021 release) that apparently comes preloaded with DBI and DBD::Oracle driver. however, I am unable to connect with my local oracle 19c instance that I have on my machine.
I researched some questions and they all seem to point to installing a 32-bit oracle client, that is no longer available to download. Please can you help. Here is my code:
and here is the output I received
The connection string needs 'Oracle' to be mentioned, along with the datatabse SID in connection string.
Also, there seems to be legacy documentations that suggests installing Oracle Instant Client, Visual C++ distributable and Windows SDK to get Perl/DBD::Oracle interact with a oracle database in windows operating system.
I did not do any of these and yet it worked for me with Strawberry Perl 5.32.1 (Jan 2021). So please consider the environment before moving to installing a bunch of dependencies which one may or may not need/be applicable anymore. I already wasted time and effort attempting to locate legacy drivers and SDKs that was never needed.