Test Case:: 12C ASMCMD New feature (Doc ID 1589249.1)
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)的更多相关文章
- 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 ... 
- 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 ... 
- 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 ... 
- 如何在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 ... 
- 如何在Oracle 12C中添加多个分区 (Doc ID 1482456.1)
		How to Add Multiple Partitions in Oracle 12C (Doc ID 1482456.1) APPLIES TO: Oracle Database - Enterp ... 
- 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 ... 
- 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 ... 
- 12C新功能:在线移动分区 (Doc ID 1584032.1)
		12C New Feature: Online Move Partition (Doc ID 1584032.1) APPLIES TO: Oracle Database - Enterprise E ... 
- 12C新功能:在线移动数据文件 (Doc ID 1566797.1)
		12C New Feature : Move a Datafile Online (Doc ID 1566797.1) APPLIES TO: Oracle Database - Enterprise ... 
随机推荐
- python操作s3服务中的文件
			亚马逊云aws提供了s3服务.国内一些云厂商也用了s3技术.要操作s3服务器中的文件需要用到boto这个python包.下面的代码是一个简单例子. #! /usr/bin/python # -*-co ... 
- Kerberos+SSH安装配置使用教程
			一.背景说明 最早听说KDC和Kerberos应该是大三的<应用密码学>,当时感觉这套对称密钥分发机制比非对称密钥的PKI分发机制要好理解.但几年下来由于现实中使用SSL的场景比较比(主要 ... 
- 【React】360- 完全理解 redux(从零实现一个 redux)
			点击上方"前端自习课"关注,学习起来~ 前言 记得开始接触 react 技术栈的时候,最难理解的地方就是 redux.全是新名词:reducer.store.dispatch.mi ... 
- Java构造器浅析
			Java构造器 问题引出 1.先看一段简单创建对象的例子: public class constructTest { public static void main(String[] args) { ... 
- Orleans[NET Core 3.1] 学习笔记(四)( 1 )创建项目
			ClassRoom ClassRoom是一个练手demo,目的是为了能熟悉掌握Orleans的基本知识和使用方法,我会尽量在这个项目中加入更多的知识点,一边学一边练避免我看完文档就忘掉 创建项目 依旧 ... 
- Orleans[NET Core 3.1] 学习笔记(三)( 1 )本地开发配置
			本地开发配置 本地开发和调试的时候,我们可能不需要去关注集群和网络ip端口.所以对于本地开发模式,Orleans给了我们比较简单的配置方式. Silo配置 在本地开发的配置模式下,Orleans会默认 ... 
- JS基础-正则
			正则表达式 创建正则表达式 使用一个正则表达式字面量 const regex = /^[a-zA-Z]+[0-9]*\W?_$/gi; 调用RegExp对象的构造函数 const regex = ne ... 
- java虚拟机栈 相关操作
			针对JVM虚拟栈 和栈帧的操作 虚拟机栈: 栈元素是栈帧.方法调用,栈帧入栈,反之出栈. 栈帧:一个方法的运行空间. 1.局部变量表:方法定义的局部变量.方法的参数存在该表. 实例方法中有个隐含参数“ ... 
- Linux下如何编辑pdf文件目录
			目前,我使用的是系统LinuxMint,之前硬盘没坏时都是用Foxit Reader和Okular查看pdf文件,可是后来发现Foxit Reader十分吃CPU,而且现在换了固态硬盘之后只有120G ... 
- 【转载】img图片之间的间距问题
			[问题]页面中如果有多张图片,那么图片之间会有一些间距,在某些情况下(如切好的图片再次拼接),在显示上就会出现一些问题.效果如下: 解决方案参看以下文章 img图片之间的间距问题 
