Link to home
Start Free TrialLog in
Avatar of chalie001
chalie001

asked on

Error 14 initializing SQL*Plus

hi am geting this error when starting my oracle database am in window 7 i did the following

C:\Users\rdp>SQLPLUS /NOLOG

SQL*Plus: Release 11.1.0.7.0 - Production on Sun Apr 16 08:29:03 2017

Copyright (c) 1982, 2008, Oracle.  All rights reserved.

SQL> CONNECT /AS SYSDBA
ERROR:
ORA-12560: TNS:protocol adapter error


SQL> HOST
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\rdp>SET ORACLE_HOME=C:\app\oracle\product\12.1.0\dbhome_1

C:\Users\rdp>SQLPLUS /NOLOG
Error 14 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

C:\Users\rdp>cd ..

C:\Users>cd ..

C:\>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\rdp\AppData\Roaming
CLIENTNAME=DESMAND-PC
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=VMWIN7-PC
ComSpec=C:\Windows\system32\cmd.exe
FORMS_USERNAME_CASESENSITIVE=1
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\rdp
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_45
LD_LIBRARY_PATH=C:\Oracle\Middleware\FRHome\lib
LOCALAPPDATA=C:\Users\rdp\AppData\Local
LOGONSERVER=\\VMWIN7-PC
NUMBER_OF_PROCESSORS=4
ORACLE_HOME=C:\app\oracle\product\12.1.0\dbhome_1
OS=Windows_NT
Path=C:\Oracle\Middleware\FRHome\jdk\bin;C:\Oracle\Middleware\FRHome\bin;C:\app\
oracle\product\12.1.0\dbhome_2\bin;C:\app\oracle\product\12.1.0\dbhome_1\bin;C:\
Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Windows
PowerShell\v1.0\;C:\oracle\Middleware\forms;C:\oracle\Middleware\bin;C:\Program
Files\Java\jre7\bin;C:\javajdk\jdk1.7.0_79\bin;C:\Oracle\Middleware\FRHome\opmn\
bin;C:\Oracle\Middleware\FRHome\opmn\lib;C:\Oracle\Middleware\FRHome\perl\bin;C:
\jre\bin;C:\app\oracle\jdk;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=5e03
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=RDP-Tcp#0
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\rdp\AppData\Local\Temp
TMP=C:\Users\rdp\AppData\Local\Temp
USERDOMAIN=VMWin7-PC
USERNAME=rdp
USERPROFILE=C:\Users\rdp
windir=C:\Windows
windows_tracing_flags=3
windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log

C:\>set ORACLE_HOME=C:\app\oracle\product\12.1.0\dbhome_1

C:\>SQLPLUS /NOLOG
Error 14 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
Avatar of David VanZandt
David VanZandt
Flag of United States of America image

The first error, ORA-12560, appears related to your syntax, missing a space after the slash.

You set the ORACLE_HOME from within the shelled environment (meaning you pushed into DOS command line while SQLPLUS remains open. On previous versions that used to fail for me, as it wasn't changing the environment variable globally. I would try setting the variable prior to executing sqlplus.

BTW your PATH includes two ORACLE_HOMEs, dbhome_1 and dbhome_2.  Remove the inappropriate one, and look into using the .oraenv function to set the values based upon your SID choice from the oratab file. Easily explained elsewhere on this site.

Try to cd $ORACLE_HOME\bin, then to execute sqlplus /log from it without using the search path.

Do a web search on the error code shown, as in "oracle sp2-0750". Some of the articles suggest you have corrupted your .OraInventory file.

HTH,
dvz
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Charlee, can we be of any further help on this?
Avatar of chalie001
chalie001

ASKER

was running sqpl plus from diffirent path