您好,登錄后才能下訂單哦!
[grid@huntdb02 ~]$export ORACLE_SID=txzldb2 [grid@huntdb02 ~]$sqlplus "/as sysasm" SQL*Plus: Release11.2.0.3.0 Production on Wed Jul 9 15:07:55 2014 Copyright (c)1982, 2011, Oracle. All rights reserved. Connected to anidle instance. [root@huntdb02 ~]#crsstat Resource Name Resource Type Target State Node FC RC State Details -------------------------------------------------------- ---------- ------------ --------------- -- -- --------------- ora.BACKDG.dg diskgroup L ONLINE ONLINE huntdb01 0 0 ora.BACKDG.dg diskgroup L ONLINE ONLINE huntdb02 0 0 ora.DATA.dg diskgroup L ONLINE ONLINE huntdb01 0 0 ora.DATA.dg diskgroup L ONLINE ONLINE huntdb02 0 0 ora.LISTENER.lsnr Listener L ONLINE ONLINE huntdb01 0 0 ora.LISTENER.lsnr Listener L ONLINE ONLINE huntdb02 0 0 ora.LISTENER_SCAN1.lsnr SCAN Listener C ONLINE ONLINE huntdb02 0 0 ora.SYSTEMDG.dg diskgroup L ONLINE ONLINE huntdb01 0 0 ora.SYSTEMDG.dg diskgroup L ONLINE ONLINE huntdb02 0 0 ora.asm ASM L ONLINE ONLINE huntdb01 0 0Started ora.asm ASM L ONLINE ONLINE huntdb02 0 0 Started ora.cvu cvu C ONLINE ONLINE huntdb02 0 0 ora.gsd Gbl Svc Daemon L ONLINE OFFLINE (huntdb01) 0 0 ora.gsd Gbl SvcDaemon L ONLINE OFFLINE (huntdb02) 0 0 ora.huntdb01.vip Cluster VIP C ONLINE ONLINE huntdb01 0 0 ora.huntdb02.vip Cluster VIP C ONLINE ONLINE huntdb02 0 0 ora.net1.network Network (VIP) L ONLINE ONLINE huntdb01 0 0 ora.net1.network Network (VIP) L ONLINE ONLINE huntdb02 0 0 ora.oc4j OC4J C ONLINE ONLINE huntdb02 0 0 ora.ons Ora NotifSvc L ONLINE ONLINE huntdb01 0 0 ora.ons Ora NotifSvc L ONLINE ONLINE huntdb02 0 0 ora.scan1.vip SCAN VIP C ONLINE ONLINE huntdb02 0 0 ora.txzldb.db database C ONLINE ONLINE huntdb01 0 0 Open ora.txzldb.db database C ONLINE ONLINE huntdb02 0 0 Open [grid@huntdb02 ~]$srvctl status asm -a ASM is running onhuntdb01,huntdb02 ASM is enabled. [grid@huntdb02 ~]$srvctl status diskgroup -g systemdg -a Disk Groupsystemdg is running on huntdb01,huntdb02 Disk Groupsystemdg is enabled
現在基本可以肯定是環境變量導致的結果
CRS_HOME=/g01/app/11.2.0/grid/ ORACLE_HOME=/g01/app/11.2.0/grid/ ORACLE_BASE=/g01 ORACLE_SID=+ASM2 PATH=$CRS_HOME/bin:$PATH:$HOME/bin:$ORACLE_HOME/bin export PATH CRS_HOME ORACLE_BASE ORACLE_SID ORACLE_HOME
修改環境變量如下(去掉grid最后的斜杠)
RS_HOME=/g01/app/11.2.0/grid ORACLE_HOME=/g01/app/11.2.0/grid ORACLE_BASE=/g01 ORACLE_SID=+ASM2 PATH=$CRS_HOME/bin:$PATH:$HOME/bin:$ORACLE_HOME/bin export PATH CRS_HOME ORACLE_BASE ORACLE_SID ORACLE_HOME
登錄測試
[grid@huntdb02 ~]$sqlplus "/as sysasm" SQL*Plus: Release11.2.0.3.0 Production on Wed Jul 9 15:10:48 2014 Copyright (c)1982, 2011, Oracle. All rights reserved. Connected to: Oracle Database11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the RealApplication Clusters and Automatic Storage Management options SQL>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。