Solved

I cannot connect

Posted on 2012-12-27
6
385 Views
Last Modified: 2013-11-19
[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..
0
Comment
Question by:walkerdba
6 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 38723126
>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 ...
0
 

Author Comment

by:walkerdba
ID: 38723135
how It can be achieved>
0
 
LVL 25

Accepted Solution

by:
Tomas Helgi Johannsson earned 500 total points
ID: 38723146
export ORACLE_HOME=/path where  your oracle database software is installed

http://www.orafaq.com/wiki/ORACLE_HOME


Regards,
    Tomas Helgi
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 37

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 38723451
Pls. show contents of your PATH variable, seems that sqlplus is already in your PATH:

echo $PATH
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 38724678
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.
0
 

Author Closing Comment

by:walkerdba
ID: 38765219
yes
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
push logos in footer up higher 5 21
hosting images 4 30
ORA-04071: missing BEFORE, AFTER or INSTEAD OF keyword 2 48
pl/sql - query very slow 26 61
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This video shows how to recover a database from a user managed backup
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question