您好,登錄后才能下訂單哦!
oracle版本為11.2.0.3,系統(tǒng)版本為Centos Linux 6.6 X86_64,安裝完成grid軟件后,一切正常,沒(méi)有報(bào)錯(cuò),但是使用sqlplus / as sysasm后提示連接到空閑進(jìn)程
[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狀態(tài)
[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
發(fā)現(xiàn)ora.diskmon為offline狀態(tài),查閱資料后發(fā)現(xiàn)從11.2.0.3版本開始默認(rèn)diskmon在非exadata上是禁用狀態(tài)
11.2.0.3 Grid Infrastructure diskmon Will be Offline by Default in Non-Exadata Environment [ID 1346881.1]
百般折騰看是否有辦法啟用ora.diskmon,設(shè)置auto_start為1也沒(méi)有效果,檢查asm進(jìn)程
[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_
檢查監(jiān)聽狀態(tài)
[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
監(jiān)聽狀態(tài)正常
檢查參數(shù)文件init+asm.ora也沒(méi)發(fā)現(xiàn)問(wèn)題
[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,而實(shí)際進(jìn)程中的為大寫+ASM,oracle區(qū)分大小寫,改為大寫后再連接后就正常了
[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
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。