卸载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 #############
相关文章
|
10月前
|
Oracle 关系型数据库 Linux
【赵渝强老师】Oracle数据库配置助手:DBCA
Oracle数据库配置助手(DBCA)是用于创建和配置Oracle数据库的工具,支持图形界面和静默执行模式。本文介绍了使用DBCA在Linux环境下创建数据库的完整步骤,包括选择数据库操作类型、配置存储与网络选项、设置管理密码等,并提供了界面截图与视频讲解,帮助用户快速掌握数据库创建流程。
852 93
|
9月前
|
Oracle 关系型数据库 Linux
【赵渝强老师】使用NetManager创建Oracle数据库的监听器
Oracle NetManager是数据库网络配置工具,用于创建监听器、配置服务命名与网络连接,支持多数据库共享监听,确保客户端与服务器通信顺畅。
461 0
|
存储 Oracle 关系型数据库
服务器数据恢复—光纤存储上oracle数据库数据恢复案例
一台光纤服务器存储上有16块FC硬盘,上层部署了Oracle数据库。服务器存储前面板2个硬盘指示灯显示异常,存储映射到linux操作系统上的卷挂载不上,业务中断。 通过storage manager查看存储状态,发现逻辑卷状态失败。再查看物理磁盘状态,发现其中一块盘报告“警告”,硬盘指示灯显示异常的2块盘报告“失败”。 将当前存储的完整日志状态备份下来,解析备份出来的存储日志并获得了关于逻辑卷结构的部分信息。
|
10月前
|
SQL Oracle 关系型数据库
Oracle数据库创建表空间和索引的SQL语法示例
以上SQL语法提供了一种标准方式去组织Oracle数据库内部结构,并且通过合理使用可以显著改善查询速度及整体性能。需要注意,在实际应用过程当中应该根据具体业务需求、系统资源状况以及预期目标去合理规划并调整参数设置以达到最佳效果。
659 8
|
SQL Oracle 关系型数据库
比较MySQL和Oracle数据库系统,特别是在进行分页查询的方法上的不同
两者的性能差异将取决于数据量大小、索引优化、查询设计以及具体版本的数据库服务器。考虑硬件资源、数据库设计和具体需求对于实现优化的分页查询至关重要。开发者和数据库管理员需要根据自身使用的具体数据库系统版本和环境,选择最合适的分页机制,并进行必要的性能调优来满足应用需求。
556 11
|
Oracle 关系型数据库 数据库
数据库数据恢复—服务器异常断电导致Oracle数据库报错的数据恢复案例
Oracle数据库故障: 某公司一台服务器上部署Oracle数据库。服务器意外断电导致数据库报错,报错内容为“system01.dbf需要更多的恢复来保持一致性”。该Oracle数据库没有备份,仅有一些断断续续的归档日志。 Oracle数据库恢复流程: 1、检测数据库故障情况; 2、尝试挂起并修复数据库; 3、解析数据库文件; 4、导出并验证恢复的数据库文件。
|
存储 Oracle 关系型数据库
【赵渝强老师】Oracle RMAN的目录数据库
Oracle RMAN默认将备份元信息存储在控制文件中,但控制文件损坏或丢失会导致恢复失败,且备份增多会使控制文件无限增长。为解决这些问题,Oracle引入了RMAN目录数据库(Catalog Database),专门用于存储RMAN备份的元信息。使用目录数据库可提升备份管理效率,支持多数据库共享、长期备份历史记录存储,并可保存RMAN脚本。本文详细介绍了如何创建目录数据库、注册目标数据库及其操作步骤。
358 0
|
存储 Oracle 关系型数据库
oracle数据恢复—oracle数据库执行错误truncate命令的数据恢复案例
oracle数据库误执行truncate命令导致数据丢失是一种常见情况。通常情况下,oracle数据库误操作删除数据只需要通过备份恢复数据即可。也会碰到一些特殊情况,例如数据库备份无法使用或者还原报错等。下面和大家分享一例oracle数据库误执行truncate命令导致数据丢失的数据库数据恢复过程。
|
SQL 数据库
软考软件评测师——数据库系统应用
本文介绍了关系数据库的基础知识与应用,涵盖候选码定义、自然连接特点、实体间关系(如1:n和m:n)、属性分类(复合、多值与派生属性)以及数据库设计规范。同时详细解析了E-R图转换原则、范式应用(如4NF)及Armstrong公理体系。通过历年真题分析,结合具体场景(如银行信用卡额度、教学管理等),深入探讨了候选键求解、视图操作规范及SQL语句编写技巧。内容旨在帮助读者全面掌握关系数据库理论与实践技能。

推荐镜像

更多