db2 create database 命令

flywiththewind發表於2017-12-04
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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章