Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using perl to access remote db2

Status
Not open for further replies.

gyhlee

Programmer
Aug 13, 2002
3
0
0
HK
Can I use perl to connect a db2 in another machine?
What is the connect code?
WhY I always get DBI->connect(sample:<foregnhost>:6789) failed: [IBM][CLI Driver] SQL1001N &quot;SAMPLE:<foreignhost>:6789&quot; is
not a valid database name. SQLSTATE=2E000
Is there anything do with the configuration or environment variables?

Please help
Thanks all experts in advance.
Cheers,
gyhlee
 
Have you catalogued the remote database in your host database. If not it won't be able to see it as it won't know on which machine it resides.

Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top