环境描述:
对原RAC进行重建跑root.sh出现CRS-2728错误,出现问题的原因是由于集群未删除干净。
报错信息:
[root@cbssoracle1 ~]# /oracle/grid/crs_1/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /oracle/grid/crs_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /oracle/grid/crs_1/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
root wallet
root wallet cert
root cert export
peer wallet
profile reader wallet
pa wallet
peer wallet keys
pa wallet keys
peer cert request
pa cert request
peer cert
pa cert
peer root cert TP
profile reader root cert TP
pa root cert TP
peer pa cert TP
pa peer cert TP
profile reader pa cert TP
profile reader peer cert TP
peer user cert
pa user cert
CRS-2728: A resource type with the name 'ora.daemon.type' is already registered
CRS-4000: Command Add failed, or completed with errors.
CRS-2728: A resource type with the name 'ora.haip.type' is already registered
CRS-4000: Command Add failed, or completed with errors.
CRS-2728: A resource type with the name 'ora.mdns.type' is already registered
CRS-4000: Command Add failed, or completed with errors.
Failed to register Grid Infrastructure type ora.mdns.type at /oracle/grid/crs_1/crs/install/crsconfig_lib.pm line 7940.
/oracle/grid/crs_1/perl/bin/perl -I/oracle/grid/crs_1/perl/lib -I/oracle/grid/crs_1/crs/install /oracle/grid/crs_1/crs/install/rootcrs.pl execution failed
检查.oracle是否被删除:
[root@cbssoracle1 grid]# ls /var/tmp/.oracle/
mdnsd
mdnsd.pid
npohasd
ora_gipc_gipcd_cbssoracle2
ora_gipc_gipcd_cbssoracle2_lock
ora_gipc_GPNPD_cbssoracle2
ora_gipc_GPNPD_cbssoracle2_lock
ora_gipc_scbssoracle2gridCBssOra-clusterCRFM_CLIIPC
ora_gipc_scbssoracle2gridCBssOra-clusterCRFM_CLIIPC_lock
ora_gipc_scbssoracle2gridCBssOra-clusterCRFM_SIPC
ora_gipc_scbssoracle2gridCBssOra-clusterCRFM_SIPC_lock
s#12471.1
s#12471.2
s#14093.1
s#14093.2
s#14133.1
s#14133.2
s#14389.1
s#14389.2
s#16787.1
s#16787.2
s#20486.1
s#20486.2
s#21019.1
s#21019.2
s#22925.1
s#22925.2
sAevm
scbssoracle2DBG_CRSD
scbssoracle2DBG_CSSD
scbssoracle2DBG_CTSSD
scbssoracle2DBG_EVMD
scbssoracle2DBG_GIPCD
scbssoracle2DBG_GPNPD
scbssoracle2DBG_LOGD
scbssoracle2DBG_MDNSD
scbssoracle2DBG_MOND
scbssoracle2DBG_OHASD
sCevm
sCRSD_IPC_SOCKET_11
sCRSD_IPC_SOCKET_11_lock
sCRSD_UI_SOCKET
sLISTENER
sOCSSD_LL_cbssoracle2_
sOCSSD_LL_cbssoracle2_CBssOra-cluster
sOCSSD_LL_cbssoracle2__lock
sOHASD_IPC_SOCKET_11
sOHASD_IPC_SOCKET_11_lock
sOHASD_UI_SOCKET
sOracle_CSS_LclLstnr_CBssOra-cluster_2
sora_crsqs
sprocr_local_conn_0_PROC
sprocr_local_conn_0_PROC_lock
sprocr_local_conn_0_PROL
sprocr_local_conn_0_PROL_lock
sSYSTEM.evm.acceptor.auth
解决流程:
1.root脚本回退
[root@cbssoracle1 ~]#/u01/app/11.2.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force
2.删除.oracle文件
[root@cbssoracle1]# rm -rf /var/tmp/.oracle
3.再次执行
[root@cbssoracle1 ~]# /oracle/grid/crs_1/root.sh
4.故障解决