DB2创建归档模式数据库命令

来源:互联网 发布:js点击div边框变颜色 编辑:程序博客网 时间:2024/05/17 04:43

数据库名:xf

[db2inst3@DB ~]$ db2 create db xf automatic storage yes on '/home/db2inst3/xf' using codeset GBK territory CN collate using system pagesize 32768

DB20000I  The CREATE DATABASE command completed successfully.
[db2inst3@DB ~]$ cd xf/
[db2inst3@DB xf]$ ls
db2inst3
[db2inst3@DB xf]$ mkdir logs
[db2inst3@DB xf]$ ls
db2inst3  logs
[db2inst3@DB xf]$ db2 connect to xf user db2inst3 using db2inst3 


   Database Connection Information


 Database server        = DB2/LINUXX8664 9.7.7
 SQL authorization ID   = DB2INST3
 Local database alias   = xf


[db2inst3@DB xf]$ db2 update db cfg using LOCKTIMEOUT 30 LOCKLIST 163840 MAXLOCKS 20 LOGFILSIZ 20480 LOGPRIMARY 10 LOGSECOND 10 LOGARCHMETH1 disk:/home/db2inst3/xf/logs/
DB20000I  The UPDATE DATABASE CONFIGURATION command completed successfully.
SQL1363W  One or more of the parameters submitted for immediate modification 
were not changed dynamically. For these configuration parameters, the database 
must be shutdown and reactivated before the configuration parameter changes 
become effective.
[db2inst3@DB xf]$ db2 backup db xf user db2inst3 using db2inst3 


Backup successful. The timestamp for this backup image is : 20131203113427



原创粉丝点击