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

  • 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 material.now 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...
  • Héctor Moro: Querido Nelson; Después de entrevistar a mas de 50 profesionales de primer nivel en Uruguay, al fin te...
  • What is NO2 Maximus: I genuinely apрreciated your site! You shoulԁ update it wiϳth new info!
  • Nav: Indeed helpful, to the point article..
  • Koti: Can you please explain all the sections of AWR report in RAC. I mean to ask output produced by awrgrpt.sql...
  • Himanshu: Nice post.can you please comment on this Why RMAN restored the DATA_REORTING datafie to +DATA diskgroup?
  • gabriel: what version of sqldeveloper support plugable database?
  • Kal: Quality – thanks…
  • wissem: Well , like I mentioned in the post, delete service and add service using IP.
  • Kelly: were you able to solve this? Thanks!
  • wissem: Hello, You can buy the book from PakT: http://www.packtpub.com/oracle -data-guard-11gr2-administr...

Oracle-Class Forums Latest Activity