Monday, 6 June 2016

ASM Commands

Automated Storage Management (ASM) in Oracle Database 10g allows the use of Oracle centric disk management

for Oracle related files. The ASM uses an Oracle instance to provide an interface into a set of raw volumes

which Oracle then administers as a disk group.


The Server Control Utility (SRVCTL) can be used to add, remove, enable, and disable an ASM instance.

The following are some quick examples of managing the ASM environment with SRVCTL.

Use the following syntax to add configuration information about an existing ASM instance:-
srvctl add asm -n <node_name> -i <asm_instance_name> -o <oracle_home>

Use the following syntax to remove an ASM instance:

srvctl remove asm -n <node_name> [-i <asm_instance_name>]

Use the following syntax to enable an ASM instance:

srvctl enable asm -n <node_name> [-i <asm_instance_name>]

Use the following syntax to disable an ASM instance:

srvctl disable asm -n <node_name> [-i <asm_instance_name>]

Use SRVCTL to start, stop, and obtain the status of an ASM instance as in the following examples.

Use the following syntax to start an ASM instance:

srvctl start asm -n <node_name> [-i <asm_instance_name>] [-o <start_options]

Use the following syntax to stop an ASM instance:

Note: For all of the SRVCTL commands in this section for which the -i option is not required, if an instance name is not specified, then the command applies to all the ASM instances on the node.

srvctl stop asm -n <node_name> [-i <asm_instance_name>] [-o <stop_options]

Use the following syntax to configure an ASM instance:

srvctl config asm -n <node_name>

Use the following syntax to obtain the status of an ASM instance:

srvctl status asm -n <node_name>
 

No comments:

Post a Comment

Add Data file

 ************************************************** Database status Tablespace Usage ASM Disk Group Usage(RAC) Backup Filesystem Usage Alert...