DB2 terminal session – change the instance

You are connected with a terminal session to your database server and just executing the good known db2profile.
In the next step you want to execute db2 connect to blabla, but you get an error message, database is unknown – but you know, the database exists on that server… but not in that instance. You are connected to the wrong instance, because your DB server has more than one instance on it (lets call them db2inst1 and db2inst2).

You can see the error, what’s next?
DB2 terminal session – change the instance weiterlesen