Create a DB2 Management Server

Source: Internet
Author: User
Tags db2 installation

When creating a DB2 management server, you can create one or more DB2 management servers. The following describes how to create these two DB2 Management Servers for your reference.

1. Only one DB2 Management Server can be created)

1. Do not create a management service group user first)

Command: sudo groupadd dasadm1

2. Create a user

Command: sudo useradd-g dasadm1-s/bin/bash-m dasusr1

3. Go to the db2 installation directory.

Run the following command in the instance directory:

Create: sudo./dascrt dasusr1
Delete: sudo./dasdrop dasusr1

4. Start and delete a Management Server (das)

Command: su dasusr1 (set the password before logon. Command: sudo passwd dasusr1)
Start: db2admin start
Stop: db2admin stop

2. You can create multiple DB2 Management Server instances)

1. Create group users db2iadm1 and db2fadm1

Command: sudo groupadd db2iadm1
Sudo groupadd db2fadm1

2. Create user db2inst1 and db2fenc1

Command: sudo useradd-g db2iadm1-s/bin/bash-m db2inst1
Sudo useradd-g db2fadm1-s/bin/bash-m db2fenc1

3. Go to the db2 installation directory instance:
Create an instance: sudo./db2icrt-u db2fenc1 db2inst1
Delete instance: sudo./db2idrop db2inst1

4. Start the instance

Su db2inst1
Start: db2start
Stop: db2stop

Several Simple DB2 operation statements

Read stability at the DB2 isolation level

Necessity of Data Warehouse-DB2 query inspection Tool

Provides you with an in-depth understanding of the DB2 data warehouse.

How to query and create a table using DB2

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.