Usage of the DB2 create server statement

Source: Internet
Author: User

I believe everyone has some knowledge about the DB2 create server statement. The following describes the usage of the DB2 create server statement. I hope it will help you.

The following provides several examples to illustrate how to use the DB2 create server statement to register servers for the wrapper on DB2 series data sources. This topic contains a complete example of how to use all required parameters to create a server. It also contains an example with optional server options.

Complete example:

The following example shows how to use the create server statement to CREATE a SERVER definition for the DB2 wrapper:

Create server DB2SERVER TYPE DB2/zos version 6 WRAPPER DRDA
AUTHORIZATION "spalten" PASSWORD "db2guru"
OPTIONS (DBNAME 'clients390 ')
DB2SERVER
Name specified for the DB2 database server. This name must be unique. Duplicate server names are not allowed.
TYPE DB2/ZOS
Specifies the type of data source server for which access is being configured.
VERSION 6
The version of the DB2 database server to be accessed.
WRAPPER DRDA
The name specified in the create wrapper statement.
AUTHORIZATION "spalten"
Authorization ID in the data source. This identifier must have BINDADD permission in the data source. This value is case sensitive.
PASSWORD "db2guru"
The password associated with the authorization ID in the data source. This value is case sensitive.
DBNAME 'clients390'
The alias of the DB2 database to be accessed. This alias is defined when you use the catalog database Command to CATALOG the DATABASE. This value is case sensitive.

This database name is required for the DB2 data source.
 

Overview of DB2 Flow Control clauses

Principle of DB2 cursor

Two ways to store db2 logs

Common DB2 cycle usage

DB2 Directory structure

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.