Results 1 to 10 of 10
  1. #1
    Join Date
    Dec 2009
    Posts
    14

    Unanswered: 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

  2. #2
    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?

  3. #3
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    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

  4. #4
    Join Date
    Aug 2008
    Location
    Toronto, Canada
    Posts
    2,367
    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.

  5. #5
    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

  6. #6
    Join Date
    Aug 2008
    Location
    Toronto, Canada
    Posts
    2,367
    Try installing using db2_install. If it's successful, use db2icrt to create the instance.

  7. #7
    Join Date
    Jul 2009
    Location
    NY
    Posts
    963

    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

  8. #8
    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

  9. #9
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    I suggest that you start to read the manual. It describes the installation procedure, and if you look up SQL5043, you will find:
    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

  10. #10
    Join Date
    Aug 2008
    Location
    Toronto, Canada
    Posts
    2,367
    Quote Originally Posted by Lenny77 View Post
    DBAgirl
    my past and hopefully future

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •