a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 101|回复: 0

[考试辅导] 怎样用静默方式删除oracle软件

[复制链接]
发表于 2012-8-4 14:06:19 | 显示全部楼层 |阅读模式
在linux下卸载oracle软件比较简单,可以简单的把相关目录删除掉,然后清理一下/etc下oracle相关的文件就可以。   
0 A: _% s3 _7 l' x+ S% J但还是有必要了解一下如何通过工具来卸载。   2 f! Z* b9 E1 V* `4 R- I
! d, Z/ |2 j* ^( E+ X/ K, W- Y

) g7 E1 v. I  k8 |* W0 y  w! W' [1、首先配置响应文件   0 k% X  H- r. d% i: l8 f
如下是一个响应文件例子:   
9 M% Z6 u8 P7 F( Y. _* m% c+ B[root@suk1 response]# more uninstall.rsp   
6 Q  k# A1 v7 J) ?6 L& F9 P#-------------------------------------------   
3 a; \  z0 {$ v) P- r/ n: r#响应文件的版本   
# t1 p8 U; A0 S4 n. T* dRESPONSEFILE_VERSION=2.2.1.0.0   $ h; ^+ g* \( Y1 V1 z6 z
#oracle用户组   2 v7 x/ v4 x/ T1 w: i( s0 y
UNIX_GROUP_NAME=oinstall   ; n: D! A$ M( u4 s1 q$ E- ?
#ORACLE_HOME的完整路径   : J! q0 R4 n6 |3 v+ G
ORACLE_HOME="/opt/oracle/product/10g"   0 h& S" P' {6 @9 n+ [$ t
#ORACLE_HOME名称   
6 Z" F0 i! \) n; U0 ?/ \ORACLE_HOME_NAME="OraDb10g_home1"   
! W$ b: [0 `7 \6 U* H! l$ ODEINSTALL_LIST={"oracle.server","10.2.0.1.0"}   " D; P& \. k  ^6 D# `( @: }+ N3 i
#设置dba组名   " D0 F6 b5 a* k$ O
s_nameForDBAGrp=oinstall   
$ C$ g, \- m1 ?8 s% @#设置oper组名   & {$ w8 _; z( `4 Z- I3 \
s_nameForOPERGrp=oinstal   . s$ Z/ a5 R$ R
#--------------------------------------------   
9 C& z! ]) U- n4 L2 L! r: d以上参数根据实际情况休修改。   
& V& ^5 Q2 I0 C  L# Y- I2、在oracle用户下卸载   
! S; P, ]& B/ ~4 U& l8 q[oracle@suk1 database]$ ./runInstaller -silent -deinstall -removeallfiles -removeAllPatches "REMOVE_HOMES={$ORACLE_HOME}" -responseFile /soft/database/response/uninstall.rsp   
$ m! U4 m! q+ P7 ?0 C" n# x* r( aStarting Oracle Universal Installer...   
, q% Z; S' B$ p% a# oChecking installer requirements...   
8 P! v; B7 f/ G9 _& @Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2   & T& R, _7 F" V" ^
Passed   & w; X# ?, i* Y; V" _5 C

/ g4 a2 C# [2 S! U& `7 LAll installer requirements met.   
8 s9 W( n" _9 L$ D3 Y' u" t+ U; ^; \1 T/ bPreparing to launch Oracle Universal Installer from /tmp/OraInstall2007-11-06_06-07-45PM. Please wait ...[oracle@suk1 database]$ Oracle Universal Installer, Version 10.2.0.1.0 Production   
8 H; k6 ~( M; |Copyright (C) 1999, 2005, Oracle. All rights reserved.   
" S( `( q) `0 x6 ZStarting deinstall   
' Q- Z+ u1 n$ t' \) p, k9 u4 W" p3 F
Deinstall in progress (Tue Nov 06 18:07:58 CST 2007)   # G. C! ?9 s- u+ j$ h5 k
WARNING:The directory: /opt/oracle/product/10g will be deleted after deinstall.   
( m$ i1 ?: e$ C* g4 F! z- AClick on "Yes" to continue.    6 E. `  B; R) B9 L% ?! J5 M
Click on "No" to perform deinstall without deleting the directory.    6 @( a9 ~9 Y( W7 \  \
Click on "Cancel" to go back to "Inventory Dialog".   
$ c. v: K8 X8 S/ o# M0 qConfiguration assistant "Oracle Database Configuration Assistant" succeeded   
0 A) z0 Y3 a! M% SConfiguration assistant "Oracle Net Configuration Assistant - Deinstall Script" failed   
" i4 @( G! G  t+ B4 w# e3 j: C.......................................................................................... 100% Done.   0 z0 ]( z1 Y% V2 I: [+ L
Deinstall successful   
" ?0 F$ q, n( s; r% {7 SEnd of install phases.(Tue Nov 06 18:08:50 CST 2007)  
9 h: ~9 G, ?$ |# `7 v& F& r  A) fEnd of deinstallations  
8 @/ L1 e( \! T4 k& yPlease check ’/opt/oracle/oraInventory/logs/silentInstall2007-11-06_06-07-45PM.log’ for more details.  * b2 R* Z3 y+ N
命令执行完后,oracle会把oracle_home和/usr/bin下的相关文件都删除。  ; l7 W) Q! S8 d3 `
步骤很简单,这里也简单记录一下。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-7 21:28 , Processed in 0.303816 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表