Deinstall卸載RAC之Oracle軟件及數據庫+GI集群軟件


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, 會話會自動斷開,后台執行

  1. +  Stopped                 ./deinstall

  2. #

    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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM