添加删除 ASM
Command: srvctl add asm [-l lsnr_name] [-p spfile] [-d asm_diskstring]
Command: srvctl remove asm -l [-f]
Example: srvctl add asm -l LISTENER_ASM01 -p +diskg_data/spfile.ora
Example: srvctl remove asm -l LISTENER_ASM01 -f
启动停止 ASM
Command: srvctl start asm [-n node_name] [-o start_options]
Example: srvctl start asm -n lnxrac1
Command: srvctl stop asm [-n node_name] [-o stop_options] [-f]
Example: srvctl stop asm -n lnxrac1 -f
检查状态
Command: srvctl status asm [-n node_name] [-a]
Example: srvctl status asm -n lnxrac1 -a
启用/禁用
Command: srvctl enable asm [-n node_name]
Example: srvctl enable asm -n lnxrac1
Command: srvctl disable asm [-n node_name]
Example: srvctl disable asm -n lnxrac1
配置
Command: srvctl config asm [-a]
Example: srvctl config asm -a
修改 ASM 参数
Command: srvctl modify asm [-n node_name] [-l listener_name] [-d asm_diskstring] [-p spfile_path]
Example: srvctl modify asm -l listener01
设置/取消 ASM 环境
Example: srvctl getenv asm
Example: srvctl setenv asm -t LANG=en
Example: srvctl unsetenv asm -t CLASSPATH