If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to Uninstall complete manually on Linux (Ubuntu)?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-09, 00:09
desian desian is offline
Registered User
 
Join Date: Dec 2009
Posts: 14
How to Uninstall complete manually on Linux (Ubuntu)?

Hi DB2-Community,

SORRY:
For writing errors.
For not found solved problem on Forum Search.

HERE TEH QUESTION:
Can someone give me a tip to find out how I can manualy deinstall all the db2-things on my Linux without a complete reinstalling the system?
Something like "Delete this and this and than in this file this lines..."
A link to a desciption is wellcome.

HERE TEH STORY:
I isntall it on an Ubuntu-Linux using db2setup.
Selecting only the minimum (required).
All configs at default (user db2inst etc..)
so far so fine.. ..for a while..
But i dont respect one Law: "Never touch a running system!".

I find the db2cc.
It was not usable with my default user, only if i switch to db2inst1 and run db2cc i can use it.
But i remember that i can give during setup an current user as instance owner.

So I start db2setup, make new istance with my current user and try to start with db2start.
Short message like "Intern System Error" was the result.
No more.
No information.
All google dont help.
Than I try
db2_deinstall
=> error
Im following innstructins.
On db2idrop i got my Problem.
db2idrop db2inst1 or my second instance give no result.
Message was just success but nothing happend.
db2ilist show me my 2 instances and
db2_deinstall tell my it dont work bacause there are instances.

At last i delete /opt/ibm and $HOME/sqllib complete
find . -name ibm
and
find . -name db2
give no more result
/etc/services entry deleted
but i think, i forgot a config file elsewhere...
Dont know to this time.

So i install db2 agin.
Now with my normal user as instance Owner.
But the result of db2start was the same..
db2ilist shows me 2 Instances.
So i know i forgot to delete something.
But WHAT?

I test on VirtualBox a new install of Ubuntu with just only db2 and db2inst1 as instance owner => it works fine.
But to connect the host system to a gues system is an other story...
And not realy a solution.

Uuntu 9.10
DB2 9.7 C-Express

Greetings
Desian
Reply With Quote
  #2 (permalink)  
Old 12-03-09, 08:36
desian desian is offline
Registered User
 
Join Date: Dec 2009
Posts: 14
Info: My Ubuntu is an 64 Bit-System.
In istalled all on an other Computer an Ubuntu-64 and have same problems.
Than in try the 32 Bit Version and (Wonder) it works fine.
Of course I used 64bit DB2 on 64bit Ubuntu and 32bit BD2 on 32bit ubuntu.
On my Ubuntu 64 Develop PC i have the problem, that i cant reinstall... all the tools.... it need a week...
Any Ideas?
Reply With Quote
  #3 (permalink)  
Old 12-03-09, 15:49
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You could use "db2idrop" (in directory "/opt/ibm/db2/V9.5/instance/" or similar) and remove the remaining instances. Once that is done, db2_deinstall should work just fine. That's at least the proper process.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #4 (permalink)  
Old 12-03-09, 21:43
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
You may also check if the global registry file contains any information for your instances, the file location should be - /var/db2/global.reg

Prior to v9.7, instance info was also stored in profiles.reg (instance profile registry file), but it should no longer exist according to v9.7 manual. You may still want to check... it'll be under the db2 installation path, if it exists.
Reply With Quote
  #5 (permalink)  
Old 12-04-09, 02:24
desian desian is offline
Registered User
 
Join Date: Dec 2009
Posts: 14
@db2girl:
That helps a bit.
now i can install and uninstall db2 how much i want

So far.. ok.
But with new install i have trubble.
Last output was: (sry, my system call it me in german)
DB2-install log
after this I try
db2admin starrt => success
db2start => SQL1042C Unerwarteter Systemfehler.

No message else.
I have no idea where i can look to solve the problem.
system log says "localhost kernel: [ 1806.730412] db2havend32[1876]: segfault at 0 ip 0000000008075a47 sp 00000000ffae8408 error 4 in db2havend32[8048000+1a2000]"
But it says me nothing, just a segmentation fault, but dint know why it happend.

Tested on clean 64bit system and my develop pc (64 bit to)

Greetings
Desian
Reply With Quote
  #6 (permalink)  
Old 12-04-09, 14:22
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Try installing using db2_install. If it's successful, use db2icrt to create the instance.
Reply With Quote
  #7 (permalink)  
Old 12-04-09, 17:51
Lenny77 Lenny77 is offline
Registered User
 
Join Date: Jul 2009
Location: NY
Posts: 886
Question

Quote:
Originally Posted by db2girl View Post
Try installing using db2_install. If it's successful, use db2icrt to create the instance.
db2girl <==> DBAgirl
Lenny
Reply With Quote
  #8 (permalink)  
Old 12-05-09, 02:55
desian desian is offline
Registered User
 
Join Date: Dec 2009
Posts: 14
@db2girl:
You made my day!
Thx!
Dont was looking at last, there is any instance...
But written..

But something irritate me.
db2start
SQL5043N Support for one or more communications protocols failed to start successfully. However, core database manager functionality started successfully.

Don't know..
Is it a paproblem?
However, i can create a table and make a select from.
Im happy for now
Reply With Quote
  #9 (permalink)  
Old 12-05-09, 13:57
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
I suggest that you start to read the manual. It describes the installation procedure, and if you look up SQL5043, you will find:
Quote:
User Response

The database manager attempts to start all communication protocols specified by the DB2COMM environment variable.

Check the administration notification log for details on this error. The log will contain more information on the cause of the error and also which communication protocol(s) did not start successfully.

This error only affects communication protocols specified by the DB2COMM environment variable.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #10 (permalink)  
Old 12-05-09, 17:57
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by Lenny77 View Post
DBAgirl
my past and hopefully future
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On