Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

I cannot connect

Posted on 2012-12-27
6
Medium Priority
?
397 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 2000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

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

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
Via a live example, show how to take different types of Oracle backups using RMAN.
The viewer will learn how to count occurrences of each item in an array.

636 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