Oracle 11g RAC在grid使用者下登陸sqlplus報錯"Error 6 SP2-0667 SP2-0750"
Oracle 11g RAC在grid使用者下登陸sqlplus報錯
[root@srv05 ~]# su - grid
[grid@srv05 ~]$ sqlplus / as sysasm
Error 6 initializing SQL*Plus
SP2-0667: Message file sp1.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
[grid@srv05 ~]$ echo $ORACLE_HOME
/u01/app/12.1.0/grid
[grid@srv05 ~]$ cd $ORACLE_HOME
[grid@srv05 grid]$ ll
total 0
[grid@srv05 grid]$ cd ..
[grid@srv05 12.1.0]$ ll
total 8
drwxrwxr-x 2 grid oinstall 4096 Aug 31 16:38 grid
drwxr-xr-x 73 root oinstall 4096 Sep 1 15:54 grid_1
[grid@srv05 12.1.0]$ cd grid_1/
[grid@srv05 grid_1]$ ls
addnode bin clone css dbs demo eons gnsd hs inventory jdk ldap md nls ologgerd oracore osysmond perl QOpatch relnotes rootupgrade.sh sqlpatch suptools usm wwg
assistants cdata crf ctss dc_ocm diagnostics evm gpnp install javavm jlib lib mdns oc4j OPatch oraInst.loc oui plsql racg rest scheduler sqlplus tfa utl xag
auth cfgtoollogs crs cv deinstall dmu gipc has instantclient jdbc JRE log network ohasd opmn ord owm precomp rdbms root.sh slax srvm ucp wlm xdk
[grid@srv05 grid_1]$ pwd
/u01/app/12.1.0/grid_1
發現grid使用者的ORACLE_HOME路徑配置有誤,更正為正確的路徑
[grid@srv05 grid_1]$ cd
[grid@srv05 ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export TMP=/tmp
export TMPDIR=/tmp
export ORACLE_HOSTNAME=srv05.gemalto.com
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/12.1.0/grid
export ORACLE_SID=+ASM2
export PATH=$ORACLE_HOME/bin:/u01/app/12.1.0/grid_1/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export DISPLAY=:0.0
umask=022
[grid@srv05 ~]$ vim .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export TMP=/tmp
export TMPDIR=/tmp
export ORACLE_HOSTNAME=srv05.gemalto.com
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/12.1.0/grid_01
export ORACLE_SID=+ASM2
export PATH=$ORACLE_HOME/bin:/u01/app/12.1.0/grid_1/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export DISPLAY=:0.0
umask=022
[grid@gugong ~]$ sqlplus / as sysasm
SQL*Plus: Release 12.1.0.2.0 Production on Tue Sep 6 10:42:52 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> show parameter dump
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
background_core_dump string partial
background_dump_dest string /u01/app/12.1.0/grid_1/rdbms/log
core_dump_dest string /u01/app/grid/diag/asm/+asm/+ASM1/cdump
max_dump_file_size string unlimited
shadow_core_dump string partial
user_dump_dest string /u01/app/12.1.0/grid_1/rdbms/log
[root@srv05 ~]# su - grid
[grid@srv05 ~]$ sqlplus / as sysasm
Error 6 initializing SQL*Plus
SP2-0667: Message file sp1.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
[grid@srv05 ~]$ echo $ORACLE_HOME
/u01/app/12.1.0/grid
[grid@srv05 ~]$ cd $ORACLE_HOME
[grid@srv05 grid]$ ll
total 0
[grid@srv05 grid]$ cd ..
[grid@srv05 12.1.0]$ ll
total 8
drwxrwxr-x 2 grid oinstall 4096 Aug 31 16:38 grid
drwxr-xr-x 73 root oinstall 4096 Sep 1 15:54 grid_1
[grid@srv05 12.1.0]$ cd grid_1/
[grid@srv05 grid_1]$ ls
addnode bin clone css dbs demo eons gnsd hs inventory jdk ldap md nls ologgerd oracore osysmond perl QOpatch relnotes rootupgrade.sh sqlpatch suptools usm wwg
assistants cdata crf ctss dc_ocm diagnostics evm gpnp install javavm jlib lib mdns oc4j OPatch oraInst.loc oui plsql racg rest scheduler sqlplus tfa utl xag
auth cfgtoollogs crs cv deinstall dmu gipc has instantclient jdbc JRE log network ohasd opmn ord owm precomp rdbms root.sh slax srvm ucp wlm xdk
[grid@srv05 grid_1]$ pwd
/u01/app/12.1.0/grid_1
發現grid使用者的ORACLE_HOME路徑配置有誤,更正為正確的路徑
[grid@srv05 grid_1]$ cd
[grid@srv05 ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export TMP=/tmp
export TMPDIR=/tmp
export ORACLE_HOSTNAME=srv05.gemalto.com
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/12.1.0/grid
export ORACLE_SID=+ASM2
export PATH=$ORACLE_HOME/bin:/u01/app/12.1.0/grid_1/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export DISPLAY=:0.0
umask=022
[grid@srv05 ~]$ vim .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export TMP=/tmp
export TMPDIR=/tmp
export ORACLE_HOSTNAME=srv05.gemalto.com
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/12.1.0/grid_01
export ORACLE_SID=+ASM2
export PATH=$ORACLE_HOME/bin:/u01/app/12.1.0/grid_1/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export DISPLAY=:0.0
umask=022
[grid@gugong ~]$ sqlplus / as sysasm
SQL*Plus: Release 12.1.0.2.0 Production on Tue Sep 6 10:42:52 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> show parameter dump
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
background_core_dump string partial
background_dump_dest string /u01/app/12.1.0/grid_1/rdbms/log
core_dump_dest string /u01/app/grid/diag/asm/+asm/+ASM1/cdump
max_dump_file_size string unlimited
shadow_core_dump string partial
user_dump_dest string /u01/app/12.1.0/grid_1/rdbms/log
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2124557/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle中sqlplus登入報錯SP2-0667和SP2-0750探究OracleSQL
- Oracle RAC啟動CRS報錯:登陸許可權問題Oracle
- windows 下用 as sysdba登陸報錯Windows
- oracle for windows cmd登入sqlplus之SP2-0750OracleWindowsSQL
- Oracle 11g在redhat 5 sqlplus 錯誤OracleRedhatSQL
- Oracle 11G RAC GRID主要架構Oracle架構
- oracle 11g登陸報錯'ORA-12162: TNS:net service name is incorrectly specified'Oracle
- sqlplus登陸方式SQL
- ora-01031錯誤(在客戶端以SYS使用者登陸報錯)客戶端
- 登入Oracle錯誤提示Error 6 initializing SQL*PlusOracleErrorSQL
- ORACLE_HOME設定錯誤導致本地sqlplus無法登陸OracleSQL
- sqlplus登陸資訊提示SQL
- aix系統資料庫sqlplus登陸報錯處理一例AI資料庫SQL
- AIX 未開啟AIO引起SQLPLUS登陸報錯exec(): 0509-036AISQL
- vnc登陸,7個步驟在CentOS 7下vnc登陸VNCCentOS
- 在windows上以sysdba登陸oracleWindowsOracle
- Oracle 11G RAC叢集安裝(2)——安裝gridOracle
- 【Oracle】11g RAC R2 日常巡檢--GridOracle
- oracle 登陸Oracle
- mysql登陸報錯mysql: unknown variable 'basedir=MySql
- 登入 Oracle 資料庫報錯,ORA-00257: archiver errorOracle資料庫HiveError
- se://error/ Oracle 19c EM Exporess無法登陸ErrorOracle
- oracle 11g RAC手動解除安裝grid,no deinstallOracle
- 11g RAC Grid 元件及程式元件
- Oracle安裝報錯syntax errorOracleError
- Sqlplus登陸Oracle提示"ORA-21561: OID generation failed"SQLOracleAI
- sqlplus / as sysdba無法登入的奇怪報錯SQL
- mysql在Linux下登入正常,但是用Navicat登入報錯MySqlLinux
- 登陸sqlplus hang /telnet很慢 for AixSQLAI
- oracle之 11g RAC R2 體系結構---GridOracle
- Oracle 11g RAC操作DBCA期間報ORA-04031錯誤Oracle
- Oracle 11g RAC 如何生成AWR報告?Oracle
- Oracle 11g RAC生成 AWR 報告方法Oracle
- sqlplus本地登入報錯ORA-12545SQL
- mysql密碼遺忘和登陸報錯問題MySql密碼
- oracle使用者登陸失敗次數限制修改Oracle
- 10g Sqlplus工具登陸小改進SQL
- oracle 11g安裝報錯Oracle