db2 create database 命令

CREATE DATABASE PERFDB
  AUTOMATIC STORAGE YES
  ON '/db2data' DBPATH ON '/db2data/db2inst1'
  ALIAS PERFDB
  USING CODESET GBK TERRITORY CN
  COLLATE USING SYSTEM
  PAGESIZE 8192 
  NUMSEGS 1
  DFT_EXTENT_SZ 32
  CATALOG TABLESPACE
    MANAGED BY
    AUTOMATIC STORAGE
    EXTENTSIZE 4
    PREFETCHSIZE -1
    OVERHEAD -1
    TRANSFERRATE -1
    NO FILE SYSTEM CACHING
    AUTORESIZE YES
    INITIALSIZE 32 M
  USER TABLESPACE
    MANAGED BY
    AUTOMATIC STORAGE
    EXTENTSIZE 32
    PREFETCHSIZE -1
    OVERHEAD 7.5
    TRANSFERRATE 0.06
    NO FILE SYSTEM CACHING
    AUTORESIZE YES
    INITIALSIZE 32 M
  TEMPORARY TABLESPACE
    MANAGED BY
    AUTOMATIC STORAGE
    EXTENTSIZE 32
    PREFETCHSIZE -1
    OVERHEAD 7.5
    TRANSFERRATE 0.06
    FILE SYSTEM CACHING;




CREATE BUFFERPOOL BP32K
  IMMEDIATE
  ALL DBPARTITIONNUMS
  SIZE AUTOMATIC
  NUMBLOCKPAGES 0
  PAGESIZE 32K;



CREATE EVENT MONITOR DB2DETAILDEADLOCK
  FOR DEADLOCKS WITH DETAILS
  WRITE TO FILE 'db2detaildeadlock'
    MAXFILES 20
    MAXFILESIZE 512
    BUFFERSIZE 17
    BLOCKED
    APPEND
  AUTOSTART
  ON DBPARTITIONNUM 0
  GLOBAL;


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26224914/viewspace-2148260/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26224914/viewspace-2148260/

你可能感兴趣的:(db2 create database 命令)