---
title: "db2"
author: "sandy_leen"
date: "2012-05-30T11:33:28Z"
tags: []
categories: ["数据库"]
slug: "db2"
draft: false
lastmod: "2012-05-30T11:33:28Z"
id: 1520574
url: "https://chenlinbo.iteye.com/blog/1520574"
---

&gt;db2cmd

&gt;db2

&gt;connect to &lt;database&gt; user &lt;username&gt; using &lt;password&gt;

 

 

Remote Connection:

&gt; catalog tcpip node mynode remote &lt;ip&gt; server 5000

&gt; catalog db &lt;dbname&gt; at node mynode

&gt; connect to &lt;dbname&gt; user &lt;username&gt; using &lt;pwd&gt;