oracle rac 12徹底刪除,徹底刪除該死的rac

flywiththewind發表於2022-05-16

oracle rac 12徹底刪除,徹底刪除該死的rac

徹底刪除該死的rac

Oracle安裝目錄,包括crs等

$ORACLE_BASE

/etc/oracle

/etc/

oraInst.loc oratab

/usr/local/bin

coraenv dbhome oraenv

RAC 安裝失敗後的刪除

dd if=/dev/zero of=/dev/raw/raw1 bs=1k count=3000

dd if=/dev/zero of=/dev/raw/raw2 bs=1k count=3000

dd if=/dev/zero of=/dev/raw/raw5 bs=1k count=3000

dd if=/dev/zero of=/dev/raw/raw6 bs=1k count=3000

dd if=/dev/zero of=/dev/raw/raw7 bs=1k count=3000

rm  -rf -rf /home/oracle/oracle/*

rm  -rf /etc/rc.d/rc5.d/S96init.crs

rm  -rf /etc/rc.d/init.d/init.crs

rm  -rf /etc/rc.d/rc4.d/K96init.crs

rm  -rf /etc/rc.d/rc6.d/K96init.crs

rm  -rf /etc/rc.d/rc1.d/K96init.crs

rm  -rf /etc/rc.d/rc0.d/K96init.crs

rm  -rf /etc/rc.d/rc2.d/K96init.crs

rm  -rf /etc/rc.d/rc3.d/S96init.crs

rm  -rf /etc/oracle/*

rm  -rf /etc/oraInst.loc

rm  -rf /etc/oratab

rm  -rf /usr/local/bin/coraenv

rm  -rf /usr/local/bin/dbhome

rm  -rf /usr/local/bin/oraenv

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 -f /etc/inittab.crs

mv /etc/inittab /etc/inittab_bak

cp /etc/inittab.orig /etc/inittab

原來沒有清空裸裝置裡的資訊 導致第一個節點 執行./root.sh 出錯

[root@db1 crs]# ./root.sh

WARNING: directory '/home/oracle/oracle/product/10.2.0' is not owned by root

WARNING: directory '/home/oracle/oracle/product' is not owned by root

WARNING: directory '/home/oracle/oracle' is not owned by root

WARNING: directory '/home/oracle' is not owned by root

Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory

Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory '/home/oracle/oracle/product/10.2.0' is not owned by root

WARNING: directory '/home/oracle/oracle/product' is not owned by root

WARNING: directory '/home/oracle/oracle' is not owned by root

WARNING: directory '/home/oracle' is not owned by root

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is 10G Release 2.

assigning default hostname db1 for node 1.

assigning default hostname db2 for node 2.

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node :

node 1: db1 db1-priv db1

node 2: db2 db2-priv db2

clscfg: Arguments check out successfully.

NO KEYS WERE WRITTEN. Supply -force parameter to override.

-force is destructive and will destroy any previous cluster

configuration.

Oracle Cluster Registry for cluster has already been initialized

Startup will be queued to init within 90 seconds.

Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

CSS is active on these nodes.

db1

db2

CSS is active on all nodes.

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

Timed out waiting for the CRS stack to start.


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26224914/viewspace-2894402/,如需轉載,請註明出處,否則將追究法律責任。

相關文章