Edit D:\rfid\database\database\doc\install.112\e10843\deinstall.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Language" content="en" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta name="robots" content="all" scheme="http://www.robotstxt.org/" /> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = document) - Version 5.1.1 Build 026" /> <meta name="Date" content="2010-03-23T20:31:35Z" /> <meta name="doctitle" content="Oracle® Database Installation Guide 11g Release 2 (11.2) for Microsoft Windows" /> <meta name="partno" content="E10843-03" /> <meta name="docid" content="NTDBI" /> <link rel="Start" href="../../index.htm" title="Home" type="text/html" /> <link rel="Copyright" href="../../dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> <link rel="Stylesheet" href="../../dcommon/css/blafdoc.css" title="Default" type="text/css" /> <script type="text/javascript" src="../../dcommon/js/doccd.js"> </script> <link rel="Contents" href="toc.htm" title="Contents" type="text/html" /> <link rel="Index" href="index.htm" title="Index" type="text/html" /> <link rel="Glossary" href="glossary.htm" title="Glossary" type="text/html" /> <link rel="Prev" href="startrdb.htm" title="Previous" type="text/html" /> <link rel="Next" href="jbridge.htm" title="Next" type="text/html" /> <link rel="alternate" href="../e10843.pdf" title="PDF version" type="application/pdf" /> <title>Removing Oracle Database Software</title> </head> <body> <div class="header"> <div class="zz-skip-header"><a name="top" id="top" href="#BEGIN">Skip Headers</a></div> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="left" valign="top"><b>Oracle® Database Installation Guide<br /> 11<i>g</i> Release 2 (11.2) for Microsoft Windows</b><br /> Part Number E10843-03</td> <td valign="bottom" align="right"> <table class="icons oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="245"> <tr> <td align="center" valign="top"><a href="../../index.htm"><img width="24" height="24" src="../../dcommon/gifs/doclib.gif" alt="Go to Documentation Home" /><br /> <span class="icon">Home</span></a></td> <td align="center" valign="top"><a href="../../nav/portal_booklist.htm"><img width="24" height="24" src="../../dcommon/gifs/booklist.gif" alt="Go to Book List" /><br /> <span class="icon">Book List</span></a></td> <td align="center" valign="top"><a href="toc.htm"><img width="24" height="24" src="../../dcommon/gifs/toc.gif" alt="Go to Table of Contents" /><br /> <span class="icon">Contents</span></a></td> <td align="center" valign="top"><a href="index.htm"><img width="24" height="24" src="../../dcommon/gifs/index.gif" alt="Go to Index" /><br /> <span class="icon">Index</span></a></td> <td align="center" valign="top"><a href="../../dcommon/html/feedback.htm"><img width="24" height="24" src="../../dcommon/gifs/feedbck2.gif" alt="Go to Feedback page" /><br /> <span class="icon">Contact Us</span></a></td> </tr> </table> </td> </tr> </table> <hr /> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="left" valign="top"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="98"> <tr> <td align="center" valign="top"><a href="startrdb.htm"><img width="24" height="24" src="../../dcommon/gifs/leftnav.gif" alt="Go to previous page" /><br /> <span class="icon">Previous</span></a></td> <td align="center" valign="top"><a href="jbridge.htm"><img width="24" height="24" src="../../dcommon/gifs/rightnav.gif" alt="Go to next page" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </td> <td align="right" valign="top" style="font-size: 90%"><a href="../e10843.pdf">View PDF</a></td> </tr> </table> <a name="BEGIN" id="BEGIN"></a></div> <div class="IND"><!-- End Header --><a id="CIHDGGJJ" name="CIHDGGJJ"></a> <h1 class="chapter"><span class="secnum">7</span> <a name="NTDBI006" id="NTDBI006"></a>Removing Oracle Database Software</h1> <p>This chapter describes how to completely remove all Oracle databases, instances, and software from an Oracle home directory.</p> <p>The <code>deinstall</code> tool removes standalone Oracle Database installations, Oracle Clusterware and Automatic Storage Management (ASM) from your server, as well as Oracle Real Application Clusters (Oracle RAC) and Oracle Database client installations.</p> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <span class="italic"><a class="olink CWGEN" href="http://www.oracle.com/pls/db112/lookup?id=CWGEN">Oracle Grid Infrastructure Installation Guide</a></span> and <span class="italic"><a class="olink RIGEN" href="http://www.oracle.com/pls/db112/lookup?id=RIGEN">Oracle Real Application Clusters Installation Guide</a></span> for information on removing an Oracle RAC installation. <p>The "<a class="olink OSTMG25000" href="http://www.oracle.com/pls/db112/lookup?id=OSTMG25000">Dropping Disk Groups</a>" section in the <a class="olink OSTMG" href="http://www.oracle.com/pls/db112/lookup?id=OSTMG"><span class="italic">Oracle Database Storage Administrator's Guide</span></a> for information on removing an Automatic Storage Management disk group.</p> <p>If you want to remove an individual product, refer to the product-specific documentation for requirements and restrictions.</p> </div> <p>The following sections describe the tool, and provide information about additional options to use the tool:</p> <ul> <li> <p><a href="#BABDHEAE">About the Deinstallation Tool</a></p> </li> <li> <p><a href="#BABGBEEA">Downloading the Deinstallation Tool</a></p> </li> <li> <p><a href="#BABCAFAJ">Example of Running the Deinstall Command for an Oracle Database</a></p> </li> <li> <p><a href="#BABHIEJI">Example of a Deinstallation Parameter File for an Oracle Database</a></p> </li> <li> <p><a href="#BABCHCJH">Example of a Deinstallation Parameter File for Oracle Grid Infrastructure</a></p> </li> <li> <p><a href="#BABFGJIE">Removing Oracle Software</a></p> </li> </ul> <div class="infoboxnote"> <p class="notep1">Caution:</p> If you have a standalone database on a node in a cluster and you have multiple databases with the same global database name (GDN), then you cannot use the deinstall tool to remove one database only.</div> <a id="BABDHEAE" name="BABDHEAE"></a> <div class="sect1"> <h2 class="sect1"><span class="secnum">7.1</span> About the Deinstallation Tool<a id="sthref664" name="sthref664"></a></h2> <p>The Deinstallation Tool (<code>deinstall</code>) is available in the installation media before installation, and is available in Oracle home directories after installation. It is located in <code><span class="codeinlineitalic">ORACLE_HOME</span></code><code>\deinstall</code>.</p> <p>If you require the Deinstallation Tool (<code>deinstall</code>) to remove failed or incomplete installations, then it is available as a separate download from the Oracle Technology Network (OTN) Web site.</p> <div class="infoboxnotealso"> <p class="notep1">See Also:</p> <a href="#BABGBEEA">"Downloading the Deinstallation Tool"</a> for information on downloading the Deinstallation Tool from OTN</div> <p>The <code>deinstall</code> tool stops Oracle software, and removes Oracle software and configuration files on the operating system.</p> <p>The command uses the following syntax, where variable content is indicated by italics:</p> <pre xml:space="preserve" class="oac_no_warn">deinstall.bat -home <span class="italic">complete path of Oracle home</span> [-silent] [-checkonly] [-local] [-paramfile <span class="italic">complete path of input parameter property file</span>] [-params name1=<span class="italic">value</span> name2=<span class="italic">value</span> . . .] [-o <span class="italic">complete path of directory for saving files</span>] [-help | -h] </pre> <p>The options are:</p> <ul> <li> <p><code>-home</code></p> <p>Use this flag to indicate the home path of the Oracle home to check or deinstall. To deinstall Oracle software using the <code>deinstall</code> command in the Oracle home you plan to deinstall, provide a parameter file in another location, and do not use the <code>-home</code> flag.</p> <p>If you run deinstall from the <code>ORACLE_HOME\deinstall</code> path, then the <code>-home</code> flag is not required because the tool knows from which home it is being run. If you use the standalone version of the tool, then <code>-home</code> is mandatory.</p> </li> <li> <p><code>-silent</code></p> <p>Use this flag to run the command in silent or response file mode. If you use the <code>-silent</code> flag, then you must use the <code>-paramfile</code> flag, and provide a parameter file that contains the configuration values for the Oracle home to deinstall or deconfigure.</p> <p>You can generate a parameter file to use or modify by running <code>deinstall</code> with the <code>-checkonly</code> flag. The <code>deinstall</code> command then discovers information from the Oracle home to deinstall and deconfigure. It generates the properties file, which you can then use with the <code>-silent</code> option.</p> <p>You can also modify the template file <code>deinstall.rsp.tmpl</code>, located in the <code>response</code> folder.</p> </li> <li> <p><code>-checkonly</code></p> <p>Use this flag to check the status of the Oracle software home configuration. Running the command with the <code>-checkonly</code> flag does not remove the Oracle configuration. The <code>-checkonly</code> flag generates a parameter file that you can use with the <code>deinstall</code> command.</p> </li> <li> <p><code>-local</code></p> <p>Use this flag on a multinode environment to deinstall Oracle software in a cluster.</p> <p>When you run <code>deinstall</code> with this flag, it deconfigures and deinstalls the Oracle software on the local node (the node where <code>deinstall</code> is run). On remote nodes, it deconfigures Oracle software, but does not deinstall the Oracle software.</p> </li> <li> <p><code>-paramfile</code> <code><span class="codeinlineitalic">complete path of input parameter property file</span></code></p> <p>Use this flag to run <code>deinstall</code> with a parameter file in a location other than the default. When you use this flag, provide the complete path where the parameter file is located.</p> <p>The default location of the parameter file depends on the location of <code>deinstall</code>:</p> <ul> <li> <p>From the installation media or stage location: <code><span class="codeinlineitalic">ORACLE_HOME</span></code><code>\response</code>.</p> </li> <li> <p>From a unzipped archive file from OTN: <code><span class="codeinlineitalic">ziplocation</span></code><code>\response</code>.</p> </li> <li> <p>After installation from the installed Oracle home: <code>ORACLE_HOME\deinstall\response</code>.</p> </li> </ul> </li> <li> <p><code>-params</code> [<code>name1</code>=<code><span class="codeinlineitalic">value</span></code> <code>name 2</code>=<code><span class="codeinlineitalic">value</span></code> <code>name3</code>=<code><span class="codeinlineitalic">value</span></code> . . .]</p> <p>Use this flag with a parameter file to override one or more values to change in a parameter file you have already created.</p> </li> <li> <p><code>-o</code> <code><span class="codeinlineitalic">complete path of directory for saving files</span></code></p> <p>Use this flag to provide a path other than the default location where the properties file is saved. The default location is <code>\response\deinstall.rsp.tmpl</code>.</p> <p>The default location of the parameter file depends on the location of <code>deinstall</code>:</p> <ul> <li> <p>From the installation media or stage location before installation: <code><span class="codeinlineitalic">ORACLE_HOME\</span></code></p> </li> <li> <p>From an unzipped archive file from OTN: <code>\</code><code><span class="codeinlineitalic">ziplocation</span></code><code>\response\</code>.</p> </li> <li> <p>After installation from the installed Oracle home: <code><span class="codeinlineitalic">ORACLE_HOME</span></code><code>/deinstall/response</code>.</p> </li> </ul> </li> <li> <p><code>-help | -h</code></p> <p>Use the help option (<code>-help</code> or <code>-h</code>) to obtain additional information about the optional flags.</p> </li> </ul> </div> <!-- class="sect1" --> <a id="BABGBEEA" name="BABGBEEA"></a> <div class="sect1"> <h2 class="sect1"><span class="secnum">7.2</span> Downloading the Deinstallation Tool</h2> <p>To download the Deinstallation Tool from OTN:</p> <ol> <li> <p>Go to the following URL:</p> <p><code><a href="http://www.oracle.com/technology/software/products/database/index.html">http://www.oracle.com/technology/software/products/database/index.html</a></code></p> </li> <li> <p>Under <span class="bold">Oracle Database 11g Release 2</span>, click <span class="bold">See All</span> for the respective platform for which you want to download the Deinstallation Tool.</p> <p>The Deinstallation Tool is available for download after this page.</p> </li> </ol> </div> <!-- class="sect1" --> <a id="BABCAFAJ" name="BABCAFAJ"></a> <div class="sect1"> <h2 class="sect1"><span class="secnum">7.3</span> Example of Running the Deinstall Command for an Oracle Database</h2> <p>As the <code>deinstall.bat</code> command runs, you are prompted to provide the home directory of the Oracle software to remove from your system. Provide additional information as prompted.</p> <p>If you run the <code>deinstall</code> tool from the <code>deinstall.zip</code> file, you must include the <code>-home</code> flag, and the help is displayed. If you run the tool from the installed <code>ORACLE_HOME</code>, then <code>-home</code> flag is not required and deinstallation starts without prompting you for a home address.</p> <p>Use the optional flag <code>-paramfile</code> to provide a path to a parameter file.</p> <p>In the following example, the <code>deinstall.bat</code> command is in the path <code>C:</code>\<code>app\oracle\product\11.2.0\dbhome_1\deinstall</code>, and it uses a parameter file in the software owner location <code><span class="codeinlineitalic">%HOMEPATH%</span></code>:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">DRIVE_LETTER</span>:\> cd \app\oracle\product\11.2.0\dbhome_1\deinstall\ <span class="italic">DRIVE_LETTER</span>:\> deinstall.bat -paramfile %HOMEPATH%\my_db_paramfile.tmpl </pre> <p>For the grid infrastructure home, use the <code>deinstall.bat</code> script in the Oracle grid infrastructure for a standalone server home, which in this example is <code>C:\app\oracle\product\11.2.0\grid</code>:</p> <pre xml:space="preserve" class="oac_no_warn"><span class="italic">DRIVE_LETTER</span>:\> cd \app\oracle\product\11.2.0\grid\deinstall\ <span class="italic">DRIVE_LETTER</span>:\> deinstall.bat -paramfile %HOMEPATH%\my_grid_paramfile.tmpl </pre></div> <!-- class="sect1" --> <a id="BABHIEJI" name="BABHIEJI"></a> <div class="sect1"> <h2 class="sect1"><span class="secnum">7.4</span> Example of a Deinstallation Parameter File for an Oracle Database</h2> <p>You can run the deinstallation command on a standalone Oracle Database with the <code>-paramfile</code> option to use the values you specify in the parameter file. The following is an example of a parameter file, in which the Oracle Database binary owner is <code>oracle</code>, the Oracle Database home (Oracle home) is in the path <code>C:\app\oracle\product\11.2.0\dbhome_1</code>, the Oracle base (where other Oracle software is installed) is <code>C:\app\oracle</code>, the Oracle Inventory home is <code>C:\Program Files\Oracle\Inventory</code>, the virtual IP address (VIP) is <code>192.0.2.1</code>, and the local node (the node where you run the deinstallation session from) is <code>myserver</code>:</p> <pre xml:space="preserve" class="oac_no_warn">#Copyright (c) 2005, 2006 Oracle Corporation. All rights reserved. #Fri Jan 30 23:15:49 UTC 2009 ORACLE_BASE.orcl=C\:\\app\\oracle FLASH_RECOVERY_LOC.orcl=C\:\\app\\oracle\\flash_recovery_area STORAGE_TYPE.orcl=FS DB_TYPE.orcl=SI_DB ASM_HOME= ASM_LOCAL_SID= NETCA_LOCAL_LISTENERS=LISTENER LOGDIR=C\:\\app\\oracle\\product\\11.2.0\\dbhome_1\\deinstall\\logs\\ NODE_LIST.orcl=node1 ARCHIVE_LOG_DESTINATION_LOC.orcl= ORACLE_BASE=C\:\\app\\oracle OLD_ACTIVE_ORACLE_HOME= LOCAL_SID.orcl=orcl INVENTORY_LOCATION=C\:\\Program Files\\Oracle\\Inventory ASM_FILES.orcl= RAW_MAPPING_FILE.orcl= SID_LIST.orcl=orcl DB_UNIQUE_NAME_LIST=orcl DATAFILE_LOC.orcl=C\:\app\\oracle\\oradata\\orcl CRS_HOME=false HOME_TYPE=SIDB CREATION_MODE.orcl=y CONFIGFILE_LOC.orcl=C\:\\app\\oracle\\oradata\\orcl\\control01.ctl, C\:\\app\\oracle\\oradata\\orcl\\control02.ctl, C\:\\app\\oracle\\oradata\\orcl\\control03.ctl,C\:\\app\\oracle\\product\\11.2.0\\dbhome_1\\database\\dr1orcl.dat,C\:\\app\\oracle\\product\\11.2.0\\dbhome_1\\database\\dr2orcl.dat ORACLE_BINARY_OK=true local=false LOCAL_NODE=myserver SPFILE_LOC.orcl=C\:\\app\\oracle\\product\\11.2.0\\dbhome_1\\database\\spfileorcl.ora silent=false ORACLE_HOME=C\:\\app\\oracle\\product\\11.2.0\\dbhome_1 DISK_GROUPS.orcl= </pre></div> <!-- class="sect1" --> <a id="BABCHCJH" name="BABCHCJH"></a> <div class="sect1"> <h2 class="sect1"><span class="secnum">7.5</span> Example of a Deinstallation Parameter File for Oracle Grid Infrastructure</h2> <p>You can run the <code>deinstall</code> command on a Oracle grid infrastructure for a standalone server home with the <code>-paramfile</code> option to use the values you specify in the parameter file.</p> <p>The following is an example of a parameter file, in which the Oracle grid infrastructure binary owner is <code>oracle</code>, the Oracle grid infrastructure home is in the path <code>D\:\\app\\oracle</code>, the Oracle base (where other Oracle software is installed) is <code>D\:\\app\\11.2.0\\</code>, the central Oracle ometory home (<code>oraInventory</code>) is <code>C\:\\Program Files\\Oracle\\Inventory</code>, the virtual IP address (VIP) is <code>192.0.2.1</code>, the local node (the node where you are running the deinstallation session from) is <code>myserver</code>:</p> <pre xml:space="preserve" class="oac_no_warn">#Copyright (c) 2005, 2006 Oracle Corporation. All rights reserved. #Wed Feb 18 06:15:35 PST 2009 LOCAL_NODE=myserver HOME_TYPE=SIHA ASM_REDUNDANCY=NORMAL ORACLE_BASE=D\:\\app\\oracle SCAN_PORT=0 silent=false ASM_UPGRADE=false ORA_CRS_HOME=D\:\\app\\oracle\\product\\11.2.0\\grid GPNPCONFIGDIR=$ORACLE_HOME LOGDIR=D\:\\app\\oracle\\product\\11.2.0\\db_1\\deinstall\\logs\\ GPNPGCONFIGDIR=$ORACLE_HOME ORACLE_OWNER=Administrator CRS_STORAGE_OPTION=0 ORACLE_BINARY_OK=true NETCA_LISTENERS_REGISTERED_WITH_HAS=LISTENER ASM_ORACLE_BASE=D\:\\app\\oracle NETCFGJAR_NAME=netcfg.jar JREDIR=D\:\\app\\oracle\\product\\11.2.0\\grid\\jdk\\jre\\ ASM_DISK_GROUPS=DATA LANGUAGE_ID='AMERICAN_AMERICA.WE8MSWIN1252' CSS_LEASEDURATION=400 ASM_HOME=D\:\\app\\oracle\\product\\11.2.0\\grid ASM_DIAGNOSTIC_DEST=D\:\\app\\oracle SHAREJAR_NAME=share.jar HELPJAR_NAME=help4.jar SILENT=false local=false INVENTORY_LOCATION=C\:\\Program Files\\Oracle\\Inventory GNS_CONF=false JEWTJAR_NAME=jewt4.jar EMBASEJAR_NAME=oemlt.jar ASM_DISKS=\\\\.\\ORCLDISKDATA0,\\\\.\\ORCLDISKDATA1,\\\\.\\ORCLDISKDATA2 ORACLE_HOME=D\:\\app\\oracle\\product\\11.2.0\\grid CRS_HOME=true ASM_IN_HOME=y EWTJAR_NAME=ewt3.jar ASM_DROP_DISKGROUPS=true OLD_ACTIVE_ORACLE_HOME= ASM_LOCAL_SID=+ASM JLIBDIR=D\:\\app\\oracle\\product\\11.2.0\\grid\\jlib VNDR_CLUSTER=false ASM_DISK_GROUP=DATA </pre></div> <!-- class="sect1" --> <a id="BABFGJIE" name="BABFGJIE"></a> <div class="sect1"> <h2 class="sect1"><span class="secnum">7.6</span> Removing Oracle Software<a id="sthref665" name="sthref665"></a><a id="sthref666" name="sthref666"></a></h2> <p>Complete the following procedure to remove Oracle software:</p> <ol> <li> <p>Log in as the installation owner.</p> </li> <li> <p>Run the <code>deinstall</code> command, providing information about your servers as prompted.</p> </li> </ol> </div> <!-- class="sect1" --></div> <!-- class="ind" --> <div class="footer"> <hr /> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="33%" /> <col width="*" /> <col width="33%" /> <tr> <td align="left"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="98"> <tr> <td align="center" valign="top"><a href="startrdb.htm"><img width="24" height="24" src="../../dcommon/gifs/leftnav.gif" alt="Go to previous page" /><br /> <span class="icon">Previous</span></a></td> <td align="center" valign="top"><a href="jbridge.htm"><img width="24" height="24" src="../../dcommon/gifs/rightnav.gif" alt="Go to next page" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </td> <td style="font-size: 90%" align="center" class="copyrightlogo"><img width="144" height="18" src="../../dcommon/gifs/oracle.gif" alt="Oracle" /><br /> Copyright © 1996, 2010, Oracle and/or its affiliates. All rights reserved.<br /> <a href="../../dcommon/html/cpyr.htm">Legal Notices</a></td> <td align="right"> <table class="icons oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="245"> <tr> <td align="center" valign="top"><a href="../../index.htm"><img width="24" height="24" src="../../dcommon/gifs/doclib.gif" alt="Go to Documentation Home" /><br /> <span class="icon">Home</span></a></td> <td align="center" valign="top"><a href="../../nav/portal_booklist.htm"><img width="24" height="24" src="../../dcommon/gifs/booklist.gif" alt="Go to Book List" /><br /> <span class="icon">Book List</span></a></td> <td align="center" valign="top"><a href="toc.htm"><img width="24" height="24" src="../../dcommon/gifs/toc.gif" alt="Go to Table of Contents" /><br /> <span class="icon">Contents</span></a></td> <td align="center" valign="top"><a href="index.htm"><img width="24" height="24" src="../../dcommon/gifs/index.gif" alt="Go to Index" /><br /> <span class="icon">Index</span></a></td> <td align="center" valign="top"><a href="../../dcommon/html/feedback.htm"><img width="24" height="24" src="../../dcommon/gifs/feedbck2.gif" alt="Go to Feedback page" /><br /> <span class="icon">Contact Us</span></a></td> </tr> </table> </td> </tr> </table> </div> <noscript> <p>Scripting on this page enhances content navigation, but does not change the content in any way.</p> </noscript> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de