Oracle 12c: ASM – New asmcmd commands

June 27th, 2013 | Posted in 12c, ASM, Blog | 1 Comment

Playing with the new Oracle 12c, Noticed new asmcmd commands;

These are the new asmcmd commands with their descriptions;

1- showversion

ASMCMD> showversion
ASM version         :

ASMCMD> help showversion
        Displays ASM Version, cluster patch level, patchlevel of
        local node

        showversion [--releasepatch]  [--softwarepatch]

        The options for showversion command are described below;

        releasepatch   - Cluster level patch version
        softwarepatch  - Patch level on the local node.

        NOTE: releasepatch and softwarepatch options may be different when
        ASM/grid home is being patched. And when in normal mode, it should be

2- showpatches

ASMCMD> showpatches
List of Patches
ASMCMD> help showpatches
        Displays a list of patches applied on the grid home



3- showclusterstate

ASMCMD> showclusterstate

ASMCMD> help showclusterstate
        Displays ASM rolling migration/patching state.


        The ASM cluster state is one of the following:
          Normal             - ASM cluster is in Normal operation mode
          In Rolling Patch   - ASM cluster is in the middle of rolling patch operation
          In Rolling Upgrade - ASM cluster is undergoing rolling upgrade

4- rpusr

ASMCMD> help rpusr
        Replaces an operating system (OS) user user1 with another
        operating system (OS) user user2.


        The options for the rpusr command are described below.
        diskgroup - Specifies the name of the disk group from which
                    the user is to be replaced.
        user1     - Name of the user that you want to replace.
                    This user must be already a member of the disk group.
        user2     - Name of the user that you want to replace with.
                    This user must not already be a member of the disk group.
        Only a user authenticated as SYSASM can execute this command.

        This example replaces the oracle1 user with the oracle2 user.
        ASMCMD [+] > rpusr DATA oracle1 oracle2

5- Oracle ASM chown, chgrp, chmod and Open Files Support:

This feature allows the ASMCMD chown, chgrp, and chmod commands to run even if the affected files are open. In Oracle Database 11g Release 2 (11.2), this was not allowed. The ALTER DISKGROUP MODIFY OWNERSHIP SQL command is also similarly modified, as this SQL provides support for these ASMCMD commands. This feature improves the manageability of Oracle ASM users and the files they own


References: Doc 12cR1

One Comment to “Oracle 12c: ASM – New asmcmd commands”

Leave a Comment


which oracle topic interests you most?

View Results

Loading ... Loading ...

Oracle Class Tweets

Recent Posts

Recent Comments

  • wissem: SQL Developer 4.0
  • oracleman consulting: great info thanks for sharing
  • Mike: Very nice article!! Thanks for sharing!!
  • yathish: I really appreciate if you can send me, if you have tutorial for 11g ( RAC & ASM (prefer to be...
  • Farrukh Kamal: Fahad, I’m interesting in pursuing remote employment with Pythian. What tips would you suggest...
  • pavankumar: for the error it need to set env correctly 2014/08/asmcmd-08102-no-con...
  • wissem: Post result off; crsctl check has crsctl check crs
  • ron: unable to connect to Cluster Synchronization Service
  • KevinB: Please post or attach the response file
  • nnarimanov: I’d like to clarify the reason why rman restores all datafiles into +DATA. It’s because of...
  • Sergio: Hi, Where is declared the function agent_clean() ? I dont see agent_clean() definition !! regards, Sergio
  • Sikandar: I do salute you brother, This is very………..nti mes helpful and correct documents. I...
  • Karthik Singh: Thanks for sharing a useful article. Looks like you have installed weblogic 10.3.4. Then shall I...
  • Joseph: Paul, Here target is from which database we are taking cloning. and auxilary is the cloning database. Wissem,...
  • sundar: In Doc ID 1472171.1 it says that the snapshot control file should be in a shared location for RAC databases....
  • Taoqir: Hello, This is a wonderfull and very helping I am going to configure Data Guard. Thanks
  • Adrian Iriarte: Saludos, Que buen articulo, casi siempre al momento de querer implementar soluciones para el...
  • Patricia: Hi Wissem, is there a workaround for this? I mean I want to use the sqlnet.authentication_services =none,...
  • Brian: I created the cdb manually using the instruction, but then I tried to create pdb within in, it failed. have...
  • Farmer Johnson: Hi Wissem. How did you avoid the error you had previsouly encountered: “sudo opatch auto...

Oracle-Class Forums Latest Activity