deinstall静默卸载数据库软件

简介:

一、deinstall使用帮助

1、deinstall命令路径

deinstall路径并不在PATH环境变量里面,我们直接是无法使用的,它在数据库安装目录下面的deinstall目录里面,我这里的路径是/u01/app/oracle/product/11.2.0/dbhome_1/deinstall/deinstall。

2、deinstall使用帮助

1
2
3
4
5
6
7
8
9
10
11
$ . /deinstall  -help
deinstall
                [ -silent ]
                [ -checkonly ]
                [ - local  ]
                [ -paramfile <complete path of input parameter properties  file > ]
                [ -params <name1=value[ name2=value name3=value ...]> ]
                [ -o <complete path of directory  for  saving files> ]
                [ -tmpdir <complete path of temporary directory to use> ]
                [ -logdir <complete path of log directory to use> ]
                [ -help : Type -help to get  more  information on each of the above options. ]

  -silent:静默方式;

  -checkonly:检查获取参数文件

  -paramfile:数据库参数文件

3、checkonly检查

    在检查过程中的选项可以直接回车略过,会在最后生成我们需要的参数文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected  for  deinstall is:  /u01/app/oracle/product/11 .2.0 /dbhome_1
Inventory Location where the Oracle home registered is:  /u01/app/oraInventory
Following Single Instance listener(s) will be de-configured: LISTENER
The following databases were selected  for  de-configuration : orcl
Database unique name : orcl
Storage used : FS
No Enterprise Manager configuration to be updated  for  any database(s)
No Enterprise Manager ASM targets to update
No Enterprise Manager listener targets to migrate
Checking the config status  for  CCR
Oracle Home exists with CCR directory, but CCR is not configured
CCR check is finished
A log of this session will be written to:  '/tmp/deinstall2015-11-09_11-28-59AM/logs/deinstall_deconfig2015-11-09_11-29-05-AM.out'
Any error messages from this session will be written to:  '/tmp/deinstall2015-11-09_11-28-59AM/logs/deinstall_deconfig2015-11-09_11-29-05-AM.err'
############# ORACLE DEINSTALL & DECONFIG TOOL END #############

“/tmp/deinstall2015-11-09_11-28-59AM/”这个就是我们获取的目录。


二、数据库软件静默卸载

1
$ . /deinstall  -silent -paramfile  /tmp/deinstall2015-11-09_11-28-59AM/response/deinstall_OraDb11g_home1 .rsp

一下是执行命令之后的过程情况

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Checking  for  required files and bootstrapping ...
Please wait ...
Using properties  file  /tmp/deinstall2015-11-09_11-28-59AM/response/deinstall_OraDb11g_home1 .rsp
Location of logs  /tmp/deinstall2015-11-09_11-28-59AM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking  for  existence of the Oracle home location  /u01/app/oracle/product/11 .2.0 /dbhome_1
Oracle Home  type  selected  for  deinstall is: Oracle Single Instance Database
Oracle Base selected  for  deinstall is:  /u01/app/oracle
Checking  for  existence of central inventory location  /u01/app/oraInventory
Checking  for  sufficient temp space availability on node(s) :  'adscan01.wzlinux.com'
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace  file  location:  /tmp/deinstall2015-11-09_11-28-59AM/logs/netdc_check2015-11-09_11-32-27-AM .log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace  file  location:  /tmp/deinstall2015-11-09_11-28-59AM/logs/databasedc_check2015-11-09_11-32-27-AM .log
###### For Database 'orcl' ######
Single Instance Database
The diagnostic destination location of the database:  /u01/app/oracle/diag/rdbms/orcl
Storage  type  used by the Database: FS
Database  file  location:  /data/oradata/orcl , /u01/app/oracle/fast_recovery_area/orcl
Fast recovery area location:  /u01/app/oracle/fast_recovery_area/ORCL
database spfile location:  /u01/app/oracle/product/11 .2.0 /dbhome_1/dbs/spfileorcl .ora
Database Check Configuration END
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace  file  location:  /tmp/deinstall2015-11-09_11-28-59AM/logs/emcadc_check2015-11-09_11-32-27-AM .log 
Checking configuration  for  database orcl
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log  file  location :  /tmp/deinstall2015-11-09_11-28-59AM/logs//ocm_check7092 .log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected  for  deinstall is:  /u01/app/oracle/product/11 .2.0 /dbhome_1
Inventory Location where the Oracle home registered is:  /u01/app/oraInventory
Following Single Instance listener(s) will be de-configured: LISTENER
The following databases were selected  for  de-configuration : orcl
Database unique name : orcl
Storage used : FS
No Enterprise Manager configuration to be updated  for  any database(s)
No Enterprise Manager ASM targets to update
No Enterprise Manager listener targets to migrate
Checking the config status  for  CCR
Oracle Home exists with CCR directory, but CCR is not configured
CCR check is finished
A log of this session will be written to:  '/tmp/deinstall2015-11-09_11-28-59AM/logs/deinstall_deconfig2015-11-09_11-32-25-AM.out'
Any error messages from this session will be written to:  '/tmp/deinstall2015-11-09_11-28-59AM/logs/deinstall_deconfig2015-11-09_11-32-25-AM.err'
######################## CLEAN OPERATION START ########################
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace  file  location:  /tmp/deinstall2015-11-09_11-28-59AM/logs/emcadc_clean2015-11-09_11-32-27-AM .log 
Updating Enterprise Manager ASM targets ( if  any)
Updating Enterprise Manager listener targets ( if  any)
Enterprise Manager Configuration Assistant END
Database de-configuration trace  file  location:  /tmp/deinstall2015-11-09_11-28-59AM/logs/databasedc_clean2015-11-09_11-32-29-AM .log
Database Clean Configuration START orcl
This operation may take few minutes.
Database Clean Configuration END orcl
Network Configuration clean config START
Network de-configuration trace  file  location:  /tmp/deinstall2015-11-09_11-28-59AM/logs/netdc_clean2015-11-09_11-36-40-AM .log
De-configuring Single Instance listener(s): LISTENER
De-configuring listener: LISTENER
     Stopping listener: LISTENER
     Listener stopped successfully.
     Deleting listener: LISTENER
     Listener deleted successfully.
Listener de-configured successfully.
De-configuring backup files...
Backup files de-configured successfully.
The network configuration has been cleaned up successfully.
Network Configuration clean config END
Oracle Configuration Manager clean START
OCM clean log  file  location :  /tmp/deinstall2015-11-09_11-28-59AM/logs//ocm_clean7092 .log
Oracle Configuration Manager clean END
Setting the force flag to  false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START
Detach Oracle home  '/u01/app/oracle/product/11.2.0/dbhome_1'  from the central inventory on the  local  node : Done
Delete directory  '/u01/app/oracle/product/11.2.0/dbhome_1'  on the  local  node : Done
Delete directory  '/u01/app/oraInventory'  on the  local  node : Done
Delete directory  '/u01/app/oracle'  on the  local  node : Done
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean  install  operation removing temporary directory  '/tmp/deinstall2015-11-09_11-32-19AM'  on node  '116'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : orcl
Following Single Instance listener(s) were de-configured successfully: LISTENER
Cleaning the config  for  CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
Successfully detached Oracle home  '/u01/app/oracle/product/11.2.0/dbhome_1'  from the central inventory on the  local  node.
Successfully deleted directory  '/u01/app/oracle/product/11.2.0/dbhome_1'  on the  local  node.
Successfully deleted directory  '/u01/app/oraInventory'  on the  local  node.
Successfully deleted directory  '/u01/app/oracle'  on the  local  node.
Oracle Universal Installer cleanup was successful.
Run  'rm -rf /etc/oraInst.loc'  as root on node(s)  '116'  at the end of the session.
Run  'rm -rf /etc/oratab'  as root on node(s)  '116'  at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############


至此,数据库和软件全部卸载完成。



     本文转自 wzlinux 51CTO博客,原文链接:http://blog.51cto.com/wzlinux/1710967,如需转载请自行联系原作者




相关文章
|
28天前
|
关系型数据库 MySQL 数据库
卸载云服务器上的 MySQL 数据库
卸载云服务器上的 MySQL 数据库
48 0
|
3月前
|
存储 监控 安全
内网屏幕监控软件的数据存储与管理:使用SQLite数据库保存监控记录和配置信息
在当今数字化时代,安全和监控在企业和组织中变得至关重要。内网屏幕监控软件作为一种关键工具,帮助组织监视员工的活动并确保信息安全。这种软件不仅需要高效地记录和管理监控数据,还需要能够方便地进行配置和调整。本文将讨论如何使用SQLite数据库来保存监控记录和配置信息,并介绍如何通过自动化机制将监控到的数据提交到指定网站。
184 2
|
6天前
|
存储 负载均衡 容灾
软件体系结构 - 关系数据库(4)分区
【4月更文挑战第27天】软件体系结构 - 关系数据库(4)分区
17 1
|
7天前
|
运维 负载均衡 监控
软件体系结构 - 关系数据库(3)主从架构
【4月更文挑战第26天】软件体系结构 - 关系数据库(3)主从架构
19 0
|
8天前
|
存储 SQL 缓存
软件体系结构 - 关系数据库(2)反规范化
【4月更文挑战第25天】软件体系结构 - 关系数据库(2)反规范化
14 1
|
8天前
|
存储 数据库
软件体系结构 - 关系数据库(1)规范化
【4月更文挑战第24天】软件体系结构 - 关系数据库(1)规范化
20 0
|
12天前
|
存储 SQL 数据库
软件体系结构 - 架构风格(10)数据库系统架构风格
【4月更文挑战第21天】软件体系结构 - 架构风格(10)数据库系统架构风格
27 0
|
14天前
|
存储 SQL Java
软件体系结构 - 嵌入式系统(3)- 嵌入式数据库
软件体系结构 - 嵌入式系统(3)- 嵌入式数据库
9 0
|
24天前
|
SQL 监控 数据库
数据库管理与电脑监控软件:SQL代码优化与实践
本文探讨了如何优化数据库管理和使用电脑监控软件以提升效率。通过SQL代码优化,如使用索引和调整查询语句,能有效提高数据库性能。同时,合理设计数据库结构,如数据表划分和规范化,也能增强管理效率。此外,利用Python脚本自动化收集系统性能数据,并实时提交至网站,可实现对电脑监控的实时性和有效性。这些方法能提升信息系统稳定性和可靠性,满足用户需求。
73 0
|
3月前
|
监控 关系型数据库 MySQL
PHP与MySQL的结合:实现局域网上网行为监控软件的数据库管理
在当今信息化时代,网络安全日益成为重要的话题。为了有效监控和管理局域网上网行为,开发一个基于PHP和MySQL的数据库管理系统是一个理想的选择。本文将介绍如何结合PHP和MySQL,开发一款简单而高效的局域网上网行为监控软件,并重点关注数据库管理方面的实现。
198 0