When you run the asmcmd command, the following error occurs:
[Oracle @ racdb2 ~] $ Asmcmd
Asmcmd: Command disallowed by current instance type
The error message is obvious:
The instance type is incorrect.
RAC has two instances: Oracle instance and ASM instance.
The pfile parameter sets the Oracle instance, which is the default value. Therefore, Oracle instances are used if oracle_sid is not specified. However, the asmcmd command is for the ASM instance. Therefore, before running the asmcmd command, specify oracle_sid.
[Oracle @ racdb2 ~] $ Export oracle_sid = + asm2
[Oracle @ racdb2 ~] $ Asmcmd
Asmcmd> ls
Data/
FRA/
OK.
------------------------------------------------------------------------------
Blog: http://blog.csdn.net/tianlesoftware
Online Resources: http://tianlesoftware.download.csdn.net
Video: http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx
Dba1 group: 62697716 (full); dba2 group: 62697977 (full)
Dba3 group: 62697850 super DBA group: 63306533;
Chat group: 40132017
-- Add the group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, the application is rejected.