oracle11g R2 grid和database卸载

2024-05-06 00:08

本文主要是介绍oracle11g R2 grid和database卸载,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

1、切换到oracle用户

进入$ORACLE_HOME

dg<*phydb*/u01/product/oracle/11.2.0/db_1/deinstall>$pwd

/u01/product/oracle/11.2.0/db_1/deinstall

dg<*phydb*/u01/product/oracle/11.2.0/db_1/deinstall>$./deinstall

Checking for required files andbootstrapping ...

Please wait ...

Location of logs /u01/oraInventory/logs/


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



######################## CHECK OPERATIONSTART ########################

Install check configuration START

Specify a valid location of central inventoryfor the Oracle home '/u01/product/oracle/11.2.0/db_1' that you want tode-install:/u01/oraInventory



Checking for existence of the Oracle homelocation /u01/product/oracle/11.2.0/db_1

Oracle Home type selected for de-installis: SIDB

Oracle Base selected for de-install is:/u01/product/oracle

Checking for existence of central inventorylocation /u01/oraInventory


Install check configuration END



Network Configuration check config START


Network de-configuration trace filelocation: /u01/oraInventory/logs/netdc_check4958584024441338327.log


Network Configuration check config END


Database Check Configuration START


Database de-configuration trace filelocation: /u01/oraInventory/logs/databasedc_check4107510055642147133.log


Use comma as separator when specifying listof values as input


Specify the list of database names that areconfigured in this Oracle home []:

Database Check Configuration END


Enterprise Manager Configuration AssistantSTART


EMCA de-configuration trace file location:/u01/oraInventory/logs/emcadc_check.log


Enterprise Manager Configuration AssistantEND

Oracle Configuration Manager check START

OCM check log file location :/u01/oraInventory/logs//ocm_check9309.log

Oracle Configuration Manager check END


######################### CHECK OPERATIONEND #########################



####################### CHECK OPERATIONSUMMARY #######################

Oracle Home selected for de-install is:/u01/product/oracle/11.2.0/db_1

Inventory Location where the Oracle homeregistered is: /u01/oraInventory

No Enterprise Manager configuration to beupdated for any database(s)

No Enterprise Manager ASM targets to update

No Enterprise Manager listener targets tomigrate

Checking the config status for CCR

Oracle Home exists with CCR directory, butCCR 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:'/u01/oraInventory/logs/deinstall_deconfig2014-09-13_09-27-51-PM.out'

Any error messages from this session willbe written to:'/u01/oraInventory/logs/deinstall_deconfig2014-09-13_09-27-51-PM.err'


######################## CLEAN OPERATIONSTART ########################


Enterprise Manager Configuration AssistantSTART


EMCA de-configuration trace file location:/u01/oraInventory/logs/emcadc_clean.log


Updating Enterprise Manager ASM targets (ifany)

Updating Enterprise Manager listenertargets (if any)

Enterprise Manager Configuration AssistantEND

Database de-configuration trace filelocation: /u01/oraInventory/logs/databasedc_clean7586758450062900489.log


Network Configuration clean config START


Network de-configuration trace filelocation: /u01/oraInventory/logs/netdc_clean1621651971831489725.log


De-configuring Local Net Service Namesconfiguration file...

Local Net Service Names configuration filede-configured successfully.


De-configuring backup files...

Backup files de-configured successfully.


The network configuration has been cleanedup successfully.


Network Configuration clean config END


Oracle Configuration Manager clean START

OCM clean log file location :/u01/oraInventory/logs//ocm_clean9309.log

Oracle Configuration Manager clean END

Oracle Universal Installer clean START


Detach Oracle home'/u01/product/oracle/11.2.0/db_1' from the central inventory on the local node: Done


Delete directory'/u01/product/oracle/11.2.0/db_1' on the local node : Done


The Oracle Base directory'/u01/product/oracle' will not be removed on local node. The directory is notempty.


Oracle Universal Installer cleanup wassuccessful.


Oracle Universal Installer clean END



Oracle install clean START


Clean install operation removing temporarydirectory '/tmp/install' on node 'dg'


Oracle install clean END


Moved default properties file/tmp/deinstall2014-09-13_09-26-52-PM/response/deinstall_OraDb11g_home1.rsp as/tmp/deinstall2014-09-13_09-26-52-PM/response/deinstall_OraDb11g_home1.rsp0


######################### CLEAN OPERATIONEND #########################



####################### CLEAN OPERATIONSUMMARY #######################

Cleaning the config for CCR

As CCR is not configured, so skipping thecleaning of CCR configuration

CCR clean is finished

Successfully detached Oracle home'/u01/product/oracle/11.2.0/db_1' from the central inventory on the local node.

Successfully deleted directory'/u01/product/oracle/11.2.0/db_1' on the local node.

Oracle Universal Installer cleanup wassuccessful.


Oracle install successfully cleaned up thetemporary directories.

#######################################################################



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


dg<*phydb*/u01/product/oracle/11.2.0/db_1/deinstall>$


2、手动清除余留目录

dg<*phydb*/u01/product/oracle>$ll

total 18252

-rw-r--r-- 1 oracle oinstall 18661376 Sep 13 06:33 control01.ctl

dg<*phydb*/u01/product/oracle>$pwd

/u01/product/oracle

[root@dg u01]# rm -rf product/


3、切换到grid用户

切换到主目录

[grid@dg deinstall]$ pwd

/u01/gridhome/deinstall

[grid@dg deinstall]$ ll

total 88

-rwxr-xr-x 1 grid oinstall 20658 Sep 12 01:05 deinstall*

-rwxr-xr-x 1 grid oinstall 3154 Jul 13 2009 deinstall.xml*

drwxr-xr-x 2 grid oinstall 4096 Sep 12 01:02 jlib/

drwxr-xr-x 2 grid oinstall 4096 Sep 12 01:02 response/

-rwxr-xr-x 1 grid oinstall 31544 Mar 31 2009 sshUserSetup.sh*

[grid@dg deinstall]$ ./deinstall

Checking for required files and bootstrapping ...

Please wait ...

Location of logs /tmp/deinstall2014-09-13_09-51-54-PM/logs/


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



######################## CHECK OPERATION START ########################

Install check configuration START



Checking for existence of the Oracle home location /u01/gridhome

Oracle Home type selected for de-install is: SIHA

Oracle Base selected for de-install is: /u01/gridbase

Checking for existence of central inventory location /u01/oraInventory

Checking for existence of the Oracle Grid Infrastructure home


Install check configuration END


Traces log file: /tmp/deinstall2014-09-13_09-51-54-PM/logs//crsdc.log


Network Configuration check config START


Network de-configuration trace file location: /tmp/deinstall2014-09-13_09-51-54-PM/logs/netdc_check5525246341005381654.log


Specify all Oracle Restart enabled listeners that are to be de-configured [LISTENER]:


Network Configuration check config END


Asm Check Configuration START


ASM de-configuration trace file location: /tmp/deinstall2014-09-13_09-51-54-PM/logs/asmcadc_check8564644702637227603.log


Specify the ASM Diagnostic Destination [ ]: /u01/gridhome

Specify the diskgroups that are managed by this ASM instance []: GRIDDG


De-configuring ASM will drop all the diskgroups at cleanup time. Do you want deconfig tool to drop the diskgroups y|n [y]: y



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



####################### CHECK OPERATION SUMMARY #######################

Oracle Grid Infrastructure Home is:

The cluster node(s) on which the Oracle home exists are: (Please input nodes seperated by ",", eg: node1,node2,...)null

Oracle Home selected for de-install is: /u01/gridhome

Inventory Location where the Oracle home registered is: /u01/oraInventory

Following Oracle Restart enabled listener(s) will be de-configured: LISTENER

ASM instance will be de-configured from this Oracle home

Do you want to continue (y - yes, n - no)? [n]: y

A log of this session will be written to: '/tmp/deinstall2014-09-13_09-51-54-PM/logs/deinstall_deconfig2014-09-13_09-52-40-PM.out'

Any error messages from this session will be written to: '/tmp/deinstall2014-09-13_09-51-54-PM/logs/deinstall_deconfig2014-09-13_09-52-40-PM.err'


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

ASM de-configuration trace file location: /tmp/deinstall2014-09-13_09-51-54-PM/logs/asmcadc_clean6191594684859328271.log

ASM Clean Configuration START

ASM deletion in progress. This operation may take few minutes.

ASM Clean Configuration END


Network Configuration clean config START


Network de-configuration trace file location: /tmp/deinstall2014-09-13_09-51-54-PM/logs/netdc_clean9104757993242154363.log


De-configuring Oracle Restart enabled listener(s): LISTENER


De-configuring listener: LISTENER

Stopping listener: LISTENER

Warning: Failed to stop listener. Listener may not be running.

Deleting listener: LISTENER

Listener deleted successfully.

Listener de-configured successfully.


De-configuring Listener configuration file...

Listener configuration file 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


Oracle Universal Installer clean START


Detach Oracle home '/u01/gridhome' from the central inventory on the local node : Done


Delete directory '/u01/gridhome' on the local node : Done


Delete directory '/u01/oraInventory' on the local node : Done


Delete directory '/u01/gridbase' on the local node : Done


Oracle Universal Installer cleanup was successful.


Oracle Universal Installer clean END



Oracle install clean START


Clean install operation removing temporary directory '/tmp/install' on node 'dg'


Oracle install clean END



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



####################### CLEAN OPERATION SUMMARY #######################

ASM instance was de-configured successfully from the Oracle home

Following Oracle Restart enabled listener(s) were de-configured successfully: LISTENER

Oracle Restart is stopped and de-configured successfully.

Successfully detached Oracle home '/u01/gridhome' from the central inventory on the local node.

Successfully deleted directory '/u01/gridhome' on the local node.

Successfully deleted directory '/u01/oraInventory' on the local node.

Successfully deleted directory '/u01/gridbase' on the local node.

Oracle Universal Installer cleanup was successful.



Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'dg' at the end of the session.


Oracle install successfully cleaned up the temporary directories.

#######################################################################



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


[grid@dg deinstall]$


4、手动清除余留

[root@dg /]# rm -rf /etc/oraInst.loc

[root@dg /]#


注意:

如果卸载grid时遇到如下问题:

ERROR: The deconfiguration and deinstallation tool has detected runtime errors when checking the existing configuration due to which the tool cannot continue with clean up operation. Please check the log files for more information. Rerun the tool after fixing the errors to proceed with the ORACLE_HOME clean up.

方法:

使用root用户登录在所有节点上注意运行"$ORA_CRS_HOME/crs/install/rootcrs.pl -verbose -deconfig -force"的命令,注意在最后一个节点不要运行该命令。举例来说如果你有2个节点的话,就只要在一个节点上运行上述命令即可,然后再最后的节点执行"$ORA_CRS_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode" 命令。如果只是单实例,那么只运行"$ORA_CRS_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode"即可。




参考:

http://lijianing.blog.51cto.com/8006772/1308025

这篇关于oracle11g R2 grid和database卸载的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/963030

相关文章

SQL中的外键约束

外键约束用于表示两张表中的指标连接关系。外键约束的作用主要有以下三点: 1.确保子表中的某个字段(外键)只能引用父表中的有效记录2.主表中的列被删除时,子表中的关联列也会被删除3.主表中的列更新时,子表中的关联元素也会被更新 子表中的元素指向主表 以下是一个外键约束的实例展示

基于MySQL Binlog的Elasticsearch数据同步实践

一、为什么要做 随着马蜂窝的逐渐发展,我们的业务数据越来越多,单纯使用 MySQL 已经不能满足我们的数据查询需求,例如对于商品、订单等数据的多维度检索。 使用 Elasticsearch 存储业务数据可以很好的解决我们业务中的搜索需求。而数据进行异构存储后,随之而来的就是数据同步的问题。 二、现有方法及问题 对于数据同步,我们目前的解决方案是建立数据中间表。把需要检索的业务数据,统一放到一张M

如何去写一手好SQL

MySQL性能 最大数据量 抛开数据量和并发数,谈性能都是耍流氓。MySQL没有限制单表最大记录数,它取决于操作系统对文件大小的限制。 《阿里巴巴Java开发手册》提出单表行数超过500万行或者单表容量超过2GB,才推荐分库分表。性能由综合因素决定,抛开业务复杂度,影响程度依次是硬件配置、MySQL配置、数据表设计、索引优化。500万这个值仅供参考,并非铁律。 博主曾经操作过超过4亿行数据

性能分析之MySQL索引实战案例

文章目录 一、前言二、准备三、MySQL索引优化四、MySQL 索引知识回顾五、总结 一、前言 在上一讲性能工具之 JProfiler 简单登录案例分析实战中已经发现SQL没有建立索引问题,本文将一起从代码层去分析为什么没有建立索引? 开源ERP项目地址:https://gitee.com/jishenghua/JSH_ERP 二、准备 打开IDEA找到登录请求资源路径位置

MySQL数据库宕机,启动不起来,教你一招搞定!

作者介绍:老苏,10余年DBA工作运维经验,擅长Oracle、MySQL、PG、Mongodb数据库运维(如安装迁移,性能优化、故障应急处理等)公众号:老苏畅谈运维欢迎关注本人公众号,更多精彩与您分享。 MySQL数据库宕机,数据页损坏问题,启动不起来,该如何排查和解决,本文将为你说明具体的排查过程。 查看MySQL error日志 查看 MySQL error日志,排查哪个表(表空间

MySQL高性能优化规范

前言:      笔者最近上班途中突然想丰富下自己的数据库优化技能。于是在查阅了多篇文章后,总结出了这篇! 数据库命令规范 所有数据库对象名称必须使用小写字母并用下划线分割 所有数据库对象名称禁止使用mysql保留关键字(如果表名中包含关键字查询时,需要将其用单引号括起来) 数据库对象的命名要能做到见名识意,并且最后不要超过32个字符 临时库表必须以tmp_为前缀并以日期为后缀,备份

[MySQL表的增删改查-进阶]

🌈个人主页:努力学编程’ ⛅个人推荐: c语言从初阶到进阶 JavaEE详解 数据结构 ⚡学好数据结构,刷题刻不容缓:点击一起刷题 🌙心灵鸡汤:总有人要赢,为什么不能是我呢 💻💻💻数据库约束 🔭🔭🔭约束类型 not null: 指示某列不能存储 NULL 值unique: 保证某列的每行必须有唯一的值default: 规定没有给列赋值时的默认值.primary key:

MySQL-CRUD入门1

文章目录 认识配置文件client节点mysql节点mysqld节点 数据的添加(Create)添加一行数据添加多行数据两种添加数据的效率对比 数据的查询(Retrieve)全列查询指定列查询查询中带有表达式关于字面量关于as重命名 临时表引入distinct去重order by 排序关于NULL 认识配置文件 在我们的MySQL服务安装好了之后, 会有一个配置文件, 也就

Java 连接Sql sever 2008

Java 连接Sql sever 2008 /Sql sever 2008 R2 import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class TestJDBC

Mysql BLOB类型介绍

BLOB类型的字段用于存储二进制数据 在MySQL中,BLOB类型,包括:TinyBlob、Blob、MediumBlob、LongBlob,这几个类型之间的唯一区别是在存储的大小不同。 TinyBlob 最大 255 Blob 最大 65K MediumBlob 最大 16M LongBlob 最大 4G