You are on page 1of 4

Oracle ASM Commands

Summary of ASMCMD commands


Instance management commands

Comman
d
Description
dsget

Retrieves the discovery diskstring value that is used by the


Oracle ASM instance and its clients.

dsset

Sets the disk discovery diskstring value that is used by the


Oracle ASM instance and its clients.

lsct

Lists information about current Oracle ASM clients.

lsop

Lists the current operations on a disk group or Oracle ASM


instance.

lspwusr

Lists the users from an Oracle ASM password file.

orapwusr Adds, drops, or changes an Oracle ASM password user.


shutdown Shuts down an Oracle ASM instance.
spbackup Backs up an Oracle ASM SPFILE.
spcopy

Copies an Oracle ASM SPFILE.

spget

Retrieves the location of the Oracle ASM SPFILE.

spmove

Moves an Oracle ASM SPFILE.

spset

Sets the location of the Oracle ASM SPFILE.

startup

Starts up an Oracle ASM instance.

File management commands

Comman
d
Description
cd

Changes the current directory to the specified directory.

cp

Enables you to copy files between disk groups, and between a


disk group and the operating system.

du

Displays the total disk space occupied by files in the specified


Oracle ASM directory and all of its subdirectories, recursively.

Comman
d
Description
find

Lists the paths of all occurrences of the specified name (with


wildcards) under the specified directory.

ls

Lists the contents of an Oracle ASM directory, the attributes of


the specified file, or the names and attributes of all disk groups.

lsof

Lists the open files.

mkalias

Creates an alias for system-generated filenames.

mkdir

Creates Oracle ASM directories.

pwd

Displays the path of the current Oracle ASM directory.

rm

Deletes the specified Oracle ASM files or directories.

rmalias

Deletes the specified alias, retaining the file that the alias points
to.

Disk group management commands

Command

Description

chdg

Changes a disk group (add, drop, or rebalance).

chkdg

Checks or repairs a disk group.

dropdg

Drops a disk group.

iostat

Displays I/O statistics for disks.

lsattr

Lists the attributes of a disk group.

lsdg

Lists disk groups and their information.

lsdsk

Lists disks Oracle ASM disks.

lsod

Lists open devices.

md_backup

Creates a backup of the metadata of mounted disk groups.

md_restore

Restores disk groups from a backup of the metadata.

mkdg

Creates a disk group.

mount

Mounts a disk group.

offline

Offlines a disk or a failure group.

online

Onlines a disk or a failure group.

rebal

Rebalances a disk group.

Command

Description

remap

Relocates data in a range of physical blocks on a disk.

setattr

Sets attributes in a disk group.

umount

Dismounts a disk group.

Template management commands

Command

Description

chtmpl

Changes the attributes of a template.

lstmpl

Lists disk group templates.

mktmpl

Adds a template to a disk group.

rmtmpl

Removes a template from a disk group.

File access control commands

Command

Description

chgrp

Changes the user group of a file or list of files.

chmod

Changes permissions of a file or list of files.

chown

Changes the owner of a file or list of files.

groups

Lists the user groups to which a user belongs.

grpmod

Adds or removes users from an existing user group.

lsgrp

Lists user groups.

lsusr

Lists users in a disk group.

mkgrp

Creates a new user group.

mkusr

Adds a user to disk group.

passwd

Changes the password of a user.

rmgrp

Deletes a user group.

rmusr

Deletes a user from a disk group.

Volume management commands

Comman
d

Description

volcreate

Creates an Oracle ADVM volume in the specified disk group.

voldelete

Deletes an Oracle ADVM volume.

voldisable

Disables Oracle ADVM volumes in mounted disk groups.

volenable

Enables Oracle ADVM volumes in mounted disk groups.

volinfo

Displays information about Oracle ADVM volumes.

volresize

Resizes an Oracle ADVM volume.

volset

Sets attributes of an Oracle ADVM volume in mounted disk


groups.

volstat

Reports volume I/O statistics.

You might also like