Oracle

게시글 보기
작성자 유건데이타 등록일 2018-10-18
제목 How to Disable Auto Start of ASM From Cluster Resource



Applies to:
Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Goal

Modify ASM AUTO_START attribute to 'never'

how to change the AUTO_START option from 'restore' to 'never'. When trying with the crsctl command it says to use the srvctl command and I can't figure out the syntax to make the change. Below is my attempts:

$ crsctl stat res ora.asm -p |grep AUTO_START
AUTO_START=restore

$ crsctl modify resource "ora.asm" -attr "AUTO_START=never"

CRS-4995: The command 'Modify resource' is invalid in crsctl. Use srvctl for this command.
$ srvctl modify resource "ora.asm" -attr "AUTO_START=never"
Usage: srvctl []
commands: enable|disable|start|stop|status|add|remove|modify|update|getenv|setenv|unsetenv|config|upgrade|downgrade
objects: database|service|asm|diskgroup|listener|home|ons
For detailed help on each command and object and its options use:
srvctl -help [-compatible] or
srvctl -help [-compatible]
PRKO-2001 : Invalid command line syntax




Solution

ora.* resources most only be modified using srvctl. Never crsctl.

You can use the below command to disable ASM though:

# srvctl disable asm


When you need to enable it, you can use the below command to enable and start

# srvctl enable asm
# srvctl start asm

To check if a resource is or is not enabled at any given moment, the command: 'crsctl stat res -f' may be used.

Look to the field 'ENABLED'

ENABLED=0 indicates DISABLED

ENABLED=1 indicates ENABLED



Example:


$ crsctl stat res ora.asm -f
NAME=ora.asm
TYPE=ora.asm.type
STATE=ONLINE
TARGET=ONLINE
...

AUTO_START=never
...

ENABLED=1
...


from metalink
Comment
등록된 코멘트가 없습니다.