SUSE Linux环境为DB2手动建库

WBOY
发布: 2016-06-07 16:53:13
原创
1171 人浏览过

1,为db数据文件创建空间mkdir -p /db2root/testdb/lv_db2dbmkdir -p /db2root/testdb/lv_db2indexmkdir -p /db2root/testdb/lv_

SUSE Linux环境为DB2手动建库

首页 → 数据库技术

背景:

阅读新闻

SUSE Linux环境为DB2手动建库

[日期:2008-10-11] 来源:Linux社区  作者:Linux编辑 [字体:]

1,为db数据文件创建空间

mkdir -p /db2root/testdb/lv_db2db
mkdir -p /db2root/testdb/lv_db2index
mkdir -p /db2root/testdb/lv_db2log
mkdir -p /db2root/testdb/lv_systbs
mkdir -p /db2root/testdb/lv_temptbs
touch /db2root/testdb/lv_usertbs
chown -R db2inst1:db2grp1 /db2root/testdb

2,在实例用户下建库(db2模式下)

create database testdb on /db2root/testdb/lv_db2db using codeset GBK territory zh_CN collate using identity catalog tablespace managed by system using ('/db2root/testdb/lv_systbs/catalog') TEMPORARY tablespace managed by system using ('/db2root/testdb/lv_temptbs/temporary') user tablespace managed by database using(file '/db2root/testdb/lv_usertbs' 2621440)

3,设置db参数

connect to testdb
update db cfg for mmscdb using newlogpath /db2root/testdb/lv_db2log logprimary 20 logfilsiz 7680
update db cfg using STMTHEAP 16384
update db cfg using STMTHEAP 16384
update db cfg using APPLHEAPSZ 512

4,,授权用户user1

connect to testdb user db2inst1 using passwd
grant use of tablespace USERSPACE1 to user user1
grant dbadm on database to user user1

SUSE Linux环境为DB2手动建库

  • 0
  • Linux平台下从源码编译安装MySQL的步骤

    Ubuntu下的c 连接数据库

    相关资讯       suse 

    图片资讯      

    本文评论   查看全部评论 (0)

    评论声明

    最新资讯

    本周热门

    SUSE Linux环境为DB2手动建库简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
    本站(LinuxIDC)所刊载文章不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。


    Copyright © 2006-2011 SUSE Linux环境为DB2手动建库 All rights reserved 浙ICP备06018118号

    相关标签:
    来源:php.cn
    本站声明
    本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
    热门教程
    更多>
    最新下载
    更多>
    网站特效
    网站源码
    网站素材
    前端模板
    关于我们 免责声明 Sitemap
    PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!