Implementation of creating a database in DB2

Source: Internet
Author: User

How can we create a database in DB2? This is a problem that many new users who are familiar with DB2 databases often mention. The following describes how to create a database in DB2.

Create a database in DB2:

When a database is created, the following tasks are performed:

● Set all system cataloguing tables required by the database

● Allocate space for database recovery logs

● Create a database configuration file and a default value set

● Bind the database utility to the database

To create a database, run the following command: create database

You can specify the following information:

● Storage path

● Database partition number used for cataloguing and partitioning

● The drive or path used to create a database

● Code set and country

● Sorting Sequence

● Default disk size

● Whether the database should be configured automatically

● Table space definitions for CATALOG, TEMPORARY, and USERSPACE1 tablespaces

The create database Command creates three default tablespaces:

SYSCATSPACE: used for system cataloguing tables. SYSCATSPACE cannot be deleted.

TEMPSPACE1: temporary table created by the system. When another temporary tablespace is created, you can delete the TEMPSPACE1 tablespace.

USERSPACE1: the default tablespace used to create objects. When another user creates a tablespace, The USERSPACE1 tablespace can be deleted.
 

DB2 database authorization

DB2 Authentication Overview

Create a table in DB2 -- a table with an auto-incrementing Column

DB2 rename a table and view table information

DB2 database commands

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.