0. update your apt database:
sudo apt-get update
1. update your Source-List /etc/apt/source.list, uncommnent the following lines:
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner
2. install db2express-c:
sudo apt-get install db2exc
3. if you met error like below,then make sure you have memory larger than 512MB. I met the error when I gave my VM 256MB memory (the official requirements said it is 256MB/512MB...). Another solution could be found
here (saying you need to run db2start one more time).
Message: SQL1042C An unexpected system error occurred. SQLSTATE=58004
4. verify installation:
# login as db2 instance owner
sudo su - db2inst1
# create sample database
db2sampl
# connect to sample database
db2 connect to sample
# list tables and query by db2 command line interface (CLI)
db2 list tables
db2 "select * from emp"
5. create sample database user
# exit the login of db2inst1
exit
# create a new Ubuntu user since db2 use system authentication
sudo useradd -d /home/db2user db2user
# set password for db2user
sudo passwd db2user
# login as db2inst1 again to grant privilege to new user "db2user"
sudo su - db2inst1
db2 connect to sample
db2 grant DBADM on database to user db2user
6. change db2inst1 password:
# i'm not sure what the default password is
# but you'd better change it to make your system safe
sudo passwd db2inst1
more information:
the user name "db2inst1" may be different if you have installed db2 in your system before. (the last number '1' will increase by your installations)
if you met any other problems check the diagnostic log first:
/home/db2inst3/sqllib/db2dump/db2diag.log
IBM Official DB2 for Ubuntu Wiki
分享到:
相关推荐
OpenERP Installing Ubuntu9.04
### 安装STLinux在Ubuntu上的关键步骤与挑战 #### 概览 本文将深入探讨在Ubuntu上安装STLinux的全过程,重点解析由于包管理系统的差异而带来的挑战及其解决方案。对于那些希望在Ubuntu环境中利用STLinux强大功能的...
有下面几个文档 What's New for DB2 Version 9.7 PDF July, 2012 Quick Start Guide - DB2 Personal Edition1 PDF Quick Start Guide - DB2 Servers1 PDF Quick Start Guide - DB2 Connect1...Installing DB2 Servers
面是我在Ubuntu6.06 LTS 下源码编译安装samba主要安装过程,本人第一次用Ubuntu,刚装上去时候,没有gcc编译环境。郁闷了半天。找出这一过程发了不少的时间。可能还有些不妥,不过我经过这样的安装达到了向windows共享...
### 安装Anaconda在Ubuntu上的详细步骤及关键知识点 #### 一、Anaconda简介 Anaconda是一款非常受欢迎的数据科学平台,它集成了Python或R语言环境中的许多库和工具,便于用户进行数据处理、科学计算、机器学习等...
Installing Ubuntu—Getting started 11 Finishing Installation 16 2 The Ubuntu Desktop 19 Understanding the Ubuntu desktop 19 Unity 19 The Launcher 21 The Dash 21 Workspaces 24 Managing windows 24 Unity...
Installing Ubuntu 14.04 & ROS & TurtleBot 06-29-2016 个人小结,关于Ubuntu和ROS的安装。
Ubuntu Server Succinctly illuminates the path from installing Ubuntu Server on a machine to configuring user accounts, groups, directories, networks, databases, and more. In only a few dozen pages, ...
- 选择“Try Ubuntu without installing”(试用Ubuntu而不安装)或直接选择“Install Ubuntu 16.04 LTS”(安装Ubuntu 16.04 LTS)。 5. **安装Ubuntu 16.04** - 如果选择试用,可以体验系统后再决定是否安装。...
在Ubuntu 10.04环境下安装NS2(网络模拟器2.34)是一个涉及多个步骤的过程,这个过程对于那些需要进行网络模拟和性能分析的IT专业人员来说至关重要。NS2是一个开源的网络模拟软件,它允许用户模拟各种网络环境,测试...
1. **启动安装程序**:当将Ubuntu安装介质(通常是USB或DVD)插入计算机并启动时,会进入启动菜单,选择“Try Ubuntu without installing”或“Install Ubuntu”来启动图形化安装程序。 2. **语言选择**:首先,...
Administer, install, and configure the 5–year Hardy–Heron Ubuntu Server Long Term Support Edition of the most popular Linux distribution in the world. Use the new installation and GUI tools. ...
Compilation - Compiling and Running C Programs, Installing Codeblocks IDE on Raspberry Pi / Linux, Variables and Data Types in C, Operators, Input and output - printf and scanf, Strings, Arrays, ...
Chapter 3 Installing Ubuntu Chapter 4 Post-Installation Configuration Chapter 5 First Steps with Ubuntu Chapter 6 The X Window System Chapter 7 Managing Software Chapter 8 On the Internet: ...
mingw-w64 是一个开源的 C 和 C++ 编译器,旨在帮助开发者更好地开发 Windows 应用程序。安装 mingw-w64 的步骤如下: 1. 打开 mingw-w64 官方网站,下载 mingw-w64 安装程序。 2. 安装 mingw-w64,按照提示进行...
在本文档中,我们将深入探讨如何在Oracle Solaris 11.2操作系统环境下安装和配置OpenStack。Oracle Solaris 11.2是Oracle公司推出的一款先进的Unix操作系统,以其稳定性和安全性著称,而OpenStack则是一个开源的...
The Ubuntu Server Guide contains information on how to install and configure various server applications on your Ubuntu system to fit your ...installing Ubuntu, refer to the Ubuntu Installation Guide.
虚拟机VMware安装Ubuntu图文讲解 本文旨在详细讲解虚拟机VMware安装Ubuntu的图文教程,以便读者更好地理解虚拟机的安装和使用过程。 一、虚拟机简介 虚拟机是一种软件,它可以在物理机上模拟出一个或多个虚拟的...
This cheat sheet provides an overview of essential commands and configurations that are useful for daily operations in Ubuntu. #### Privileges Management **1. `sudo` Command** - **Description**: ...