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

数据库名: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



阅读更多
上一篇linux chown 命令
下一篇DB2数据库之命令行执行存储过程(以@符结束)
想对作者说点什么? 我来说一句

创建DB2数据库命令

2013年12月20日 4KB 下载

DB2数据库讲解

2013年10月29日 2.04MB 下载

没有更多推荐了,返回首页

关闭
关闭