Analysis on the use of IBM DB2 Catalog

Source: Internet
Author: User
Tags ibm db2

The following articles mainly describe the solutions used by IBM DB2 Catalog. I have been listening to other people to catalog the database on the Server, but I don't know what it means. I was quite confused at the beginning, what is catalog? Check google and baidu on the Internet.

At the beginning, I was talking about Yun again, and finally I had to read the official DB2 documents to find out what was going on. Here, by the way, we will share with you!

Chinese people immediately wanted to translate catalog into Chinese, but they couldn't find the right word. So they simply translated it into "cataloguing" and said that the names of people were not good, it seems that translation is still a problem, but it doesn't matter. Everyone is used to it. I don't think it's actually better to understand it. I think it's a db2 command, load the information about your database on the server to your local PC, hoho ~~).

Why?

The deployed database must have been installed on the server. At least a few people have installed the Database on their personal computers for use.) The database may be in another city, you want to operate the database and view the remote information about the database, so we need to connect to the remote database. It is not enough. You must be able to "get" remote database information locally.

In the graphic interface, you can click a few buttons through Configuration Asistant. However, if you want to change your proffessional, you need to make your catalog debut. Remember, here, you only need to understand it as a command, which is also a DB2 command, called catalog, rather than trying to translate it into Chinese.

What should I do?

Using catalog to load remote database information to a local machine is generally divided into two steps:

Step 1: run the following command on the node of the catalog server:

 
 
  1. db2 catalog tcpip node db2node remote hostname server service_port 

In this example, db2node is the name of any node that you initiate. You can use db2 lsit node directory to check if the name cannot be repeated with the existing name. The hostname can also be IP address, and service_port is the port number. The node directory stores all the connectivity information of the remote database.

Step 2: The catalog remote DB2 database command is as follows:

 
 
  1. db2 catalog database db_name as alias_name at node db2node. 

Db_name refers to the name of the remote database, alias_name refers to the client Instance name, And db2node refers to the node you specified above!

Now that the communication has been established, you can connect to the database. The above content is an introduction to the use and analysis of the IBM DB2 Catalog. I hope you will get some benefits.

The above content is a description of the use and analysis of the IBM DB2 Catalog, hoping to help you in this regard.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.