Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $password = "A13sm_sd";
    
    my $dbh = DBI->connect($dsn, $userid, $password ) or die $DBI::errstr;
    
  2. or download this
    DBI connect('database=ASYSDEV2','autosysr',...) failed: ORA-12154: TNS
    +:could not resolve the connect identifier specified (DBD ERROR: OCISe
    +rverAttach) at perl_DBI.pl line 15
    ORA-12154: TNS:could not resolve the connect identifier specified (DBD
    + ERROR: OCIServerAttach) at perl_DBI.pl line 15.