Oracle 11g解除安裝
Oracle 11g解除安裝
Oracle 11g grid infrastructure安裝失敗時,或者需要解除安裝時,不像10g的CRS元件解除安裝那麼麻煩了。
以linux系統為例,10g手工刪除CRS的操作步驟:
rm -f /etc/init.d/init.cssd
rm -f /etc/init.d/init.crs
rm -f /etc/init.d/init.crsd
rm -f /etc/init.d/init.evmd
rm -f /etc/rc2.d/K96init.crs
rm -f /etc/rc2.d/S96init.crs
rm -f /etc/rc3.d/K96init.crs
rm -f /etc/rc3.d/S96init.crs
rm -f /etc/rc5.d/K96init.crs
rm -f /etc/rc5.d/S96init.crs
rm -rf /etc/oracle/scls_scr
rm -f /etc/inittab.crs
cp /etc/inittab.orig /etc/inittab
在11g中,提供了一個解除安裝工具deinstall,如Linux系統下軟體名稱為linux.x64_11gR2_deinstall.zip。解壓後可以直接使用。
下載地址:
第一步、使用grid使用者登入作業系統,這個使用者是grid infrastructure軟體安裝使用者。
[grid@exadata tmp]$ unzip linux.x64_11203_deinstall.zip
[grid@exadata tmp]$ cd deinstall/
[grid@exadata deinstall]$ ll
total 156
drwxr-xr-x 4 grid oinstall 4096 Sep 22 2011 assistants
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 bin
-r-xr-xr-x 1 grid oinstall 9780 Sep 22 2011 bootstrap.pl
drwxr-xr-x 3 grid oinstall 4096 Sep 22 2011 crs
drwxr-xr-x 5 grid oinstall 4096 Sep 22 2011 cv
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 dc_ocm
-rwxr-xr-x 1 grid oinstall 9648 Sep 22 2011 deinstall
-r-xr-xr-x 1 grid oinstall 18475 Sep 22 2011 deinstall.pl
-r--r--r-- 1 grid oinstall 3466 Sep 22 2011 deinstall.xml
drwxr-xr-x 3 grid oinstall 4096 Sep 22 2011 diagnostics
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 jlib
drwxr-xr-x 4 grid oinstall 4096 Sep 22 2011 jre
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 lib
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 logs
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 mapfiles
drwxr-xr-x 7 grid oinstall 4096 Sep 22 2011 oui
drwxr-xr-x 8 grid oinstall 4096 Sep 22 2011 perl
-r--r--r-- 1 grid oinstall 409 Sep 22 2011 readme.txt
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 response
drwxr-xr-x 3 grid oinstall 4096 Sep 22 2011 srvm
-r-xr-xr-x 1 grid oinstall 32343 Sep 22 2011 sshUserSetup.sh
drwxr-xr-x 4 grid oinstall 4096 Sep 22 2011 sysman
drwxr-xr-x 3 grid oinstall 4096 Sep 22 2011 usm
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 utl
[grid@exadata deinstall]$
[grid@exadata deinstall]$./deinstall
Location of logs /home/grid/deinstall/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
Usage:
deinstall -home
[ -silent ]
[ -checkonly ]
[ -local ]
[ -paramfile ]
[ -params ]
[ -o ]
[ -help | -h: Type -h or -help to get more information on each o
f the above options. ]
Specify any of the above options.
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
第二步,使用deinstall -home /u01/app/11.2.0/grid 解除安裝安裝了的檔案
[grid@exadata deinstall]$./deinstall -home /u01/app/11.2.0/grid
ORACLE_HOME = /u01/app/11.2.0/grid
Location of logs /home/grid/deinstall/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################## CHECK OPERATION START ########################
Install check configuration START
Checking for existence of the Oracle home location /u01/app/11.2.0/grid
Oracle Home type selected for de-install is: CRS
Oracle Base selected for de-install 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/gr
id
The following nodes are part of this cluster: serv1,serv2
Install check configuration END
Traces log file: /home/grid/deinstall/logs//crsdc.log
Enter an address or the name of the virtual IP used on node "serv1"[serv1-vip]
>
The following information can be collected by running ifconfig -a on node "serv1
"
Enter the IP netmask of Virtual IP "192.168.15.189" on node "serv1"[255.255.255.
0]
>
Enter the network interface name on which the virtual IP address "192.168.15.189
" is active
>
Enter an address or the name of the virtual IP used on node "serv2"[serv2-vip]
>
The following information can be collected by running ifconfig -a on node "serv2
"
Enter the IP netmask of Virtual IP "192.168.15.190" on node "serv2"[255.255.255.
0]
>
Enter the network interface name on which the virtual IP address "192.168.15.190
" is active
>
Enter an address or the name of the virtual IP[]
>
Network Configuration check config START
Network de-configuration trace file location: /home/grid/deinstall/logs/netdc_ch
eck59960.log
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /home/grid/deinstall/logs/asmcadc_chec
k59961.log
ASM configuration was not detected in this Oracle home. Was ASM configured in th
is Oracle home (y|n) [n]: y
Specify the ASM Diagnostic Destination [ ]: /u01/app/11.2.0/grid
Specify the diskgroups that are managed by this ASM instance []: CRS
De-configuring ASM will drop all the diskgroups at cleanup time. Do you want dec
onfig tool to drop the diskgroups y|n [y]: y
######################### 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 exists are: (Please input nodes sep
erated by ",", eg: node1,node2,...)serv1,serv2
Oracle Home selected for de-install is: /u01/app/11.2.0/grid
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
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: '/home/grid/deinstall/logs/deinstall_d
econfig2012-04-24_10-21-03-AM.out'
Any error messages from this session will be written to: '/home/grid/deinstall/l
ogs/deinstall_deconfig2012-04-24_10-21-03-AM.err'
######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /home/grid/deinstall/logs/asmcadc_clea
n59962.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /home/grid/deinstall/logs/netdc_cl
ean59963.log
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
---------------------------------------->
Run the following command as the root user or the administrator on node "serv2".
/home/grid/deinstall/perl/bin/perl -I/home/grid/deinstall/perl/lib -I/home/grid/
deinstall/crs/install /home/grid/deinstall/crs/install/rootcrs.pl -force -delet
e -paramfile /home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp -
lastnode
Press Enter after you finish running the above commands
這個步驟中就是為了生成配置檔案/home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp
第三步,使用root在節點上執行上一個步驟中生成的配置檔案的perl指令碼
/home/grid/deinstall/perl/bin/perl -I/home/grid/deinstall/perl/lib -I/home/grid/
deinstall/crs/install /home/grid/deinstall/crs/install/rootcrs.pl -force -delet
e -paramfile /home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp -
lastnode
至此,解除安裝grid infrastructure工作結束。在/etc/init.d中也不會有ohasd相關的檔案了。
Oracle 11g grid infrastructure安裝失敗時,或者需要解除安裝時,不像10g的CRS元件解除安裝那麼麻煩了。
以linux系統為例,10g手工刪除CRS的操作步驟:
rm -f /etc/init.d/init.cssd
rm -f /etc/init.d/init.crs
rm -f /etc/init.d/init.crsd
rm -f /etc/init.d/init.evmd
rm -f /etc/rc2.d/K96init.crs
rm -f /etc/rc2.d/S96init.crs
rm -f /etc/rc3.d/K96init.crs
rm -f /etc/rc3.d/S96init.crs
rm -f /etc/rc5.d/K96init.crs
rm -f /etc/rc5.d/S96init.crs
rm -rf /etc/oracle/scls_scr
rm -f /etc/inittab.crs
cp /etc/inittab.orig /etc/inittab
在11g中,提供了一個解除安裝工具deinstall,如Linux系統下軟體名稱為linux.x64_11gR2_deinstall.zip。解壓後可以直接使用。
下載地址:
第一步、使用grid使用者登入作業系統,這個使用者是grid infrastructure軟體安裝使用者。
[grid@exadata tmp]$ unzip linux.x64_11203_deinstall.zip
[grid@exadata tmp]$ cd deinstall/
[grid@exadata deinstall]$ ll
total 156
drwxr-xr-x 4 grid oinstall 4096 Sep 22 2011 assistants
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 bin
-r-xr-xr-x 1 grid oinstall 9780 Sep 22 2011 bootstrap.pl
drwxr-xr-x 3 grid oinstall 4096 Sep 22 2011 crs
drwxr-xr-x 5 grid oinstall 4096 Sep 22 2011 cv
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 dc_ocm
-rwxr-xr-x 1 grid oinstall 9648 Sep 22 2011 deinstall
-r-xr-xr-x 1 grid oinstall 18475 Sep 22 2011 deinstall.pl
-r--r--r-- 1 grid oinstall 3466 Sep 22 2011 deinstall.xml
drwxr-xr-x 3 grid oinstall 4096 Sep 22 2011 diagnostics
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 jlib
drwxr-xr-x 4 grid oinstall 4096 Sep 22 2011 jre
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 lib
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 logs
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 mapfiles
drwxr-xr-x 7 grid oinstall 4096 Sep 22 2011 oui
drwxr-xr-x 8 grid oinstall 4096 Sep 22 2011 perl
-r--r--r-- 1 grid oinstall 409 Sep 22 2011 readme.txt
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 response
drwxr-xr-x 3 grid oinstall 4096 Sep 22 2011 srvm
-r-xr-xr-x 1 grid oinstall 32343 Sep 22 2011 sshUserSetup.sh
drwxr-xr-x 4 grid oinstall 4096 Sep 22 2011 sysman
drwxr-xr-x 3 grid oinstall 4096 Sep 22 2011 usm
drwxr-xr-x 2 grid oinstall 4096 Sep 22 2011 utl
[grid@exadata deinstall]$
[grid@exadata deinstall]$./deinstall
Location of logs /home/grid/deinstall/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
Usage:
deinstall -home
[ -silent ]
[ -checkonly ]
[ -local ]
[ -paramfile
[ -params
[ -o
[ -help | -h: Type -h or -help to get more information on each o
f the above options. ]
Specify any of the above options.
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
第二步,使用deinstall -home /u01/app/11.2.0/grid 解除安裝安裝了的檔案
[grid@exadata deinstall]$./deinstall -home /u01/app/11.2.0/grid
ORACLE_HOME = /u01/app/11.2.0/grid
Location of logs /home/grid/deinstall/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################## CHECK OPERATION START ########################
Install check configuration START
Checking for existence of the Oracle home location /u01/app/11.2.0/grid
Oracle Home type selected for de-install is: CRS
Oracle Base selected for de-install 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/gr
id
The following nodes are part of this cluster: serv1,serv2
Install check configuration END
Traces log file: /home/grid/deinstall/logs//crsdc.log
Enter an address or the name of the virtual IP used on node "serv1"[serv1-vip]
>
The following information can be collected by running ifconfig -a on node "serv1
"
Enter the IP netmask of Virtual IP "192.168.15.189" on node "serv1"[255.255.255.
0]
>
Enter the network interface name on which the virtual IP address "192.168.15.189
" is active
>
Enter an address or the name of the virtual IP used on node "serv2"[serv2-vip]
>
The following information can be collected by running ifconfig -a on node "serv2
"
Enter the IP netmask of Virtual IP "192.168.15.190" on node "serv2"[255.255.255.
0]
>
Enter the network interface name on which the virtual IP address "192.168.15.190
" is active
>
Enter an address or the name of the virtual IP[]
>
Network Configuration check config START
Network de-configuration trace file location: /home/grid/deinstall/logs/netdc_ch
eck59960.log
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /home/grid/deinstall/logs/asmcadc_chec
k59961.log
ASM configuration was not detected in this Oracle home. Was ASM configured in th
is Oracle home (y|n) [n]: y
Specify the ASM Diagnostic Destination [ ]: /u01/app/11.2.0/grid
Specify the diskgroups that are managed by this ASM instance []: CRS
De-configuring ASM will drop all the diskgroups at cleanup time. Do you want dec
onfig tool to drop the diskgroups y|n [y]: y
######################### 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 exists are: (Please input nodes sep
erated by ",", eg: node1,node2,...)serv1,serv2
Oracle Home selected for de-install is: /u01/app/11.2.0/grid
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
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: '/home/grid/deinstall/logs/deinstall_d
econfig2012-04-24_10-21-03-AM.out'
Any error messages from this session will be written to: '/home/grid/deinstall/l
ogs/deinstall_deconfig2012-04-24_10-21-03-AM.err'
######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /home/grid/deinstall/logs/asmcadc_clea
n59962.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /home/grid/deinstall/logs/netdc_cl
ean59963.log
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
---------------------------------------->
Run the following command as the root user or the administrator on node "serv2".
/home/grid/deinstall/perl/bin/perl -I/home/grid/deinstall/perl/lib -I/home/grid/
deinstall/crs/install /home/grid/deinstall/crs/install/rootcrs.pl -force -delet
e -paramfile /home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp -
lastnode
Press Enter after you finish running the above commands
這個步驟中就是為了生成配置檔案/home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp
第三步,使用root在節點上執行上一個步驟中生成的配置檔案的perl指令碼
/home/grid/deinstall/perl/bin/perl -I/home/grid/deinstall/perl/lib -I/home/grid/
deinstall/crs/install /home/grid/deinstall/crs/install/rootcrs.pl -force -delet
e -paramfile /home/grid/deinstall/response/deinstall_Ora11g_gridinfrahome1.rsp -
lastnode
至此,解除安裝grid infrastructure工作結束。在/etc/init.d中也不會有ohasd相關的檔案了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29500582/viewspace-1410811/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE 11G完美解除安裝Oracle
- oracle 11g rac 靜默解除安裝Oracle
- Oracle 11g解除安裝grid和databaseOracleDatabase
- oracle解除安裝Oracle
- ORACLE 解除安裝Oracle
- Oracle 安裝與解除安裝Oracle
- 11g解除安裝指令碼指令碼
- 手動安裝、驗證、解除安裝11g R2 oracle textOracle
- 解除安裝ORACLE CRSOracle
- ORACLE TEXT安裝與解除安裝Oracle
- oracle 11g RAC手動解除安裝grid,no deinstallOracle
- Win7下手動解除安裝oracle 11GWin7Oracle
- oracle 19c 安裝、解除安裝Oracle
- Windows下解除安裝OracleWindowsOracle
- 解除安裝Oracle GoldenGateOracleGo
- oracle 解除安裝問題Oracle
- Linux Redhat上如何手工解除安裝(刪除)Oracle 11gLinuxRedhatOracle
- 【11g 單庫解除安裝、靜默安裝】實驗
- 【OLS】Linux作業系統Oracle 11g環境下安裝解除安裝Oracle Label SecurityLinux作業系統Oracle
- Oracle11g解除安裝Oracle
- linux下解除安裝oracleLinuxOracle
- ORACLE11G 解除安裝Oracle
- 解除安裝oracle10gOracle
- 解除安裝oracle資料庫Oracle資料庫
- Oracle grid infrastructure 解除安裝OracleASTStruct
- Oraccle 11G R2 RAC解除安裝
- 【解除安裝】在LINUX/UNIX環境下解除安裝Oracle的OLAP元件LinuxOracle元件
- 手工刪除解除安裝oracle 11g rac的具體步驟(方法)Oracle
- Oracle 11g R2的解除安裝與重灌過程詳解Oracle
- oracle10g GC agent安裝與解除安裝OracleGC
- oracle11g 解除安裝racOracle
- clusterware完全解除安裝oracle官方指南Oracle
- Windows下手動完全解除安裝OracleWindowsOracle
- oracle 10g rac 解除安裝Oracle 10g
- Windows下ORACLE的完全解除安裝WindowsOracle
- Windows下徹底解除安裝ORACLEWindowsOracle
- 手動解除安裝oracle軟體Oracle
- 如何安全解除安裝Oracle RAC(轉)Oracle