in reply to Re^4: DBI connect to Oracle
in thread DBI connect to Oracle

You are missing a semicolon in the first line of your program:

use DBI my $dbh= ...

This should be:

use DBI; my $dbh= ...

Replies are listed 'Best First'.
Re^6: DBI connect to Oracle
by Anonymous Monk on Feb 23, 2015 at 13:27 UTC
    Thanks a lot. This was one error. But it still didn't work, showing me the same message error.

      I don't believe you. Please show the actual (minimal) code you're running that exhibits the problem. The relevant code should be no longer than 10 lines.

        As I said, I´m just starting on Perl.

        All the code I have is this:

        #!/usr/bin/perl unixy use DBI; my $dbh = DBI->connect('dbi:ODBC:host=172.16.90.220;sid=WEBDB;port=152 +1','CEP','a423pa');

        I don´t know if I had to have more code than this. I´m using this on Windows and Padre.

        Again, the message error:

        DBI connect('host=172.16.90.220;sid=WEBDB;port=1521','CEP',...) failed +: [Microsoft][ODBC Driver Manager] Nome da fonte de dados não encontr +ado e nenhum driver padrão especificado (SQL-IM002) at C:\Documents a +nd Settings\administrator\Meus documentos\connectionOracle.PL line 3" +"