Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems using loadjava

129 views
Skip to first unread message

Mauricio

unread,
Jan 7, 2002, 12:32:47 PM1/7/02
to
Hello,

I am having some problems trying to use loadjava to load manually
SSOHash.class into the database due to some post-installation
erros in 9iAS. I've already checked that my PATH and CLASSPATH
are setted. But when I try to run loadjava I get the following
errors:

1) When I execute it just calling "loadjava"
bash: /u01/app/oracle/product/portal30/bin/loadjava: No such
file or directory
2) When I execute it calling "./loadjava" in the prompt
bash: ./loadjava: No such file or directory

I am using RH6.2 + Oracle 8i (8.1.6) + 9iAS (1.0.2.0.0)

I know that this is tipically caused by enviroment variables but
as you can see in my enviroment as follows I have already setted
it:

I read somewhere in internet that loadjava requires shell ksh but it requires
me to update glibc to version 2.2. Is that true?

Any help is appreciated!

My enviroment variables are:

##########
# ORACLE #
##########

ORACLE_BASE=/sagedb01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/portal30; export ORACLE_HOME
#DISPLAY=172.16.80.1:0.0; export DISPLAY
#TMP=/sagedb04/temp; export TMP
#ORACLE_HOME=$ORACLE_BASE/product/8.1.6; export ORACLE_HOME
#ORACLE_HOME=$ORACLE_BASE/product/webdb; export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH
ORACLE_SID=sage; export ORACLE_SID
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data; export ORA_NLS33
NLS_LANG=american; export NLS_LANG
#PATH=$PATH:/usr/local/bin:/etc; export PATH
PATH=$PATH:$ORACLE_HOME/bin:/usr/local/bin:/etc:/usr/local/jdk1.2
.2/bin:$ORACLE_HOME/JRE; export PATH
TNS_ADMIN=$ORACLE_BASE/product/8.1.6/network/admin; export
TNS_ADMIN

##########
# JAVA #
##########

JAVA_HOME=/sagedb01/app/oracle/product/portal30/JRE; export
JAVA_HOME
CLASSPATH=/sagedb01/app/oracle/product/portal30/JRE/lib/rt.jar:/s
agedb01/app/oracle/product/portal30/JRE/lib/i18n.jar:/sagedb01/ap
p/oracle/product/portal30/jlib/javax-ssl-
1_1.jar:/sagedb01/app/oracle/product/portal30/jlib/jssl-
1_1.jar:$ORACLE_HOME/jdbc/lib/classes111.zip:$ORACLE_HOME/sqlj/li
b/translator.zip:$ORACLE_HOME/javavm/lib/aurora.zip:/sagedb01/app
/oracle/product/portal30/webdb30/admin/plsql/wwc/; export
CLASSPATH
JRECLASSPATH=/sagedb01/app/oracle/product/portal30/JRE/lib/rt.jar
:/sagedb01/app/oracle/product/portal30/JRE/lib/i18n.jar:/sagedb01
/app/oracle/product/portal30/jlib/javax-ssl-
1_1.jar:/sagedb01/app/oracle/product/portal30/jlib/jssl-
1_1.jar:$ORACLE_HOME/jdbc/lib/classes111.zip:$ORACLE_HOME/sqlj/li
b/translator.zip:$ORACLE_HOME/javavm/lib/aurora.zip;
export JRECLASSPATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$JAVA_HOME/lib; export
LD_LIBRARY_PATH

Bricklen Anderson

unread,
Jan 7, 2002, 4:03:45 PM1/7/02
to
I found that changing the #! /bin/ksh header of the shell scripts that
are called (eg. loadjava and dropjava in the $ORACLE_HOME/bin directory)
to #! /bin/bash solved my problems (I am using bash shell).

Bricklen Anderson

unread,
Jan 7, 2002, 4:13:05 PM1/7/02
to
check the headers of the shell scripts in your $ORACLE_HOME/bin
directory and make sure that they point to the same shell that you are
using. I have to change the headers from ksh to bash to make them
execute correctly.

hth

Mauricio

unread,
Jan 8, 2002, 5:34:16 AM1/8/02
to
Thanks for your anwser...I have already corrected what was "wrong". As
I read somewhere over the internet, loadjava uses ksh shell, but I can
"simulate" this
shell just creating a symbolic link to my bash shell using:
ln -s /bin/bash /bin/ksh

Now I am having some problems using ssodatan script, if you know any
issue about it, let me know! I hope this post can help people with
this problem in the future.

Thanks!

0 new messages