oracle 11gR2 关闭asm实例 报ORA-01031 错误处理

      在11.2版本中,用sqlplus  / as sysdba关闭asm实例时报ORA-01031错误,

sqlplus '/ as sysdba'

SQL*Plus: Release 11.2.0.1.0 Production on Thu Oct 22 13:32:50 2009

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 Automatic Storage Management option

SQL> shutdown immediate;
ORA-01031: insufficient privileges
SQL>

通过查官方文档,在11.1版本之前关闭sm实例都可以正常用sqlplus / as sysdba方式

11.2版本需要用sqlplus / as  sysasm方式 即有sysasm权限

Commands that you ran using the SYSDBA privilege on ASM 11g r1 and below have now been deprecated in release 11g r2.

Starting with 11g release 2, Oracle ASM administration must be done with the SYSASM privilege.

不只是关闭asm实例,对磁盘组添加disk或者删除disk所有对asm 管理操作都需要用sysasm 权限。

sqlplus '/ as sysasm'

SQL*Plus: Release 11.2.0.1.0 Production on Thu Oct 22 13:32:50 2009

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 Automatic Storage Management option
SQL> shutdown immediate;

ASM diskgroups dismounted
ASM instance shutdown

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7199859/viewspace-669798/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7199859/viewspace-669798/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值