ORA-15097: cannot SHUTDOWN ASM instance with connected client 和 ORA-01031: insufficient privileges 处

[grid@racnode1 ~]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 9 17:49:58 2017
Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options


SQL> select instance_name,status from v$instance;

INSTANCE_NAME STATUS
---------------- ------------
+ASM1 STARTED

SQL> shutdown
ORA-15097: cannot SHUTDOWN ASM instance with connected client


[grid@racnode1 ~]$ srvctl stop asm -n racnode1 -f

PRCR-1014 : 无法停止资源 ora.asm
PRCR-1065 : 无法停止资源 ora.asm
CRS-2675: 未能停止 'ora.RACDB_DATA.dg' (在 'racnode1' 上)

CRS-2675: 未能停止 'ora.FRA.dg' (在 'racnode1' 上)


oracle 10g 环境下,我们停RAC的顺序是:

       (1)数据库

       (2)ASM

       (3)CRS

 

       但是在Oracle 11gR2下,如果是用OUI来安装的话,除了数据文件之外,OCR 也是放在ASM里的。 11gR2是支持RAW设备的,但是需要手动的安装。 

      所以这里就遇到了问题。 OCR也是放在ASM里的,这样CRSD 就会成为ASM的客户端。 如果我们像Oracle 10g里那样直接停ASM的时候,就会报上面的错误。 所以,在11gR2下面,要停ASM实例的话,只能和CRS一起停。

root用户下:

[root@racnode2 bin]#  /u01/app/11.2.0/grid/bin/crsctl stop crs


在关闭ASM实例的时候,还遇到一个问题:

sqlplus / as sysdba

SQL> shutdown immediate; 
ORA-01031: insufficient privileges

SQL>

        提示权限不错,如果遇到这种错误,可以用sqlplus / as  sysasm方式连接。 这样就有了sysasm的权限。

猜你喜欢

转载自blog.csdn.net/hongkaihua1987/article/details/77008519