2013. 12. 26. 17:49 오라클
11g rac resource 제거
기존의 ASM 및 Diskgroup, SCAN IP 제거 등은 많이 해 보았을 것이다.
눈에 거슬리는 거의 사용하지 않는 그 외의 항목을 제거해 보자.
제거하고 싶은 리소스는 ora.gsd, ora.oc4j, ora.cvu,ora.registry.acfs 이렇게 4가지 놈들이다.
구글링 해도 잘 나와있지 않은 방법이다...답답해서 내가 직접 ..ㅋㅋ
[root:/root]#crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE test1
ONLINE ONLINE test2
ora.LISTENER.lsnr
ONLINE ONLINE test1
ONLINE ONLINE test2
ora.asm
ONLINE ONLINE test1 Started
ONLINE ONLINE test2 Started
ora.gsd
OFFLINE OFFLINE test1
OFFLINE OFFLINE test2
ora.net1.network
ONLINE ONLINE test1
ONLINE ONLINE test2
ora.ons
ONLINE ONLINE test1
ONLINE ONLINE test2
ora.registry.acfs
ONLINE ONLINE test1
ONLINE ONLINE test2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE test1
ora.cvu
1 ONLINE ONLINE test1
ora.oc4j
1 ONLINE ONLINE test1
ora.scan1.vip
1 ONLINE ONLINE test1
ora.test.db
1 ONLINE ONLINE test1 Open
2 ONLINE ONLINE test2 Open
ora.test1.vip
1 ONLINE ONLINE test1
ora.test2.vip
1 ONLINE ONLINE test2
제거해 보자
1. crsctl delete resource ora.gsd
2. crsctl delete resource ora.oc4j -f or srvctl remove oc4j
3. crsctl delete resource ora.cvu or srvctl remove cvu
4. crsctl delete resource ora.registry.acfs -f
확인해 보면 다 날라가 있다..
[root:/root]#crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE test1
ONLINE ONLINE test2
ora.LISTENER.lsnr
ONLINE ONLINE test1
ONLINE ONLINE test2
ora.asm
ONLINE ONLINE test1 Started
ONLINE ONLINE test2 Started
ora.net1.network
ONLINE ONLINE test1
ONLINE ONLINE test2
ora.ons
ONLINE ONLINE test1
ONLINE ONLINE test2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE test1
ora.scan1.vip
1 ONLINE ONLINE test1
ora.test.db
1 ONLINE ONLINE test1 Open
2 ONLINE ONLINE test2 Open
ora.test1.vip
1 ONLINE ONLINE test1
ora.test2.vip
1 ONLINE ONLINE test2
추가해 보자..
1. crsctl add resource ora.gsd -type ora.gsd.type
2. crsctl add resource ora.oc4j -type ora.oc4j.type or srvctl add oc4j
3. crsctl add resource ora.cvu -type ora.cvu.type or srvctl add cvu
4. crsctl add resource ora.registry.acfs -type ora.registry.acfs.type
다시 확인해 보면 추가되어 있다...
끝...