Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BEGIN {
- $ENV{ORACLE_HOME} = '/home/oracle/product/10.x.x';
- $ENV{TWO_TASK} = 'DB';
- }
- $dbh = DBI->connect('dbi:Oracle:','scott', 'tiger');
- # - or -
- $dbh = DBI->connect('dbi:Oracle:','scott/tiger');
- my $db = DBI->connect("dbi:Oracle:host=$host;sid=$database", $user, $pass,
- { RaiseError => 0, PrintError => 0 } )
- or croak( "Unable to connect to DB - $DBI::errstr" );
Add Comment
Please, Sign In to add comment