Solved

I cannot connect

Posted on 2012-12-27
6
387 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 143

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
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
LVL 38

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 77

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The viewer will learn how to count occurrences of each item in an array.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging pā€¦

762 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