Contents
How do I connect to a DB2 instance?
Connecting to your Db2 database
- Collect database details and credentials. To connect to your database, you need database details (such as the host name), as well as credentials (such as a user ID and password). …
- Verify that a supported driver is installed. …
- Configure your environment. …
- Confirm ports are available.
How check DB2 connection in Linux?
Procedure
- If you are using a Linux or UNIX platform, set up the instance environment. …
- Start the DB2® command line processor. …
- Type the following command on the client to connect to the remote database: db2 => connect to database_alias user userid For example, enter the following command: connect to mysample user jtris.