潮州網絡推廣seo課程培訓班
近期,在某用戶的測試環(huán)境,需要將RAC轉為單機模式,然后進行數(shù)據(jù)恢復;一開始只是將數(shù)據(jù)庫軟件通過make -f ins_rdbms.mk rac_off? 和 make -f ins_rdbms.mk ioracle關閉RAC模式;然后在啟動數(shù)據(jù)庫(sqlplus / as sysdba登錄后startup時報錯:ORA-00600: internal error code, arguments: [kgfz_getDiskAccessMode:ntyp], [0], [], [], [], [], [], [], [], [], [], []
ORA-29701: unable to connect to Cluster Synchronization Service);
MOS文檔Database reports ORA-600 KGFZ_GETDISKACCESSMODE:NTYP when starting (Doc ID 2587331.1)顯示,12.2開始需要徹底卸載集群,進行卸載后可以正常進行啟動和恢復(卸載參考How to Deconfigure/Reconfigure(Rebuild OCR) or Deinstall Grid Infrastructure (Doc ID 1377349.1),注意Note: in 12c, or higher, while performing the procedure, instead of rootcrs.pl, rootcrs.sh should be used if exists in the same location as rootcrs.pl)。
處理過程如下:
1.數(shù)據(jù)庫軟件從集群轉為單機模式
[oracle@test1 lib]$ make -f ins_rdbms.mk rac_off
rm -f /home/u01/app/product/12.2.0/db_1/lib/libskgxp12.so
cp /home/u01/app/product/12.2.0/db_1/lib//libskgxpg.so /home/u01/app/product/12.2.0/db_1/lib/libskgxp12.so
rm -f /home/u01/app/product/12.2.0/db_1/lib/libskgxn2.so
cp /home/u01/app/product/12.2.0/db_1/lib//libskgxns.so \/home/u01/app/product/12.2.0/db_1/lib/libskgxn2.so
/usr/bin/ar cr /home/u01/app/product/12.2.0/db_1/rdbms/lib/libknlopt.a /home/u01/app/product/12.2.0/db_1/rdbms/lib/ksnkcs.o
[oracle@test1 lib]$ make -f ins_rdbms.mk ioracle
chmod 755 /home/u01/app/product/12.2.0/db_1/bin- Linking Oracle
rm -f /home/u01/app/product/12.2.0/db_1/rdbms/lib/oracle
/home/u01/app/product/12.2.0/db_1/bin/orald -o /home/u01/app/product/12.2.0/db_1/rdbms/lib/oracle -m64 -z noexecstack -Wl,--disable-new-dtags -L/home/u01/app/product/12.2.0/db_1/rdbms/lib/ -L/home/u01/app/product/12.2.0/db_1/lib/ -L/home/u01/app/product/12.2.0/db_1/lib/stubs/ -Wl,-E /home/u01/app/product/12.2.0/db_1/rdbms/lib/opimai.o /home/u01/app/product/12.2.0/db_1/rdbms/lib/ssoraed.o /home/u01/app/product/12.2.0/db_1/rdbms/lib/ttcsoi.o -Wl,--whole-archive -lperfsrv12 -Wl,--no-whole-archive /home/u01/app/product/12.2.0/db_1/lib/nautab.o /home/u01/app/product/12.2.0/db_1/lib/naeet.o /home/u01/app/product/12.2.0/db_1/lib/naect.o /home/u01/app/product/12.2.0/db_1/lib/naedhs.o /home/u01/app/product/12.2.0/db_1/rdbms/lib/config.o -ldmext -lserver12 -lodm12 -lofs -lcell12 -lnnet12 -lskgxp12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 -lclient12 -lvsn12 -lcommon12 -lgeneric12 -lknlopt `if /usr/bin/ar tv /home/u01/app/product/12.2.0/db_1/rdbms/lib/libknlopt.a | grep xsyeolap.o > /dev/null 2>&1 ; then echo "-loraolap12" ; fi` -lskjcx12 -lslax12 -lpls12 -lrt -lplp12 -ldmext -lserver12 -lclient12 -lvsn12 -lcommon12 -lgeneric12 `if [ -f /home/u01/app/product/12.2.0/db_1/lib/libavserver12.a ] ; then echo "-lavserver12" ; else echo "-lavstub12"; fi` `if [ -f /home/u01/app/product/12.2.0/db_1/lib/libavclient12.a ] ; then echo "-lavclient12" ; fi` -lknlopt -lslax12 -lpls12 -lrt -lplp12 -ljavavm12 -lserver12 -lwwg `cat /home/u01/app/product/12.2.0/db_1/lib/ldflags` -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lngsmshd12 -lnro12 `cat /home/u01/app/product/12.2.0/db_1/lib/ldflags` -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lngsmshd12 -lnnzst12 -lzt12 -lztkg12 -lmm -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 -lztkg12 `cat /home/u01/app/product/12.2.0/db_1/lib/ldflags` -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lngsmshd12 -lnro12 `cat /home/u01/app/product/12.2.0/db_1/lib/ldflags` -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lngsmshd12 -lnnzst12 -lzt12 -lztkg12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 `if /usr/bin/ar tv /home/u01/app/product/12.2.0/db_1/rdbms/lib/libknlopt.a | grep "kxmnsd.o" > /dev/null 2>&1 ; then echo " " ; else echo "-lordsdo12 -lserver12"; fi` -L/home/u01/app/product/12.2.0/db_1/ctx/lib/ -lctxc12 -lctx12 -lzx12 -lgx12 -lctx12 -lzx12 -lgx12 -lordimt12 -lclsra12 -ldbcfg12 -lhasgen12 -lskgxn2 -lnnzst12 -lzt12 -lxml12 -lgeneric12 -locr12 -locrb12 -locrutl12 -lhasgen12 -lskgxn2 -lnnzst12 -lzt12 -lxml12 -lgeneric12 -lgeneric12 -lorazip -loraz -llzopro5 -lorabz2 -lipp_z -lipp_bz2 -lippdcemerged -lippsemerged -lippdcmerged -lippsmerged -lippcore -lippcpemerged -lippcpmerged -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 -lsnls12 -lunls12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12 -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 -lasmclnt12 -lcommon12 -lcore12 -laio -lons -lfthread12 `cat /home/u01/app/product/12.2.0/db_1/lib/sysliblist` -Wl,-rpath,/home/u01/app/product/12.2.0/db_1/lib -lm `cat /home/u01/app/product/12.2.0/db_1/lib/sysliblist` -ldl -lm -L/home/u01/app/product/12.2.0/db_1/lib `test -x /usr/bin/hugeedit -a -r /usr/lib64/libhugetlbfs.so && test -r /home/u01/app/product/12.2.0/db_1/rdbms/lib/shugetlbfs.o && echo -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152 -lhugetlbfs`
test ! -f /home/u01/app/product/12.2.0/db_1/bin/oracle || (\mv -f /home/u01/app/product/12.2.0/db_1/bin/oracle /home/u01/app/product/12.2.0/db_1/bin/oracleO &&\chmod 600 /home/u01/app/product/12.2.0/db_1/bin/oracleO )
mv /home/u01/app/product/12.2.0/db_1/rdbms/lib/oracle /home/u01/app/product/12.2.0/db_1/bin/oracle
chmod 6751 /home/u01/app/product/12.2.0/db_1/bin/oracle
2.啟動數(shù)據(jù)庫實例時的報錯
[oracle@test1 ~]$ sqlplus / as sysdbaSQL*Plus: Release 12.2.0.1.0 Production on Fri Sep 8 18:33:57 2023Copyright (c) 1982, 2016, Oracle. All rights reserved.Connected to an idle instance.SQL>
SQL>
SQL> startup nomount
ORA-00600: internal error code, arguments: [kgfz_getDiskAccessMode:ntyp], [0], [], [], [], [], [], [], [], [], [], []
ORA-29701: unable to connect to Cluster Synchronization Service
SQL> exit
Disconnected
3.對集群軟件進行卸載時的報錯及日志--12C開始需要用Note: in 12c, or higher, while performing the procedure, instead of rootcrs.pl, rootcrs.sh should be used if exists in the same location as rootcrs.pl
[root@test1 ~]# /home/u01/grid/crs/install/rootcrs.pl -deconfig -force -verbose
Can't locate Env.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /home/u01/grid/crs/install /home/u01/grid/crs/install/../../perl/lib) at /home/u01/grid/crs/install/crsinstall.pm line 286.
BEGIN failed--compilation aborted at /home/u01/grid/crs/install/crsinstall.pm line 286.
Compilation failed in require at /home/u01/grid/crs/install/rootcrs.pl line 165.
BEGIN failed--compilation aborted at /home/u01/grid/crs/install/rootcrs.pl line 165.
[root@test1 ~]# /home/u01/grid/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode
Can't locate Env.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /home/u01/grid/crs/install /home/u01/grid/crs/install/../../perl/lib) at /home/u01/grid/crs/install/crsinstall.pm line 286.
BEGIN failed--compilation aborted at /home/u01/grid/crs/install/crsinstall.pm line 286.
Compilation failed in require at /home/u01/grid/crs/install/rootcrs.pl line 165.
BEGIN failed--compilation aborted at /home/u01/grid/crs/install/rootcrs.pl line 165.
[root@test1 ~]# /home/u01/grid/crs/install/rootcrs.sh -deconfig -force -verbose -lastnode
Using configuration parameter file: /home/u01/grid/crs/install/crsconfig_params
The log of current session can be found at:/home/u01/gridbase/crsdata/test1/crsconfig/crsdeconfig_test1_2023-09-08_06-43-59PM.log
PRCR-1070 : Failed to check if resource ora.cvu is registeredCRS-0184 : Cannot communicate with the CRS daemon.2023/09/08 18:44:10 CLSRSC-180: An error occurred while executing the command '/home/u01/grid/bin/srvctl stop cvu -f'
PRCR-1070 : Failed to check if resource ora.cvu is registeredCRS-0184 : Cannot communicate with the CRS daemon.2023/09/08 18:44:10 CLSRSC-180: An error occurred while executing the command '/home/u01/grid/bin/srvctl remove cvu -f'
PRCR-1068 : Failed to query resourcesCRS-0184 : Cannot communicate with the CRS daemon.2023/09/08 18:44:11 CLSRSC-180: An error occurred while executing the command '/home/u01/grid/bin/srvctl stop scan_listener -f'
PRCR-1068 : Failed to query resourcesCRS-0184 : Cannot communicate with the CRS daemon.2023/09/08 18:44:11 CLSRSC-180: An error occurred while executing the command '/home/u01/grid/bin/srvctl remove scan_listener -y -f'
PRCR-1068 : Failed to query resources
CRS-0184 : Cannot communicate with the CRS daemon.
2023/09/08 18:44:12 CLSRSC-180: An error occurred while executing the command '/home/u01/grid/bin/srvctl stop scan -f'
PRCR-1068 : Failed to query resources
CRS-0184 : Cannot communicate with the CRS daemon.
2023/09/08 18:44:13 CLSRSC-180: An error occurred while executing the command '/home/u01/grid/bin/srvctl remove scan -y -f'
PRCR-1070 : Failed to check if resource ora.net1.network is registered
CRS-0184 : Cannot communicate with the CRS daemon.
PRCR-1070 : Failed to check if resource ora.helper is registered
CRS-0184 : Cannot communicate with the CRS daemon.
PRCR-1070 : Failed to check if resource ora.ons is registered
CRS-0184 : Cannot communicate with the CRS daemon.2023/09/08 18:44:13 CLSRSC-180: An error occurred while executing the command '/home/u01/grid/bin/srvctl config nodeapps'