您好,登錄后才能下訂單哦!
oracle版本為11.2.0.3,系統版本為Centos Linux 6.6 X86_64,安裝完成grid軟件后,一切正常,沒有報錯,但是使用sqlplus / as sysasm后提示連接到空閑進程
[grid@oracle dbs]$ sqlplus / as sysasm; SQL*Plus: Release 11.2.0.3.0 Production on Mon Apr 25 15:08:06 2016 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to an idle instance. SQL> startup mount; ORA-15149: another ASM instance found running on the host
檢查css狀態
[grid@oracle ~]$ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora.DATA.dg ora....up.type ONLINE ONLINE oracle ora....ER.lsnr ora....er.type ONLINE ONLINE oracle ora.asm ora.asm.type ONLINE ONLINE oracle ora.cssd ora.cssd.type ONLINE ONLINE oracle ora.diskmon ora....on.type OFFLINE OFFLINE ora.evmd ora.evm.type ONLINE ONLINE oracle ora.ons ora.ons.type OFFLINE OFFLINE ora.orcl.db ora....se.type ONLINE ONLINE oracle
發現ora.diskmon為offline狀態,查閱資料后發現從11.2.0.3版本開始默認diskmon在非exadata上是禁用狀態
11.2.0.3 Grid Infrastructure diskmon Will be Offline by Default in Non-Exadata Environment [ID 1346881.1]
百般折騰看是否有辦法啟用ora.diskmon,設置auto_start為1也沒有效果,檢查asm進程
[grid@oracle grid]$ ps -ef|grep asm_ grid 25991 1 0 14:56 ? 00:00:00 asm_pmon_+ASM grid 25993 1 0 14:56 ? 00:00:00 asm_psp0_+ASM grid 26019 1 2 14:56 ? 00:00:18 asm_vktm_+ASM grid 26023 1 0 14:56 ? 00:00:00 asm_gen0_+ASM grid 26025 1 0 14:56 ? 00:00:00 asm_diag_+ASM grid 26027 1 0 14:56 ? 00:00:00 asm_dia0_+ASM grid 26029 1 0 14:56 ? 00:00:00 asm_mman_+ASM grid 26031 1 0 14:56 ? 00:00:00 asm_dbw0_+ASM grid 26033 1 0 14:56 ? 00:00:00 asm_lgwr_+ASM grid 26035 1 0 14:56 ? 00:00:00 asm_ckpt_+ASM grid 26037 1 0 14:56 ? 00:00:00 asm_smon_+ASM grid 26039 1 0 14:56 ? 00:00:00 asm_rbal_+ASM grid 26041 1 0 14:56 ? 00:00:00 asm_gmon_+ASM grid 26043 1 0 14:56 ? 00:00:00 asm_mmon_+ASM grid 26045 1 0 14:56 ? 00:00:00 asm_mmnl_+ASM grid 29065 25763 0 15:10 pts/4 00:00:00 grep asm_
檢查監聽狀態
[grid@oracle ~]$ lsnrctl status LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 25-APR-2016 14:56:58 Copyright (c) 1991, 2011, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production Start Date 25-APR-2016 14:55:38 Uptime 0 days 0 hr. 1 min. 20 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/grid/network/admin/listener.ora Listener Log File /u01/app/diag/tnslsnr/oracle/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle.study)(PORT=1521))) Services Summary... Service "+ASM" has 1 instance(s). Instance "+ASM", status READY, has 1 handler(s) for this service... Service "orcl" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "orclXDB" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... The command completed successfully
監聽狀態正常
檢查參數文件init+asm.ora也沒發現問題
[grid@oracle dbs]$ cat init+asm.ora *.asm_power_limit=1 *.instance_type='asm' *.large_pool_size=12M *.remote_login_passwordfile='EXCLUSIVE' *.asm_diskstring='/dev/asm-disk*'
最后檢查.bash_profile文件配置
[grid@oracle dbs]$ cat ~/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs ORACLE_BASE=/u01/app; export ORACLE_BASE ORACLE_HOME=/u01/app/grid; export ORACLE_HOME ORACLE_SID=+asm; export ORACLE_SID export LD_LIBRARY_PATH=$ORACLE_HOME/lib PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin export PATH
ORACLE_SID為小寫的+asm,而實際進程中的為大寫+ASM,oracle區分大小寫,改為大寫后再連接后就正常了
[grid@oracle grid]$ export ORACLE_SID=+ASM [grid@oracle grid]$ sqlplus / as sysasm; SQL*Plus: Release 11.2.0.3.0 Production on Mon Apr 25 15:11:28 2016 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Automatic Storage Management option SQL> show parameter diskgroup NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ asm_diskgroups string
連接后OK
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。