473,508 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ESE 8.1 install on Linux

I'm following the instructions from "Up and Running With DB2 for
Linux". I created these users/groups:

db2inst1:x:201:101::/home/db2inst1:/bin/bash
db2fenc1:x:202:102::/home/db2fenc1:/bin/bash
dasusr1:x:203:103::/home/dasusr1:/bin/bash

db2iadm1:x:101:db2inst1
db2fadm1:x:102:db2fenc1
db2asgrp:x:103:dasusr1

I untarred db2-udb-ee-8.1-linux-x86.tar, changed to the
009_ESE_LNX_32_NLV directory, and ran db2_install. I got a bunch of
output like this:

Preparing...
##################################################
IBM_db2msen81
##################################################
IBM_db2cliv81...

and no errors.

I executed:
/opt/IBM/db2/V8.1/instance/db2icrt -u db2fenc1 db2inst1
and it says that the instance already exists (someone attempted an
install earlier).
db2iset -l shows the instance "db2inst1" exists.

I execute:
/opt/IBM/db2/V8.1/cfg/db2ln

I configure TCP/IP.

The next instruction is to execute sqllib/db2profile as the instance
owner, but there is no sqllib directory anywhere on the machine.

Where is that directory, or what can I do next?

Nov 14 '05 #1
5 3500
Okay, realized that sqlilib was manually deleted.
So, I dropped the db2inst1 instance and re-created it, and now I have
my sqllib directory.

Now I try:
../sqllib/db2profile
db2 update dbm cfg using SVCENAME db2c_db2inst1

and receive:
SQL10007N Message "-1390" could not be retrieved. Reason code: "1".

echo $DB2INSTANCE
db2inst1

Nov 15 '05 #2
I am somewhat new on the job and have been put into the position to
have to learn DB2 and learn it more so on Linux. I tried running that
same method of install and it gave me headaches. The very best way for
me to do it was like this:

Run ./db2setup
If no suitable JVM was found, then I went into the 'java' dir and
installed the IBMJava SDK RPM. After this, I ran ./db2setup

After this, an IBM DB2 start-up screen showed and then I simply
installed it as I would on a Windows machine.

I found it better to not create the users and groups and just let the
setup program do all of that. It was much easier and gave me just as
much functionality and flexibility as if I would have done it myself.
However, if you're the type who likes to bang their head and learn the
hard way, do the individual rpm installs (nothing wrong with that
method if you like it).

After this, log into your db2 instance user's account on VNC, SSH or
directly on the box if you like, and you'll be able to run db2cc (DB2
Control Center) rather easily. If you don't allow DB2 setup to do this,
you'll have to set all the paths and Java class paths yourself to get
it run properly.

Any other questions, please come back or feel free to email me
directly. I can use some help and don't mind providing it as we are in
the middle of converting Windows Websphere applications over to Linux.
This of course includes DB2 and IDS as we are an exclusive IBM shop.

Good Luck!

Harlin Seritt

Nov 15 '05 #3
Hi Jason:

Try:

.. ./sqllib/db2profile

(yes, dot, space, dot/sqllib/db2profile -- the first dot says "apply
all of the environment changes to the current shell"; if you leave that
dot out, then the environment changes apply only for the duration that
the db2profile script runs and therefore none of the settings are
applied).

source /home/db2inst1/sqllib/db2profile also seems to work.

Dan

Nov 15 '05 #4
Thanks everyone for their replies.
.. ./sqllib/db2profile
worked.

Then, I did:
/opt/IBM/db2/V8.1/instance/dascrt -u dasusr1
DBI1103E The Administration Server already exists.

and:
db2 create tools catalog toolscat create new database toolsdb
SQL22205C The DB2 Administration Server encountered an unexpected
error while
executing a request.

Nov 15 '05 #5
JasonFriedman80238 wrote:
Thanks everyone for their replies.
. ./sqllib/db2profile
worked.
Note that you should not do this as root - only as a non-root user. Running
db2 commands as root can cause weird side effects (such as files being
created with the wrong permissions, basically preventing anyone else,
including the instance owner, from doing anything with that file).
Then, I did:
/opt/IBM/db2/V8.1/instance/dascrt -u dasusr1
DBI1103E The Administration Server already exists.
Same issue as your regular instance - you probably removed the ~dasusr1/das
directory. I think dasdrop will clear that out.
and:
db2 create tools catalog toolscat create new database toolsdb
SQL22205C The DB2 Administration Server encountered an unexpected
error while
executing a request.


Run this last command as your instance owner, or someone with sufficient
permissions (sysadm), not as root.
Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2864
by: danu kusmana | last post by:
Im using Python 2.3.4 and Mandrake linux 10.0. I don't know whats wrong when Im trying to install the PyOpengl-2.0.1.08. I got the message: gcc -pthread -shared...
0
3293
by: Randell D. | last post by:
Folks, I have installed MySQL v4 (client, server and development rpm's). I've tried and failed to use the recommended mysqladmin to set a root password after the installation (I have another post...
0
1471
by: Yun Guan | last post by:
Hello mysql gurus, I am trying to run perl on mysql database on Red Hat box. I want to install DBI and DBD:mysql using CPAN: perl -MCPAN -e shell cpan>install DBI The above succeeded, but...
1
2601
by: Yun Guan | last post by:
Hello, I have problems installing DBD:mysql on Red Hat Linux 9, either from CPAN, or mannual install. The error is the same, something related to this Kid.pm file under perl. Should I reinstall...
3
1747
by: Google Mike | last post by:
On Linux, I need to ask what your favorite installation options are for a PHP app as a kind of poll. In this first part, I discuss the Install Wizard choices. In Part 2, I discuss the database...
1
1848
by: Peter Hartmann | last post by:
How do I influence the platform type during install? Could you look at this and tell me what I'm doing wrong? It's still using information from get_platform instead of using my preference. #...
6
2587
by: kabrit | last post by:
Entrez "aide" pour afficher à nouveau les noms de produits. Entrez "quitter" pour quitter. *********************************************************** DB2.PE IBM_db2msen81... Preparing......
1
3448
by: Sorin Schwimmer | last post by:
Hi All, After a disaster in which I lost my whole harddrive, I decided to install the newest everything that I use. I put the latest Gentoo Linux, with gcc 4.1.1, installed tcl/tk 8.4.14 and...
4
7079
by: Amber | last post by:
The installer tells it faild to config db2inst1, the db2setup.err is as following: /usr/share/themes/Clearlooks/gtk-2.0/gtkrc:60: Engine "clearlooks" is unsupporte d, ignoring Jun 15, 2007...
1
4281
by: deborahb | last post by:
On a linux Red Hat Enterprise Linux AS release 4 (Nahant Update 5) box, I've installed DB2 V9 Client at the fixpak3 level. The install was successfull but 2 additional log files were produced with...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3195
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.