问题描述:
[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>