$ db2 "LIST NODE DIRECTORY"
$ db2 catalog TCPIP node mynode1 remote IP_ADDRESS server 50000
$ db2 catalog database dbname as DBRMT1 at node mynode1
$ db2 "CONNECT TO DBRMT1 USER appcore"
$ db2 "LIST NODE DIRECTORY"
$ db2 "LIST DATABASE DIRECTORY"
$ db2 "CONNECT TO DBRMT1 USER APPCORE"
$ db2 "SET SCHEMA APPCORE"
Source :
https://stackoverflow.com/questions/42718820/connect-to-remote-db2-from-linux-command-line

Comments
Post a Comment