关闭

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

548人阅读 评论(0) 收藏 举报
分类:

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



0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:57089次
    • 积分:909
    • 等级:
    • 排名:千里之外
    • 原创:33篇
    • 转载:15篇
    • 译文:0篇
    • 评论:4条
    文章分类
    最新评论