Monday, July 18, 2011

Oracle 11g Release 2: SRVCTL commands PART 3 [ASM]

SRVCTL command for ASM 

To add/remove the ASM
  • srvctl add asm [-l lsnr_name] [-p spfile] [-d asm_diskstring]
  • srvctl remove asm -l [-f]
  • srvctl add asm -l LISTENERASM01 -p +diskg_data/spfile.ora
  • srvctl remove asm -l LISTENERASM01 -f

To start/stop the ASM
  • srvctl start asm [-n node_name] [-o start_options]
  • srvctl start asm -n linuxrac01
  • srvctl stop asm [-n node_name] [-o stop_options] [-f]
  • srvctl stop asm -n linuxrac01 -f

To check the status of the ASM
  • srvctl status asm [-n node_name] [-a]
  • srvctl status asm -n linuxrac01 -a

To enable/disable ASM
  • srvctl enable asm [-n node_name]
  • srvctl enable asm -n linuxrac01
  • srvctl disable asm [-n node_name]
  • srvctl disable asm -n linuxrac01

To configure the ASM
  • srvctl config asm [-a]
  • srvctl config asm -a

To modify the ASM parameters
  • srvctl modify asm [-n node_name] [-l listener_name] [-d asm_diskstring] [-p spfile_path]
  • srvctl modify asm -l listener01
To get/set/unset the environment of ASM
  • srvctl getenv asm
  • srvctl setenv asm -t LANG=en
  • srvctl unsetenv asm -t CLASSPATH

 Just keep watching more on its way to come in PART 4

No comments:

Post a Comment