229 lines
4.2 KiB
HTML
229 lines
4.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Removing DB2 Express-C</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="IBM DB2 Express-C for Linux HOWTO"
|
|
HREF="index.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Installing the DB2 Information Center"
|
|
HREF="help.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Using DB2 "
|
|
HREF="using.html"></HEAD
|
|
><BODY
|
|
CLASS="sect1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>IBM DB2 Express-C for Linux HOWTO</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="help.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
></TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="using.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="uninstalling"
|
|
></A
|
|
>19. Removing DB2 Express-C</H1
|
|
><P
|
|
>Uninstalling DB2 Express-C is a bit more detailed than the installation
|
|
process. Unfortunately, at this time, there is no GUI-based uninstaller
|
|
utility like there is for installation. Follow the steps below to completely
|
|
remove the DB2 Express-C software from your system. Since the database files
|
|
are kept in the home directory of the instance user, you can keep the database
|
|
files by skipping the removal of the instance owner (the last step).</P
|
|
><P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Remove the Database Administration Server. Switch to the DAS owner
|
|
(dasusr1 by default), either through the <B
|
|
CLASS="command"
|
|
>su - dasusr1</B
|
|
>
|
|
command or by logging in to the system directly as the DAS user, and issue
|
|
the command <B
|
|
CLASS="command"
|
|
>db2admin stop</B
|
|
>. Then switch to the root
|
|
user, and issue the
|
|
<B
|
|
CLASS="command"
|
|
>/opt/ibm/db2/V9.1/instance/dasdrop</B
|
|
> command.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Remove the DB2 instance(s). Switch to the instance owner
|
|
(db2inst1 by default), either through the <B
|
|
CLASS="command"
|
|
>su - db2inst1</B
|
|
>
|
|
command or by logging in to the system directly as the instance user, and
|
|
issue the command <B
|
|
CLASS="command"
|
|
>db2stop</B
|
|
>. Then, as root, remove the
|
|
instance by issuing the <B
|
|
CLASS="command"
|
|
>/opt/ibm/db2/V9.1/instance/db2idrop
|
|
db2_instance</B
|
|
> command, where <TT
|
|
CLASS="varname"
|
|
>db2_instance</TT
|
|
>
|
|
refers to the actual instance name you want to drop (for example,
|
|
/opt/ibm/db2/V9.1/instance/db2idrop db2inst1). If you want to verify which
|
|
instances are present on your system, run the
|
|
<B
|
|
CLASS="command"
|
|
>/opt/ibm/db2/V9.1/instance/db2ilist</B
|
|
> command.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Remove the software installation. As root, run the
|
|
<B
|
|
CLASS="command"
|
|
>/opt/ibm/db2/V9.1/install/db2_deinstall -a</B
|
|
> command. This will
|
|
remove the installation of DB2 from your system.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>If no longer need the DB2 database files (which are kept in the home
|
|
directory of the instance owner), you can remove the users that were
|
|
created during the installation of DB2 Express-C by entering these commands
|
|
as root:<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="screen"
|
|
>userdel -r db2inst1
|
|
userdel -r dasusr1
|
|
userdel -r db2fenc1</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>(If you created different user names during
|
|
installation, substitute as necessary.)</P
|
|
></LI
|
|
></OL
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="help.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="using.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Installing the DB2 Information Center</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Using DB2</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |