Deinstall卸载Oracle软件及数据库+GI集群软件
1. 本篇文档应用场景:
需要安装新的ORACLE RAC产品,系统没有重装,需要对原环境中的RAC进行卸载:
#本篇文档,在AIX 6.1版本的系统中进行卸载
#流程:卸载Oracle软件及数据库
卸载GI集群软件: 两步走
#查询环境变量
rac11g770b:/picclife/app/grid$ which lsnrctl
/picclife/app/11.2.0/grid/bin/lsnrctl
rac11g770b:/picclife/app/grid$ which asmcmd
/picclife/app/11.2.0/grid/bin/asmcmd
2. ORACLE 软件卸载:
#软件卸载操作流程:
#执行deinstall 工具
#默认回车
#卸载数据库的类型:集群数据库,RAC,单节点,RAC的单节点,启动数据库: 3 RAC数据库
#数据文件存储的类型:ASM or 文件系统选择 :ASM
#是否继续删除y
#################################操作######################################
执行deinstall卸载
#cd $ORACLE_HOME/deinstall
rac11g770a:/picclife/app/oracle/product/11.2.0/db_1/deinstall$
rac11g770a:/picclife/app/oracle/product/11.2.0/db_1/deinstall$ ./deinstall
Checking for required files and bootstrapping ...
Please wait .
--日志目录
Location of logs /picclife/app/grid/oraInventory/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ## 开始: 检查安装配置
Database de-configuration trace file location: /picclife/app/grid/oraInventory/logs/databasedc_check2018-07-02_11-37-09-AM.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 [life770,life]:
#输入数据库名称
Specify the list of database names that are configured in this Oracle home [life770,life]: life770,life
###### For Database 'life770' ######
Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database|3.RAC Database|4.RAC One Node Database) [1]
:Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database|3.RAC Database|4.RAC One Node Database) [1]: 3 --输入卸载的数据库类型
Specify the list of nodes on which this database has instances [rac11g770a]:
Specify the list of instance names [life770]:
Specify the local instance name on node [life770]:
Specify the diagnostic destination location of the database [/picclife/app/oracle/diag/rdbms/life770]:
Specify the storage type used by the Database ASM|FS []: --ASM --输入数据库存储的类型ASM OR 文件系统
###### For Database 'life' ######
Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database|3.RAC Database|4.RAC One Node Database) [1]: -- 3 1单实例,2 启动数据库,3RAC数据库,4RAC的一个单节点
The following databases were selected for de-configuration : life770,life
Database unique name : life770
Storage used : ASM
Database unique name : life
Storage used : ASM
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
rac11g770a : Oracle Home exists with CCR directory, but CCR is not configured
rac11g770b : 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]: --根据/etc/oratab查询,判断是否单实例数据库
#清理日志
EMCA de-configuration trace file location: /picclife/app/grid/oraInventory/logs/emcadc_clean2018-07-02_11-43-31-AM.log
#对ASM,监听,OEM ,进行删除操作,可能需要几分钟
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: /picclife/app/grid/oraInventory/logs/databasedc_clean2018-07-02_11-44-00-AM.log
Database Clean Configuration START life770
This operation may take few minutes.
#在清除数据库时,有几分钟,通过df -g 可以查询到数据量变小,正在删除文件
Database Clean Configuration END life770
Database Clean Configuration START life
This operation may take few minutes.
Network Configuration clean config START
#网络配置删除开始--日志目录
Network de-configuration trace file location: /picclife/app/grid/oraInventory/logs/netdc_clean2018-07-02_11-57-53-AM.log
#所有节点的监听配置文件,已配置成功
De-configuring Listener configuration file on all nodes...
Listener configuration file de-configured successfully.
#所有节点tnsnames命名文件删除成功
De-configuring Naming Methods configuration file on all nodes...
Naming Methods configuration file de-configured successfully.
#所有本地节点网络服务名称删除OK
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 : /picclife/app/grid/oraInventory/logs//ocm_clean3166.log
Oracle Configuration Manager clean END
Setting the force flag to false --未配置OEM
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START 通用安装程序
Detach Oracle home '/picclife/app/oracle/product/11.2.0/db_1' from the central inventory on the local node : Done
Delete directory '/picclife/app/oracle/product/11.2.0/db_1' on the local node : Done
The Oracle Base directory '/picclife/app/oracle' will not be removed on local node. The directory is not empty.
Detach Oracle home '/picclife/app/oracle/product/11.2.0/db_1' from the central inventory on the remote nodes 'rac11g770b' : Done
Delete directory '/picclife/app/oracle/product/11.2.0/db_1' on the remote nodes 'rac11g770b' : Done
The Oracle Base directory '/picclife/app/oracle' will not be removed on node 'rac11g770b'. The directory is not empty.
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2018-07-02_11-31-06AM' on node 'rac11g770a'
Clean install operation removing temporary directory '/tmp/deinstall2018-07-02_11-31-06AM' on node 'rac11g770b'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
清除oracle 产品目录
####################### CLEAN OPERATION SUMMARY #######################
#本地节点删除目录:完成
Successfully de-configured the following database instances : life770,life
#删除CCR目录,无法在本地删除,目录为null
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 '/picclife/app/oracle/product/11.2.0/db_1' from the central inventory on the local node.#未配置CCR,跳过CCR清理的配置
Successfully deleted directory '/picclife/app/oracle/product/11.2.0/db_1' on the local node.
Successfully detached Oracle home '/picclife/app/oracle/product/11.2.0/db_1' from the central inventory on the remote nodes 'rac11g770b'.
Successfully deleted directory '/picclife/app/oracle/product/11.2.0/db_1' on the remote nodes 'rac11g770b'.
Oracle Universal Installer cleanup was successful.
#ORACLE通用安装程序清理成功
#清除删除节点临时目录文件:
Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'rac11g770b' at the end of the session.
#Oracle工具成功清理了临时目录
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
ORACLE专业清理工具
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
#软件删除流程###################
确认删除的数据库名称
删除数据库的类型
删除数据库的存储路径
删除文件
删除网络配置文件
删除监听配置文件
删除OEM管理软件
删除CCR配置
删除临时文件目录
3. Gi删除:
GI删除流程:
执行deinstall
默认输入-如重复输出,则输入相应的信息:如节点名称,or VIP解析名称Or VIP IP地址信息
是否删除 y
root用户执行两个脚本:节点二执行后,节点一执行
每个节点执行删除文件:rm -rf /etc/oraInst.loc
rm /etc/oratab
Rm -rf $ORACLE_BASE / $ORACLE_HOME
每个节点删除用户及组,及用户家目录
3.1执行操作
######################如下操作#########################################
#进入GI ,deinstall执行
rac11g770a:/picclife/app/11.2.0/grid/deinstall$ ls
bootstrap.pl deinstall.pl jlib response
deinstall deinstall.xml readme.txt sshUserSetup.sh
rac11g770a:/picclife/app/11.2.0/grid/deinstall$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2018-07-02_00-10-07PM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
Oracle专业卸载工具
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
#开始卸载
#检查目录ORALCE_HOME
Checking for existence of the Oracle home location /picclife/app/11.2.0/grid
#检测类型
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
#ORACLE_BASE
Oracle Base selected for deinstall is: /picclife/app/grid
#检测Oracle产品清单目录
Checking for existence of central inventory location /picclife/app/grid/oraInventory
#检测OracleGI结构
Checking for existence of the Oracle Grid Infrastructure home /picclife/app/11.2.0/grid
#集群的节点名称
The following nodes are part of this cluster: rac11g770a,rac11g770b
#检测节点上临时的空间
Checking for sufficient temp space availability on node(s) : 'rac11g770a,rac11g770b'
#检查配置
## [END] Install check configuration ##
#跟踪日志文件输出
Traces log file: /tmp/deinstall2018-07-02_00-10-07PM/logs//crsdc.log
#输入 VIP地址或名称
Enter an address or the name of the virtual IP used on node "rac11g770a"[rac11g770a-vip]
> 在节点上运行/sbin/ifconfig -a 采集信息
The following information can be collected by running "/sbin/ifconfig -a" on node "rac11g770a"
#输入网络虚拟IP的网络掩码
Enter the IP netmask of Virtual IP "10.135.242.181" on node "rac11g770a"[255.255.255.0]
> 输入虚拟IP地址的网络接口名称
Enter the network interface name on which the virtual IP address "10.135.242.181" is active
> 输入RAC 节点上使用的虚拟地址或名称
Enter an address or the name of the virtual IP used on node "rac11g770b"[rac11g770b-vip]
>
#重复。。
The following information can be collected by running "/sbin/ifconfig -a" on node "rac11g770b"
Enter the IP netmask of Virtual IP "10.135.242.186" on node "rac11g770b"[255.255.255.0]
> 可以通过节点RAC 上实现运行命令,收集信息,输入虚拟IP的网络掩码
Enter the network interface name on which the virtual IP address "10.135.242.186" is active
Enter an address or the name of the virtual IP[]输入虚拟IP地址,网络接口名称
>
Network Configuration check config START网络检查配置启动
Network de-configuration trace file location: /tmp/deinstall2018-07-02_00-10-07PM/logs/netdc_check2018-07-02_12-15-45-PM.log
Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER,LISTENER_SCAN1]: 扫描RAC监听:
Network Configuration check config END 网络配置检查结束
Asm Check Configuration START 网络配置开始
ASM de-configuration trace file location: /tmp/deinstall2018-07-02_00-10-07PM/logs/asmcadc_check2018-07-02_12-15-46-PM.log
ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: y
Specify the ASM Diagnostic Destination [ ]: 配置ASM
Specify the diskstring []: 配置ASM,指定ASM实例,管理组
Specify the diskgroups that are managed by this ASM instance []:
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /picclife/app/11.2.0/grid
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac11g770a,rac11g770b
Oracle Home selected for deinstall is: /picclife/app/11.2.0/grid
Inventory Location where the Oracle home registered is: /picclife/app/grid/oraInventory
Following RAC listener(s) will be de-configured: LISTENER,LISTENER_SCAN1
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/deinstall2018-07-02_00-10-07PM/logs/deinstall_deconfig2018-07-02_12-10-31-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2018-07-02_00-10-07PM/logs/deinstall_deconfig2018-07-02_12-10-31-PM.err'
######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2018-07-02_00-10-07PM/logs/asmcadc_clean2018-07-02_12-16-40-PM.log
ASM Clean Configuration START
ASM Clean Configuration END
#网络配置干净启动
Network Configuration clean config START
#网络配置跟踪日志
Network de-configuration trace file location: /tmp/deinstall2018-07-02_00-10-07PM/logs/netdc_clean2018-07-02_12-16-41-PM.log
#取消RAC监听器,监听程序SCAN1
De-configuring RAC listener(s): LISTENER,LISTENER_SCAN1
#配置监听器
De-configuring listener: LISTENER
Stopping listener: LISTENER
#警告:无法停止监听,可能监听程序没有运行
Warning: Failed to stop listener. Listener may not be running.
Listener de-configured successfully.
#监听器配置成功
#配置监听
De-configuring listener: LISTENER_SCAN1
Stopping listener: LISTENER_SCAN1 无法停止监听程序,未运行
Warning: Failed to stop listener. Listener may not be running.
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
#停止卸载 --此执行后台执行,客户端执行.deinstall, 会话会自动断开,后台执行
+ Stopped ./deinstall
-
#
rac11g770a:/picclife/app/11.2.0/grid/deinstall$ bg
[1]+ ./deinstall &
rac11g770a:/picclife/app/11.2.0/grid/deinstall$ disown -h
rac11g770a:/picclife/app/11.2.0/grid/deinstall$ jobs
[1]+ Running ./deinstall &
rac11g770a:/picclife/app/11.2.0/grid/deinstall$
---------------------------------------->
#提示运行的脚本:root 执行提示的脚本:先执行节点2,再执行节点1
The deconfig command below can be executed in parallel on all the remote nodes. Execute the command on the local node after the execution completes on all the remote nodes.
Run the following command as the root user or the administrator on node "rac11g770b".
/tmp/deinstall2018-07-02_00-10-07PM/perl/bin/perl -I/tmp/deinstall2018-07-02_00-10-07PM/perl/lib -I/tmp/deinstall2018-07-02_00-10-07PM/crs/install /tmp/deinstall2018-07-02_00-10-07PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2018-07-02_00-10-07PM/response/deinstall_Ora11g_gridinfrahome1.rsp"
Run the following command as the root user or the administrator on node "rac11g770a".
/tmp/deinstall2018-07-02_00-10-07PM/perl/bin/perl -I/tmp/deinstall2018-07-02_00-10-07PM/perl/lib -I/tmp/deinstall2018-07-02_00-10-07PM/crs/install /tmp/deinstall2018-07-02_00-10-07PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2018-07-02_00-10-07PM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode
Press Enter after you finish running the above commands
<----------------------------------------
3.2节点2执行脚本输出内容
-bash-4.2# /tmp/deinstall2018-07-02_00-10-07PM/perl/bin/perl -I/tmp/deinstall2018-07-02_00-10-07PM/perl/lib -I/tmp/deinstall2018-07-02_00-10-07PM/crs/install /tmp/deinstall2018-07-02_00-10-07PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2018-07-02_00-10-07PM/response/deinstall_Ora11g_gridinfrahome1.rsp"
Using configuration parameter file: /tmp/deinstall2018-07-02_00-10-07PM/response/deinstall_Ora11g_gridinfrahome1.rsp
#查询资源失败
PRCR-1119 : Failed to look up CRS resources of ora.cluster_vip_net1.type type
#无法与CRSD通讯
PRCR-1068 : Failed to query resources
#无法检测ora.gsd是否注册
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.gsd is registered
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.ons is registered
Cannot communicate with crsd
#无法与集群服务通信,命令停止失败,或完成错误,在启动高可用性能管理的关闭
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop failed, or completed with errors.
#试图停止
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac11g770b'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac11g770b'
CRS-2673: Attempting to stop 'ora.crf' on 'rac11g770b'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac11g770b'
CRS-2677: Stop of 'ora.mdnsd' on 'rac11g770b' succeeded
CRS-2677: Stop of 'ora.crf' on 'rac11g770b' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac11g770b'
CRS-2677: Stop of 'ora.gipcd' on 'rac11g770b' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac11g770b'
CRS-2677: Stop of 'ora.gpnpd' on 'rac11g770b' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac11g770b' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac11g770b' has completed
CRS-4133: Oracle High Availability Services has been stopped.
This may take several minutes. Please wait ...
#对相关文件进行删除,在这个节点上,成功的删除了集群
0518-307 odmdelete: 1 objects deleted.
0518-307 odmdelete: 1 objects deleted.
0518-307 odmdelete: 1 objects deleted.
Successfully deconfigured Oracle clusterware stack on this node
3.3节点1执行脚本输出
rac11g770a:/picclife/app/grid$ exit
logout
me1.rsp" -lastnodeall2018-07-02_00-10-07PM/response/deinstall_Ora11g_gridinfraho
Using configuration parameter file: /tmp/deinstall2018-07-02_00-10-07PM/response/deinstall_Ora11g_gridinfrahome1.rsp
CRS-2672: Attempting to start 'ora.cssd' on 'rac11g770a'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac11g770a'
CRS-2676: Start of 'ora.diskmon' on 'rac11g770a' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac11g770a' succeeded
CRS-2679: Attempting to clean 'ora.cluster_interconnect.haip' on 'rac11g770a'
CRS-2672: Attempting to start 'ora.ctssd' on 'rac11g770a'
CRS-2681: Clean of 'ora.cluster_interconnect.haip' on 'rac11g770a' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'rac11g770a'
CRS-2676: Start of 'ora.ctssd' on 'rac11g770a' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac11g770a'
CRS-2676: Start of 'ora.evmd' on 'rac11g770a' succeeded
CRS-5017: The resource action "ora.cluster_interconnect.haip start" encountered the following error:
Start action for HAIP aborted. For details refer to "(:CLSN00107:)" in "/picclife/app/11.2.0/grid/log/rac11g770a/agent/ohasd/orarootagent_root/orarootagent_root.log".
CRS-2674: Start of 'ora.cluster_interconnect.haip' on 'rac11g770a' failed
CRS-2679: Attempting to clean 'ora.cluster_interconnect.haip' on 'rac11g770a'
CRS-2681: Clean of 'ora.cluster_interconnect.haip' on 'rac11g770a' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac11g770a'
CRS-2676: Start of 'ora.asm' on 'rac11g770a' succeeded
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1119 : Failed to look up CRS resources of ora.cluster_vip_net1.type type
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.gsd is registered
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.ons is registered
Cannot communicate with crsd
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac11g770a'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac11g770a'
CRS-2673: Attempting to stop 'ora.asm' on 'rac11g770a'
CRS-2677: Stop of 'ora.evmd' on 'rac11g770a' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac11g770a' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac11g770a' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac11g770a'
CRS-2677: Stop of 'ora.cssd' on 'rac11g770a' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac11g770a'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac11g770a' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac11g770a'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac11g770a'
CRS-2676: Start of 'ora.diskmon' on 'rac11g770a' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac11g770a' succeeded
This ASM diskgroup does not contain voting disks to be deleted
ASM de-configuration trace file location: /tmp/deinstall2018-07-02_00-10-07PM/logs/asmcadc_clean2018-07-02_01-25-52-PM.log
ASM Clean Configuration START
ASM Clean Configuration END
ASM with SID +ASM1 deleted successfully. Check /tmp/deinstall2018-07-02_00-10-07PM/logs/asmcadc_clean2018-07-02_01-25-52-PM.log for details.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac11g770a'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac11g770a'
CRS-2677: Stop of 'ora.mdnsd' on 'rac11g770a' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'rac11g770a'
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac11g770a'
CRS-2677: Stop of 'ora.crf' on 'rac11g770a' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac11g770a' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac11g770a'
CRS-2677: Stop of 'ora.cssd' on 'rac11g770a' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac11g770a'
CRS-2677: Stop of 'ora.gipcd' on 'rac11g770a' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac11g770a'
CRS-2677: Stop of 'ora.gpnpd' on 'rac11g770a' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac11g770a' has completed
CRS-4133: Oracle High Availability Services has been stopped.
This may take several minutes. Please wait ...
0518-307 odmdelete: 1 objects deleted.
0518-307 odmdelete: 1 objects deleted.
0518-307 odmdelete: 1 objects deleted.
Successfully deconfigured Oracle clusterware stack on this node
3.4最后执行
######################### 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,LISTENER_SCAN1
Oracle Clusterware was already stopped and de-configured on node "rac11g770a"
Oracle Clusterware is stopped and de-configured successfully.
Successfully detached Oracle home '/picclife/app/11.2.0/grid' from the central inventory on the local node.
Successfully deleted directory '/picclife/app/11.2.0/grid' on the local node.
Successfully deleted directory '/picclife/app/grid/oraInventory' on the local node.
Successfully detached Oracle home '/picclife/app/11.2.0/grid' from the central inventory on the remote nodes 'rac11g770b'.
Successfully deleted directory '/picclife/app/11.2.0/grid' on the remote nodes 'rac11g770b'.
Successfully deleted directory '/picclife/app/grid/oraInventory' on the remote nodes 'rac11g770b'.
Successfully deleted directory '/picclife/app/grid' on the remote nodes 'rac11g770b'.
Oracle Universal Installer cleanup was successful.
#会话结束后,每个节点root执行:
Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'rac11g770a,rac11g770b' at the end of the session.
Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'rac11g770a,rac11g770b' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
#检查开机启动项目
检查各个节点的/etc/inittab文件,ohasd的内容应该被删除了。
#ORACLE /GRID 删除HOME/BASE目录
rac11g770a:/picclife/app/oracle$ rm -rf *
#删除ORACLE/GRID用户,属组
#查询ORACLE/GRID用户,属组
-bash-4.2# id oracle
uid=1101(oracle) gid=1000(oinstall) groups=1300(asmdba),1200(dba)
-bash-4.2# id grid
uid=1100(grid) gid=1000(oinstall) groups=1100(asmadmin),1300(asmdba),1301(asmoper),1200(dba)
#
-bash-4.2# rmuser -p oracle
-bash-4.2# rmuser -p grid
-bash-4.2# rmgroup oinstall
-bash-4.2# rmgroup dba
-bash-4.2# rmgroup asmdba
-bash-4.2# rmgroup asmadmin
-bash-4.2# rmgroup asmoper