Test Case:: 12C ASMCMD New feature (Doc ID 1589249.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Information in this document applies to any platform.

PURPOSE

There are a few new features at asmcmd level that have been added to make administrative work easier.  在asmcmd级别上添加了一些新功能,以简化管理工作

DETAILS

$$ ASM password file move (PWMOVE)::-----------  ASM密码文件移动
========================================

You can move ASM password file online in a running cluster in asmcmd using pwmove command.  您可以使用pwmove命令在asmcmd中的正在运行的群集中在线移动ASM密码文件

Initially, the ASM password file was placed on a CRS diskgroup  最初,ASM密码文件放置在CRS磁盘组上

$ crsctl stat res ora.asm -p|grep PWFILE
PWFILE=+CRS/asm/password/orapwasm

And cluster is up and running .

[oracle@ariidc1 archive]$crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

Move the ASM password file online using ASMCMD  使用ASMCMD在线移动ASM密码文件

$ asmcmd
ASMCMD> pwmove --asm +CRS/asm/password/orapwasm +data/orapwasm
moving +CRS/asm/password/orapwasm -> +data/orapwasm
ASMCMD> exit

Validated Cluster is up and running

[oracle@ariidc1 archive]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

Validated new location of ASM password file.  验证了ASM密码文件的新位置

[oracle@ariidc1 archive]$ crsctl stat res ora.asm -p|grep PWFILE
PWFILE=+data/orapwasm

$$Rebalance monitoring (lsop) from ASMCMD ::--------  来自ASMCMD的$$重新平衡监视
====================================================================

You can run rebalance for any mounted diskgroup from asmcmd using rebal command .  您可以使用rebal命令从asmcmd运行任何已装入磁盘组的重新平衡。
Not only that,you can monitor rebalance process for that diskgroup from asmcmd using lsop command .  不仅如此,还可以使用lsop命令从asmcmd监视该磁盘组的重新平衡过程。
This is same as v$asm_operation view output from asm sqlplus. 这与asm sqlplus的v$asm_operation视图输出相同

example,

[oracle@ariidc1 archive]$ asmcmd
ASMCMD> lsop
Group_Name Pass State Power EST_WORK EST_RATE EST_TIME
ASMCMD> rebal data01
Rebal on progress.
ASMCMD> lsop
Group_Name           Pass          State         Power             EST_WORK         EST_RATE             EST_TIME

DATA01              RESYNC           EST              1                       0                          0                           0
DATA01           COMPACT         WAIT             1                       0                           0                           0
DATA01       REBALANCE         WAIT             1                      0                           0                           0

ASMCMD> lsop
Group_Name Pass State Power EST_WORK EST_RATE EST_TIME
ASMCMD> exit
[oracle@ariidc1 archive]$ exit

$$ Connect to any ASM instance from any node ::--------  从任何节点连接到任何ASM实例
=========================================================

In 12C ,using ASMCMD you can connect to another ASM instance and run all kind of supported command on ASM diskgroup of other instance.
在12C中,您可以使用ASMCMD连接到另一个ASM实例,并在另一个实例的ASM磁盘组上运行所有受支持的命令。

Connected to node 2 and from that node ,we logged in ASMCMD . 连接到节点2并从该节点开始,我们登录了ASMCMD

[oracle@ariidc121 archive]$ asmcmd --inst +ASM1

ASMCMD> rebal acfs
Rebal on progress.
ASMCMD> lsop

Group_Name        Pass           State        Power      EST_WORK              EST_RATE                  EST_TIME

ACFS             COMPACT         WAIT       1                 0                               0                                0
ACFS              REBALANCE      RUN        1              1                               0                                0

ASMCMD> lsop

Group_Name      Pass                      State      Power           EST_WORK       EST_RATE       EST_TIME

ACFS               COMPACT                RUN                     1              0              0                                0
ACFS                REBALANCE             DONE                  1                1              0                                0

ASMCMD> lsop
Group_Name Pass State Power EST_WORK EST_RATE EST_TIME

From ASM alertlog file of ASM in node 1,  从节点1中ASM的ASM警报日志文件中

Mon Sep 30 11:01:44 2013
SQL> /* ASMCMD */ALTER DISKGROUP acfs REBALANCE
Mon Sep 30 11:01:44 2013
NOTE: GroupBlock outside rolling migration privileged region
NOTE: requesting all-instance membership refresh for group=1
Mon Sep 30 11:01:44 2013
NOTE: membership refresh pending for group 1/0xc9a4f15 (ACFS)
Mon Sep 30 11:01:44 2013
GMON querying group 1 at 21 for pid 21, osid 11978
Mon Sep 30 11:01:44 2013
SUCCESS: refreshed membership for 1/0xc9a4f15 (ACFS)
NOTE: Attempting voting file refresh on diskgroup ACFS
Mon Sep 30 11:01:44 2013
SUCCESS: /* ASMCMD */ALTER DISKGROUP acfs REBALANCE
Mon Sep 30 11:01:44 2013
NOTE: starting rebalance of group 1/0xc9a4f15 (ACFS) at power 1 
Starting background process ARB0
Mon Sep 30 11:01:46 2013

NOTE: F1X0 on disk 0 (fmt 2) relocated at fcn 0.2508: AU 2401 -> AU 2328
NOTE: 09/30/13 11:02:08 ACFS.F1X0 copy 1 relocating from 0:2401 to 0:2328 at FCN 0.2508
Mon Sep 30 11:02:29 2013
NOTE: stopping process ARB0
Mon Sep 30 11:02:32 2013
SUCCESS: rebalance completed for group 1/0xc9a4f15 (ACFS)
Mon Sep 30 11:02:49 2013

ASMCMD> chkdg data
Diskgroup altered.

From ASM alertlog file of ASM in node 1,

Mon Sep 30 11:02:49 2013
SQL> /* ASMCMD */ALTER DISKGROUP data CHECK NOREPAIR
Mon Sep 30 11:02:49 2013
NOTE: starting check of diskgroup DATA
Mon Sep 30 11:02:49 2013
GMON checking disk 1 for group 4 at 23 for pid 47, osid 19910
GMON checking disk 2 for group 4 at 24 for pid 47, osid 19910
Mon Sep 30 11:02:51 2013
SUCCESS: check of diskgroup DATA found no errors
Mon Sep 30 11:02:51 2013
SUCCESS: /* ASMCMD */ALTER DISKGROUP data CHECK NOREPAIR

$$ Grid related information listing::---------  Grid相关信息列表
============================================

One can use below few asmcmd command to understand , 可以用下面的几个asmcmd命令来了解

1. state of the cluster

ASMCMD> show clusterstate
Normal

2. Mode of the cluster

ASMCMD> showclustermode
ASM cluster : Flex mode enabled

3. Version of the cluster

ASMCMD> showversion
ASM version : 12.1.0.1.0

4. Patches of the grid_home .   grid_home的补丁
Here in testing environment ,no patches are applied .
So,listed no patches.

ASMCMD> showpatches
---------------
List of Patches
===============

Test Case:: 12C ASMCMD New feature (Doc ID 1589249.1)的更多相关文章

  1. Test Case:: 12C ASM New feature (Doc ID 1571975.1)

    Test Case:: 12C ASM New feature (Doc ID 1571975.1) APPLIES TO: Oracle Database - Enterprise Edition ...

  2. RMAN RECOVER TABLE 功能是 Oracle Database 12c 的新增功能 (Doc ID 1521524.1)

    RMAN RECOVER TABLE Feature New to Oracle Database 12c (Doc ID 1521524.1) APPLIES TO: Oracle Database ...

  3. FAQ: Oracle Flex ASM 12c / 12.1 (Doc ID 1573137.1)

    FAQ: Oracle Flex ASM 12c / 12.1 (Doc ID 1573137.1) APPLIES TO: Oracle Database - Enterprise Edition ...

  4. 如何在Oracle 12C中Drop/Truncate多个分区 (Doc ID 1482264.1)

    How to Drop/Truncate Multiple Partitions in Oracle 12C (Doc ID 1482264.1) APPLIES TO: Oracle Databas ...

  5. 如何在Oracle 12C中添加多个分区 (Doc ID 1482456.1)

    How to Add Multiple Partitions in Oracle 12C (Doc ID 1482456.1) APPLIES TO: Oracle Database - Enterp ...

  6. Data Guard:Oracle 12c –新增和更新的功能 (Doc ID 1558256.1)

    Data Guard: Oracle 12c – New and updated Features (Doc ID 1558256.1) APPLIES TO: Oracle Database - E ...

  7. Creating a Physical Standby from Primary on Version 12c (Doc ID 1570958.1)

    Creating a Physical Standby from Primary on Version 12c (Doc ID 1570958.1) APPLIES TO: Oracle Databa ...

  8. 12C新功能:在线移动分区 (Doc ID 1584032.1)

    12C New Feature: Online Move Partition (Doc ID 1584032.1) APPLIES TO: Oracle Database - Enterprise E ...

  9. 12C新功能:在线移动数据文件 (Doc ID 1566797.1)

    12C New Feature : Move a Datafile Online (Doc ID 1566797.1) APPLIES TO: Oracle Database - Enterprise ...

随机推荐

  1. Python元组tuple(不可变)

    Python元组Tuple(不可变): 元组的特点: 1.元组的初始化: tuple = (1, )  #元组只有一个元素的话,初始化时要加,否则当做元素的普通变量类型处理 tuple = (1, 2 ...

  2. BZOJ2809 dispatching(左偏树)

    在一个忍者的帮派里,一些忍者们被选中派遣给顾客,然后依据自己的工作获取报偿.在这个帮派里,有一名忍者被称之为 Master.除了 Master以外,每名忍者都有且仅有一个上级.为保密,同时增强忍者们的 ...

  3. 【H5】316- 移动端H5跳坑指南

    最近在一个移动端的 Web 项目中踩了很多的坑,感觉有必要把它们记录下来,分享给即将踏入移动端 Web 开发大门的朋友们,更好的解决ios和android兼容. 1.input获取焦点时,页面被放大 ...

  4. LNMP环境搭建(<=PHP7.2)

    目录 准备工作 安装wget 安装net-tools 安装vim 配置显示行号 关闭防火墙 安装Nginx 安装依赖 编译安装Nginx 配置环境变量 Systemd管理 安装MySQL 安装依赖 下 ...

  5. 14个Java并发容器,你用过几个?

    作者:acupt 前言 不考虑多线程并发的情况下,容器类一般使用ArrayList.HashMap等线程不安全的类,效率更高.在并发场景下,常会用到ConcurrentHashMap.ArrayBlo ...

  6. vue-cli3配置webpack generate-asset-plugin

    最近尝试将vue项目中的后台URL抽离到打包后的配置文件中,看到有使用generate-asset-plugin在build时生成配置文件的做法,倒腾了一下午使该webpack plugin在vue- ...

  7. ASP.NET+d3.js实现Sqlserver数据库的可视化展示

    效果: 数据库端: 前端展示: 实现原理: 1.在数据段建立两个存储过程 queryUserAnsawer(id) 根据用户ID返回每一题的得分,主要是bcp exe时不能直接在sqlserver中执 ...

  8. c++--语言本身

    c++ 面向对象概念(cout cin 类.对象 面向对象和面向过程求解问题) 易犯错误模型(引入成员函数的必要性) C语言和C++语言的关系 namespace 定义(嵌套).使用.标准命名空间st ...

  9. CROSS-ENV不同环境配置

    项目背景 为了适应h5环境搭建需求,需要动态配置开发,测试,生产三种对应域名及其及打包命令.使用cross-env可以让配置环境更加清晰明了还好管理. 简介 cross-env的作用是不需要全局配置N ...

  10. Hystrix集群及集群监控turbine

    Hystrix集群及监控turbine 前面Dashboard演示的仅仅是单机服务监控,实际项目基本都是集群,所以这里集群监控用的是turbine. turbine是基于Dashboard的. 先搞个 ...