IBM Data Server DB2 User Manual
Page 280
266
DB2 Deployment Guide
# Creating dsn from command line arguments.
$dsn = "HOSTNAME=" . $ARGV[0] .
";PORT=" . $ARGV[1] .
";DATABASE=" . $ARGV[2] .
";PROTOCOL=TCPIP" .
";UID=" . $ARGV[3] .
";PWD=" . $ARGV[4];
print "Trying to establish connection...\n";
$dbh = DBI->connect("dbi:DB2:$dsn",
"", "",
{PrintError => 0}
) || die "Database connection not made: $DBI::errstr";
print "Connection successful.\n";
print "Closing connection...\n";
$dbh->disconnect();
print "Connection closed.\n";
See also other documents in the category IBM Computer Accessories:
- ZG09-0629 (24 pages)
- 8271 F24 (2 pages)
- DS3200 (18 pages)
- X3850 M2 (19 pages)
- 12.1(22)EA6 (550 pages)
- SG24-4817-00 (316 pages)
- Nortel 10 (90 pages)
- 6 MPLS (22 pages)
- 614 (2 pages)
- WAVV 2004 (21 pages)
- CMX58886CX (110 pages)
- Volition Dual Speed Mini-Hub VOL-2008 (3 pages)
- 25CPC710 (8 pages)
- BM 8270 (8 pages)
- 2X16 (18 pages)
- NWAYS 712 (2 pages)
- BDM-610000049 (120 pages)
- REDBOOKS B24X (22 pages)
- AT-FS202 (44 pages)
- X3400 (16 pages)
- 190000 (19 pages)
- THINKPAD S05L-1270-01 (716 pages)
- 8260 (25 pages)
- E (40 pages)
- 6633 - 4LE (19 pages)
- RS/6000 SP (114 pages)
- SAN32M-2 (8 pages)
- 19K4260 (105 pages)
- 8276 (4 pages)
- POWERPC 750GX (377 pages)
- DB2 Everyplace 7.2.1 (18 pages)
- ATM OC-3c (140 pages)
- iSeries 270 and 820 SENG-3002-01 (30 pages)
- AA-RWF3A-TE (159 pages)
- 524 (2 pages)
- 24R9718 IB (59 pages)
- 8271 (6 pages)
- 02L1333 (6 pages)