The following describes the types of DB2 command lines used for database connection and other operations for your reference. If you are interested in DB2 command lines, take a look.
Connect to the database:
- Connect to [database name] user [operation user name] using [Password]
Create a buffer pool (8 K ):
- create bufferpool ibmdefault8k IMMEDIATE SIZE 5000 PAGESIZE 8 K ;
Create a buffer pool (16 K) (OA_DIVERTASKRECORD ):
- create bufferpool ibmdefault16k IMMEDIATE SIZE 5000 PAGESIZE 16 K ;
Create a buffer pool (32 K) (OA_TASK ):
- create bufferpool ibmdefault32k IMMEDIATE SIZE 5000 PAGESIZE 32 K ;
Create a tablespace:
- CREATE TABLESPACE exoatbs IN DATABASE PARTITION GROUP IBMDEFAULTGROUP PAGESIZE 8K MANAGED BY SYSTEM USING ('/home/exoa2/exoacontainer') EXTENTSIZE 32 PREFETCHSIZE 16 BUFFERPOOL IBMDEFAULT8K OVERHEAD 24.10 TRANSFERRATE 0.90 DROPPED TABLE RECOVERY OFF;
-
- CREATE TABLESPACE exoatbs16k IN DATABASE PARTITION GROUP IBMDEFAULTGROUP PAGESIZE 16K MANAGED BY SYSTEM USING ('/home/exoa2/exoacontainer16k' ) EXTENTSIZE 32 PREFETCHSIZE 16 BUFFERPOOL IBMDEFAULT16K OVERHEAD 24.1 TRANSFERRATE 0.90 DROPPED TABLE RECOVERY OFF;
-
- CREATE TABLESPACE exoatbs32k IN DATABASE PARTITION GROUP IBMDEFAULTGROUP PAGESIZE 32K MANAGED BY SYSTEM USING ('/home/exoa2/exoacontainer32k' ) EXTENTSIZE 32 PREFETCHSIZE 16 BUFFERPOOL IBMDEFAULT32K OVERHEAD 24.1 TRANSFERRATE 0.90 DROPPED TABLE RECOVERY OFF;
-
- GRANT USE OF TABLESPACE exoatbs TO PUBLIC;
- GRANT USE OF TABLESPACE exoatbs16k TO PUBLIC;
- GRANT USE OF TABLESPACE exoatbs32k TO PUBLIC;
Create System tablespace:
- CREATE TEMPORARY TABLESPACE exoasystmp IN DATABASE PARTITION GROUP IBMTEMPGROUP PAGESIZE 8K MANAGED BY SYSTEM USING ('/home/exoa2/exoasystmp' ) EXTENTSIZE 32 PREFETCHSIZE 16 BUFFERPOOL IBMDEFAULT8K OVERHEAD 24.10 TRANSFERRATE 0.90 DROPPED TABLE RECOVERY OFF;
-
- CREATE TEMPORARY TABLESPACE exoasystmp16k IN DATABASE PARTITION GROUP IBMTEMPGROUP PAGESIZE 16K MANAGED BY SYSTEM USING ('/home/exoa2/exoasystmp16k' ) EXTENTSIZE 32 PREFETCHSIZE 16 BUFFERPOOL IBMDEFAULT16K OVERHEAD 24.10 TRANSFERRATE 0.90 DROPPED TABLE RECOVERY OFF;
-
- CREATE TEMPORARY TABLESPACE exoasystmp32k IN DATABASE PARTITION GROUP IBMTEMPGROUP PAGESIZE 32K MANAGED BY SYSTEM USING ('/home/exoa2/exoasystmp32k') EXTENTSIZE 32 PREFETCHSIZE 16 BUFFERPOOL IBMDEFAULT32K OVERHEAD 24.10 TRANSFERRATE 0.90 DROPPED TABLE RECOVERY OFF;
The above DB2 command line introduction.
Four precautions for DB2 Data Import
DB2 database startup failure Solution
Create a DB2 Management Server
Three types of DB2 clients
DB2 isolation level-read for implementation