Oracle 11g卸载grid和database

Normal 0 7.8 pt 0 2 false false false MicrosoftInternetExplorer4  

Oracle 11g之后提供了卸载griddatabase的脚本,可以卸载的比较干净,不需要手动删除crs

 

1.oracle官方网站上下载的deinstall工具

11GR27个下载包,deinstall放在第7个下载包,如11.2.0.2的下载包为p10098816_112020_AIX64-5L_7of7.zip

 

2.解压到本地目录,并执行deinstall

需要输入$ORACLE_HOME

bash-3.00$ ./deinstall  -home /oracle/grid/product/11.2.0/grid

Location of logs /ora11g/server_install/deinstall/./logs/

 

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

 

3.我这里为单节点的grid,选择4后按回车

后面根据自己情况进行选择,输入LISTENER的地方可以直接回车

 

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

Install check configuration START

The deinstall tool cannot determine the home type needed to deconfigure the selected home.  Please select the type of Oracle home you are trying to deinstall.

Single Instance database - Enter 1

Real Application Cluster database - Enter 2

Grid Infrastructure for a cluster - Enter 3

Grid Infrastructure for a stand-alone server - Enter 4

Client Oracle Home - Enter 5

Transparent Gateways Oracle Home - Enter 6

4

The product version number of the specified home cannot be determined. Is the product version at least 11.2.0.1.0 (y - yes, n - no)? [n]

y

 

Checking for existence of the Oracle home location /oracle/grid/product/11.2.0/grid

Oracle Home type selected for de-install is: SIHA

Oracle Base selected for de-install is:

Checking for existence of central inventory location /oracle/oraInventory

Checking for existence of the Oracle Grid Infrastructure home /oracle/grid/product/11.2.0/grid

 

Install check configuration END

 

Skipping Windows and .NET products configuration check

 

Checking Windows and .NET products configuration END

 

Traces log file: /ora11g/server_install/deinstall/./logs//crsdc.log

 

Network Configuration check config START

 

Network de-configuration trace file location: /ora11g/server_install/deinstall/./logs/netdc_check2011-11-05_07-17-34-PM.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: /ora11g/server_install/deinstall/./logs/asmcadc_check2011-11-05_07-19-52-PM.log

 

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

ASM Diagnostic Destination : /oracle/grid/product/11.2.0/grid/log

ASM Diskgroups : +ARCHDG,+CRSDG,+DATADG

ASM diskstring :

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 you  want to modify above information (y|n) [n]: 

 

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

 

 

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

Oracle Grid Infrastructure Home is: /oracle/grid/product/11.2.0/grid

The cluster node(s) on which the Oracle home de-installation will be performed are:null

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

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

Skipping Windows and .NET products configuration check

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: '/ora11g/server_install/deinstall/./logs/deinstall_deconfig2011-11-05_07-16-53-PM.out'

Any error messages from this session will be written to: '/ora11g/server_install/deinstall/./logs/deinstall_deconfig2011-11-05_07-16-53-PM.err'

 

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

ASM de-configuration trace file location: /ora11g/server_install/deinstall/./logs/asmcadc_clean2011-11-05_07-21-32-PM.log

ASM Clean Configuration START

ASM Clean Configuration END

 

Network Configuration clean config START

 

Network de-configuration trace file location: /ora11g/server_install/deinstall/./logs/netdc_clean2011-11-05_07-21-52-PM.log

 

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

 

De-configuring listener: LISTENER

    Stopping listener: LISTENER

    Listener stopped successfully.

    Unregistering listener: LISTENER

    Listener unregistered successfully.

    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 Local Net Service Names configuration file...

Local Net Service Names 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

 

 

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

 

Run the following command as the root user or the administrator on node "standbydb2".

 

/ora11g/server_install/deinstall/./perl/bin/perl -I/ora11g/server_install/deinstall/./perl/lib -I/ora11g/server_install/deinstall/./crs/install /ora11g/server_install/deinstall/./crs/install/roothas.pl -force  -deconfig -paramfile /ora11g/server_install/deinstall/response/deinstall_noHomeName.rsp

 

Press Enter after you finish running the above commands

 

 

4.在另一个窗口中使用root用户执行上面操作

-bash-3.00# /ora11g/server_install/deinstall/./perl/bin/perl -I/ora11g/server_install/deinstall/./perl/lib -I/ora11g/server_install/deinstall/./crs/install /ora11g/server_install/deinstall/./crs/install/roothas.pl -force  -deconfig -paramfile /ora11g/server_install/deinstall/response/deinstall_noHomeName.rsp

Using configuration parameter file: /ora11g/server_install/deinstall/response/deinstall_noHomeName.rsp

 

CRS-2673: Attempting to stop 'ora.cssd' on 'standbydb2'

CRS-2677: Stop of 'ora.cssd' on 'standbydb2' succeeded

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'standbydb2'

CRS-2673: Attempting to stop 'ora.diskmon' on 'standbydb2'

CRS-2677: Stop of 'ora.diskmon' on 'standbydb2' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'standbydb2' has completed

CRS-4133: Oracle High Availability Services has been stopped.

Successfully deconfigured Oracle Restart stack

 

5.执行成功后,在原窗口中按回车

----------------------------------------------------------------

 

Removing Windows and .NET products configuration END

Oracle Universal Installer clean START

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

Delete directory '/oracle/grid/product/11.2.0/grid' 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/deinstall2011-11-05_07-16-46PM' on node 'standbydb2'

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 was already stopped and de-configured on node "standbydb2"

Oracle Restart is stopped and de-configured successfully.

Skipping Windows and .NET products configuration clean

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

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

Oracle Universal Installer cleanup was successful.

 

Oracle deinstall tool successfully cleaned up temporary directories.

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

 

 

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

 

 

6.显示执行成功

 

 

参照metalink

How To Deinstall/Uninstall Oracle Home In 11gR2? [ID 883743.1]

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21605631/viewspace-710290/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/21605631/viewspace-710290/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值