title: How to connect with a remote DB2 Server from another DB2 instance on AIX?
body: <p>I have two instances on two separate AIX servers. Both DB2 databases are up with their sample databases. I want to connect with one DB2 instance from the other instance. </p>
  
  <p>I am new on DB2 and want to know how can I do that.  </p>
  
  <p>I have executed following commands:</p>
  
  <p>This path is client instance:</p>
  
  <pre><code>#.  /home/db2inst2/sqllib/db2profile
  db2 catalog tcpip node db2serverinst remote lpar1 server 50005 remote_instance ctginst1
  db2 =&gt; terminate
  DB20000I  The TERMINATE command completed successfully.
  # db2 connect to db2serverinst user ctginst1
  Enter current password for ctginst1: SQL1031N  The database directory cannot be found on the indicated file system.
  SQLSTATE=58031
  </code></pre>