I'd like to connect from any Linux machine to the DB2 on a Linux server
via an IP adddress (or any available method that allows us to connect
to DB2 from another machine). I know we can do it in Java via JDBC in
the following fashion (suppose my IP address is xx.x.x.xxx):
sun.jdbc.odbc.JdbcOdbcDriver=com.ibm.db2.jcc.DB2Dr iver
sun.jdbc.odbc.ConnectionUrl=jdbc:db2://xx.x.x.xxx:50000/mydb
sun.jdbc.odbc.UserId=db2inst1
sun.jdbc.odbc.Password=mypasswd
Is there a similar way for an application in C++ on Linux? Currently
the application has to be on the same machine as the DB2 server.
I'm using DB2 UDB Express Edition V8.2 for Linux.
Thanks.