sunbo2011 发表于 2011-12-22 08:54

Oracle软件的安装与卸载(03)--- 手工卸载

<SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 14px/18px Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span>
<DIV><FONT face=LMWYKC+TimesNewRomanPSMT-Identity-H><FONT style="FONT-SIZE: 10pt">&nbsp;==================================================================<BR>/* &nbsp;</FONT></FONT><FONT face=OOGTIY+SimSun-Identity-H><FONT style="FONT-SIZE: 10pt">实验名:&nbsp;</FONT></FONT><FONT face=LMWYKC+TimesNewRomanPSMT-Identity-H><FONT style="FONT-SIZE: 10pt">Linux&nbsp;</FONT></FONT><FONT face=OOGTIY+SimSun-Identity-H><FONT style="FONT-SIZE: 10pt">下卸载&nbsp;</FONT></FONT><FONT face=LMWYKC+TimesNewRomanPSMT-Identity-H><FONT style="FONT-SIZE: 10pt">Oracle软件<SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px/18px Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><SPAN class=Apple-converted-space>&nbsp;</SPAN>&nbsp;&lt;手工方式&gt;</SPAN><BR>/* &nbsp; &nbsp;</FONT></FONT><FONT face=OOGTIY+SimSun-Identity-H><FONT style="FONT-SIZE: 10pt">环境:&nbsp;</FONT></FONT><FONT face=LMWYKC+TimesNewRomanPSMT-Identity-H><FONT style="FONT-SIZE: 10pt">RHEL5U5<BR>/* &nbsp;ORACLE: Oracle10gR2<BR>/* &nbsp; &nbsp;</FONT></FONT><FONT face=OOGTIY+SimSun-Identity-H><FONT style="FONT-SIZE: 10pt">日期:&nbsp;</FONT></FONT><FONT face=LMWYKC+TimesNewRomanPSMT-Identity-H><FONT style="FONT-SIZE: 10pt">2011-08-21<BR>/*<BR>===================================================================&nbsp;</FONT></FONT></DIV>
<DIV><FONT face=LMWYKC+TimesNewRomanPSMT-Identity-H><FONT style="FONT-SIZE: 10pt"><BR></FONT></FONT></DIV>
<DIV><FONT class=Apple-style-span size=3><SPAN style="FONT-SIZE: 14px" class=Apple-style-span>(1)清理内存</SPAN></FONT></DIV>
<DIV><FONT class=Apple-style-span size=3><SPAN style="FONT-SIZE: 14px" class=Apple-style-span></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT class=Apple-style-span size=3><SPAN style="FONT-SIZE: 14px" class=Apple-style-span><FONT color=#f00000 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 以oracle用户,</FONT></SPAN></FONT></DIV>
<DIV><FONT class=Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>&nbsp; &nbsp;<SPAN class=Apple-converted-space>&nbsp;</SPAN>&nbsp;<SPAN class=Apple-converted-space>&nbsp;</SPAN>第一步:&nbsp;查看是否存在oracle实例,及是否存在监听服务</FONT></DIV>
<DIV style="BORDER-BOTTOM: rgb(221,221,221) 1px solid; BORDER-LEFT: rgb(221,221,221) 1px solid; PADDING-BOTTOM: 0px; OVERFLOW-X: auto; OVERFLOW-Y: auto; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 0px 1.1em; PADDING-LEFT: 0px; WIDTH: 646px; PADDING-RIGHT: 0px; FONT: 12px Consolas, monospace; LETTER-SPACING: 0px; WORD-BREAK: break-all; BORDER-TOP: rgb(221,221,221) 1px solid; BORDER-RIGHT: rgb(221,221,221) 1px solid; PADDING-TOP: 0px; background-origin: initial; background-clip: initial" id=codeText class=codeText>
<OL style="PADDING-BOTTOM: 5px; LINE-HEIGHT: 1.3; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 1px 0px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: rgb(92,92,92); PADDING-TOP: 5px; background-origin: initial; background-clip: initial" class=dp-css>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial"><SPAN style="COLOR: rgb(0,0,0)">ps<SPAN class=Apple-converted-space>&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN>ef<SPAN class=Apple-converted-space>&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,204)">|</SPAN><SPAN class=Apple-converted-space>&nbsp;</SPAN>grep oracle</SPAN></LI></OL></DIV>
<DIV><BR></DIV>
<DIV>
<DIV>&nbsp; &nbsp; &nbsp;<FONT class=Apple-style-span size=2><SPAN class=Apple-converted-space>&nbsp;</SPAN>第二步:关闭监听服务 (如果存在)</FONT></DIV>
<DIV>
<DIV style="BORDER-BOTTOM: rgb(221,221,221) 1px solid; BORDER-LEFT: rgb(221,221,221) 1px solid; PADDING-BOTTOM: 0px; OVERFLOW-X: auto; OVERFLOW-Y: auto; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 0px 1.1em; PADDING-LEFT: 0px; WIDTH: 646px; PADDING-RIGHT: 0px; FONT: 12px Consolas, monospace; LETTER-SPACING: 0px; WORD-BREAK: break-all; BORDER-TOP: rgb(221,221,221) 1px solid; BORDER-RIGHT: rgb(221,221,221) 1px solid; PADDING-TOP: 0px; background-origin: initial; background-clip: initial" id=codeText class=codeText>
<OL style="PADDING-BOTTOM: 5px; LINE-HEIGHT: 1.3; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 1px 0px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: rgb(92,92,92); PADDING-TOP: 5px; background-origin: initial; background-clip: initial" class=dp-css>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial"><SPAN style="COLOR: rgb(0,0,0)">lsnrctl stop 监听名<SPAN class=Apple-converted-space>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT size=2><FONT color=#0000cc>-<SPAN style="COLOR: rgb(0,0,204)">-</SPAN></FONT><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">--</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">&gt;</SPAN>&nbsp;#&nbsp;</FONT></SPAN>或者直接kill这个进程</SPAN></LI></OL></DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT class=Apple-style-span size=2>&nbsp; &nbsp; &nbsp;<SPAN class=Apple-converted-space>&nbsp;</SPAN>第三步:关闭数据库实例&nbsp;(如果存在)</FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>
<DIV style="BORDER-BOTTOM: rgb(221,221,221) 1px solid; BORDER-LEFT: rgb(221,221,221) 1px solid; PADDING-BOTTOM: 0px; OVERFLOW-X: auto; OVERFLOW-Y: auto; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 0px 1.1em; PADDING-LEFT: 0px; WIDTH: 646px; PADDING-RIGHT: 0px; FONT: 12px Consolas, monospace; LETTER-SPACING: 0px; WORD-BREAK: break-all; BORDER-TOP: rgb(221,221,221) 1px solid; BORDER-RIGHT: rgb(221,221,221) 1px solid; PADDING-TOP: 0px; background-origin: initial; background-clip: initial" id=codeText class=codeText>
<OL style="PADDING-BOTTOM: 5px; LINE-HEIGHT: 1.3; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 1px 0px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: rgb(92,92,92); PADDING-TOP: 5px; background-origin: initial; background-clip: initial" class=dp-css>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial"><SPAN style="COLOR: rgb(0,0,0)">sqlplus<SPAN class=Apple-converted-space>&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,204)">/</SPAN><SPAN class=Apple-converted-space>&nbsp;</SPAN>as sysdba<BR></SPAN></LI>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial">SQL<SPAN style="COLOR: rgb(0,0,204)">&gt;</SPAN><FONT color=#5c5c5c><SPAN class=Apple-converted-space>&nbsp;</SPAN>shutdown immedate</FONT></LI></OL></DIV></FONT></DIV>
<DIV><BR></DIV>
<DIV>&nbsp; &nbsp; &nbsp;&nbsp;<FONT class=Apple-style-span size=2>第四步:检查操作结果</FONT></DIV>
<DIV>
<DIV style="BORDER-BOTTOM: rgb(221,221,221) 1px solid; BORDER-LEFT: rgb(221,221,221) 1px solid; PADDING-BOTTOM: 0px; OVERFLOW-X: auto; OVERFLOW-Y: auto; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 0px 1.1em; PADDING-LEFT: 0px; WIDTH: 646px; PADDING-RIGHT: 0px; FONT: 12px Consolas, monospace; LETTER-SPACING: 0px; WORD-BREAK: break-all; BORDER-TOP: rgb(221,221,221) 1px solid; BORDER-RIGHT: rgb(221,221,221) 1px solid; PADDING-TOP: 0px; background-origin: initial; background-clip: initial" id=codeText class=codeText>
<OL style="PADDING-BOTTOM: 5px; LINE-HEIGHT: 1.3; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 1px 0px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: rgb(92,92,92); PADDING-TOP: 5px; background-origin: initial; background-clip: initial" class=dp-css>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial"><SPAN style="COLOR: rgb(0,0,0)">ps<SPAN class=Apple-converted-space>&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN>ef<SPAN class=Apple-converted-space>&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,204)">|</SPAN><SPAN class=Apple-converted-space>&nbsp;</SPAN>grep oracle<SPAN class=Apple-converted-space>&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,204)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2>-<SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">--</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">&gt; <FONT color=#000000>#</FONT></SPAN>&nbsp;</FONT></SPAN>确认这些进程是否还存在</SPAN></LI></OL></DIV></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV><FONT size=3>(2)删除物理文件</FONT></DIV>
<DIV><BR></DIV>
<DIV>&nbsp; &nbsp; &nbsp;<FONT color=#f00000 size=2>以root用户,</FONT></DIV>
<DIV><BR></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; 第一步:删除/etc目录下的配置文件</FONT></DIV>
<DIV>
<DIV id=codeText class=codeText>
<OL style="PADDING-BOTTOM: 5px; MARGIN: 0px 1px 0px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 5px" class=dp-css>
<LI><SPAN style="COLOR: #000000">ll <SPAN style="COLOR: #0000cc">/</SPAN>etc<SPAN style="COLOR: #0000cc">/</SPAN> <SPAN style="COLOR: #0000cc">|</SPAN> grep ora&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><FONT color=#0000cc>-<SPAN style="COLOR: rgb(0,0,204)">-</SPAN></FONT><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">--</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">&gt; <FONT color=#000000>#</FONT></SPAN><FONT color=#0000cc>&nbsp;</FONT><FONT color=#000000>查看/etc目录下有哪些与ora相关的配置文件</FONT></FONT><BR></LI>
<LI><BR></LI>
<LI>rm <SPAN style="COLOR: #0000cc">-</SPAN>rf /etc/oraInst<SPAN style="COLOR: #0000cc">.</SPAN>loc&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #0000cc"><FONT size=2>-<SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">--</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">&gt; <FONT color=#000000>#</FONT></SPAN><FONT color=#0000cc>&nbsp;</FONT></FONT></SPAN>这个文件,是由orainstRoot<SPAN style="COLOR: #0000cc">.</SPAN>sh生成的<BR></LI>
<LI><BR></LI>
<LI>vim <SPAN style="COLOR: #0000cc">/</SPAN>etc<SPAN style="COLOR: #0000cc">/</SPAN>oratab&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT size=2><FONT color=#0000cc>-<SPAN style="COLOR: rgb(0,0,204)">-</SPAN></FONT><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">--</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">&gt; <FONT color=#000000>#</FONT></SPAN></FONT><FONT color=#0000cc size=2>&nbsp;<FONT color=#000000>这个文件及文件内容,由root</FONT><SPAN style="COLOR: #0000cc">.</SPAN><FONT color=#000000>sh生成的</FONT><BR></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><FONT color=#0000cc>-<SPAN style="COLOR: rgb(0,0,204)">-</SPAN></FONT><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">--</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">&gt; <FONT color=#000000>#</FONT></SPAN><FONT color=#0000cc>&nbsp;</FONT></FONT>删除此文件中对应的条目<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (如果只有这一个实例,直接删除oratab文件也可以)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<DIV id=codeText class=codeText>
<OL style="PADDING-BOTTOM: 5px; MARGIN: 0px 1px 0px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 5px" class=dp-css>
<LI><SPAN style="COLOR: #000000">#orcl<SPAN style="COLOR: #0000cc">:</SPAN><SPAN style="COLOR: #0000cc">/</SPAN>u01<SPAN style="COLOR: #0000cc">/</SPAN>app<SPAN style="COLOR: #0000cc">/</SPAN>oracle<SPAN style="COLOR: #0000cc">/</SPAN>product<SPAN style="COLOR: #0000cc">/</SPAN>10<SPAN style="COLOR: #0000cc">.</SPAN>2<SPAN style="COLOR: #0000cc">.</SPAN>0<SPAN style="COLOR: #0000cc">/</SPAN>db_1<SPAN style="COLOR: #0000cc">:</SPAN>N&nbsp;&nbsp;&nbsp;&nbsp;--<FONT size=2><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">&gt; <FONT color=#000000>#</FONT></SPAN><FONT color=#0000cc>&nbsp;</FONT></FONT>&nbsp;条目示例&nbsp; </SPAN></LI></OL></DIV></LI></SPAN></OL></DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; 第二步:删除/usr/local/bin目录下的shell脚本</FONT></DIV></DIV>
<DIV style="BORDER-BOTTOM: rgb(221,221,221) 1px solid; BORDER-LEFT: rgb(221,221,221) 1px solid; PADDING-BOTTOM: 0px; OVERFLOW-X: auto; OVERFLOW-Y: auto; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 0px 1.1em; PADDING-LEFT: 0px; WIDTH: 646px; PADDING-RIGHT: 0px; FONT: 12px Consolas, monospace; LETTER-SPACING: 0px; WORD-BREAK: break-all; BORDER-TOP: rgb(221,221,221) 1px solid; BORDER-RIGHT: rgb(221,221,221) 1px solid; PADDING-TOP: 0px; background-origin: initial; background-clip: initial" id=codeText class=codeText>
<OL style="PADDING-BOTTOM: 5px; LINE-HEIGHT: 1.3; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 1px 0px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: rgb(92,92,92); PADDING-TOP: 5px; background-origin: initial; background-clip: initial" class=dp-css>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial"><SPAN style="COLOR: rgb(0,0,0)">ll<SPAN class=Apple-converted-space>&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,204)">/</SPAN>usr<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>local<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>bin<SPAN style="COLOR: rgb(0,0,204)">/
<OL style="PADDING-BOTTOM: 5px; LINE-HEIGHT: 1.3; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 1px 0px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: rgb(92,92,92); PADDING-TOP: 5px; background-origin: initial; background-clip: initial" class=dp-css>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial">rm<SPAN class=Apple-converted-space><FONT color=#5c5c5c>&nbsp;</FONT></SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN>rf coraenv&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT size=2><FONT color=#0000cc>-<SPAN style="COLOR: rgb(0,0,204)">-</SPAN></FONT><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">--</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">&gt; <FONT color=#000000>#</FONT></SPAN><FONT color=#0000cc>&nbsp;</FONT></FONT><SPAN style="COLOR: rgb(0,0,0)">这三个文件,是由root<SPAN style="COLOR: rgb(0,0,204)">.</SPAN>sh创建的</SPAN><BR></LI>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial">rm<SPAN class=Apple-converted-space><FONT color=#5c5c5c>&nbsp;</FONT></SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN>rf dbhome<BR></LI>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial">rm<SPAN class=Apple-converted-space><FONT color=#5c5c5c>&nbsp;</FONT></SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN>rf oraenv</LI></OL></SPAN></SPAN></LI></OL></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; <FONT color=#f00000>以oracle用户,</FONT></FONT><BR></DIV>
<DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; 第三步:删除软件目录,及oracle资产登记目录</FONT></DIV></DIV>
<DIV>
<DIV style="BORDER-BOTTOM: rgb(221,221,221) 1px solid; BORDER-LEFT: rgb(221,221,221) 1px solid; PADDING-BOTTOM: 0px; OVERFLOW-X: auto; OVERFLOW-Y: auto; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 0px 1.1em; PADDING-LEFT: 0px; WIDTH: 646px; PADDING-RIGHT: 0px; FONT: 12px Consolas, monospace; LETTER-SPACING: 0px; WORD-BREAK: break-all; BORDER-TOP: rgb(221,221,221) 1px solid; BORDER-RIGHT: rgb(221,221,221) 1px solid; PADDING-TOP: 0px; background-origin: initial; background-clip: initial" id=codeText class=codeText>
<OL style="PADDING-BOTTOM: 5px; LINE-HEIGHT: 1.3; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 1px 0px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: rgb(92,92,92); PADDING-TOP: 5px; background-origin: initial; background-clip: initial" class=dp-css>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial"><SPAN style="COLOR: rgb(0,0,0)">rm<SPAN class=Apple-converted-space>&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN>rf<SPAN class=Apple-converted-space>&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,204)">/</SPAN>u01<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>app<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>oracle<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>product<SPAN style="COLOR: rgb(0,0,204)">/</SPAN><BR></SPAN></LI>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial">rm<SPAN class=Apple-converted-space><FONT color=#5c5c5c>&nbsp;</FONT></SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN>rf<SPAN class=Apple-converted-space><FONT color=#5c5c5c>&nbsp;</FONT></SPAN><SPAN style="COLOR: rgb(0,0,204)">/</SPAN>u01<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>app<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>oracle<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>oraInventory<SPAN style="COLOR: rgb(0,0,204)">/</SPAN></LI></OL></DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; 第四步:清理环境变量 (如果存在)</FONT></DIV></DIV>
<DIV>
<DIV style="BORDER-BOTTOM: rgb(221,221,221) 1px solid; BORDER-LEFT: rgb(221,221,221) 1px solid; PADDING-BOTTOM: 0px; OVERFLOW-X: auto; OVERFLOW-Y: auto; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 0px 1.1em; PADDING-LEFT: 0px; WIDTH: 646px; PADDING-RIGHT: 0px; FONT: 12px Consolas, monospace; LETTER-SPACING: 0px; WORD-BREAK: break-all; BORDER-TOP: rgb(221,221,221) 1px solid; BORDER-RIGHT: rgb(221,221,221) 1px solid; PADDING-TOP: 0px; background-origin: initial; background-clip: initial" id=codeText class=codeText>
<OL style="PADDING-BOTTOM: 5px; LINE-HEIGHT: 1.3; BACKGROUND-COLOR: rgb(255,255,255); MARGIN: 0px 1px 0px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: rgb(92,92,92); PADDING-TOP: 5px; background-origin: initial; background-clip: initial" class=dp-css>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial"><SPAN style="COLOR: rgb(0,0,0)">vim<SPAN class=Apple-converted-space>&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,204)">~</SPAN><SPAN style="COLOR: rgb(0,0,204)">/</SPAN><SPAN style="COLOR: rgb(0,0,204)">.</SPAN>bash_profile<SPAN class=Apple-converted-space>&nbsp;</SPAN><SPAN style="COLOR: rgb(0,0,204)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT size=2><SPAN style="COLOR: rgb(0,0,204)">--</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">-</SPAN><SPAN style="COLOR: rgb(0,0,204)">&gt; <FONT color=#000000>#</FONT></SPAN><FONT color=#0000cc>&nbsp;</FONT></FONT></SPAN>清理其中与oracle相关的内容<BR></SPAN></LI>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial"><BR></LI>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial">#TMP<SPAN style="COLOR: rgb(0,0,204)">=</SPAN><SPAN style="COLOR: rgb(0,0,204)">/</SPAN>tmp<SPAN style="COLOR: rgb(0,0,204)">;</SPAN>export TMP<BR></LI>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial">#TMPDIR<SPAN style="COLOR: rgb(0,0,204)">=</SPAN><SPAN style="COLOR: rgb(0,0,204)">$</SPAN>TMP<SPAN style="COLOR: rgb(0,0,204)">;</SPAN>export TMPDIR<BR></LI>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial">#ORACLE_BASE<SPAN style="COLOR: rgb(0,0,204)">=</SPAN><SPAN style="COLOR: rgb(0,0,204)">/</SPAN>u01<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>app<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>oracle<SPAN style="COLOR: rgb(0,0,204)">;</SPAN>export ORACLE_BASE<BR></LI>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial">#ORACLE_HOME<SPAN style="COLOR: rgb(0,0,204)">=</SPAN><SPAN style="COLOR: rgb(0,0,204)">$</SPAN>ORACLE_BASE<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>product<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>10<SPAN style="COLOR: rgb(0,0,204)">.</SPAN>2<SPAN style="COLOR: rgb(0,0,204)">.</SPAN>0<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>db_1<SPAN style="COLOR: rgb(0,0,204)">;</SPAN>export ORACLE_HOME<BR></LI>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial">#ORACLE_SID<SPAN style="COLOR: rgb(0,0,204)">=</SPAN>orcl<SPAN style="COLOR: rgb(0,0,204)">;</SPAN>export ORACLE_SID<BR></LI>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial">#LD_LIBRARY_PATH<SPAN style="COLOR: rgb(0,0,204)">=</SPAN><SPAN style="COLOR: rgb(0,0,204)">$</SPAN>ORACLE_HOME<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>lib<SPAN style="COLOR: rgb(0,0,204)">:</SPAN><SPAN style="COLOR: rgb(0,0,204)">/</SPAN>lib<SPAN style="COLOR: rgb(0,0,204)">:</SPAN><SPAN style="COLOR: rgb(0,0,204)">/</SPAN>usr<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>lib<SPAN style="COLOR: rgb(0,0,204)">;</SPAN>export LD_LIBRARY_PATH<BR></LI>
<LI style="BACKGROUND-COLOR: rgb(255,255,255); PADDING-LEFT: 10px; background-origin: initial; background-clip: initial">#PATH<SPAN style="COLOR: rgb(0,0,204)">=</SPAN><SPAN style="COLOR: rgb(0,0,204)">$</SPAN>ORACLE_HOME<SPAN style="COLOR: rgb(0,0,204)">/</SPAN>bin<SPAN style="COLOR: rgb(0,0,204)">:</SPAN><SPAN style="COLOR: rgb(0,0,204)">$</SPAN>PATH<SPAN style="COLOR: rgb(0,0,204)">;</SPAN>export PATH</LI></OL></DIV></DIV></DIV>
<P></SPAN>&nbsp;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (完结)</P>
页: [1]
查看完整版本: Oracle软件的安装与卸载(03)--- 手工卸载