DBA Hub

📋Steps in this guide1/4

Asmcmd new features in oracle 12c DBACLASS

Asmcmd new features in oracle 12c. Asmcmd new features includs pwfile movement online,showcluster,showversion,doing rebalance from asmcmd etc.

oracle clusteringintermediate
by OracleDba
15 views
1

1. Connecting to ASM instance of remote node:

Now we can connect to asmcmd prompt(asm instance) of remote node from local node. SYNTAX – asmcmd –inst < REMOTE ASM INSTANCE NAME>

Code/Command (click line numbers to comment):

1
asmcmd --inst +ASM2
2

2.Move ASM password file using pwmove :

We can move the asm pwfile from one diskgroup to another diskgroup online using pwmove command. Check the asm pwfile location Connect to asmcmd and run pwmove command Check the new location. Check the crs status: We can see cluster components are online during the password movement activity.

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$ crsctl stat res ora.asm -p|grep PWFILE
PWFILE=+MGMTDB/orapwASM

$ 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

$echo $ORACLE_HOME
$/crsapp/app/oracle/product/grid12c
echo $ORACLE_SID
+ASM1

$ asmcmd
ASMCMD> pwmove --asm +MGMTDB/orapwASM +B2BWMDB/orapwASM
moving +MGMTDB/orapwASM -> +B2BWMDB/orapwASM

crsctl stat res ora.asm -p|grep PWFILE
PWFILE=+B2BWMDB/orapwASM

$ 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
3

3. Rebalance from asmcmd :

Now we can do rebalance of diskgroup from asmcmd prompt also. To rebalance a diskgroup with power limit of 100 SYNTAX – rebal –power < POWER_LIMIT> < DISKGROUP_NAME> To monitor the rebalance operation:

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
ASMCMD> rebal --power 100 B2BWMDB
Rebal on progress.

ASMCMD> lsop
Group_Name  Pass       State  Power  EST_WORK  EST_RATE  EST_TIME
B2BWMDB     COMPACT    WAIT   1      0         0         0
B2BWMDB     REBALANCE  RUN    1      12072     4400      2
4

4. Miscellaneous asmcmd commands:

Check the patches installed in grid home: Check asm instance version: Check the cluster mode: Check the cluster state:

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
ASMCMD> showpatches

ASMCMD> showversion

ASMCMD> showclustermode
ASM cluster : Flex mode disabled

ASMCMD> showclusterstate
Normal

Comments (0)

Please to add comments

No comments yet. Be the first to comment!