卸载Oracle软件和数据库(deinstall)

简介: 可以使用deinstall命令停止和删除Oracle数据库主目录中的Oracle数据库软件和组件。

可以使用deinstall命令停止和删除Oracle数据库主目录中的Oracle数据库软件和组件。

可以使用卸载来删除以下软件:


Oracle数据库

Oracle网格基础架构,包括Oracle集群件和Oracle自动存储管理(Oracle ASM)

Oracle真实应用集群(Oracle RAC)

Oracle数据库客户端

可以在Oracle主目录中使用deinstall命令。它位于$ORACLE_HOME/deinstall目录中。deinstall通过使用Oracle主目录中的信息和用户提供的信息来创建响应文件。用户可以使用之前通过使用-checkonly选项运行deinstall命令生成的响应文件。用户还可以编辑响应文件模板。

如果运行deinstall来删除Oracle Grid Infrastructure安装,则卸载程序会提示用户以root用户身份运行deinstall命令。对于集群的Oracle网格基础设施,脚本是rootcrs.sh,对于独立服务器的Oracle网格基础设施(Oracle Restart),脚本是roothas.sh。


[oracle@oracleace ~]$ cd $ORACLE_HOME
[oracle@oracleace dbhome_1]$ ./deinstall/deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2022-03-19_09-01-47AM/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /opt/oracle/product/19c/dbhome_1
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /opt/oracle
Checking for existence of central inventory location /opt/oracle/oraInventory
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2022-03-19_09-01-47AM/logs/netdc_check2022-03-19_09-02-08AM.log
Specify all Single Instance listeners that are to be de-configured. Enter .(dot) to deselect all. [LISTENER]:
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /tmp/deinstall2022-03-19_09-01-47AM/logs/databasedc_check2022-03-19_09-02-08AM.log
Use comma as separator when specifying list of values as input
Specify the list of database names that are configured in this Oracle home [ORCLCDB]: 
###### For Database 'ORCLCDB' ######
Single Instance Database
The diagnostic destination location of the database: /opt/oracle/diag/rdbms/orclcdb
Storage type used by the Database: FS
Database file location: /opt/oracle/oradata/ORCLCDB
Fast recovery area location: Does not exist
database spfile location: /opt/oracle/product/19c/dbhome_1/dbs/spfileORCLCDB.ora
The details of database(s) ORCLCDB have been discovered automatically. Do you still want to modify the details of ORCLCDB database(s)? [n]: 
Database Check Configuration END
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /opt/oracle/product/19c/dbhome_1
Inventory Location where the Oracle home registered is: /opt/oracle/oraInventory
Following Single Instance listener(s) will be de-configured: LISTENER
The following databases were selected for de-configuration. The databases will be deleted and will not be useful upon de-configuration : ORCLCDB
Database unique name : ORCLCDB
Storage used : FS
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/tmp/deinstall2022-03-19_09-01-47AM/logs/deinstall_deconfig2022-03-19_09-02-05-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2022-03-19_09-01-47AM/logs/deinstall_deconfig2022-03-19_09-02-05-AM.err'
######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /tmp/deinstall2022-03-19_09-01-47AM/logs/databasedc_clean2022-03-19_09-02-08AM.log
Database Clean Configuration START ORCLCDB
This operation may take few minutes.
Database Clean Configuration END ORCLCDB
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2022-03-19_09-01-47AM/logs/netdc_clean2022-03-19_09-02-08AM.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 Naming Methods configuration file...
Naming Methods configuration file 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
######################### DECONFIG CLEAN OPERATION END #########################
####################### DECONFIG CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : ORCLCDB
Following Single Instance listener(s) were de-configured successfully: LISTENER
#######################################################################
############# ORACLE DECONFIG TOOL END #############
Using properties file /tmp/deinstall2022-03-19_09-01-47AM/response/deinstall_2022-03-19_09-02-05-AM.rsp
Location of logs /tmp/deinstall2022-03-19_09-01-47AM/logs/
############ ORACLE DEINSTALL TOOL START ############
####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/tmp/deinstall2022-03-19_09-01-47AM/logs/deinstall_deconfig2022-03-19_09-02-05-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2022-03-19_09-01-47AM/logs/deinstall_deconfig2022-03-19_09-02-05-AM.err'
######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to oracleace
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2022-03-19_09-01-47AM/oraInst.loc
Setting oracle.installer.local to false
## [END] Preparing for Deinstall ##
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START
Detach Oracle home '/opt/oracle/product/19c/dbhome_1' from the central inventory on the local node : Done
Delete directory '/opt/oracle/product/19c/dbhome_1' on the local node : Done
Delete directory '/opt/oracle/oraInventory' on the local node : Done
Failed to delete the directory '/opt/oracle'. Either user has no permission to delete or it is in use.
Delete directory '/opt/oracle' on the local node : Failed <<<<
Oracle Universal Installer cleanup completed with errors.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
## [END] Oracle install clean ##
######################### DEINSTALL CLEAN OPERATION END #########################
####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/opt/oracle/product/19c/dbhome_1' from the central inventory on the local node.
Successfully deleted directory '/opt/oracle/product/19c/dbhome_1' on the local node.
Successfully deleted directory '/opt/oracle/oraInventory' on the local node.
Failed to delete directory '/opt/oracle' on the local node due to error : Either user has no permission to delete or file is in use.
Review the permissions and manually delete '/opt/oracle' on local node.
Oracle Universal Installer cleanup completed with errors.
Run 'rm -r /etc/oraInst.loc' as root on node(s) 'oracleace' at the end of the session.
Run 'rm -r /opt/ORCLfmap' as root on node(s) 'oracleace' at the end of the session.
Run 'rm -r /etc/oratab' as root on node(s) 'oracleace' at the end of the session.
Review the permissions and contents of '/opt/oracle' on nodes(s) 'oracleace'.
If there are no Oracle home(s) associated with '/opt/oracle', manually delete '/opt/oracle' and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL TOOL END #############
相关文章
|
4天前
|
存储 自然语言处理 Oracle
Oracle数据库字符集概述及修改方式
【8月更文挑战第15天】Oracle 数据库字符集定义了数据的编码方案,决定可存储的字符类型及其表示方式。主要作用包括数据存储、检索及跨系统传输时的正确表示。常见字符集如 AL32UTF8 支持多语言,而 WE8MSWIN1252 主用于西欧语言。修改字符集风险高,可能导致数据问题,需事先备份并评估兼容性。可通过 ALTER DATABASE 语句直接修改或采用导出-导入数据的方式进行。完成后应验证数据完整性。此操作复杂,须谨慎处理。
|
8天前
|
Oracle 关系型数据库 MySQL
Mysql和Oracle数据库死锁查看以及解决
【8月更文挑战第11天】本文介绍了解决MySQL与Oracle数据库死锁的方法。MySQL可通过`SHOW ENGINE INNODB STATUS`查看死锁详情,并自动回滚一个事务解除死锁;也可手动KILL事务。Oracle则通过查询V$LOCK与V$SESSION视图定位死锁,并用`ALTER SYSTEM KILL SESSION`命令终止相关会话。预防措施包括遵循ACID原则、优化索引及拆分大型事务。
|
11天前
|
监控 Oracle 关系型数据库
"深度剖析:Oracle SGA大小调整策略——从组件解析到动态优化,打造高效数据库性能"
【8月更文挑战第9天】在Oracle数据库性能优化中,系统全局区(SGA)的大小调整至关重要。SGA作为一组共享内存区域,直接影响数据库处理能力和响应速度。本文通过问答形式介绍SGA调整策略:包括SGA的组成(如数据缓冲区、共享池等),如何根据负载与物理内存确定初始大小,手动调整SGA的方法(如使用`ALTER SYSTEM`命令),以及利用自动内存管理(AMM)特性实现智能调整。调整过程中需注意监控与测试,确保稳定性和性能。
22 2
|
1天前
|
数据采集 Oracle 关系型数据库
实时计算 Flink版产品使用问题之怎么实现从Oracle数据库读取多个表并将数据写入到Iceberg表
实时计算Flink版作为一种强大的流处理和批处理统一的计算框架,广泛应用于各种需要实时数据处理和分析的场景。实时计算Flink版通常结合SQL接口、DataStream API、以及与上下游数据源和存储系统的丰富连接器,提供了一套全面的解决方案,以应对各种实时计算需求。其低延迟、高吞吐、容错性强的特点,使其成为众多企业和组织实时数据处理首选的技术平台。以下是实时计算Flink版的一些典型使用合集。
|
6天前
|
存储 关系型数据库 MySQL
MySQL——数据库备份上传到阿里云OSS存储
MySQL——数据库备份上传到阿里云OSS存储
23 0
|
1天前
|
SQL 存储 关系型数据库
数据库-MySQL-01(一)
数据库-MySQL-01(一)
13 4
|
6天前
|
缓存 NoSQL Redis
一天五道Java面试题----第九天(简述MySQL中索引类型对数据库的性能的影响--------->缓存雪崩、缓存穿透、缓存击穿)
这篇文章是关于Java面试中可能会遇到的五个问题,包括MySQL索引类型及其对数据库性能的影响、Redis的RDB和AOF持久化机制、Redis的过期键删除策略、Redis的单线程模型为何高效,以及缓存雪崩、缓存穿透和缓存击穿的概念及其解决方案。
|
1天前
|
SQL 存储 关系型数据库
数据库-MySQL-03
数据库-MySQL-03
8 0
|
1天前
|
SQL 数据库
数据库-MySQL-02(二)
数据库-MySQL-02(二)
5 0
|
1天前
|
SQL 关系型数据库 MySQL
数据库-MySQL-02(一)
数据库-MySQL-02(一)
8 0

推荐镜像

更多