###sample 0:安装GI 和DB soft 都成功,如何回退DB soft

[opdb@pdbdb01:/db/db/app/db/product/11204/deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /db/db/app/oraInventory/logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############

######################### CHECK OPERATION START #########################
## [START] Install check configuration ##

Checking for existence of the Oracle home location /db/db/app/db/product/11204
Oracle Home type selected for deinstall is: Oracle Real Application Cluster Database
Oracle Base selected for deinstall is: /db/db/app/db
Checking for existence of central inventory location /db/db/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /db/db/grid/11.2.0
The following nodes are part of this cluster: pdbdb01,pdbdb02
Checking for sufficient temp space availability on node(s) : 'pdbdb01,pdbdb02'

## [END] Install check configuration ##

Network Configuration check config START

Network de-configuration trace file location: /db/db/app/oraInventory/logs/netdc_check2019-04-26_08-33-43-PM.log

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /db/db/app/oraInventory/logs/databasedc_check2019-04-26_08-33-46-PM.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 []:
Database Check Configuration END

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /db/db/app/oraInventory/logs/emcadc_check2019-04-26_08-33-59-PM.log

Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /db/db/app/oraInventory/logs//ocm_check1132.log
Oracle Configuration Manager check END

######################### CHECK OPERATION END #########################

####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /db/db/grid/11.2.0
The cluster node(s) on which the Oracle home deinstallation will be performed are:pdbdb01,pdbdb02
Oracle Home selected for deinstall is: /db/db/app/db/product/11204
Inventory Location where the Oracle home registered is: /db/db/app/oraInventory
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
pdbdb01 : Oracle Home exists with CCR directory, but CCR is not configured
pdbdb02 : Oracle Home exists with CCR directory, but CCR is not configured
CCR check is finished
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/db/db/app/oraInventory/logs/deinstall_deconfig2019-04-26_08-33-30-PM.out'
Any error messages from this session will be written to: '/db/db/app/oraInventory/logs/deinstall_deconfig2019-04-26_08-33-30-PM.err'

######################## CLEAN OPERATION START ########################

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /db/db/app/oraInventory/logs/emcadc_clean2019-04-26_08-33-59-PM.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: /db/db/app/oraInventory/logs/databasedc_clean2019-04-26_08-34-20-PM.log

Network Configuration clean config START

Network de-configuration trace file location: /db/db/app/oraInventory/logs/netdc_clean2019-04-26_08-34-20-PM.log

De-configuring Listener configuration file on all nodes...
Listener configuration file de-configured successfully.

De-configuring Naming Methods configuration file on all nodes...
Naming Methods configuration file de-configured successfully.

De-configuring Local Net Service Names configuration file on all nodes...
Local Net Service Names configuration file de-configured successfully.

De-configuring Directory Usage configuration file on all nodes...
Directory Usage configuration file de-configured successfully.

De-configuring backup files on all nodes...
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 : /db/db/app/oraInventory/logs//ocm_clean1132.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 '/db/db/app/db/product/11204' from the central inventory on the local node : Done

Failed to delete the directory '/db/db/app/db/product/11204'. The directory is in use.
Delete directory '/db/db/app/db/product/11204' on the local node : Failed <<<<

Failed to delete the directory '/db/db/app/db/product/11204'. The directory is in use.
Failed to delete the directory '/db/db/app/db/product/11204'. The directory is in use.
Failed to delete the directory '/db/db/app/db/product'. The directory is not empty.
Failed to delete the directory '/db/db/app/db'. The directory is not empty.
Delete directory '/db/db/app/db' on the local node : Failed <<<<

Detach Oracle home '/db/db/app/db/product/11204' from the central inventory on the remote nodes 'pdbdb02' : Done

Delete directory '/db/db/app/db/product/11204' on the remote nodes 'pdbdb02' : Failed <<<<

Could not remove listed directories based on '/tmp/OraInstall2019-04-26_08-34-26-PM/installRemoveDirFile.lst' from nodes 'pdbdb02'. [PRKC-1083 : Failed to remove listed directory in "/tmp/OraInstall2019-04-26_08-34-26-PM/installRemoveDirFile.lst" to any of the given nodes "pdbdb02 ".
Error on node pdbdb02:rm: 0653-609 Cannot remove /db/db/app/db/product/11204/.
The file access permissions do not allow the specified action.]

Error on node pdbdb02:rm: 0653-609 Cannot remove /db/db/app/db/product/11204/.
The file access permissions do not allow the specified action.]

Delete directory '/db/db/app/db' on the remote nodes 'pdbdb02' : Failed <<<<

The directory '/db/db/app/db' could not be deleted on the nodes 'pdbdb02'.
Oracle Universal Installer cleanup completed with errors.

Oracle Universal Installer clean END

## [START] Oracle install clean ##

Clean install operation removing temporary directory '/tmp/deinstall2019-04-26_08-33-12PM' on node 'pdbdb01'
Clean install operation removing temporary directory '/tmp/deinstall2019-04-26_08-33-12PM' on node 'pdbdb02'

## [END] Oracle install clean ##

######################### CLEAN OPERATION END #########################

####################### CLEAN OPERATION SUMMARY #######################
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 '/db/db/app/db/product/11204' from the central inventory on the local node.
Failed to delete directory '/db/db/app/db/product/11204' on the local node.
Failed to delete directory '/db/db/app/db' on the local node.
Successfully detached Oracle home '/db/db/app/db/product/11204' from the central inventory on the remote nodes 'pdbdb02'.
Failed to delete directory '/db/db/app/db/product/11204' on the remote nodes 'pdbdb02'.
Failed to delete directory '/db/db/app/db' on the remote nodes 'pdbdb02'.
Oracle Universal Installer cleanup completed with errors.

Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################

############# ORACLE DEINSTALL & DECONFIG TOOL END #############

###sampe 1: 安装GI 失败,如何回退GI SOFT

GOAL

In 11gR2, deinstall is the recommended tool to deinstall an Oracle Clusterware(Grid Infrastructure) home, however it does not apply to certain scenarios or failures in some cases.

This notes provides instruction to manually remove current/active clusterware home.

Before removing current/active clusterware home, it's necessary to deconfigure Grid Infrastructure, refer to note 1377349.1 for steps.

To remove pre-upgrade clusterware home after successful upgrade to newer GI version, refer to note 1346305.1

SOLUTION

Before removing current/active clusterware home, it's necessary to deconfigure Grid Infrastructure, refer to note 1377349.1 for steps

To remove a home, as clusterware user execute the following on any node:

export ORACLE_HOME=<clusterware-home>

## detach ORACLE_HOME
$ORACLE_HOME/oui/bin/runInstaller -detachHome -silent ORACLE_HOME=$ORACLE_HOME

## confirm $ORACLE_HOME is removed from central inventory:
$ORACLE_HOME/OPatch/opatch lsinventory -all

## remove files in ORACLE_HOME manually on all nodes
/bin/rm -rf $ORACLE_HOME               ##>> if grid user fails to remove all files, switch to root user

unset ORACLE_HOME

If it fails for any reason, as clusterware user execute the following on all nodes:

export ORACLE_HOME=<clusterware-home>

## detach ORACLE_HOME
$ORACLE_HOME/oui/bin/runInstaller -detachHome -silent -local ORACLE_HOME=$ORACLE_HOME

## confirm $ORACLE_HOME is removed from central inventory:
$ORACLE_HOME/OPatch/opatch lsinventory -all

## remove files in ORACLE_HOME manually
/bin/rm -rf $ORACLE_HOME               ##>> if grid user fails to remove all files, switch to root user

unset ORACLE_HOME

 
 
 
 

How to Deinstall Oracle Clusterware Home Manually的更多相关文章

  1. 【总文档】rac增加新节点的方法步骤 How to Add Node/Instance or Remove Node/Instance in 10gR2, 11gR1, 11gR2 and 12c Oracle Clusterware and RAC

    [总文档]How to Add Node/Instance or Remove Node/Instance in 10gR2, 11gR1, 11gR2 and 12c Oracle Clusterw ...

  2. How to Modify Public Network Information including VIP in Oracle Clusterware (文档 ID 276434.1)

    APPLIES TO: Oracle Database - Enterprise Edition - Version 11.2.0.3 to 12.1.0.2 [Release 11.2 to 12. ...

  3. ORACLE clusterware组成

    oracle cluterware是一个单独的安装包,一旦安装部署好后,每个节点上的oracle cluterware会自动启动,oracle cluterware的运行环境由两个磁盘文件,若干后台进 ...

  4. oracle卸载Oracle Clusterware(转载)

    1.脚本自动删除 切换到root用户 $Su – root #cd $ORA_CRS_HOME/install 1.执行rootdelete.sh脚本 # ./rootdelete.sh 2.执行ro ...

  5. How to Install/Deinstall Oracle Workspace Manager (文档 ID 263428.1)

    In this Document   Goal   Solution   References APPLIES TO: Workspace Manager - Version 9.0.1.0 to 1 ...

  6. deinstall oracle 11g on linux

    deinstall oracle 11g on linux   From 11gR2, oracle provide us an deinstall tool. With that now we ca ...

  7. Reboot-less node fencing in Oracle Clusterware 11g Release 2

    在进行一次RAC的高可用性测试时,当private网卡的网线被拔掉之后,没有出现传说中的有一个节点被CRS强制重启,取而代之的是node2上面的ASM实例和RDBMS实例被关闭:当网线被重新插上时,n ...

  8. 为Oracle Clusterware修改公用及私有网络接口

    出于种种原因我们可能需要为已安装的Oracle集群软件修改其使用的公用或私有网络所使用的网络接口(How to Change Interconnect/Public Interface IP or S ...

  9. What is Split Brain in Oracle Clusterware and Real Application Cluster (文档 ID 1425586.1)

    In this Document   Purpose   Scope   Details   1. Clusterware layer   2. Real Application Cluster (d ...

随机推荐

  1. Servlet面试题

    Servlet运行在Servlet容器中,其生命周期由容器来管理.Servlet的生命周期通过javax.servlet.Servlet接口中的init().service()和destroy()方法 ...

  2. 移动开发iOS&Android对比学习--异步处理

    在移动开发里很多时候需要用到异步处理.Android的主线程如果等待超过一定时间的时候直接出现ANR(对不熟悉Android的朋友这里需要解释一下什么叫ANR.ANR就是Application Not ...

  3. Ubuntu使用tzselect修改时区

    1.命令行运行 sudo tzselect 2.选择洲区(这里选择亚洲Asia) waichung@desktop:~$ sudo tzselect [sudo] password for waich ...

  4. 机器学习及其matlab实现—从基础到实践

    第1周 MATLAB入门基础 第2周 MATLAB进阶与提高 第3周 BP神经网络 第4周 RBF.GRNN和PNN神经网络 第5周 竞争神经网络与SOM神经网络 第6周 支持向量机(Support ...

  5. Verilog MIPS32 CPU(四)-- RAM

    Verilog MIPS32 CPU(一)-- PC寄存器 Verilog MIPS32 CPU(二)-- Regfiles Verilog MIPS32 CPU(三)-- ALU Verilog M ...

  6. NLP常用开源/免费工具

    一些常见的NLP任务的开源/免费工具, *Computational Linguistics ToolboxCLT http://complingone.georgetown.edu/~linguis ...

  7. 二十三、MongoDb 数据库介绍、安装、启动和连接(非关系型数据库)

    1.数据库和文件的主要区别 1. 数据库有数据库表.行和列的概念,让我们存储操作数据更方便2. 数据库提供了非常方便的接口,可以让 nodejs.php java .net 很方便的实现增加修改删除功 ...

  8. BAT机器学习面试1000题系列(41-45题)

    41.线性分类器与非线性分类器的区别以及优劣 如果模型是参数的线性函数,并且存在线性分类面,那么就是线性分类器,否则不是.常见的线性分类器有:LR,贝叶斯分类,单层感知机.线性回归常见的非线性分类器: ...

  9. “全栈2019”Java第四十七章:继承与方法

    难度 初级 学习时间 10分钟 适合人群 零基础 开发语言 Java 开发环境 JDK v11 IntelliJ IDEA v2018.3 文章原文链接 "全栈2019"Java第 ...

  10. python基础,变量,if语句

     一.python初识 python是一门 解释型弱类型编程语言. 特点: 简单.明确.优雅 二.python的解释器 CPython. 官方提供的. 内部使用c语言来实现 PyPy. 一次性把我们的 ...