卸载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 #############
相关文章
|
25天前
|
SQL Oracle 关系型数据库
Oracle数据库优化方法
【10月更文挑战第25天】Oracle数据库优化方法
33 7
|
25天前
|
Oracle 关系型数据库 数据库
oracle数据库技巧
【10月更文挑战第25天】oracle数据库技巧
26 6
|
25天前
|
存储 Oracle 关系型数据库
Oracle数据库优化策略
【10月更文挑战第25天】Oracle数据库优化策略
21 5
|
1月前
|
存储 Oracle 关系型数据库
数据库数据恢复—Oracle ASM磁盘组故障数据恢复案例
Oracle数据库数据恢复环境&故障: Oracle ASM磁盘组由4块磁盘组成。Oracle ASM磁盘组掉线 ,ASM实例不能mount。 Oracle数据库故障分析&恢复方案: 数据库数据恢复工程师对组成ASM磁盘组的磁盘进行分析。对ASM元数据进行分析发现ASM存储元数据损坏,导致磁盘组无法挂载。
|
1月前
|
监控 Oracle 关系型数据库
Oracle数据库性能优化
【10月更文挑战第16天】Oracle数据库性能优化是
31 1
|
14天前
|
SQL 关系型数据库 MySQL
12 PHP配置数据库MySQL
路老师分享了PHP操作MySQL数据库的方法,包括安装并连接MySQL服务器、选择数据库、执行SQL语句(如插入、更新、删除和查询),以及将结果集返回到数组。通过具体示例代码,详细介绍了每一步的操作流程,帮助读者快速入门PHP与MySQL的交互。
29 1
|
16天前
|
SQL 关系型数据库 MySQL
go语言数据库中mysql驱动安装
【11月更文挑战第2天】
30 4
|
1月前
|
存储 关系型数据库 MySQL
Mysql(4)—数据库索引
数据库索引是用于提高数据检索效率的数据结构,类似于书籍中的索引。它允许用户快速找到数据,而无需扫描整个表。MySQL中的索引可以显著提升查询速度,使数据库操作更加高效。索引的发展经历了从无索引、简单索引到B-树、哈希索引、位图索引、全文索引等多个阶段。
64 3
Mysql(4)—数据库索引
|
23天前
|
监控 关系型数据库 MySQL
数据库优化:MySQL索引策略与查询性能调优实战
【10月更文挑战第27天】本文深入探讨了MySQL的索引策略和查询性能调优技巧。通过介绍B-Tree索引、哈希索引和全文索引等不同类型,以及如何创建和维护索引,结合实战案例分析查询执行计划,帮助读者掌握提升查询性能的方法。定期优化索引和调整查询语句是提高数据库性能的关键。
119 1
|
25天前
|
关系型数据库 MySQL Linux
在 CentOS 7 中通过编译源码方式安装 MySQL 数据库的详细步骤,包括准备工作、下载源码、编译安装、配置 MySQL 服务、登录设置等。
本文介绍了在 CentOS 7 中通过编译源码方式安装 MySQL 数据库的详细步骤,包括准备工作、下载源码、编译安装、配置 MySQL 服务、登录设置等。同时,文章还对比了编译源码安装与使用 RPM 包安装的优缺点,帮助读者根据需求选择最合适的方法。通过具体案例,展示了编译源码安装的灵活性和定制性。
77 2

推荐镜像

更多
下一篇
无影云桌面