deinstall 卸载grid_oracle11.2.0.3 deinstall删除grid

安装oracle 11.2.0.3 ,安装成功grid,oracle,创建数据库之后,下面进行对rac数据库的完全删除:

[@more@]

1.dbca删除数据库

2.在节点1 ,使用grid用户deinstall

/u01/app/11.2.0/grid/deinstall/

./deisntall

Checking for required files and bootstrapping ...

Please wait ...

Location of logs /u01/app/oraInventory/logs/

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

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

## [START] Install check configuration ##

Checking for existence of the Oracle home location /u01/app/11.2.0/grid

Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster

Oracle Base selected for deinstall is: /u01/app/grid

Checking for existence of central inventory location /u01/app/oraInventory

Checking for existence of the Oracle Grid Infrastructure home /u01/app/11.2.0/grid

The following nodes are part of this cluster: retc1,retc2

Checking for sufficient temp space availability on node(s) : 'retc1,retc2'

## [END] Install check configuration ##

Traces log file: /u01/app/oraInventory/logs//crsdc.log

Network Configuration check config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2012-12-15_12-13-19-PM.log

Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER]:

Network Configuration check config END

Asm Check Configuration START

ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_check2012-12-15_12-13-29-PM.log

Automatic Storage Management (ASM) instance is detected in this Oracle home /u01/app/11.2.0/grid.

ASM Diagnostic Destination : /u01/app/grid

ASM Diskgroups : +ARCH,+CRS,+DATA

ASM diskstring : /dev/rhdisk*

Diskgroups will be dropped

De-configuring ASM will drop all the diskgroups and it's contents at cleanup time. This will affect all of the

databases and ACFS that use this ASM instance(s).

If you want to retain the existing diskgroups or if any of the information detected is incorrect, you can

modify by entering 'y'. Do youwant to modify above information (y|n) [n]:

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

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

Oracle Grid Infrastructure Home is: /u01/app/11.2.0/grid

The cluster node(s) on which the Oracle home deinstallation will be performed are:retc1,retc2

Oracle Home selected for deinstall is: /u01/app/11.2.0/grid

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

Following RAC 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: '/u01/app/oraInventory/logs/deinstall_deconfig2012-12-15_12-13-02-

PM.out'

Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2012-12

-15_12-13-02-PM.err'

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

ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_clean2012-12-15_12-14-45-PM.log

ASM Clean Configuration START

ASM Clean Configuration END

Network Configuration clean config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean2012-12-15_12-16-47-PM.log

De-configuring RAC listener(s): LISTENER

De-configuring listener: LISTENER

Stopping listener: LISTENER

Listener stopped successfully.

Unregistering listener: LISTENER

Listener unregistered successfully.

Listener 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

----------------------------------------&gt

The deconfig command below can be executed in parallel on all the remote nodes. Execute the command onthe

local node after the execution completes on all the remote nodes.

Run the following command as the root user or the administrator on node "retc2".##首先在retc2执行下面语句

/tmp/deinstall2012-12-15_00-12-12PM/perl/bin/perl -I/tmp/deinstall2012-12-15_00-12-12PM/perl/lib -

I/tmp/deinstall2012-12-15_00-12-12PM/crs/install /tmp/deinstall2012-12-15_00-12-12PM/crs/install/rootcrs.pl -

force-deconfig -paramfile "/tmp/deinstall2012-12-15_00-12-12PM/response/deinstall_Ora11g_gridinfrahome1.rsp"

Run the following command as the root user or the administrator on node"retc1".###再另外开启一个节点retc1,执行下面语句

/tmp/deinstall2012-12-15_00-12-12PM/perl/bin/perl -I/tmp/deinstall2012-12-15_00-12-12PM/perl/lib -

I/tmp/deinstall2012-12-15_00-12-12PM/crs/install /tmp/deinstall2012-12-15_00-12-12PM/crs/install/rootcrs.pl -

force-deconfig -paramfile "/tmp/deinstall2012-12-15_00-12-12PM/response/deinstall_Ora11g_gridinfrahome1.rsp"

-lastnode

Press Enter after you finish running the above commands

----------------------------------------&gt

The deconfig command below can be executed in parallel on all the remote nodes. Execute the command onthe

local node after the execution completes on all the remote nodes.

Press Enter after you finish running the above commands

###执行完上述语句之后,在回车继续:

Setting the force flag to false

Setting the force flag to cleanup the Oracle Base

Oracle Universal Installer clean START

Detach Oracle home '/u01/app/11.2.0/grid' from the central inventory on the local node : Done

Delete directory '/u01/app/11.2.0/grid' on the local node : Done

The Oracle Base directory '/u01/app/grid' will not be removed on local node. The directory is not empty.

Detach Oracle home '/u01/app/11.2.0/grid' from the central inventory on the remote nodes 'retc2' : Done

Delete directory '/u01/app/11.2.0/grid' on the remote nodes 'retc2' : Done

Delete directory '/u01/app/grid' on the remote nodes 'retc2' : Done

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END

## [START] Oracle install clean ##

Clean install operation removing temporary directory '/tmp/deinstall2012-12-15_00-12-12PM' on node 'retc1'

Clean install operation removing temporary directory '/tmp/deinstall2012-12-15_00-12-12PM' on node 'retc2'

## [END] Oracle install clean ##

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

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

ASM instance was de-configured successfully from the Oracle home

Following RAC listener(s) were de-configured successfully: LISTENER

Oracle Clusterware is stopped and successfully de-configured on node "retc1"

Oracle Clusterware is stopped and successfully de-configured on node "retc2"

Oracle Clusterware is stopped and de-configured successfully.

Successfully detached Oracle home '/u01/app/11.2.0/grid' from the central inventory on the local node.

Successfully deleted directory '/u01/app/11.2.0/grid' on the local node.

Successfully detached Oracle home '/u01/app/11.2.0/grid' from the central inventory on the remote nodes 'retc2'.

Successfully deleted directory '/u01/app/11.2.0/grid' on the remote nodes 'retc2'.

Successfully deleted directory '/u01/app/grid' on the remote nodes 'retc2'.

Oracle Universal Installer cleanup was successful.

Oracle deinstall tool successfully cleaned up temporary directories.

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

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

注意:grid 已经完全删除,包括ASM,orc,diskgroup等集群、磁盘信息.

下面删除oracle,这个就好删除了,直接删除$ORACLE_HOME即可.

注意的是/etc/oraInst.loc文件要删除,不然重装grid的时候,无法得到提示运行orainstRoot.sh,但好像也没有关系,因为执行完root.sh之后,这个脚本就自动生成在oraInventory目录下了.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值