Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

Relinking ALL executable under 8.1.7.3 32 bit oracle on hpux 11 ??

Henrique Silva_3
Regular Advisor

Relinking ALL executable under 8.1.7.3 32 bit oracle on hpux 11 ??


Here we go again.

Went to install oracle 8.1.7.3 on hpux 11 32 bit system, and installation asks me for /disk2. The problem is that I am doing the file system isntall and disk2 is there. I had this problem before, and I think the media that I have is bad. So, I copied the entire install from another box that had worked before over to this new box, including the database files, which all point to the same mounting points. I was able to start the listener, but when I went to start the instance, i get :

charlote:/u00/app/oracle/product/8.1.7/rdbms/lib (oracle) svrmgrl
/usr/lib/dld.sl: Can't find path for shared library: libjava.sl
/usr/lib/dld.sl: No such file or directory
Abort(coredump)

So, I want to run the relinking of all the executables manually, but do not know how to do that !!!!
I do not want to try to ftp a brand new set of source install files from my software depot, for I think that file is BAD. I want to verify it some other day, but need to get this installation done today.

Anybody out there can show me how to relink ALL executables manually ? I hate this java setup !!!
( BTW, I am running jdk 1.3 on this box ), fully patched, and plenty of disk space, owned by oracle:dba !!!

Cheers,

Henrique Silva
henrique_silva@hp.com
"to be or not to be, what was the question ???? "
6 REPLIES
Deepak Extross
Honored Contributor

Re: Relinking ALL executable under 8.1.7.3 32 bit oracle on hpux 11 ??

Here's a small workaround:
1. Set the executable to look into the SHLIB_PATH for shared libraries:
chatr +s enable svrmgrl

2. Add all required shared libraries into the env var $SHLIB_PATH:
export SHLIB_PATH=$SHLIB_PATH:/path/to/libjava.sl:/path/to/other/libs

3. Run your executable. If it cribs about missing shared libraries, just search for them and add their path to $SHLIB_PATH.

Hope this helps.
Tom Geudens
Honored Contributor

Re: Relinking ALL executable under 8.1.7.3 32 bit oracle on hpux 11 ??

Hi,
I may have missed the point here (of what you are trying to do exactly), but from the Administrators Guide :
cd $ORACLE_HOME/bin
relink

can be
all
oracle
network
client
interMedia
precomp
utilities
oemagent

Hope this helps,
Tom
A life ? Cool ! Where can I download one of those from ?
Sukant Naik
Trusted Contributor

Re: Relinking ALL executable under 8.1.7.3 32 bit oracle on hpux 11 ??

Hi Henrique,

Here is the solution. This is for Proc. But you can check for all ins*.mk in all the directories like rdbms etc and then relink them.

Problem Description:
====================

If proc is not relinked it will give errors such as:

% $ORACLE_HOME/bin/proc

/usr/lib/dld.sl: Can't open shared library:
/mnt/802/src/lib/libclntsh.sl
/usr/lib/dld.sl: No such file or directory
IOT trap (core dumped)


Problem Explanation:
====================

The shared library "libclntsh.sl" is not being referenced from
"$ORACLE_HOME/lib".

Solution: RELINK THE EXECUTABLE


Solution Description:
=====================

The problem can be redressed by relinking the executable. To relink Pro*C do
the following:

1) % cd $ORACLE_HOME/precomp/lib

2) % make -f ins_precomp.mk proc

3) % mv $ORACLE_HOME/bin/proc $ORACLE_HOME/bin/proc.orig

4) % mv proc $ORACLE_HOME/bin


- Sukant
Who dares he wins
Alexander M. Ermes
Honored Contributor

Re: Relinking ALL executable under 8.1.7.3 32 bit oracle on hpux 11 ??

Hi there.
Check your oraenv for these lines :

LD_LIBRARY_PATH=/mountpoint/dba/oracle/product/${ORACLE_SID}/lib

SHLIB_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib:/usr/lib:/usr/lib/Motif1.2

If they are not there, put them in and try again.
Let us know the result and whether you need more help.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Henrique Silva_3
Regular Advisor

Re: Relinking ALL executable under 8.1.7.3 32 bit oracle on hpux 11 ??

Thanks everyone.

I did a relink ALL, since I had just copied the files over from another box, and now, I am rebooting it, just to make sure ( the relink failed on hsodbc, probably because I do not have it isntalled on the other box either ).

When I tried to execute svrmgrl, I got the end-of-channel message. So, I cleared any semaphores or shared memory, but continued to get that message. That is when I decided to reboot and start from scratch !!
the server just came back up and I continue to get the same message, ORA 03113 !!!
I checked the permissions for oracle, OK, I relinked oracle and utilities and nothing changes :-(((

Is there anything else that the installation program does that I am missing ? Can I use a base from another install like I am doing here, and simply relink the binaries ? This is so frustrating. I am going to try for another 20 minutes and then, have to get some sleep.

Cheers,

Henrique
"to be or not to be, what was the question ???? "
Henrique Silva_3
Regular Advisor

Re: Relinking ALL executable under 8.1.7.3 32 bit oracle on hpux 11 ??


OK, the $ORACLE_HOME/dbs directory was missing. Once I added that, svrmgrl worked fine, but did not have the symbolic link to get to the initSID.ora file. Created all that and it works fine !!!

FINALLY, I have been working on this server all day long ( installing patches, jdk, jre, some application we are using, etc ).

At least a learned something today and was able to go to bed with the mind cleared that this is DONE. It would erally be bad to spend all this time and have to give up.

Thanks for all the pointers guys.

Henrique Silva
"to be or not to be, what was the question ???? "