Link to home
Start Free TrialLog in
Avatar of walkerdba

asked on

I cannot connect

[oracle@sunu db_1]$ cd dbs
[oracle@sunu dbs]$ kls
bash: kls: command not found
[oracle@sunu dbs]$ ls
hc_bank.dat    initmydb.ora~   lkBANK      orapwnewdb     peshm_newdb_0
hc_brand.dat   initnewdb.ora   lkBRAND     orapworcl      peshm_orcl_0
hc_DBUA0.dat   initnewdb.ora~  lkMYDB      orapwsundb     peshm_testdb_0
hc_mydb.dat    init.ora        lkNEWDB     orapwtestdb    snapcf_brand.f
hc_newdb.dat   initorcl.ora    lkORCL      peshm_bank_0   snapcf_orcl.f
hc_orcl.dat    initorcl.ora~   orapwbank   peshm_brand_0  spfilebank.ora
hc_testdb.dat  initsundb.ora   orapwbrand  peshm_DBUA0_0  spfilebrand.ora
initmydb.ora   initsundb.ora~  orapwmydb   peshm_mydb_0   spfileorcl.ora
[oracle@sunu dbs]$ export ORACLE_SID=orcl
[oracle@sunu dbs]$ sqlplus / as sysdba
Error 6 initializing SQL*Plus
SP2-0667: Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
[oracle@sunu dbs]$

can u please let me know the reason..
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

>SP2-0667: Message file sp1<lang>.msb not found
>SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

the second message tells you what is wrong.
ORACLE_HOME variable is not set, so oracle cannot find the message file ...
Avatar of walkerdba


how It can be achieved>
Avatar of Tomas Helgi Johannsson
Tomas Helgi Johannsson
Flag of Iceland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Pls. show contents of your PATH variable, seems that sqlplus is already in your PATH:

echo $PATH
If you have set up /etc/oratab properly then:
export ORACLE_SID=orcl
. oraenv

If you want orcl to be the 'default' then: export ORAENV_ASK=NO

This not only setups up ORACLE_HOME but adds $ORACLE_HOME/bin to your PATH.