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_

Linux公社

首页 → 数据库技术

背景:

阅读新闻

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

linux

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

    Ubuntu下的c++连接数据库

    相关资讯       suse 

    图片资讯      

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

    评论声明

    最新资讯

    本周热门

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


    Copyright © 2006-2011 Linux公社 All rights reserved 浙ICP备06018118号

    관련 라벨:
    원천:php.cn
    본 웹사이트의 성명
    본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
    인기 튜토리얼
    더>
    최신 다운로드
    더>
    웹 효과
    웹사이트 소스 코드
    웹사이트 자료
    프론트엔드 템플릿
    회사 소개 부인 성명 Sitemap
    PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!