create db指令碼

flywiththewind發表於2016-12-02
1、
CREATE DATABASE NAV
AUTOMATIC STORAGE YES
ON '/data/db2'
DBPATH ON '/data/db2'
ALIAS NAV
USING CODESET UTF-8
TERRITORY CA
COLLATE USING SYSTEM
PAGESIZE 4096
WITH 'Aviation Geo Data';

2、
CREATE DATABASE NAV
AUTOMATIC STORAGE NO
ON '/data/db2' ALIAS NAV
USING CODESET UTF-8
TERRITORY CA
COLLATE USING SYSTEM
PAGESIZE 8 K
CATALOG TABLESPACE MANAGED BY DATABASE USING (
FILE '/data/db2/db2inst1/NODE0000/nav/catalog.dbf' 6400 )
AUTORESIZE YES MAXSIZE 500 M
USER TABLESPACE MANAGED BY DATABASE USING (
FILE '/data/db2/db2inst1/NODE0000/nav/user.dbf' 6400 )
AUTORESIZE YES MAXSIZE 500 M
TEMPORARY TABLESPACE MANAGED BY DATABASE USING (
FILE '/data/db2/db2inst1/NODE0000/nav/temp.dbf' 6400 )
AUTORESIZE YES MAXSIZE 500 M;

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26224914/viewspace-2129570/,如需轉載,請註明出處,否則將追究法律責任。

相關文章