i started coding a module which should be able to bring data from an oracle database.
so first step, was to install oracle instant client 11.2.0.4.0 (32 bits)
after that, i created a new environment variable ORACLE_HOME which points where i unzipped the instant client(i also added it to the PATH variable) and if i run otrs.CheckModules.pl, i see "Ok" for DBD::Oracle
now, i have something like this in my frontend module
Code: Select all
$Self->{OracleDbObject} = Kernel::System::DB->new(
%Param,
DatabaseDSN => 'DBI:Oracle:sid=xxx;host=myhost;port=1522',
DatabaseUser => 'user',
DatabasePw => 'password',
Type => 'oracle',
AutoConnectNo => 0,
);
Code: Select all
Can't load 'c:/Perl/site/lib/auto/DBD/Oracle/Oracle.dll'
Code: Select all
$ENV{ORACLE_HOME} = 'path to my instant client';
after i gave up trying to debug why it is not working, i tried another way..using the odbc driver that oracle provides..
after i installed it, my DSN looks like this:
Code: Select all
DBI:ODBC:driver={Oracle in instantclient_12_1};sid=xxx;host=myhost;port=1522
Code: Select all
ORA-12560: TNS:protocol adapter error
i also added a new environment variable called TNS_ADMIN which points to <ORACLE_HOME>/network/admin.
Googling a bit, i see that ORA-12560 indicates that the database is not running.. but i doubt so.
So, can anyone point me to the right direction? what am i missing? what should i try? is it better to get DBI::Oracle working over ODBC?
Thank you