ASMCMD commands for Exadata

354 commands, grouped by what they do.

Check status and configuration

  • asmcmd lsdg [--suppressheader] [-g] [--discovery] [<pattern>]

    Lists mounted ASM disk groups and their state, redundancy, space, and rebalance information. With --discovery it queries discovered disk groups instead of mounted disk group statistics; -g includes cluster-wide instance details.

    Read only

  • asmcmd lsdg data

    Lists state, redundancy, capacity, and usable space information for the DATA disk group. It queries ASM disk group metadata and does not change storage state.

    Read only

  • asmcmd lsdg --suppressheader

    Lists ASM disk group information without the header row. It is useful for scripts or compact evidence capture where only disk group data lines are needed.

    Read only

  • asmcmd ls +

    Lists the ASM root namespace, typically showing available disk groups. It is a quick read-only check that the ASM instance is reachable and disk groups are visible.

    Read only

  • asmcmd lsdsk

    Lists ASM disks visible to the ASM instance. It is a read-only storage discovery command for checking disk visibility and basic ASM disk inventory.

    Read only

  • asmcmd lsdsk -G <disk_group>

    Lists ASM disks filtered to a specific disk group. Read-only command used to verify which disks ASM sees for a group before disk maintenance, replacement, or capacity checks.

    Read only

  • asmcmd du [<path>...]

    Displays used and mirror-used space for ASM files under the specified path. The command is read-only and helps estimate capacity consumed by ASM files or directories.

    Read only

  • asmcmd lsof --dbname <DB_NAME>

    Lists open ASM files for local clients, filtered by database name. Read-only; use it to see which ASM files are currently in use before cleanup, movement, or dependency checks.

    Read only

  • asmcmd du +DATA

    Displays used and mirrored space for an ASM file or directory tree. Read-only inspection command used to estimate ASM storage usage before cleanup, copy, or capacity planning work.

    Read only

  • asmcmd ls -l +DATA

    Lists the contents of the DATA ASM disk group using long output format. It is a read-only directory listing useful for checking aliases, file names, and basic ASM metadata.

    Read only

  • asmcmd ls [<path>]

    Lists files, aliases, and directories at the current ASMCMD location or under a specified ASM path. Read-only; it is the basic inventory command before copy, remove, alias, or recovery work.

    Read only

  • asmcmd du +DATA/<DB_UNIQUE_NAME>

    Displays ASM space usage for the database directory under the DATA disk group. It is a read-only size check for estimating database footprint inside ASM.

    Read only

  • asmcmd lsof [-G diskgroup] [--dbname db_name] [--instance instance_name]

    Lists open ASM files and the database/instance using each file. Read-only diagnostic command used before file maintenance or when tracing which database owns ASM file activity.

    Read only

  • asmcmd --privilege sysasm

    Starts ASMCMD with the SYSASM connection privilege instead of relying on an implicit privilege choice. The startup itself is non-mutating, but follow-up commands in the session run with ASM administrator authority.

    Read only

  • asmcmd ls -l [<path>]

    Lists ASM directory entries in long format, adding metadata such as file type, redundancy, striping, timestamp, and system-file indicator where available. Read-only; use it when the basic file name list is not enough.

    Read only

  • asmcmd lsdsk -G DATA

    Lists ASM disks discovered for the specified disk group. Read-only; use it to confirm member, candidate, missing, or offline disk visibility before storage or ASM work.

    Read only

  • asmcmd -p

    Starts ASMCMD with the current ASM directory included in the prompt. It does not change ASM storage; it makes the interactive context visible so later file commands are less ambiguous.

    Read only

  • asmcmd du data/orcl

    Displays used and mirror-used capacity for an ASM path, including directories below the target path. It is read-only and useful for estimating how much disk group space a database directory consumes.

    Read only

  • asmcmd ls +data/orcl/datafile

    Lists files, aliases, or directories at an ASM path. This basic form is read-only and helps confirm which ASM-managed datafiles or aliases exist under a database directory.

    Read only

  • asmcmd iostat [-G <disk_group>]

    Displays I/O statistics for ASM disks in mounted disk groups, optionally filtered to one disk group. Read-only; use it to compare read/write activity across ASM disks during performance or rebalance investigations.

    Read only

  • asmcmd lsattr -G DATA -l

    Lists the attributes and their values for the named disk group; -l shows attribute names alongside values, including compatibility settings and disk-repair timers. Read-only inspection used before storage maintenance or attribute changes.

    Read only

  • asmcmd cd [dir]

    Changes the current directory in an ASMCMD session to an ASM disk group or directory path. It affects only the interactive ASMCMD session context and does not modify ASM files or disk group metadata.

    Read only

  • asmcmd rebal --power 4 -w DATA

    Starts or adjusts an ASM disk group rebalance with power 4 and waits for completion. This redistributes extents across the disk group and can affect I/O load while databases remain online.

    Caution

  • asmcmd find +DATA <PATTERN>

    Searches the DATA disk group for ASM files or aliases matching a pattern. It is a read-only way to locate files before inspection, cleanup planning, or support review.

    Read only

  • asmcmd iostat --io -G DATA

    Displays ASM I/O statistics for the DATA disk group, including I/O activity useful for storage triage. It is a read-only diagnostic command and does not change ASM configuration.

    Read only

  • asmcmd iostat -et -G DATA

    Displays ASM I/O statistics for the DATA disk group using elapsed and total-style output options. It is a read-only performance check for disk group I/O behavior.

    Read only

  • asmcmd ls 'data/orcl/*'

    Lists ASM directory contents under data/orcl using a wildcard pattern. It is read-only, but the wildcard can match multiple ASM directories and produce broad output.

    Read only

  • asmcmd lsattr -G fra -l '%compat*'

    Lists disk group attributes in FRA whose names match the compatibility pattern. It is read-only and commonly shows compatible.asm, compatible.rdbms, and compatible.advm values.

    Read only

  • asmcmd lsdsk -G <diskgroup_name>

    Lists ASM disks associated with the specified disk group. It is a read-only disk inventory command used to confirm disk membership and visibility.

    Read only

  • asmcmd find <path> <name_pattern>

    Searches an ASM directory tree for matching file or directory names and prints their absolute ASM paths. Read-only; it is useful when aliases, generated file names, or file types are not obvious from manual directory listing.

    Read only

  • asmcmd md_backup <BACKUP_FILE> [-G <DISKGROUP>]

    Creates a backup file containing metadata for one or more mounted ASM disk groups. It does not back up database datafiles; it preserves disk group metadata needed for recovery planning or md_restore workflows.

    Safe

  • asmcmd cd +DATA

    Changes the current directory inside an ASMCMD session to an ASM disk group or directory path. It only changes the session navigation context and does not modify ASM files or disk group metadata.

    Read only

  • asmcmd rebal <DISKGROUP> -power 4

    Starts or adjusts an ASM rebalance for a disk group using rebalance power 4. Rebalance redistributes extents after storage changes and can consume I/O and CPU while it runs.

    Caution

  • asmcmd lsdsk --candidate -p

    Lists disks discovered by ASM whose header status is CANDIDATE, with physical disk columns such as group, disk, mount/header/mode state, and path. This read-only command is useful before adding disks to a disk group.

    Read only

  • asmcmd lsdsk -k -G DATA

    Lists ASM disks with the -k column set, including capacity, failgroup, library, label, UDID, product, redundancy, and path details. Read-only command used when the default PATH-only output is not enough for disk identity or capacity checks.

    Read only

  • asmcmd iostat -G data

    Displays I/O statistics for Oracle ASM disks in mounted disk groups. With the disk group filter, it narrows the read-only report to the selected disk group for storage performance triage.

    Read only

  • asmcmd rebal <DISKGROUP> -power 8 -wait

    Starts or adjusts an ASM rebalance at power 8 and waits for the operation to complete before returning. The higher power can make rebalance finish faster but may increase foreground I/O impact.

    Caution

  • asmcmd dsget

    Displays the ASM disk discovery string values from the GPnP profile and ASM_DISKSTRING parameter sources. Read-only; it is commonly used before changing disk discovery with dsset or ASMFD procedures.

    Read only

  • asmcmd iostat -G RECO

    Reports I/O statistics (reads, writes, bytes, errors) as seen by ASM, here scoped to the RECO disk group. Read-only performance snapshot; add a time interval to see per-second rates during an incident.

    Read only

  • asmcmd lsop

    Lists current operations on an ASM disk group or ASM instance, such as rebalance or resync work. It reads V$ASM_OPERATION-derived information and does not change the running operation.

    Read only

  • asmcmd chkdg DATA

    Checks metadata consistency for the DATA ASM disk group. Without the repair option this is a read-only consistency check; repair mode is a separate higher-risk operation.

    Read only

  • asmcmd du --suppressheader +DATA/<DB_UNIQUE_NAME>

    Displays ASM space usage for a database directory while suppressing the header row. It is useful for scripts or compact evidence capture where only the size output should be retained.

    Read only

  • asmcmd du [--suppressheader] [<dir>]

    Reports used and mirror-used space for files under an ASM directory, including subdirectories. Read-only; --suppressheader is useful for scripts that parse the output.

    Read only

  • ASMCMD [+] > md_backup backup_file [-G 'diskgroup [,diskgroup,...]'] [--acfs_sec_encr]

    Creates a backup file containing metadata for one or more mounted ASM disk groups. It can include ACFS security, encryption, or audit metadata, but it does not back up ACFS file data or CRS resource information.

    Safe

  • asmcmd cd +DATA/ORCL/DATAFILE

    Changes the current ASMCMD directory to the specified ASM disk group path. It affects only the interactive ASMCMD session context and is commonly used before listing, copying, or removing ASM files.

    Safe

  • asmcmd spget

    Retrieves the Oracle ASM SPFILE location from the Grid Plug and Play profile. It is a read-only way to confirm which SPFILE ASM will use at startup.

    Read only

  • asmcmd md_backup /scratch/backup/alldgs20100422

    Creates an ASM metadata backup file for mounted disk groups at the specified path. It writes a backup image of metadata such as disk group, alias, ADVM, and ACFS metadata; it does not back up user data.

    Safe

  • asmcmd lsdsk --member

    Lists ASM disks filtered to disks that are members of a disk group. Read-only command used to separate active member disks from candidate, former, or missing disks during storage checks.

    Read only

  • ASMCMD [+data] > ls

    Lists files, aliases, and directories at the current ASMCMD path. Read-only inspection command used to confirm ASM file layout before copy, alias, or cleanup work.

    Read only

  • asmcmd lsof -G DATA

    Lists open ASM files for local clients in the DATA disk group. This read-only command helps identify active database or ASM usage before moving, deleting, or troubleshooting ASM files.

    Read only

  • asmcmd lsdsk -p -G data /devices/diska*

    Lists disks known to ASM, here filtered to disk group DATA and matching a discovery pattern; -p reads disk headers in discovery (planned) mode rather than from V$ views. Read-only; useful for seeing candidate, member, missing, or offline disks.

    Read only

  • asmcmd cd +DATA/ORCL/CONTROLFILE

    Changes the current ASMCMD directory to the CONTROLFILE directory under the DATA disk group for the ORCL database. It changes only the interactive ASMCMD session context and does not modify ASM files.

    Safe

  • asmcmd ls -s +data/orcl/datafile

    Lists ASM files with size-oriented columns such as block size, block count, bytes, and allocated space. It is read-only and is useful when estimating file footprint from ASMCMD without querying dictionary views.

    Read only

  • asmcmd cd <asm_path>

    Changes the current directory inside an ASMCMD session. It does not change ASM storage contents; it only changes the session context used by later ASMCMD commands.

    Safe

  • asmcmd md_backup /scratch/backup/data20100422 -G data

    Creates a metadata backup file for the mounted ASM disk group named data. The command writes the backup file to the specified OS path and leaves the disk group metadata unchanged.

    Safe

  • asmcmd lsdg -g --suppressheader

    Lists mounted ASM disk groups without the header row. It is useful for compact scripts and checks that need only currently mounted disk group data.

    Read only

  • asmcmd lsdsk -t -G DATA

    Lists disks in the DATA disk group with timing columns such as create date, mount date, and repair timer. This read-only command helps verify disk membership and repair timing for a specific disk group.

    Read only

  • asmcmd afd_lsdsk [--all]

    Lists the disks managed/labeled by Oracle ASM Filter Driver (AFD) and their discovery state. Read-only; use it to confirm which devices AFD exposes for ASM use before adding disks or to compare AFD discovery across cluster nodes.

    Read only

  • asmcmd afd_lslbl [<disk_string>]

    Lists disks that contain Oracle ASM Filter Driver labels, optionally filtered by a disk string. It is a read-only ASMFD inspection command used to confirm disk labeling before or after ASMFD work.

    Read only

  • asmcmd ls -l ../onlinelog

    Lists a relative ASM online log directory in long format. Use it while navigating ASM aliases to inspect online redo log files from a nearby ASM directory.

    Read only

  • asmcmd ls -s +DATA/<DB_UNIQUE_NAME>/DATAFILE

    Lists ASM files and includes space-usage information for the target path. Read-only command used to see file sizes or allocation before storage cleanup, copy, or capacity checks.

    Read only

  • asmcmd pwd

    Displays the absolute path of the current directory in the ASMCMD namespace. Read-only command used to confirm navigation context before running relative-path file operations.

    Read only

  • asmcmd showpatches -l

    Lists patches applied to the Oracle Grid Infrastructure home. The -l option includes detailed patch information for comparing nodes or validating patch state after maintenance.

    Read only

  • asmcmd ls -lt +data/orcl/datafile

    Lists ASM files with long-format metadata and time ordering/details for the target path. It is read-only and helps identify file type, redundancy, striping, timestamp, and file name information.

    Read only

  • asmcmd rebal --with balance,compact --power 4 FRA

    Starts or adjusts ASM rebalance work for a disk group with both balance and compact phases, using a specified power. The operation redistributes extents and can consume noticeable I/O while it runs.

    Caution

  • asmcmd find --type CONTROLFILE +DATA/<DB_UNIQUE_NAME> "*"

    Searches an ASM path for control files using ASMCMD find with a file type filter. It is read-only and returns matching ASM file paths.

    Read only

  • asmcmd lsct data

    Lists clients connected to the ASM instance for the specified disk group, including database and ADVM clients. This is useful for seeing which clients depend on a disk group before maintenance.

    Read only

  • asmcmd -V

    Starts ASMCMD only long enough to print the ASMCMD version number, then exits. Read-only; use it to confirm the Oracle home tooling version before relying on command syntax or behavior.

    Read only

  • asmcmd lsof -C +ASM

    Lists open ASM files for the specified local client instance, here +ASM. This read-only command narrows open-file checks by client instead of by disk group.

    Read only

  • asmcmd showpatches [-l]

    Lists patches applied to the Oracle Grid Infrastructure home, with -l showing full details. Read-only command used to confirm GI patch level before comparing nodes or investigating version-sensitive behavior.

    Read only

  • asmcmd showversion

    Displays Oracle ASM cluster release and software patch level information. It is read-only and helps verify Grid Infrastructure software state across maintenance or patching work.

    Read only

  • ASMCMD [+data/orcl] > cd DATAFILE

    Changes the current directory inside an interactive ASMCMD session. The command only changes session context; it does not alter ASM files, aliases, or disk group metadata.

    Safe

  • asmcmd lsattr -lm -G data

    Lists ASM disk group attributes and their values for the selected disk group. It is read-only and commonly used to check compatibility, repair timers, and other feature or behavior settings before changes.

    Read only

  • asmcmd volinfo -G DATA -a

    Displays Oracle ADVM volume information for volumes in the DATA disk group, including device path, state, size, redundancy, usage, and mount path. Read-only inspection used before ACFS mount, resize, disable, or delete work.

    Read only

  • asmcmd find --type CONTROLFILE +data/orcl '*'

    Searches an ASM directory tree for files matching a name pattern, optionally constrained by ASM file type. This example finds CONTROLFILE entries under +DATA/ORCL and prints matching ASM paths.

    Read only

  • asmcmd ls +FRA/orcl/ARCHIVELOG/2009%

    Lists ASM directory entries matching the supplied path or wildcard pattern. The percent sign and asterisk both act as wildcards in ASMCMD paths, so this form lists archived log directories or files that match the date prefix.

    Read only

  • asmcmd -p -v info

    Starts ASMCMD with the current ASM directory in the prompt and sets command output verbosity to info. It is a read-only startup option for the ASMCMD session and does not alter ASM metadata by itself.

    Read only

  • asmcmd afd_di -q

    Queries the Oracle ASM Filter Driver data integrity state. The source row omitted the required option, so this record keeps the documented read-only query form rather than the invalid bare command.

    Read only

  • asmcmd help [<command>]

    Displays ASMCMD help text, either general help or syntax for a named ASMCMD command. Read-only; it reflects the installed Grid Infrastructure home and is useful before running unfamiliar ASMCMD operations.

    Read only

  • asmcmd ls --absolutepath +DATA/ORCL/DATAFILE

    Lists files and aliases in the target ASM directory and displays full ASM paths for aliases. Read-only inspection used to confirm the real ASM path before copy, alias, or cleanup work.

    Read only

  • asmcmd showclusterstate

    Displays the current state of the Oracle ASM cluster, such as normal or rolling patch states. It is read-only and useful for confirming cluster state before or after Grid Infrastructure maintenance.

    Read only

  • asmcmd showversion --active

    Displays the active Oracle ASM cluster release and software patch level. It is read-only and helps confirm which Grid Infrastructure software level is active after patching or upgrade work.

    Read only

  • asmcmd volstat [-G <diskgroup>] [<volume>]

    Displays I/O statistics for Oracle ADVM volumes, optionally filtered by disk group or volume. Read-only command used to monitor volume activity during ACFS/ADVM performance or maintenance checks.

    Read only

  • asmcmd find +DATA undo*

    Recursively searches the given ASM directory/disk group for files and aliases matching a name pattern (e.g. undo*). Read-only directory traversal that returns matching paths; it makes no changes.

    Read only

  • asmcmd afd_lslbl /dev/disk1a

    Scans the specified operating system disk path and lists ASMFD label information found on it. This is a read-only verification command used before disk group or ASMFD changes.

    Read only

  • asmcmd afd_state

    Returns the current Oracle ASM Filter Driver state and filtering status for the host. It is a read-only health check for confirming whether ASMFD is loaded and how filtering is set.

    Read only

  • asmcmd lsod -G data --process '*LGWR*'

    Lists open ASM disks in the data disk group for processes matching LGWR. It is a read-only way to see which disk paths are open by a database log writer process.

    Read only

  • asmcmd volinfo -G data volume1

    Displays metadata for a named Oracle ADVM volume in the specified disk group. The output includes volume state, size, device path, and disk group association without modifying the volume.

    Read only

  • asmcmd md_restore <BACKUP_FILE> [--silent] [--full|--nodg|--newdg -o 'OLD_DG:NEW_DG'] [-G '<DISKGROUP>[,<DISKGROUP>...]']

    Restores ASM disk group metadata from an md_backup file, optionally creating disk groups or restoring only metadata depending on the selected mode. It can also write SQL to a script instead of executing it, so the effect depends on the flags used.

    Caution

  • asmcmd spbackup <source> <destination>

    Backs up an Oracle ASM SPFILE from a disk group to another disk group or to an operating system file. It writes a backup copy and leaves the source SPFILE in place.

    Safe

  • asmcmd spbackup <source_spfile> <destination_backup>

    Creates a backup copy of an Oracle ASM server parameter file without creating a new active SPFILE in the target disk group. The backup does not update the GPnP profile and is used for recovery or change-control baselines.

    Safe

  • asmcmd afd_scan '/dev/rdsk/mydisks/*'

    Scans for Oracle ASM Filter Driver disks using the specified discovery string. Read-only; it helps confirm ASMFD disk discovery after labels, device presentation, or configuration changes.

    Read only

  • asmcmd ls -l --absolutepath +FRA/ASM/ASMPARAMETERFILE

    Lists ASM parameter file entries under the FRA disk group path and shows absolute alias paths when available. It is a read-only file listing used to locate ASM-managed parameter files.

    Read only

  • asmcmd volinfo --all

    Displays metadata for all Oracle ADVM volumes visible to ASM, including size, state, device path, and disk group association. Read-only command used before volume resize, disable, delete, or ACFS troubleshooting.

    Read only

  • asmcmd lsdsk -G data '/devices/diska'$i

    Lists ASM disks for the DATA disk group matching the supplied device pattern. It is a read-only disk discovery and mapping check used during ASM storage validation.

    Read only

  • asmcmd ls -l ../tempfile

    Lists ASM directory entries with long-format metadata such as type, redundancy, striping, and system file information. Read-only inspection used when the basic file name list is not enough before copy, alias, or cleanup work.

    Read only

  • asmcmd lsct [--suppressheader] [-g] <disk_group>

    Lists databases, ACFS, or other clients currently connected to ASM for a disk group. The -g option reports cluster-wide client information, and --suppressheader makes the output easier to parse in scripts.

    Read only

  • asmcmd lsod [--suppressheader] [-G diskgroup] [--process process] [pattern]

    Lists open Oracle ASM disks and the processes using them, optionally filtered by disk group, process, or path pattern. Read-only diagnostic command for understanding which ASM disks are active.

    Read only

  • asmcmd lspwusr

    Lists users from the local Oracle ASM password file. This read-only command is useful for auditing privileged ASM authentication before or after password-file user changes.

    Read only

  • asmcmd showclustermode

    Displays the current mode of the Oracle ASM cluster, indicating whether Flex ASM is enabled. Read-only check used to confirm whether ASM is running in standard cluster or Flex ASM mode.

    Read only

  • pwd

    Displays the current directory in the interactive ASMCMD namespace. It is useful before running relative-path ASM file commands.

    Read only

  • asmcmd spcopy +DATA/<SPFILE> +DATA/<SPFILE_COPY>

    Copies an Oracle ASM SPFILE between ASM disk groups or between ASM and an operating-system path. Without -u, the command writes the copy but does not update the GPnP profile to use it.

    Safe

  • asmcmd afd_scan [<afd_diskstring>] [--all]

    Scans operating system devices for Oracle ASMFD labels using an optional discovery string. It reports discovered ASMFD disks and does not label or reconfigure devices.

    Read only

  • asmcmd afd_label DATA1 /dev/disk1a --init

    Labels a device for Oracle ASM Filter Driver and initializes it for ASMFD use. This is a storage metadata change used during controlled ASMFD configuration workflows.

    Caution

  • asmcmd lsusr -G DATA

    Lists Oracle ASM users associated with the DATA disk group. This read-only command supports ASM file access control review before changing ownership, groups, or permissions.

    Read only

  • asmcmd lsct +DATA

    Lists the clients (databases, ACFS, etc.) currently connected to ASM and using the specified disk group, with their software version and instance. Read-only; used to see who depends on a disk group before dismounting it.

    Read only

  • asmcmd spcopy +DATA/asm/asmparameterfile/registry.253.721810181 $ORACLE_HOME/dbs/spfileCopyASM.ora

    Copies an Oracle ASM server parameter file from ASM to another ASM or operating-system location. The source SPFILE is left in place; the command writes a destination copy that can be used for backup or recovery work.

    Safe

  • asmcmd afd_dsget

    Displays the current Oracle ASM Filter Driver discovery disk string. It is read-only and helps confirm which device paths ASMFD will scan before changing disk-string or label configuration.

    Read only

  • asmcmd dsset '<ASM_DISKSTRING>'

    Sets the disk discovery string ASM uses to locate storage devices. This changes ASM storage discovery behavior, so an incorrect value can hide valid disks or expose unintended devices.

    Caution

  • asmcmd spset <ASM_SPFILE_LOCATION>

    Updates the Grid Plug and Play profile with the location of the Oracle ASM server parameter file. It controls which ASM SPFILE location is used after ASM startup or recovery.

    Caution

  • asmcmd volcreate -G data -s 10G --width 1M --column 8 volume1

    Creates a 10 GB Oracle ADVM volume named volume1 in the data disk group with explicit stripe width and column count. This provisions new volume storage with striping choices that affect layout and performance.

    Caution

  • asmcmd volcreate -G data -s 10G volume1

    Creates a 10 GB Oracle ADVM volume named volume1 in the data disk group. This provisions new storage and creates a volume device for later ACFS or ADVM use.

    Caution

  • asmcmd ls --permission +FRA/orcl/archivelog/flashback

    Lists the contents of an ASM directory showing File Access Control owner, group, and permission attributes for each entry. Read-only listing used to inspect ASM file ACLs and layout.

    Read only

  • asmcmd lstmpl -l -G DATA

    Lists ASM file templates for the DATA disk group, with detailed template attributes enabled by -l. This read-only command shows the redundancy and striping policies new ASM files can inherit.

    Read only

  • asmcmd lstmpl [--suppressheader] [-l] [-G <diskgroup>] [<pattern>]

    Lists ASM file templates and, with -l, their redundancy and striping attributes. Read-only command used to understand which file creation policies exist in a disk group.

    Read only

  • asmcmd pwget --asm

    Returns the location of the Oracle ASM password file associated with the ASM instance that ASMCMD is connected to. Read-only command used to verify password-file placement before copy, move, backup, or troubleshooting work.

    Read only

  • asmcmd pwget --dbuniquename <DB_UNIQUE_NAME>

    Returns the password file location for the database identified by its DB_UNIQUE_NAME. Read-only command used to verify where privileged database authentication metadata is stored in ASM.

    Read only

  • asmcmd pwcopy +DATA/orapwasm +FRA/my_pwfile_backup

    Copies an ASM or database password file to another ASM location. Without --asm or --dbuniquename, this backs up the password file but does not change the active password file location metadata.

    Safe

  • asmcmd ls --permission +data/orcl/datafile

    Lists ASM directory entries with owner, group, and permission columns. It is read-only and is used to verify file access-control metadata before or after chgrp, chmod, chown, or group changes.

    Read only

  • asmcmd lsusr [--suppressheader] [-a] [-G <DISKGROUP>] [<PATTERN>]

    Lists Oracle ASM users in a disk group, optionally showing all user columns or limiting results by disk group and pattern. Read-only command used for ASM file access control review.

    Read only

  • asmcmd dsset [--normal | --parameter | --profile [-f]] <DISKSTRING>

    Sets the ASM disk discovery string used to locate candidate disks. Incorrect values can hide valid disks from ASM discovery or expose unintended device paths.

    Caution

  • asmcmd spset +DATA/asm/asmparameterfile/asmspfile.ora

    Sets the Oracle ASM SPFILE location recorded in the Grid Plug and Play profile. This changes where ASM expects to find its server parameter file on the next relevant startup.

    Caution

  • asmcmd volresize -G <diskgroup> -s <size> [-f] <volume>

    Changes the size of an Oracle ADVM volume in an ASM disk group. If the volume contains an ACFS file system, use the documented ACFS resize procedure instead so the file system and volume stay consistent.

    Caution

  • asmcmd chkdg --repair <DISKGROUP>

    Checks ASM disk group metadata and, with --repair, attempts to repair detected metadata errors. The repair form changes disk group metadata and should be treated as a controlled recovery action.

    Caution

  • asmcmd pwcopy [--asm | --dbuniquename <db_unique_name>] <source> <destination> [-f]

    Copies an Oracle ASM or database instance password file between ASM and supported destinations. When associated with ASM or a database unique name, the target can become the current password file location.

    Caution

  • asmcmd spcopy [-u] <source> <destination>

    Copies an Oracle ASM SPFILE between ASM and supported file locations. With the update option, it can also update the startup configuration reference, so it should be handled as controlled ASM configuration work.

    Caution

  • asmcmd spcopy +DATA/ASM/ASMPARAMETERFILE/registry.253.849343867 +FRA/spfileCopyASM.ora

    Copies an Oracle ASM server parameter file from one ASM location to another. This form writes a destination copy and does not by itself switch the active SPFILE location.

    Safe

  • asmcmd afd_label 'disk0' '/dev/rdsk/mydisks/disk0'

    Applies an Oracle ASM Filter Driver label to the specified disk path. This writes ASMFD metadata used for disk discovery, so the target device must be verified before execution.

    Caution

  • asmcmd lsgrp -a

    Lists Oracle ASM user groups used for ASM file access control, including group membership across disk groups. This read-only command is useful when auditing or troubleshooting ASM file permissions.

    Read only

  • asmcmd lsgrp [--suppressheader] [-a] [-G <diskgroup>] [<pattern>]

    Lists ASM file access control groups, optionally filtered by disk group or pattern. With -a it displays all available group details for audit or permission troubleshooting.

    Read only

  • asmcmd afd_lslbl '/dev/sd*'

    Scans operating system disks matching the optional discovery string and lists devices that contain Oracle ASM Filter Driver labels. It is read-only and helps verify which devices are already marked for ASMFD use.

    Read only

  • asmcmd lsod --process '*LGWR*' '*diska*'

    Lists open ASM disks for processes matching LGWR and disk paths matching the diska pattern. It is read-only and narrows the open-disk view by both process and disk-name pattern.

    Read only

  • asmcmd amdu_extract DATA <ASM_FILE> "<DISK_STRING>"

    Extracts an Oracle ASM file from the DATA disk group using the ASM Metadata Dump Utility path exposed through ASMCMD. It is a recovery-oriented file extraction command and should be used with a verified ASM file name and disk string.

    Caution

  • asmcmd dsset ''

    Sets the ASM disk discovery string to an empty value, a documented step before some ASM Filter Driver configuration workflows. This changes disk discovery behavior and can make disks disappear from discovery if used outside the intended procedure.

    Caution

  • asmcmd spmove <source_spfile> <destination_spfile>

    Moves an Oracle ASM SPFILE from one ASM or OS location to another. It cannot move the SPFILE currently used by an open ASM instance; the instance must be using a PFILE or a different SPFILE, and a restart is needed to use the new location.

    Caution

  • asmcmd amdu_extract data data/orcl/my_alias_filename /devices/disk*

    Extracts a file from the DATA disk group using the ASMCMD amdu_extract command and the supplied ASM disk discovery string. It writes an extracted copy for recovery or support analysis; the source ASM file is not modified.

    Safe

  • asmcmd dsset '/devices1/disk*,/devices2/disk*'

    Sets the ASM disk discovery string used to discover storage devices. This changes ASM discovery configuration and can affect which disks ASM sees, so it should be treated as a controlled configuration change.

    Caution

  • asmcmd volenable -G data volume1

    Enables the named Oracle ADVM volume in a mounted ASM disk group. It makes the volume available for use again, typically before mounting or accessing an Oracle ACFS file system on top of it.

    Caution

  • asmcmd lsqg --quotagroup QG1

    Lists ASM quota group information filtered to the quota group named QG1. This read-only command is a narrower form of lsqg for checking one quota group without listing every group.

    Read only

  • asmcmd pwcopy +DATA/<PWD_FILE> +DATA/<PWD_FILE_COPY> --dbuniquename <DB_UNIQUE_NAME>

    Copies an Oracle database password file in ASM and associates the target with a database unique name. Because --dbuniquename affects the CRSD-managed password file location, this is more than a simple file copy.

    Caution

  • asmcmd pwcreate { --asm | --dbuniquename <db_unique_name> } [-f] [--format <format>] <file_path> [<sys_password>]

    Creates an Oracle ASM or database password file at the specified location. It can replace an existing password file with -f, so it affects privileged authentication and must be handled as a controlled credential operation.

    Caution

  • asmcmd spmove <source> <destination>

    Moves an Oracle ASM server parameter file from source to destination and updates the GPnP profile. The moved SPFILE is only used after restart, and the command cannot move an SPFILE currently used by an open ASM instance.

    Caution

  • asmcmd md_restore --nodg -G data --silent /scratch/backup/alldgs20100422

    Restores ASM metadata for the DATA disk group from a metadata backup without creating the disk group. The --silent option ignores errors, so dependency loss or partial restore behavior must be understood before use.

    Caution

  • asmcmd pwcreate --dbuniquename orcl '+data/ORCL/orapwdb'

    Creates an ASM-hosted password file for the database unique name orcl. It changes privileged authentication storage and should be coordinated with database or RAC password file expectations.

    Caution

  • asmcmd volresize -G data -s 20G volume1

    Resizes the Oracle ADVM volume named volume1 in the data disk group to 20 GB. This changes storage capacity for dependent ADVM or ACFS consumers and should be coordinated with filesystem and free-space checks.

    Caution

  • asmcmd md_restore --full -G data --silent /scratch/backup/alldgs20100422

    Restores ASM disk group metadata from an md_backup file; --full recreates the disk group and restores all metadata (templates, aliases, attributes, ACL) for the named group. This recreates/overwrites disk group structure and will use the targeted disks, so it is a high-impact recovery operation.

    Dangerous

  • asmcmd md_restore --newdg -o 'data:data2' --silent /scratch/backup/data20100422

    Restores ASM disk group metadata from an md_backup file while mapping an old disk group name to a new one. This is a recovery operation that can recreate disk group metadata, aliases, templates, and related configuration under the renamed target.

    Dangerous

  • asmcmd audshowtimestamp --os

    Displays the last archive timestamp recorded for the ASM OS audit trail. It is a read-only check used to understand what timestamp-based audit cleanup will consider eligible.

    Read only

  • asmcmd lsfg

    Lists Oracle ASM file groups in a disk group, with optional flags available for narrowing by disk group or file group. It is a read-only ASM Flex Disk Group management command used to inspect file group definitions before changes.

    Read only

  • asmcmd groups <DiskGroup> <User>

    Lists the ASM File Access Control (ACL) groups that a given user belongs to within a disk group. Read-only inspection used when reviewing ASM file ownership and access control before making permission changes.

    Read only

  • asmcmd audshowtimestamp [{--os | --uni}] [-g]

    Displays the last archive timestamp set by audsettimestamp for ASM audit trails. It is read-only and is used to verify the timestamp boundary that audit cleanup jobs or audcleanaudittrail may use.

    Read only

  • asmcmd lsqg -G DATA

    Lists ASM quota groups in the DATA disk group, including quota usage and limits. It is a read-only view into ASM file group quota governance.

    Read only

  • asmcmd afd_configure

    Configures Oracle ASM Filter Driver on the local node so ASMFD can manage and protect ASM disk devices. The command is run as root and normally requires the Clusterware stack to be stopped on that node first.

    Caution

  • asmcmd amdu_extract <diskgroup> [--sys_filename] <file_name> "<disk_string>"

    Extracts an ASM file from a disk group by invoking the ASM Metadata Dump Utility path exposed through ASMCMD. It is a recovery-oriented extraction command and can be I/O heavy, but it does not intentionally modify the ASM source file.

    Caution

  • asmcmd passwd <USER_NAME>

    Changes the password for an ASM file access control user from ASMCMD. It updates credentials, so it can affect applications or automation that depend on that ASM user.

    Caution

  • asmcmd passwd <user>

    Changes the password for an Oracle ASM file access control user. The command prompts for the current and new password and requires SYSASM privilege.

    Caution

  • asmcmd pwset --asm +DATA/<PWD_FILE>

    Sets the registered location of the Oracle ASM password file to the specified ASM file path. This changes authentication metadata for the ASM resource; it does not create or validate a new password file by itself.

    Caution

  • asmcmd spcopy -u /oracle/product/11.2.0/grid/dbs/spfileTestASM.ora +DATA/ASM/spfileTestASM.ora

    Copies an Oracle ASM SPFILE and updates the Grid Plug and Play profile to point to the copied file. The -u form is distinct from plain spcopy because it changes the recorded ASM SPFILE location.

    Caution

  • asmcmd afd_dsset <afd_diskstring>

    Sets the Oracle ASM Filter Driver discovery disk string. A wrong value can hide ASMFD-managed disks from discovery, so it must match the approved device naming and storage presentation.

    Caution

  • asmcmd pwcopy --asm +DATA/orapwasm +FRA/orapwasm_new

    Copies the ASM password file from +DATA to +FRA and, because --asm is specified, associates the destination as the ASM password file location. It changes privileged authentication metadata, not just a passive backup copy.

    Caution

  • asmcmd audcleanaudittrail --uni --useTimestamp

    Deletes Unified audit trail files managed by ASM that are older than the last archive timestamp. This is a destructive audit-retention operation, not a harmless cleanup command, because it removes audit evidence from disk.

    Dangerous

  • asmcmd lsaudconfigparams --os

    Lists Oracle ASM audit cleanup configuration parameters for the operating system audit trail. It is a read-only inspection command for checking audit retention and cleanup settings.

    Read only

  • asmcmd lsqg

    Lists ASM quota groups in disk groups, with quota group information retrieved from V$ASM_QUOTAGROUP. This read-only command gives a broad view of ASM quota governance before filtering to a disk group or quota group.

    Read only

  • asmcmd lsfg -G DATA

    Displays the file groups defined in the specified disk group along with their properties. Read-only inspection of Flex disk group file-group configuration.

    Read only

  • asmcmd groups data oracle1

    Lists the ASM user groups in the specified disk group to which the operating-system user belongs. It is a read-only file access control check for ASM permissions troubleshooting.

    Read only

  • asmcmd lsgrp 'asm%'

    Lists ASM user groups whose names match the asm% pattern. It is read-only and can show group ownership and membership depending on options.

    Read only

  • asmcmd md_restore -S override.sql --silent /scratch/backup/data20100422

    Reads an md_backup file and, with -S, writes the equivalent restore SQL to a script file (override.sql) instead of executing the restore directly. The -S form only generates a script for review/customization, so it is itself non-destructive; the destructive part is running the generated SQL.

    Caution

  • asmcmd mkusr data oracle1

    Adds an ASM file access control user to the specified disk group. The user can then own files or be granted permissions through ASM access-control commands.

    Caution

  • asmcmd passwd grid

    Changes the password for an Oracle ASM user. Use it when rotating or correcting ASM user credentials under a documented access-control procedure.

    Caution

  • asmcmd pwmove --asm +FRA/orapwasm_bak +DATA/orapwasm

    Moves an ASM password file from one ASM location to another and updates the ASM resource metadata. This affects where ASM expects to find privileged authentication material.

    Caution

  • asmcmd pwmove { --asm | --dbuniquename <db_unique_name> } <source> <destination> [-f]

    Moves an Oracle ASM or database instance password file between ASM and supported destinations. It can update the associated resource metadata, so it affects privileged authentication plumbing rather than just copying bytes.

    Caution

  • asmcmd pwset --asm +FRA/my_pwfile_backup

    Updates ASM metadata to point to the specified password file as the active ASM password file. It does not copy the file; it changes the location ASM records for privileged authentication.

    Caution

  • asmcmd pwset --dbuniquename <DB_UNIQUE_NAME> +DATA/<PWD_FILE>

    Sets the registered password file location for the database identified by DB_UNIQUE_NAME. This changes password file metadata used for privileged authentication and should follow a successful password file copy or creation step.

    Caution

  • asmcmd afd_refresh

    Refreshes Oracle ASM Filter Driver disks using the configured AFD discovery string. It updates the local ASMFD view after storage presentation or label changes without directly creating or dropping disks.

    Safe

  • asmcmd pwset --asm <PASSWORD_FILE_PATH>

    Sets the registered password file location for the Oracle ASM instance to the specified ASM or file-system path. This updates password file metadata used by Clusterware and ASM authentication workflows.

    Caution

  • asmcmd afd_filter {-e | -d} [<disk_path>]

    Enables or disables Oracle ASM Filter Driver filtering, optionally for a specified disk path. The source row omitted the required option, so this record keeps the documented command form instead of the invalid bare command.

    Caution

  • asmcmd lsaudcleanupjobs

    Lists ASM audit cleanup jobs. It is a read-only inspection command used to review configured audit cleanup automation before changing or troubleshooting audit retention.

    Read only

  • asmcmd mkqg -G data quota_grp1 <quota>

    Creates a quota group in the specified Flex disk group, optionally with a space quota, to govern how much storage its associated file groups may consume. Writes new quota-group metadata; existing files are unaffected until file groups are assigned.

    Safe

  • asmcmd lsqg [-G <disk_group>] [--quotagroup <quota_group>] [--suppressheader]

    Lists ASM quota groups in a disk group, optionally filtered to a specific quota group. It reads quota group metadata, including quota limits and related file-group governance information.

    Read only

  • asmcmd afd_label <label> <disk_path> --migrate

    Labels an existing disk path for Oracle ASM Filter Driver while using the migrate option. It is used during controlled ASMFD adoption or migration work where disk identity must be preserved carefully.

    Caution

  • asmcmd pwcopy --asm +FRA/my_pwfile_backup +DATA2/my_orapwasm

    Copies an ASM password file to a new location and updates the ASM resource metadata to use that file. This is different from a plain pwcopy backup because --asm changes the active password file location.

    Caution

  • asmcmd remap <DISKGROUP> <DISK> <BLOCK_RANGE>

    Marks a range of physical blocks on an ASM disk as unusable and relocates any data allocated in that range. It is a bad-block recovery command, not a general health check.

    Caution

  • asmcmd afd_filter -e /dev/sdq

    Enables Oracle ASM Filter Driver filtering mode for the specified disk path. This changes ASMFD filtering behavior and is used to control write filtering protection for ASM-managed disks.

    Caution

  • asmcmd audcreatejob --name OSAUD_PURGE --int 10 --os --use_ts

    Creates an ASM audit purge job named OSAUD_PURGE for OS audit trail files with a 10-hour interval. With --use_ts, the job uses the last archive timestamp as the purge boundary, so a bad timestamp or interval can repeatedly remove audit files.

    Dangerous

  • asmcmd voldelete -G <diskgroup> <volume>

    Deletes an Oracle ADVM volume from the specified ASM disk group. This is destructive storage cleanup; any ACFS file system or data on that volume must already be removed or no longer needed.

    Dangerous

  • asmcmd lsaudconfigparams [{--os|--uni}]

    Displays the configured audit trail properties (such as file rollover and cleanup settings) for the given ASM audit trail type. Read-only; use it to review audit configuration before changing audit properties or when audit files grow unexpectedly.

    Read only

  • asmcmd afd_dsset '/dev/rdsk/mydisks/*'

    Sets the Oracle ASM Filter Driver (ASMFD) disk discovery diskstring that determines which devices AFD manages. Changes a live configuration value; an incorrect or too-narrow pattern can hide disks from ASMFD discovery and affect disk-group availability.

    Caution

  • asmcmd remap DATA <DISK_NAME> <START_BLOCK>-<END_BLOCK>

    Marks a physical block range on an ASM disk as unusable and relocates any data allocated in that range. It moves blocks away from the specified range; it does not repair corrupted block contents.

    Caution

  • asmcmd lsqg -G DATA --quotagroup QG1

    Lists the quota group named QG1 within the DATA disk group. This read-only command combines disk group and quota group filters to remove ambiguity when the same quota group naming pattern exists in multiple disk groups.

    Read only

  • asmcmd afd_di -e

    Enables the Oracle ASM Filter Driver data integrity state through ASMCMD. This changes ASMFD behavior on the host, so it is not just a diagnostic display despite the command name looking harmless.

    Caution

  • asmcmd afd_unlabel 'disk0'

    Clears an Oracle ASM Filter Driver label from the specified disk label or path. Used on the wrong device, it can break ASMFD discovery for storage that ASM depends on.

    Dangerous

  • asmcmd audcleanaudittrail {--os|--uni} [--useTimestamp]

    Deletes ASM audit files for the selected OS or Unified audit trail type. Without --useTimestamp it removes audit files that are not actively being written to, so it must be treated as a destructive retention action.

    Dangerous

  • asmcmd lsaudcleanupjobs --os

    Displays configured ASM audit trail purge jobs for the operating-system audit trail type. Read-only command used to verify audit cleanup automation and investigate audit file growth.

    Read only

  • asmcmd lscc

    Lists the configured member clusters known to Oracle ASM. Read-only; it is used to confirm Flex ASM or member-cluster registration before changing client-cluster configuration.

    Read only

  • asmcmd chqg -G <disk_group> <quota_group> <property> <value>

    Modifies a quota-group property in an ASM disk group. This changes quota governance for ASM file groups, so it can affect whether databases or file groups are allowed to consume more space.

    Caution

  • asmcmd mkgrp data asm_data oracle1 oracle2

    Creates an ASM file access control user group in a disk group and can add users to it at creation time. This changes ASM access-control metadata used for file ownership and permissions.

    Caution

  • asmcmd mkqg -G <diskgroup> <quota_group> [quota M|G|T]

    Creates a quota group in a disk group with an optional storage quota limit, used to govern space consumption by file groups in Flex/Extended redundancy disk groups. Writes new quota-group metadata in the disk group.

    Caution

  • asmcmd remap <diskgroup> <disk_name> <start_block>-<end_block>

    Marks a range of physical blocks as unusable on an ASM disk and relocates any data allocated in that range. It does not repair corrupted block contents; it is a targeted storage-recovery action.

    Caution

  • asmcmd rmtmpl -G <diskgroup> <template>

    Removes an Oracle ASM template from the specified disk group. Use it only when a template is no longer needed and its removal will not affect expected file creation policies.

    Caution

  • asmcmd afd_configure [-d | -e] [-f]

    Configures Oracle ASM Filter Driver on the host. This is a privileged Grid Infrastructure storage configuration command that can affect ASMFD disk filtering and discovery.

    Caution

  • asmcmd audcreatejob --name <job_name> --int <hours> {--os|--uni} [--use_ts]

    Creates an Oracle ASM audit trail purge job for OS or unified audit files. The job runs at the configured interval and can purge based on the last archive timestamp when --use_ts is specified.

    Caution

  • asmcmd pwdelete {--asm | --dbuniquename <DB_UNIQUE_NAME> | <FILE_PATH>}

    Deletes an Oracle ASM or database instance password file, either by ASM target, database unique name, or explicit file path. This can break privileged authentication if the wrong password file is removed.

    Dangerous

  • asmcmd afd_unlabel <LABEL>

    Clears an Oracle ASM Filter Driver label from the specified disk label or disk path. Removing the wrong ASMFD label can make a disk disappear from ASMFD discovery and can disrupt disk group access.

    Dangerous

  • asmcmd audcleanaudittrail --os --useTimestamp

    Deletes eligible ASM OS audit trail files, using the stored archive timestamp as the cleanup boundary. This is a destructive audit-log cleanup command and must be tied to an approved retention and archive process.

    Dangerous

  • asmcmd voldelete -G data volume1

    Permanently deletes an Oracle ADVM volume from the specified disk group, removing its volume device and freeing its storage. Destructive: any ACFS file system or data on the volume is lost, so the volume must be disabled and its file systems unmounted/deregistered first.

    Dangerous

  • asmcmd lscc memberCluster1 --suppressheader

    Lists the configured ASM member-cluster entry for memberCluster1 and suppresses column headings in the output. Read-only; the headerless form is useful for scripts that parse a specific cluster's registration.

    Read only

  • asmcmd lscc memberCluster1 --suppressheader -l

    Lists detailed information for the configured ASM member cluster named memberCluster1 and suppresses column headings. Read-only; the -l option requests all available details for that member-cluster entry.

    Read only

  • asmcmd audshowtimestamp

    Displays the last archive timestamps set for ASM audit trail cleanup. With no options it shows the configured timestamp state available to audit purge jobs and timestamp-based cleanup commands.

    Read only

  • asmcmd stamplist --dscstr "/dev/sd*" --site --failgroup --disk

    Displays site, failure group, and disk labels from disk headers for devices matching the discovery string. It is the read-only companion check for disks prepared with ASMCMD stamp.

    Read only

  • mapblk [-l] [--suppressheader] <file> <block>

    Displays the ASM disk and offset that contain a specified file block. It is read-only and useful when mapping an ASM file block to the underlying device path for storage diagnostics.

    Read only26ai

  • asmcmd chtmpl -G <DISKGROUP> [--striping {coarse|fine}] [--redundancy {high|mirror|unprotected}] <TEMPLATE>

    Changes the striping or redundancy attributes of an ASM disk group template. The change affects future files created from that template; it does not rewrite existing files.

    Caution

  • asmcmd mktmpl -G <diskgroup> [--redundancy {high|mirror|unprotected}] [--striping {coarse|fine}] <template>

    Adds a named file template to a disk group, defining the redundancy and striping policy that files created against that template will use. Writes new template metadata; existing files are unaffected.

    Caution

  • asmcmd mvfile +FRA/ORCL/ARCHIVELOG/FLASHBACK/log_7.264.684968167 --filegroup <FILE_GROUP>

    Moves an ASM file into the specified file group in the same disk group. This changes file-group membership and can affect quota, redundancy, and lifecycle policy for the file.

    Caution

  • asmcmd mvfile <FILE_NAME> --filegroup <FILE_GROUP>

    Moves an ASM file into the specified file group within the same disk group. It changes ASM file group membership metadata rather than copying the file to a new path.

    Caution

  • asmcmd passwd celladmin

    Changes the password of an ASM user (here, celladmin) from asmcmd, prompting for the old and new password. Affects authentication for that user, so coordinate with anything that connects as it before rotating.

    Caution

  • asmcmd remap DATA DATA_0001 5000-5999

    Marks a range of physical blocks on an ASM disk as unusable and relocates any allocated data in that range. It is a targeted bad-block recovery command, usually run after media errors or under Oracle Support guidance.

    Caution

  • asmcmd audcleartimestamp --os --inst 1

    Clears the last archive timestamp for OS audit trail files for ASM instance 1. It changes the timestamp boundary used by later timestamp-based purge operations for that instance.

    Caution

  • asmcmd audsetproperty --file_max_age --val 10 --uni

    Sets the maximum age property for Unified audit files managed by ASM to 10 days. This changes audit retention behavior for that trail type and can affect future cleanup or purge outcomes.

    Caution

  • asmcmd audsetproperty {--file_max_size | --file_max_age} --val <value> {--os | --uni}

    Sets ASM audit cleanup properties such as maximum audit file size or maximum audit file age for OS or unified audit trails. These values influence audit cleanup behavior and must match retention policy.

    Caution

  • asmcmd audsetproperty {--file_max_size|--file_max_age} --val <value> {--os|--uni}

    Sets an ASM audit trail property, such as maximum audit file size or maximum audit file age, for OS or unified audit trails. This changes audit cleanup behavior and should align with retention and compliance policy.

    Caution

  • asmcmd chqg -G <DISKGROUP> <QUOTA_GROUP> <PROPERTY> <VALUE>

    Modifies a property of an Oracle ASM quota group inside a disk group, such as setting a quota limit to a size or UNLIMITED. This changes storage governance for file groups that use the quota group.

    Caution

  • asmcmd chqg -G data quota_grp1 quota 200G

    Modifies a quota group property in an ASM disk group. This example changes the quota limit for quota group quota_grp1 in disk group DATA to 200G, affecting how much space associated file groups may consume.

    Caution

  • asmcmd chtmpl -G data --redundancy high --striping fine mytemplate

    Changes the attributes of an ASM file template in a disk group. Template changes affect future files that use the template, such as their redundancy and striping policy.

    Caution

  • asmcmd mkqg -G data quota_grp2 quota 100G

    Creates quota group quota_grp2 in the DATA disk group with a 100G quota property. This changes ASM file-group governance metadata and can affect later file group quota behavior.

    Caution

  • asmcmd rmtmpl -G data mytemplate

    Removes the ASM file template mytemplate from the DATA disk group. This changes future file creation policy for that template name but does not remove existing database files.

    Caution

  • asmcmd voldisable -G data volume1

    Disables an Oracle ADVM volume in a mounted disk group and removes the volume device file on the local node, making the volume inaccessible to ADVM/ACFS consumers. Reversible (re-enable with volenable) and does not destroy data, but it disrupts any file system using the volume.

    Caution

  • asmcmd mkfg <config_file.xml>

    Creates a file group in a Flex disk group using properties defined in an XML configuration file. Writes new file-group metadata; it groups related database files for policy/redundancy management without moving data.

    Safe

  • asmcmd lscc -l

    Lists configured ASM member clusters with detailed columns. It is used to review member cluster registrations and service support details such as ASM, GIMR, TFA, ACFS, and RHP.

    Read only

  • asmcmd audclearproperty --file_max_size --use_def --os

    Clears the ASM OS audit trail file_max_size property and returns it to the default value. It changes audit cleanup or audit-file sizing behavior, so it should follow the approved audit configuration policy.

    Caution

  • asmcmd mvfile +data/orcl/controlfile/Current.260.684924747 --filegroup FG1

    Moves an ASM file into the specified file group in the same disk group. This changes file group membership metadata used by ASM Flex Disk Group placement and quota policies.

    Caution

  • asmcmd setsparseparent +SPARSEDG/child.1.10 +DATA/parent.1.f

    Sets the parent file for one or more ASM sparse child files. This changes sparse-file relationship metadata used by snapshot and sparse disk group workflows.

    Caution

  • asmcmd audsettimestamp {--os | --uni} [--inst <id>] <timestamp>

    Sets the last archive timestamp for an ASM audit trail type. Audit purge jobs and audcleanaudittrail can use this timestamp as the boundary for timestamp-based cleanup.

    Caution

  • asmcmd auddropjob --name <job_name>

    Drops a configured ASM audit purge job. It does not delete audit files directly, but it stops that scheduled cleanup path and can affect audit storage growth or retention operations.

    Caution

  • asmcmd rmqg -G <diskgroup> <quota_group>

    Deletes a quota group definition from a disk group. The quota group must have no file groups assigned to it; removing it drops the space-governance metadata for that group. Reversible by re-creating the group, but assigned file groups must be moved off first.

    Caution

  • asmcmd afd_deconfigure

    Deconfigures Oracle ASM Filter Driver on the local host. This changes ASMFD driver and filtering configuration and should be used only as part of a documented Grid Infrastructure maintenance or rollback procedure.

    Dangerous

  • asmcmd audcleartimestamp --uni

    Clears the last archive timestamp for the Unified audit trail in ASM. It does not delete files by itself, but it changes the timestamp state used by later audit purge commands or jobs.

    Caution

  • asmcmd pwdelete +FRA/orapwasm_bak

    Deletes the specified ASM or database password file from ASM storage. When used with --asm or --dbuniquename it also removes password-file location metadata for the associated resource.

    Dangerous

  • asmcmd mvfg -G DATA --filegroup FG1 QG1

    Reassigns a file group (FG1) to a different quota group (QG1) within the specified disk group. Changes file-group/quota-group association metadata; it does not move or rewrite the underlying files.

    Safe

  • asmcmd lsfg -G DATA --filegroup ORCL

    Lists properties for the ORCL file group in the DATA disk group. It reads ASM file group and file group property metadata without changing quota or placement policy.

    Read only

  • asmcmd audsettimestamp --os --inst 1 22-AUG-2012 07:48:53

    Records the last archive timestamp for ASM OS audit trail cleanup. The value becomes a boundary for timestamp-based cleanup, so a wrong timestamp can make later audit deletion too broad or too narrow.

    Caution

  • asmcmd mkcc <cluster_name> <manifest_file> [--asm] [--gimr] [--rhp] [--acfs] [--tfa]

    Creates the configuration for an Oracle ASM member cluster and exports it to a cluster manifest file, used when setting up a member cluster against a domain services cluster (Flex ASM client cluster). Writes a new manifest file describing which services (ASM, GIMR, RHP, ACFS, TFA) the member cluster will use.

    Caution

  • asmcmd mvfg -G <DISKGROUP_NAME> --filegroup <FILE_GROUP> <QUOTA_GROUP>

    Moves a file group in an ASM disk group to the specified quota group. It changes file group organization used by ASM Flex Disk Group quota management.

    Caution

  • asmcmd rpusr <DISKGROUP> <OLD_USER> <NEW_USER>

    Replaces one ASM file access control operating-system user with another in a disk group. Ownership of files previously owned by the old user moves to the replacement user, and the old user is removed from the disk group user list.

    Caution

  • asmcmd -v debug

    Starts ASMCMD with debug display level so selected commands provide additional diagnostic information. Debug mode may write trace output under the ASMCMD diagnostic directory.

    Safe

  • asmcmd audcleartimestamp {--os --inst <instancenumber> | --uni}

    Clears the last archive timestamp set by audsettimestamp for ASM audit cleanup. This affects timestamp-based audit purge behavior but does not itself purge audit records.

    Caution

  • asmcmd chfg <config_file.xml>

    Modifies an ASM file group using an XML configuration file or XML script. The XML identifies the file group, disk group, and property changes such as quota group or redundancy settings.

    Caution

  • asmcmd chfg config_file.xml

    Modifies an ASM file group in a disk group using an XML configuration file or script. This changes file-group metadata and can affect file placement or policy behavior tied to that file group.

    Caution

  • asmcmd mkfg '<filegroup name="filegroup1" dg="dg_data1" client_type="database" client_name="sample"></filegroup>'

    Creates an ASM file group in a disk group from an XML file or inline XML script. This changes ASM file group metadata and can affect file placement, quota-group association, and storage policy behavior.

    Caution

  • asmcmd setsparseparent <child_file> <parent_file>

    Sets the parent file for an ASM sparse child file. This changes sparse file metadata used by snapshot and sparse disk group workflows, so child and parent paths must be verified carefully.

    Caution

  • asmcmd rmgrp <DISKGROUP> <USERGROUP>

    Removes an ASM file access control user group from a disk group. Removing a group can leave files without a valid group until ownership or group metadata is corrected.

    Caution

  • asmcmd volset -G data --usagestring 'no file system created' volume1

    Sets the usage string attribute on the ADVM volume volume1 in the data disk group. This updates volume metadata only; it does not resize, enable, disable, or delete the volume.

    Safe

  • asmcmd rmgrp data asm_data

    Removes the ASM file access control group asm_data from the data disk group. It changes ASM access metadata and can affect users or files that still depend on that group.

    Caution

  • asmcmd rmusr data oracle2

    Deletes the operating system user oracle2 from the ASM disk group named data. This changes ASM file access control metadata and can break access for workloads or procedures that still depend on that user.

    Caution

  • asmcmd afd_deconfigure [-f]

    Deconfigures Oracle ASM Filter Driver on the host. This changes Grid Infrastructure storage discovery and protection behavior, so running it on the wrong node can make ASMFD-managed disks unavailable.

    Dangerous

  • asmcmd audclearproperty --file_max_age --uni

    Clears the configured maximum file age property for the unified audit trail in ASM audit cleanup settings. Use it when reverting that audit cleanup parameter to an unset or default-managed state.

    Caution

  • kscopy <source_file> <destination_path> [--autologin] [--local] [--dbuniquename <string>]

    Copies an Oracle keystore file from a source location to a destination path from ASMCMD. It is used for TDE keystore movement or backup and writes a destination file while leaving the source intact.

    Safe

  • asmcmd rpusr data oracle1 oracle2

    Replaces the oracle1 operating system user with oracle2 in the data ASM disk group. It changes ASM file access control metadata and can affect ownership or access semantics for ASM-managed files.

    Caution

  • asmcmd stamp --dscstr "/dev/sd*" --site "SALTLAKE-CENTER" --failgroup "fg1" --disk "DISK1"

    Writes ASM disk, site, and failure-group labels into matching disk headers. It is a provisioning command for ASM disk discovery and failure-group metadata, not a read-only inspection.

    Caution

  • asmcmd rmfg DATA1 FG1

    Removes an existing ASM file group from a disk group. Without -r, the command fails rather than removing a file group that still contains files, so it is mainly metadata cleanup after dependencies are gone.

    Caution

  • asmcmd rmfg [-r] <DISKGROUP> <FILEGROUP>

    Removes an ASM file group from a disk group; with -r it removes the file group and its contents. This changes ASM file group metadata and may remove data when the recursive/content option is used.

    Dangerous

  • asmcmd rmusr [-r] <DISKGROUP> <USER>

    Deletes an ASM file access control operating-system user from a disk group. With -r, it also removes all files in the disk group owned by that user, making the option destructive.

    Dangerous

  • asmcmd audsetdebug

    Sets or adjusts debug tracing for ASM audit file management commands. It is a low-risk diagnostic setting, but debug output should be temporary because it can increase diagnostic noise or log volume.

    Safe

  • asmcmd setsparseparent <CHILD_FILE1> [<CHILD_FILE2> ...] <PARENT_FILE>

    Sets the parent file for one or more ASM sparse child files. This updates sparse-file relationship metadata used by sparse disk group and snapshot workflows.

    Caution

  • asmcmd chcc <member_cluster_name> --indirect

    Modifies a member cluster configuration to use indirect Oracle ASM storage access. This is part of a larger member-cluster conversion flow that also requires exporting and applying a new cluster manifest.

    Caution

  • asmcmd rmcc memberCluster1

    Removes the configuration for the member cluster named memberCluster1 from ASM member cluster metadata. This is a configuration-removal command and can break access for a dependent member cluster if used on the wrong target.

    Caution

  • asmcmd audsetdebug --debug

    Sets ASM audit file management tracing to debug level. It changes diagnostic verbosity for audit cleanup behavior and can increase trace volume until reset to the normal error level.

    Safe

  • asmcmd audcreatejob --name OSAUD_NOTS --int 10 --os

    Creates an ASM audit purge job for the specified audit trail type and interval. The job can remove audit files when it runs, so it is an audit-retention configuration change rather than a harmless setup command.

    Caution

  • asmcmd rmcc <CLUSTER_NAME> [-f]

    Removes the ASM client or member cluster configuration identified by cluster name. This changes cluster configuration metadata and can affect remote ASM/client cluster relationships.

    Caution

  • asmcmd audsetjobinterval --name OSAUD_PURGE --int 10

    Sets the interval, in hours, for an existing ASM audit purge job. Changing this interval controls how often audit cleanup runs, so an overly aggressive value can remove audit files sooner than intended.

    Caution

  • asmcmd rmfg -r DATA2 FG2

    Removes the FG2 file group from the DATA2 disk group using the recursive option. With -r, dependent contents can be removed along with the file group, so this is destructive storage metadata and file-group cleanup.

    Dangerous

Start, stop and move

  • asmcmd mount <DISKGROUP_NAME>

    Mounts an ASM disk group in the connected ASM instance so its files become available to ASM clients. It changes disk group state and can also be run with force, restrict, or all-disk-group forms when those are explicitly required.

    Caution

  • asmcmd mount [--restrict] { -a | [-f] <diskgroup> [<diskgroup> ...] }

    Mounts one or more Oracle ASM disk groups so ASM clients and databases can access their files. This changes disk group state; the force and restricted options materially change availability and redundancy behavior.

    Caution

  • asmcmd mount [--restrict] { [-a] | [-f] <DISKGROUP> [<DISKGROUP> ...] }

    Mounts one or more ASM disk groups, optionally in restricted mode or with a force option. This changes disk group availability to ASM clients and can affect database access to files in that disk group.

    Caution

  • asmcmd online -G <DISKGROUP> {-D <DISK_NAME> | -F <FAILGROUP>} [-w]

    Brings an offline ASM disk or failgroup back online in a disk group after the underlying issue is resolved. This changes disk group state and can trigger resynchronization or rebalance activity.

    Caution

  • asmcmd umount <DISKGROUP_NAME>

    Dismounts the specified ASM disk group from the connected ASM instance. This makes files in that disk group unavailable to dependent clients on that scope until it is mounted again.

    Caution

  • asmcmd mount --all

    Mounts all ASM disk groups visible to the connected ASM instance. This changes ASM state and can make disk groups available to database clients across the intended scope.

    Caution

  • asmcmd startup [--nomount] [--restrict] [--pfile <pfile.ora>]

    Starts an Oracle ASM instance, optionally in nomount or restricted mode and optionally using a specified PFILE. This changes instance state and can affect disk group availability and dependent services.

    Caution

  • asmcmd offline -G <DISKGROUP> -D <DISK_NAME>

    Takes the named ASM disk offline in the specified disk group without immediately dropping it. ASM relies on redundancy and repair timers while the disk is unavailable, so the operation can affect resilience and rebalance behavior.

    Caution

  • asmcmd online -G DATA -a --power 4 -w

    Brings offline disks in an ASM disk group back online and can wait for the resync or rebalance work to complete. The power setting controls the resources used for the online operation and related rebalance work.

    Caution

  • asmcmd online -G data -D data_0001

    Brings a named ASM disk in a disk group back online after it was offline. ASM may rebalance or resync extents after the disk returns, depending on the disk group state.

    Caution

  • asmcmd mount -a

    Mounts all ASM disk groups visible to the connected ASM instance. This changes disk group state so ASM clients can access files in those groups.

    Caution

  • asmcmd startup [--mount] [--nomount] [--restrict] [--pfile <pfile>]

    Starts the default instance identified by ORACLE_SID, such as ASM, IOServer, or APX. For ASM, the default startup mounts disk groups and enables ADVM volumes, so this changes service availability.

    Caution

  • asmcmd umount { -a | [-f] <diskgroup> }

    Dismounts one ASM disk group or all mounted disk groups from the ASM instance context. The force option can disrupt clients, so dependencies must be checked before running it in production.

    Caution

  • asmcmd offline -G <DISKGROUP> {-D <DISK_NAME> | -F <FAILGROUP>} [-t <TIME>]

    Marks an ASM disk or failgroup offline in a disk group, optionally with a repair timer before the disk is dropped. This reduces available redundancy and can trigger rebalancing or resync behavior.

    Caution

  • asmcmd online -G data -F failgroup1 -w

    Brings all offline disks in the specified ASM failure group back online and waits for the operation to complete. The failure-group scope is broader than a single disk and can trigger resync or rebalance work.

    Caution

  • asmcmd shutdown [--target <target_instance>] [--normal | --immediate | --abort]

    Shuts down the ASM, IOServer, or APX proxy instance identified by the target option or ORACLE_SID. This changes instance availability and can affect clients that depend on ASM disk groups or ADVM volumes.

    Caution

  • asmcmd startup --nomount --pfile asm_init.ora

    Starts an Oracle ASM instance in NOMOUNT mode using the specified initialization parameter file. This changes ASM instance state and is used during controlled startup, recovery, or configuration work.

    Caution

  • asmcmd mount -f data

    Mounts the named ASM disk group on the local ASM instance; -f forces the mount even if some disks are missing, which can mount the group with reduced redundancy. Changes disk group state to mounted so its files become accessible to ASM clients.

    Caution

  • asmcmd mount --restrict DATA

    Mounts the specified ASM disk group in restricted mode. This changes disk group availability and limits access for maintenance or recovery operations.

    Caution

  • asmcmd umount --all

    Dismounts all ASM disk groups from the connected ASM instance. This makes files in those disk groups unavailable to dependent databases or ACFS/ADVM consumers on that scope.

    Caution

  • asmcmd shutdown --target ASM --normal

    Shuts down the target ASM instance using normal mode, the default orderly shutdown behavior. It still changes ASM availability and should only be run after dependent clients have been cleared.

    Caution

  • asmcmd offline -G data -F failgroup1

    Offlines all disks in the specified failure group of an ASM disk group. This is a state-changing maintenance command that relies on redundancy and repair timers to preserve availability while storage is offline.

    Caution

  • asmcmd shutdown --target ASM --immediate

    Shuts down the target ASM instance using immediate mode. It changes ASM instance availability and can affect databases or file systems that depend on the instance.

    Caution

  • asmcmd offline -G DATA -D <DISK_NAME> -t 1.5h

    Marks a specified ASM disk offline in the DATA disk group and sets a repair timer before ASM may drop it. Used for controlled disk or storage maintenance when redundancy has already been verified.

    Caution

  • asmcmd offline -G data -D data_0001 -t 1.5h

    Takes ASM disk DATA_0001 in the DATA disk group offline and sets a 1.5 hour timer before ASM may drop it. This changes ASM disk state and can reduce redundancy while the disk is offline.

    Caution

  • asmcmd umount -f data

    Forces dismount of the named ASM disk group from the current ASM instance. It is narrower than -a but still changes storage availability for any clients using that disk group.

    Caution

  • asmcmd umount -a

    Dismounts all disk groups mounted on the current ASM instance. It changes ASM storage availability and can immediately affect databases, voting/OCR files, ADVM volumes, or ACFS file systems that still depend on those disk groups.

    Caution

  • asmcmd shutdown --target ASM --abort

    Shuts down the target ASM instance using abort mode, stopping existing operations rather than waiting for an orderly close. This can make ASM-backed files unavailable to dependent databases, ADVM volumes, or ACFS file systems on the affected scope.

    Caution

  • asmcmd shutdown --target APX --immediate

    Immediately shuts down the ASM proxy (APX) instance selected by the target option. This changes instance availability and can affect clients that rely on the proxy instance.

    Caution

  • asmcmd audsetjobstatus --name <job_name> {--disable | --enable}

    Enables or disables a configured ASM audit purge job. Disabling a job stops scheduled purge activity; enabling it allows the purge job to run again according to its configured interval.

    Caution

  • asmcmd audsetjobstatus --name OSAUD_PURGE --disable

    Changes the enabled status of an ASM audit purge job, here disabling the named purge job. It affects scheduled audit cleanup behavior but does not remove audit files immediately.

    Caution

Create and change

  • asmcmd rebal --modify 1 DATA

    Modifies the rebalance power for the DATA disk group to 1. This changes the amount of I/O ASM can use for an active rebalance and can affect workload performance.

    Caution

  • asmcmd rebal [--default | --modify <power>] [--with <phase,...> | --without <phase,...>] [--power <power>] [-w] <diskgroup>

    Starts or modifies rebalancing for an ASM disk group so extents are redistributed across disks. It changes active ASM work and can consume substantial I/O depending on power and phase options.

    Caution

  • asmcmd cp +DATA/<DB_UNIQUE_NAME>/DATAFILE/<FILE> /tmp/<FILE>.bak

    Copies a file between ASM and the OS file system (or within ASM) from asmcmd, for example copying a datafile or spfile out to /tmp as a quick backup. Writes a new destination file; the source is left unchanged.

    Safe

  • asmcmd cp +DATA/<SRC_FILE> /tmp/<DEST_FILE>

    Copies a file out of ASM to an operating-system path such as /tmp. The ASM source is unchanged while a new OS destination file is written.

    Safe

  • asmcmd setattr -G <DISKGROUP> compatible.rdbms <VERSION>

    Sets the compatible.rdbms attribute for an ASM disk group. The attribute determines the minimum database software compatibility expected for database instances using that disk group.

    Caution

  • asmcmd setattr -G data compatible.asm 19.0

    Sets the COMPATIBLE.ASM attribute for a disk group, controlling the minimum Oracle ASM software level that can manage it. Raising this attribute enables newer ASM features but can prevent older Grid Infrastructure homes from mounting the disk group.

    Caution

  • asmcmd cp +DATA/<SRC_FILE> +RECO/<DEST_FILE>

    Copies an ASM file from one ASM location to another, such as from DATA to RECO. The source file is left unchanged while a destination file or alias is created.

    Safe

  • asmcmd cp /tmp/<FILE>.bak +DATA/<DB_UNIQUE_NAME>/DATAFILE/<FILE>.bak

    Copies a file from the operating-system file system into an ASM disk group path. The OS source remains unchanged while a new ASM destination file or alias is created.

    Safe

  • asmcmd setattr -G data compatible.rdbms 19.0

    Sets the COMPATIBLE.RDBMS attribute for a disk group, controlling the minimum database compatibility level for clients using that group. The value affects which database versions can access files in the disk group and which disk group features are available.

    Caution

  • asmcmd mkdir +data/orcl/mydir

    Creates a directory in an Oracle ASM disk group. Use it when an ASM alias directory is needed for organized file placement or administration.

    Safe

  • asmcmd mkdir +DATA/<DB_UNIQUE_NAME>/<DIR>

    Creates a directory in the ASM namespace under the given disk group path. Used to prepare a directory structure (e.g. under a database's path) before copying files in or organizing aliases. Writes new directory metadata; it does not touch existing files.

    Safe

  • asmcmd mkdg data_config.xml

    Creates an ASM disk group from an XML configuration file instead of embedding the specification on the command line. This is useful when the disk group definition is longer, reviewed separately, or generated by a build process.

    Caution

  • asmcmd mkdg '<dg name="data"><dsk string="/dev/disk*"/></dg>'

    Creates an ASM disk group using an inline XML disk group specification. The XML defines the disk group name, disk discovery string, and optional attributes used by ASM when provisioning the new group.

    Caution

  • asmcmd setattr -G <diskgroup> <attribute_name> <attribute_value>

    Sets an Oracle ASM disk group attribute from ASMCMD, such as compatibility, repair timing, access control, or other disk group behavior. This changes ASM configuration for the named disk group and should be treated as a controlled configuration change.

    Caution

  • asmcmd cp /mybackups/examples.bak +data/orcl/datafile/myexamples.bak

    Copies a file from the operating system into an ASM disk group path using ASMCMD. It writes a new destination file or alias in ASM while leaving the source file unchanged.

    Safe

  • ASMCMD [+data] > mkdir subdir1 subdir2

    Creates one or more directories inside an ASM disk group from the asmcmd prompt. Used to lay out structure for aliases, manual file placement, or cloned-database paths. Creates directory metadata only, it does not move or delete data and is reversible with rmdir.

    Safe

  • asmcmd mkalias +DATA/<DB_UNIQUE_NAME>/DATAFILE/<FILE> +DATA/<DB_UNIQUE_NAME>/DATAFILE/<ALIAS>

    Creates an ASM alias that points to an existing system-generated ASM file name. It changes ASM namespace metadata but leaves the underlying file content unchanged.

    Safe

  • asmcmd mkalias +DATA/<FILE_NAME> +DATA/<ALIAS_NAME>

    Creates a user alias in the ASM namespace that points to an existing system-named ASM file, giving it a stable, readable path. Adds alias metadata only; the underlying file and its data are unchanged.

    Safe

  • asmcmd chown <USER_NAME> +DATA/<FILE_NAME>

    Changes the ASM file owner for the specified file. This is an access-control metadata change and can affect who can read or manage the ASM file.

    Caution

  • asmcmd chown <user>[:<usergroup>] <file> [<file> ...]

    Changes the ASM file owner, and optionally the ASM user group, for one or more ASM files. This updates ASM access-control metadata and does not operate on operating-system paths.

    Caution

  • asmcmd mkalias +DATA/ORCL/DATAFILE/SYSAUX.257.721811945 +DATA/ORCL/DATAFILE/sysaux.f

    Creates a human-readable ASM alias that points to an existing system-generated ASM file name. This changes ASM namespace metadata only; the underlying file is not copied or moved.

    Caution

  • asmcmd chdg <config_file.xml>

    Modifies an ASM disk group from an XML configuration file, such as adding, dropping, replacing, rebalancing, or migrating disks. This is a state-changing storage operation; the database can often remain online, but the command changes disk group configuration.

    Caution

  • asmcmd chgrp <GROUP_NAME> +DATA/<FILE_NAME>

    Changes the ASM file access-control group associated with the specified ASM file. This is a permission/ownership metadata change and can affect which ASM users can access the file.

    Caution

  • asmcmd chown -R grid:oinstall +DATA/<DIR>

    Changes the ASM File Access Control owner (and group) of files under a disk group path, recursively with -R. Updates ASM ACL ownership metadata; an over-broad recursive scope can change ownership on more files than intended and affect access.

    Caution

  • asmcmd chmod <PERMISSIONS> +DATA/<FILE_NAME>

    Changes the access permissions on ASM files that are protected by ASM file access control. It updates metadata for the specified ASM file or files and does not inspect file contents.

    Caution

  • asmcmd chmod [-R] <mode> <file_or_directory>...

    Changes permission bits for ASM files or directories from ASMCMD. Recursive use can affect many ASM files below the target path.

    Caution

  • asmcmd chmod 660 '*'

    Sets permission mode 660 on all ASM files matched by the wildcard in the current ASMCMD context. This is a bulk access-control update that removes access for others while preserving owner and group read/write.

    Caution

  • asmcmd chown <user> <file_or_directory>...

    Changes the owning operating system user for specified ASM files or directories. It modifies ASM file access ownership and is used with ASM file access control.

    Caution

  • asmcmd chown oracle1:asm_fra log_9.264.687650269

    Changes owner and group metadata for an Oracle ASM file. Use it when a documented ASM administration workflow requires a specific user or ASM file group ownership assignment.

    Caution

  • asmcmd chmod <mode> <file> [<file> ...]

    Changes Oracle ASM file access-control permissions for one or more ASM files. This is a metadata change inside ASM, not an operating-system chmod, and it can grant or remove read/write access for ASM users and groups.

    Caution

  • asmcmd chdg config_file.xml

    Modifies an ASM disk group using an XML change specification. The XML can add, drop, rebalance, or migrate disk group configuration, so the command changes storage metadata rather than just reporting state.

    Caution

  • asmcmd orapwusr --add hruser

    Adds hruser to the Oracle ASM password file and prompts for a password. This modifies privileged ASM authentication data and requires SYSASM privileges.

    Caution

  • asmcmd chmod 640 +FRA/ORCL/ARCHIVELOG/FLASHBACK/log_7.264.684968167 +FRA/ORCL/ARCHIVELOG/FLASHBACK/log_8.265.684972027

    Sets explicit ASM file access-control permissions on the named files. This changes who can read or write the ASM-managed files and should be handled like a storage access-control change.

    Caution

  • asmcmd chmod 744 '*'

    Sets permission mode 744 on all ASM files matched by the wildcard in the current ASMCMD context. This is a bulk access-control change and can affect more files than intended if the working directory is wrong.

    Caution

  • asmcmd grpmod --add fra asm_fra oracle1 oracle2

    Adds operating system users to an existing ASM user group in a disk group. This changes ASM file access-control membership and can grant additional access to files governed by that group.

    Caution

  • asmcmd chgrp asm_fra log_7.264.684968167 log_8.265.684972027

    Changes the Oracle ASM file group ownership for the listed ASM files. Use it when applying documented ASM file group changes, such as organizing recovery-area files under the intended ASM group.

    Caution

  • asmcmd chmod ug+rw +FRA/ORCL/ARCHIVELOG/FLASHBACK/log_7.264.684968167 +FRA/ORCL/ARCHIVELOG/FLASHBACK/log_8.265.684972027

    Adds read and write permissions for the ASM file owner and group on the named files. This is a state-changing access-control update, not a diagnostic query.

    Caution

  • asmcmd chown oracle1 +FRA/ORCL/ARCHIVELOG/FLASHBACK/log_7.264.684968167 +FRA/ORCL/ARCHIVELOG/FLASHBACK/log_8.265.684972027

    Changes the owning ASM user for the specified ASM files. This affects ASM file access control metadata and should be used only when the target files and owner are confirmed.

    Caution

  • asmcmd chgrp asm_data +data/orcl/controlfile/Current.260.684924747

    Changes the ASM user group associated with a file or list of files. It updates file access-control metadata, which can affect which ASM users or groups can access the file.

    Caution

Remove and drop

  • asmcmd rm [-f|-r] <PATTERN> [<PATTERN>...]

    Deletes ASM files, aliases, or directories matching the specified pattern. Recursive and force options can remove directory trees without prompts, and deleting an alias can also delete the file it references.

    Dangerous

  • asmcmd rm +DATA/ORCL/DATAFILE/myexamples.bak

    Deletes the specified ASM file from the disk group. This is a destructive cleanup command; it does not use RMAN retention rules and should not be used as a shortcut for managed backup or archive deletion.

    Dangerous

  • asmcmd dropdg [-r [-f]] <disk_group>

    Drops an ASM disk group; with recursive options it can remove the disk group and its contents. This is a destructive storage operation used only for decommissioning, rebuild, or tightly controlled cleanup.

    Dangerous

  • asmcmd rm +DATA/<FILE_NAME>

    Deletes the specified ASM file or alias from the disk group. Irreversible, the file content is removed from ASM with no recycle bin. Use only on confirmed-obsolete files; never as a substitute for RMAN-managed backup or archivelog deletion.

    Dangerous

  • asmcmd rm [-f|-r] <pattern> [<pattern> ...]

    Deletes matching Oracle ASM files, aliases, or directories. Recursive or wildcard use can remove large trees, and deleting an alias can also delete the referenced system-generated file.

    Dangerous

  • asmcmd rm -r +DATA/<DIR_NAME>

    Recursively deletes a directory and all files and aliases beneath it in the ASM namespace. Irreversible and broader in scope than a single-file rm, a wrong path can wipe many files at once. Distinct from plain rm by the recursive -r flag.

    Dangerous

  • ASMCMD [+data] > rm -r subdir2

    Recursively removes an ASM directory and its contents from the current asmcmd location. This is destructive for the targeted ASM files or aliases and should never be used as a substitute for RMAN-managed backup or archive deletion.

    Dangerous

  • asmcmd dropdg -r -f <DISKGROUP>

    Drops an existing ASM disk group, with -r including its contents and -f forcing the operation when the disk group cannot be mounted. This is destructive storage removal and can erase database files, OCR/voting contents, or other ASM-managed data if the target is wrong.

    Dangerous

  • asmcmd dropdg -r fra

    Drops the specified ASM disk group from ASMCMD. With -r, it recursively drops the disk group contents, so this is a destructive storage operation even when the example target is a recovery-area disk group.

    Dangerous

  • asmcmd rmalias +DATA/<DB>/<ALIAS>

    Deletes a user alias from the ASM directory namespace while leaving the underlying system-named file in place. Removes only the alias reference; the file and its data are not deleted.

    Safe

  • asmcmd rmalias +DATA/ORCL/DATAFILE/sysaux.f

    Removes the specified ASM alias while retaining the file the alias references. This changes ASM namespace metadata and can break consumers that rely on the alias path.

    Caution

  • asmcmd rmalias <ALIAS> [<ALIAS>...]

    Removes one or more ASM aliases while retaining the files the aliases reference. This changes the ASM namespace but does not delete the underlying ASM files.

    Caution

  • asmcmd grpmod --delete data asm_data oracle2

    Removes an operating system user from an existing ASM user group in a disk group. This changes file access-control membership and may revoke access needed by operational accounts.

    Caution

  • asmcmd grpmod {--add|--delete} <disk_group> <usergroup> <user> [<user> ...]

    Adds users to, or removes users from, an ASM file access-control group. This changes group membership used by ASM file permissions and can alter who can access protected ASM files.

    Caution

Search every command