Understanding DB2 学习笔记 一

来源:互联网 发布:中国国家数据 编辑:程序博客网 时间:2024/05/17 23:50

                                                      Overview of DB2 

 

DB2 命令分为两种:

  • System commands

  • DB2 System Commands for many purposes, including starting services or processes, invoking utilities, and configuring parameters.

    DB2  System Commands 还不需要 instance。

    DB2 system command  以 DB2x 这种方式命名.如:

    db2start
    db2set
    db2icrt

    用 -h 查看命令的帮助

  • Command Line Processor (CLP) commands

  • DB2 CLP commands  是通过CLP 工具进行处理的。

    DB2 CLP commands  需要启动instance

    通过从操作系统的命令行(如DOS或shell)键入db2,启动Command Line Processor  交互式的对话模式。可以输入如下命令等:

    list applications
    create database
    catalog tcpip node

    如果你不想在CLP的交互模式下工作,你可以在CLP 命令前加入前缀 db2,例如:

    db2 list applications
    db2 create database
    db2 catalog tcpip node

    注意:在Windows 平台db2 必须在 DB2 Command Window 中键入,而不是在DOS 命令行中键入。

     

    原创粉丝点击