asmcmd:connected to an idle instance ORA12705
環境:oracle linux 6.8
ORACLE: 112040 雙機
故障描述:資料庫可以正常使用,在雙節點上執行asmcmd時提示Connected to an idle instance.
[grid@node1 ~]$ asmcmd
Connected to an idle instance.
ASM程式都在
[grid@node1 ~]$ ps -ef|grep asm
grid 2268 31322 0 17:07 pts/2 00:00:00 grep asm
grid 23964 1 0 Jan05 ? 00:01:39 asm_pmon_+ASM1
grid 23966 1 0 Jan05 ? 00:01:21 asm_psp0_+ASM1
grid 23970 1 1 Jan05 ? 02:34:37 asm_vktm_+ASM1
grid 23974 1 0 Jan05 ? 00:00:13 asm_gen0_+ASM1
grid 23976 1 0 Jan05 ? 00:05:40 asm_diag_+ASM1
grid 23978 1 0 Jan05 ? 00:00:45 asm_ping_+ASM1
grid 23980 1 0 Jan05 ? 00:51:22 asm_dia0_+ASM1
grid 23984 1 0 Jan05 ? 00:15:19 asm_lmon_+ASM1
grid 23986 1 0 Jan05 ? 00:09:37 asm_lmd0_+ASM1
grid 23988 1 0 Jan05 ? 00:20:06 asm_lms0_+ASM1
grid 23992 1 0 Jan05 ? 00:00:30 asm_lmhb_+ASM1
grid 23994 1 0 Jan05 ? 00:00:14 asm_mman_+ASM1
grid 23996 1 0 Jan05 ? 00:00:14 asm_dbw0_+ASM1
grid 23998 1 0 Jan05 ? 00:00:15 asm_lgwr_+ASM1
grid 24000 1 0 Jan05 ? 00:00:47 asm_ckpt_+ASM1
grid 24002 1 0 Jan05 ? 00:00:11 asm_smon_+ASM1
grid 24004 1 0 Jan05 ? 00:02:12 asm_rbal_+ASM1
grid 24006 1 0 Jan05 ? 00:00:42 asm_gmon_+ASM1
grid 24008 1 0 Jan05 ? 00:00:48 asm_mmon_+ASM1
grid 24010 1 0 Jan05 ? 00:06:14 asm_mmnl_+ASM1
grid 24014 1 0 Jan05 ? 00:00:59 asm_lck0_+ASM1
grid 24066 1 0 Jan05 ? 00:00:11 asm_asmb_+ASM1
grid 24068 1 0 Jan05 ? 00:00:35 oracle+ASM1_asmb_+asm1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle 24479 1 0 Jan05 ? 00:00:14 ora_asmb_prod1
grid 24483 1 0 Jan05 ? 00:00:35 oracle+ASM1_asmb_prod1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
ORACLE: 112040 雙機
故障描述:資料庫可以正常使用,在雙節點上執行asmcmd時提示Connected to an idle instance.
[grid@node1 ~]$ asmcmd
Connected to an idle instance.
ASM程式都在
[grid@node1 ~]$ ps -ef|grep asm
grid 2268 31322 0 17:07 pts/2 00:00:00 grep asm
grid 23964 1 0 Jan05 ? 00:01:39 asm_pmon_+ASM1
grid 23966 1 0 Jan05 ? 00:01:21 asm_psp0_+ASM1
grid 23970 1 1 Jan05 ? 02:34:37 asm_vktm_+ASM1
grid 23974 1 0 Jan05 ? 00:00:13 asm_gen0_+ASM1
grid 23976 1 0 Jan05 ? 00:05:40 asm_diag_+ASM1
grid 23978 1 0 Jan05 ? 00:00:45 asm_ping_+ASM1
grid 23980 1 0 Jan05 ? 00:51:22 asm_dia0_+ASM1
grid 23984 1 0 Jan05 ? 00:15:19 asm_lmon_+ASM1
grid 23986 1 0 Jan05 ? 00:09:37 asm_lmd0_+ASM1
grid 23988 1 0 Jan05 ? 00:20:06 asm_lms0_+ASM1
grid 23992 1 0 Jan05 ? 00:00:30 asm_lmhb_+ASM1
grid 23994 1 0 Jan05 ? 00:00:14 asm_mman_+ASM1
grid 23996 1 0 Jan05 ? 00:00:14 asm_dbw0_+ASM1
grid 23998 1 0 Jan05 ? 00:00:15 asm_lgwr_+ASM1
grid 24000 1 0 Jan05 ? 00:00:47 asm_ckpt_+ASM1
grid 24002 1 0 Jan05 ? 00:00:11 asm_smon_+ASM1
grid 24004 1 0 Jan05 ? 00:02:12 asm_rbal_+ASM1
grid 24006 1 0 Jan05 ? 00:00:42 asm_gmon_+ASM1
grid 24008 1 0 Jan05 ? 00:00:48 asm_mmon_+ASM1
grid 24010 1 0 Jan05 ? 00:06:14 asm_mmnl_+ASM1
grid 24014 1 0 Jan05 ? 00:00:59 asm_lck0_+ASM1
grid 24066 1 0 Jan05 ? 00:00:11 asm_asmb_+ASM1
grid 24068 1 0 Jan05 ? 00:00:35 oracle+ASM1_asmb_+asm1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle 24479 1 0 Jan05 ? 00:00:14 ora_asmb_prod1
grid 24483 1 0 Jan05 ? 00:00:35 oracle+ASM1_asmb_prod1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
.bash_profile內容:
[grid@node1 ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_HOME=/g01/grid/app/11.2.0/grid
ORACLE_BASE=/g01/grid/app/grid
ORACLE_SID=+ASM1
PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
NLS_LANG=AMERICAN_AMRICA.ZHS16GBK
export PATH ORACLE_HOME ORACLE_BASE ORACLE_SID NLS_LANG
[grid@node1 ~]$ echo $ORACLE_SID
+ASM1
後來在一網友指導下進sqlplus檢視ASM是不是真的起來了才發現問題
[grid@node1 ~]$ sqlplus / as sysasm (進去之後show parameter name)
很不幸,在這一步的時候報錯了,不過很幸運,這就是問題所在。
ORA12705:cannot access NLS data file or invalid environment specified
- -無法訪問NLS資料檔案。
後來在網上檢視這個報錯原因,有個解釋是不能在bash_profile裡面指定NLS
找到bash_profile檔案,把這行註釋後,重新開啟CRT視窗,發現報錯沒有了。
--出現例項連線不上的原因論壇的描述多數是$ORACLE_SID或者$ORACLE_HOME路徑出錯,出現此問題的同學可以多檢查下.bash_profile檔案
[grid@node1 ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_HOME=/g01/grid/app/11.2.0/grid
ORACLE_BASE=/g01/grid/app/grid
ORACLE_SID=+ASM1
PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
NLS_LANG=AMERICAN_AMRICA.ZHS16GBK
export PATH ORACLE_HOME ORACLE_BASE ORACLE_SID NLS_LANG
[grid@node1 ~]$ echo $ORACLE_SID
+ASM1
後來在一網友指導下進sqlplus檢視ASM是不是真的起來了才發現問題
[grid@node1 ~]$ sqlplus / as sysasm (進去之後show parameter name)
很不幸,在這一步的時候報錯了,不過很幸運,這就是問題所在。
ORA12705:cannot access NLS data file or invalid environment specified
- -無法訪問NLS資料檔案。
後來在網上檢視這個報錯原因,有個解釋是不能在bash_profile裡面指定NLS
找到bash_profile檔案,把這行註釋後,重新開啟CRT視窗,發現報錯沒有了。
--出現例項連線不上的原因論壇的描述多數是$ORACLE_SID或者$ORACLE_HOME路徑出錯,出現此問題的同學可以多檢查下.bash_profile檔案
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29618264/viewspace-2132387/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ASMCMD +ASM 例項 Connected to an idle instance. 一個 / 導致的問題ASM
- Connected to an idle instance – while database is runningWhileDatabase
- Oracle - ORA-01034: ORACLE not available Process ID: 0 / Connected to an idle instanceOracleAI
- asmcmd: command disallowed by current instance typeASM
- 關於"asmcmd: command disallowed by current instance type"問題解決ASM
- oracle程式都啟來了,sqlplus 顯示是idle instanceOracleSQL
- 【asmcmd】使用asmcmd工具管理ASMASM
- asmcmdASM
- ASMCMD命令ASM
- ASMCMD - cpASM
- 使用asmcmdASM
- asmcmd詳解ASM
- oracle asm asmcmdOracleASM
- ASM工具asmcmdASM
- ASMCMD簡介(1)ASM
- asmcmd命令學習ASM
- 【ASM】ASMCMD cp 命令ASM
- asmcmd命令用法教程ASM
- asmcmd does not exist in directoryASM
- Oracle ASMCMD命令參考OracleASM
- OCP(11g)------> ASM Command-Line Utility (ASMCMD)和 使用 ASMCMDASM
- Python idle 的快捷鍵Python
- ASMCMD中的各個命令ASM
- asmcmd的cp命令小bugASM
- asmcmd的一個問題ASM
- 翻譯|How to Export a Connected ComponentExport
- SAP Connected Logistics解決方案
- How To Automate Disconnection of Idle SessionsSession
- asmcmd工具的詳細介紹ASM
- asmcmd對磁碟組的處理ASM
- ASMCMD處理問題一則ASM
- ASMCMD - ASM command line utility .ASM
- RMAN 6217 not connected to auxiliary database with a net service nameUXDatabase
- PostgreSQL的idle in transaction連線狀態SQL
- AIX的wait程式(即idle程式)AI
- ASM命令列管理工具asmcmdASM命令列
- instance和clientclient
- Oracle database instanceOracleDatabase