今天装完ASM时遇到的一个比较低级的问题ORA-15149: another ASM instance found running on the host

本文讨论了Oracle ASM实例连接问题,发现是由于环境变量设置错误导致的实例冲突。详细介绍了通过检查进程和环境变量来定位问题,并提供了解决方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述:

[oracle@localhost ~]$ export ORACLE_SID=+ASM
[oracle@localhost ~]$ export ORACLE_HOME=/u01/app/oracle/grid/11.2.0/
[oracle@localhost ~]$ sqlplus / as sysasm

SQL*Plus: Release 11.2.0.1.0 Production on 星期四 8月 1 14:35:25 2013

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

已连接到空闲例程。

SQL> startup
ORA-15149: another ASM instance found running on the host
SQL>

有一个已经运行的ASM实例那为什么报连接到空闲实例呢???

查看进程:

[oracle@localhost ~]$ ps -ef | grep asm_
oracle   10179  9397  0 14:37 pts/3    00:00:00 grep asm_
oracle   16742     1  0 10:59 ?        00:00:01 asm_pmon_+ASM
oracle   16746     1  0 10:59 ?        00:00:04 asm_vktm_+ASM
oracle   16752     1  0 10:59 ?        00:00:00 asm_gen0_+ASM
oracle   16756     1  0 10:59 ?        00:00:00 asm_diag_+ASM
oracle   16760     1  0 10:59 ?        00:00:00 asm_psp0_+ASM
oracle   16764     1  0 10:59 ?        00:00:04 asm_dia0_+ASM
oracle   16768     1  0 10:59 ?        00:00:00 asm_mman_+ASM
oracle   16772     1  0 10:59 ?        00:00:00 asm_dbw0_+ASM
oracle   16776     1  0 10:59 ?        00:00:00 asm_lgwr_+ASM
oracle   16780     1  0 10:59 ?        00:00:00 asm_ckpt_+ASM
oracle   16784     1  0 10:59 ?        00:00:00 asm_smon_+ASM
oracle   16788     1  0 10:59 ?        00:00:00 asm_rbal_+ASM
oracle   16792     1  0 10:59 ?        00:00:02 asm_gmon_+ASM
oracle   16796     1  0 10:59 ?        00:00:00 asm_mmon_+ASM
oracle   16800     1  0 10:59 ?        00:00:01 asm_mmnl_+ASM
oracle   20920     1  0 12:46 ?        00:00:00 asm_asmb_+ASM

确实全部启动,那是为什么呢???

解决办法:

细心的朋友也许已经看出了问题

那就是环境变量

[oracle@localhost ~]$ export ORACLE_HOME=/u01/app/oracle/grid/11.2.0   -----注意后面没有斜线----用惯Linux的同学习惯用tab键补全,最后面会加一条斜线--但是oracle就不认识你了
[oracle@localhost ~]$ sqlplus / as sysasm

SQL*Plus: Release 11.2.0.1.0 Production on 星期四 8月 1 14:39:12 2013

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Automatic Storage Management option

SQL>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值