I'm working on a customer server that has the environment setup as listed below. I have verified that the ORACLE_HOME is set correctly and added the environment settings found in /home/oracle/.bashrc to my .bashrc. When I try to access sqlplus I still get SP2-0667: Message file sp1.msb?
# User specific aliases and functions
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/app/oracle/product/11g
export ORACLE_SID=xxxORA10
export TNS_ADMIN=$ORACLE_HOME/network/admin
export PATH=$PATH:.:$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:/usr/local/java/bin:~/jre/1.1.8/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_BASE/oui/bin/linux:/lib:/usr/lib:/usr/X11R6/lib
export ORACLE_UNQNAME=xxxORA10
export ORACLE_HOSTNAME=xxx-df-vm
export LANG=en_US.UTF-8
I added the following with the same results
export ORA_NLS11=$ORACLE_HOME/nls/data
sudo ls ${ORACLE_HOME} >oraclehome.txt returns the following
apex
assistants
bin
ccr
cdata
cfgtoollogs
clone
config
crs
csmig
css
ctx
cv
dbs
dc_ocm
deinstall
demo
diagnostics
emcli
EMStage
has
hs
ide
install
instantclient
inventory
j2ee
javavm
jdbc
jdev
jdk
jlib
ldap
lib
log
md
mesg
network
nls
oc4j
odbc
olap
OPatch
opmn
oracore
oraInst.loc
ord
oui
owb
owm
perl
plsql
precomp
racg
rdbms
relnotes
root.sh
scheduler
slax
sqldeveloper
sqlj
sqlplus
srvm
suptools
sysman
timingframework
ucp
uix
usm
utl
wwg
xdk
first, check the location of your sqlplus binary:
$ which sqlplus
Maybe you are grabbing it from some other installation directory?
I would change this line in your .bashrc:
export PATH=$PATH:.:$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:/usr/local/java/bin:~/jre/1.1.8/bin
to this:
export PATH=.:$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:/usr/local/java/bin:~/jre/1.1.8/bin:$PATH
I am new to databases. I installed oracle on my centos 7 machine. After successfull installation I am getting "sqlite3" but not "sqlplus". Can someone let me know why "sqlplus" utility isn't came of its own and how I can get it.
CentOS Linux release 7.6.1810 (Core)
Package : linuxx64_12201_database.zip
Your sqlplus program is under $ORACLE_HOME/bin/sqlplus . When you installed Oracle, you must have to select an ORACLE_HOME. If you use the one by default, probably it would be some like ( see below ).
Ensure that the environment variables ORACLE_HOME and ORACLE_SID are set properly. The commands to use to set these environment variables depend on the shell you use to interface with the operating system. For example ( bash ):
export ORACLE_SID=xxxxxx # where xxxxx is the name of the database sid
export ORACLE_HOME=/u01/app/oracle/product/12.2/dbhome_1 # example by default
export PATH=$ORACLE_HOME/bin:$PATH
# Once you execute these commands, you can run sqlplus
sqlplus user/pwd
I've been trying to export oracle datadump with "expdp" utility in Oracle 18c. I've set the environment variables under ~/.bashrc as following
export ORACLE_HOME=/home/ubuntu/oracle-database-xe-18c-1.0/opt/oracle/product/18c/dbhomeXE
export ORACLE_SID=ORCL
export ORACLE_BASE=/home/ubuntu/oracle-database-xe-18c-1.0/opt/oracle/product
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export TNS_ADMIN=$ORACLE_HOME/network/admin
When I enter the command "expdp" in terminal - it keep saying your ORACLE_HOME is not set
root#ip-172-30-xx-xxx:~# expdp
UDE-00013: Message 13 not found; No message file for product=RDBMS, facility=UDE
UDE-00019: You may need to set ORACLE_HOME to your Oracle software directory
I'm new to Oracle Database at present. What could be the possible issue ? Do I need to set environment variables at some other places too ?
Note that Oracle XE is not really supported on Ubuntu: if you really want to use Oracle, install it on Oracle Linux (freely available): you will never see Oracle Database running in real production on Debian or Ubuntu and you will need to use Oracle Linux or RedHat Linux or Suse Linux.
Do not run Oracle utilities as root: you don't need to and it is generally a bad practice on Linux to use root account when it is not needed. Use a non privileged account to run Oracle utilities like SQL*Plus or Data Pump and make sure that your Oracle settings are run for each shell session: putting them in .bash_profile for the right account should be enough.
For this specific error message just make sure that ORACLE_HOME is correctly set: it is likely that your .bashrc has not been run.
I'm trying to install Oracle 11gR2 Entreprise Edition but during database creation, I got this Error :
Environment Variable ORACLE_UNQNAME not defined
And when I tried to lunch 'emctl.bat' From cmd I got this one :
Please set ORACLE_UNQNAME to database unique name.
And to slove this error, I have used this commande :
set ORACLE_UNQNAME=orcl
To define my Enivronment variable (orcl is the database name) I got this error for the 'emctl' command:
EM Configuration issue. D:\app\product\11.2.0\dbhome_1/Chlebta-PC_orcl not found
So any Help For sloving this issue ?
:\> emctl status dbconsole
Environment variable ORACLE_UNQNAME not defined.
Please set ORACLE_UNQNAME to database unique name
Here is how to set oracle_unqname in Windows. You use a similar "export command" in UNIX/Linux:
C:\>set ORACLE_HOSTNAME=localhost
C:\>set ORACLE_UNQNAME=orcl
C:\>set ORACLE_SID=orcl
C:\>emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
the best way to set your environment variables is the graphical way :
control panel > system > advanced system settings > Environment variables
now just click on new and inter the variable name : inter your variable name like
ORACLE_UNQNAME
and int variable value : inter the value , such as orcl
now for the error of em-configuration : its seems like your host name "which is the computer name" is : chlebta-pc not localhost , check your listener and make sure of the host-name in there and the host name of the variable-value .
I have the same problem as listed here: How to recover or change Oracle sysdba password although I did not lose the password, I entered it twice in the configure script originally, and then when I went to login (localhost:8080/apex, password not accepted.
I don't have anything in the database, I just want to install and use Oracle-XE. I have tried apt-get removing it twice and reinstalling, but if I try to run /etc/init.d/oracle-xe configure again and I get "Oracle Database 10g Express Edition is already configured" despite the second time removing any folders I could find for Oracle XE.
I tried running sqlplus "/ as sysdba" but all I get is:
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
I tried setting the variable via export. (also tried set).
Tried: export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus
and all the subdirectories of that. Same error every time.
What is the ORACLE_HOME supposed to be set to? The only reference I have seen either just say general or say the above up to the version number then "/db_1". I do no thave a db_1.
Let me know if you need any clarification. I don't understand what I did wrong in this process.
Usually the msb file not found problems are the result of an environment setting problem, but in your case I'm a little suspicious of the installation (I've never used the apt-get + configure method).
To check the sanity of the installation:
ORACLE_HOME should be set to a directory path one level above the bin directory where sqlplus executable is found.
There should some .msb files under $ORACLE_HOME/sqlplus/mesg
There should be hundreds (not sure of the number with XE) of .msb files
under $ORACLE_HOME (try find $ORACLE_HOME -name "*.msb" -print to show them)
Your PATH should include $ORACLE_HOME/bin.
All files under ORACLE_HOME should be owned by user:oracle group:dba.
I had the same issue. In my home folder I've got a script named sqlplus.sh that takes care of this for me, containing:
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_HOME
ORACLE_SID=XE
export ORACLE_SID
NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
export NLS_LANG
PATH=$ORACLE_HOME/bin:$PATH
export PATH
sqlplus /nolog
Had the same problem,
All i had to do whas set the oracle shell variable:
. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
Sorterd!
You have to set LANG as well, look for files named 'sp1*.msb', and set for instance export LANG=us if you find a file name sp1us.msb. The error message could sure be better :)
ORACLE_HOME needs to be at the top level of the Oracle directory structure for the database installation. From that point, Oracle knows how to find all the other files it needs. For example, the error message you get is because Oracle can't locate the message files to report errors with (should be in the various mesg directories below the oracle home. Instead of the above value you give, I would try
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0
Once I also got that same type of error.
I.E:
C:\oracle\product\10.2.0\db_2>SQLPLUS SYS AS SYSDBA
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
This error is occurring as the home path is not correctly set. To rectify this, if you are using Windows, run the below query:
C:\oracle\product\10.2.0\db_2>SET ORACLE_HOME=C:\oracle\product\10.2.0\db_2
C:\oracle\product\10.2.0\db_2>SQLPLUS SYS AS SYSDBA
SQL*Plus: Release 10.2.0.3.0 - Production on Tue Apr 16 13:17:42 2013
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Or if you are using Linux, then replace set with export for the above command like so:
C:\oracle\product\10.2.0\db_2>EXPORT ORACLE_HOME='C:\oracle\product\10.2.0\db_2'
C:\oracle\product\10.2.0\db_2>SQLPLUS SYS AS SYSDBA
SQL*Plus: Release 10.2.0.3.0 - Production on Tue Apr 16 13:17:42 2013
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
This is the right way to clear this error.
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
sqlplus / as sysdba
After installing weblogic and forms server on a Linux machine we met some problems initializing sqlplus and tnsping. We altered the bash_profile in a way that the forms_home acts as the oracle home. It works fine, both commands
(sqlplus and tnsping) are executable for user oracle
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export JAVA_HOME=/mnt/software/java/jdk1.7.0_71
export ORACLE_HOME=/oracle/Middleware/Oracle_FRHome1
export PATH=$PATH:$JAVA_HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=/oracle/Middleware/Oracle_FRHome1/lib
export FORMS_PATH=$FORMS_PATH:/oracle/Middleware/Oracle_FRHome1/forms:/oracle/Middleware/asinst_1/FormsComponent/forms:/appl/myapp:/home/oracle/myapp
set <ORACLE_HOME> path variable
example
path ORACLE_HOME
value is C:\oraclexe\app\oracle\product\10.2.0\server