Thanks Michael
It works
[***@berlxspw01 ~]# export PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin:$PATH
[root@ berlxspw01 ~]# type sqlplus
sqlplus is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus
[root@ berlxspw01 ~]# sqlplus
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
[root@ berlxspw01 ~]# export
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
[root@ berlxspw01 ~]# sqlplus spacewalk/***@xe
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Feb 5 15:16:20 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL>
Gruß
Christian
-----Original Message-----
From: spacewalk-list-***@redhat.com [mailto:spacewalk-list-***@redhat.com] On Behalf Of Michael Mraka
Sent: Thursday, February 05, 2009 2:56 PM
To: spacewalk-***@redhat.com
Subject: Re: [Spacewalk-list] SP2-0750: You may need to set ORACLE_HOME toyourOracle software directory
Wolf, Christian wrote:
% %%Wolf, Christian wrote:
% %% Hi!
% %%
% %% If i enter "sqlplus" i get following error.
% %% What is my mistake?
% %%
% %% [***@berlxspw01 ~]# sqlplus
% %%
% %% 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 is XE server's sqlplus which needs ORACLE_HOME set.
% %Fix your PATH and run sqlplus from /usr/bin (instantclient's one); no
% %ORACLE_HOME is necessary.
%
% At first i fix my path and run sqlplus and same error
% [***@berlxspw01 /]# cd /usr/lib/
% [***@berlxspw01 lib]# sqlplus
% 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
%
% Then I make ls -l
% [***@berlxspw01 bin]# ls -l /usr/bin/sqlplus
% lrwxrwxrwx 1 root root 43 5. Feb 09:52 /usr/bin/sqlplus -> /usr/lib/oracle/10.2.0.4/client/bin/sqlplus
%
%
% At the end i go to the path und try sqlplus again:
% [***@berlxspw01 bin]# cd /usr/lib/oracle/10.2.0.4/client/bin/
% [***@berlxspw01 bin]# sqlplus
% 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
[***@xen35 ~]# type sqlplus
sqlplus is /usr/bin/sqlplus
[***@xen35 ~]# set |grep ORACLE
[***@xen35 ~]# sqlplus
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Feb 5 14:52:40 2009
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
[***@xen35 ~]# export PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin:$PATH
[***@xen35 ~]# type sqlplus
sqlplus is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus
[***@xen35 ~]# sqlplus
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
[***@xen35 ~]# export
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
[***@xen35 ~]# sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Feb 5 14:54:53 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
--
Michael Mráka
Satellite Engineering, Red Hat