Greetings!
Simple question actually.
I'm writing a perl script that needs uses the Perl DBI. I'm using the Oracle DBD module to connect to (obviously) a oracle database. My connect string looks something like this:
my $dbh = DBI->connect( 'dbi:Oracle:$sid', 'username', 'password') || die "Could Not Make Database Connection";
I get the error that it cannot find the listener "$sid". Thus, it is not interpreting $sid as a variable. Is there a special way that I need to do this with DBI? I've tried {$sid} as well. No luck.
Any ideas?
Thanks,