Advertisement
Guest User

Connection DB

a guest
Nov 21st, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.40 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. # PERL MODULES WE WILL BE USING
  4. use DBI;
  5. use DBD::DB2;
  6.  
  7. # HTTP HEADER
  8. print "Content-type: text/html \n\n";
  9.  
  10. # CONFIG VARIABLES
  11. $platform = "DB2";
  12. $database = "S634E05A";
  13. $host = "S634E05A";
  14. $port = "8471";
  15. $user = "fiel";
  16. $pw = "fiel";
  17.  
  18. #DATA SOURCE NAME
  19. $dsn = "dbi:$platform:$database:$host:$port";
  20.  
  21. # PERL DBI CONNECT
  22. $DBIconnect = DBI->connect($dsn, $user, $pw);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement