I use Oracle remotely from Windows all of the time. I don't use ODBC anymore and just connect directly using the Oracle client libraries.
If you are having trouble connecting, you might have to rename the oci.dll that is installed when installing DBD::Oracle in the Perl bin directory. I have had conflicts with previously installed clients before and having this oci.dll and the Oracle client both installed caused an issue.
Use the following connection string syntax in the DBI connection:
my $dsn = 'dbi:Oracle:host=10.1.1.100;sid=XX;port=1521';
I also use an eval to trap any errors when trying to connect to the database
my $dbh; eval { $dbh = DBI->connect( $dsn, $username, $password) || die "Cannot connect to database - [$dsn]: $DBI::errstr"; }; if ($@) { log("[Error] COULD NOT CONNECT TO DATABASE: [$@]\n"); }
In reply to Re: Remote Oracle database access from windows
by tokpela
in thread Remote Oracle database access from windows
by my600080
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |