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         : 12.1.0.1.0

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

Synopsis
        showversion [--releasepatch]  [--softwarepatch]

Description
        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
        same.

2- showpatches

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

Synopsis
        showpatches


ASMCMD>

3- showclusterstate

ASMCMD> showclusterstate

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

Synopsis
        showclusterstate

Description
        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
rpusr
        Replaces an operating system (OS) user user1 with another
        operating system (OS) user user2.

Synopsis
        rpusr   

Description
        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.

Examples
        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

Cheers,
Wissem

References: Doc 12cR1



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


Leave a Comment





Polls

which oracle topic interests you most?

View Results

Loading ... Loading ...


Oracle Class Tweets


Recent Posts


Recent Comments

  • T Robinson: In regard to the comment “In our case, RMAN didn’t found anything corrupted.” Please notice...
  • iftikhar: if we backup in multiple backupsets and will be command for restoring for more than one backupsets ,
  • Abey: Very helpful article.Thanks a lot. Can we follow this on oracle DG enabled deployment also?
  • Mauricio Daher: Need help configuring SBT for cloud backups. Does not seem to work for 12c. Thanks! RMAN>...
  • Leszek K: *.db_create_file_dest=’+ DATA’ create database command – why do you use full datafile...
  • Prabhakar Kumar: Thanks buddy!!! It really helps to DBAs who are novice to 12c ASM feature.
  • Wubeshet: I am getting the ORA-07445 This morning on the trace file. The following is the symptom of the problem. It...
  • Lakshmi N: Hi Thanks for the post. Just curious, is there a way to restore to a point wher my db is in no archive...
  • Shivakkumar P: This is really very good article. Iam learning Oracle 12c I used this to replicate testing from...
  • Uday: Hi Wissem, Once we apply the level 1 incremental backup to datafile copy it is no longed required. My question...
  • avnish: Can I set up active duplicate database in 11g standard edition (11.2.0.1)
  • Jaya V: hi, am having rman backup. i need to restore on it, from test instance. But the test instance name not same...
  • Jaya: hi, am having rman backup. i need to restore on it, from test instance. But the test instance name not same...
  • 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 (11.2.0.1) 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 http://orcl11gdba.blogspot.in/ 2014/08/asmcmd-08102-no-con...
  • wissem: Post result off; crsctl check has crsctl check crs

Oracle-Class Forums Latest Activity