Operating System - HP-UX
1753637 Members
5696 Online
108798 Solutions
New Discussion юеВ

Re: libclntsh.sl.8.0 not found in the library

 
Indira Aramandla
Honored Contributor

Re: libclntsh.sl.8.0 not found in the library

You could try this.
Stop the instance and listener and then recreate LIBCLNTSH.SL.8.0:
1. Change the directory to ORACLE_HOME/bin

2.genclntsh64

3. Then relink : relink utilities

But before that make sure LD_LIBRARY_PATH/SHLIB_PATH variable are set properly. Form your profile they seems to be defined correctly. And also make sure there is enough space in /tmp directory. In the above answere from Yogeeraj there is described how to enable/disable the variables.
Never give up, Keep Trying
Engo Armand-Blaise
Frequent Advisor

Re: libclntsh.sl.8.0 not found in the library

Hi all,
first of all befoe doing anything more, below are the log files :

cyb_hpux [ /cyborg/app/oracle/product/817/lib ] $ more clntsh.map
ld: (Warning) Archive /cyborg/app/oracle/product/817/lib/libsql8.a loaded for -l
sql8 with "-a archive" not specified
ld: (Warning) Archive /cyborg/app/oracle/product/817/lib/libpls8.a loaded for -l
pls8 with "-a archive" not specified
ld: (Warning) Archive /cyborg/app/oracle/product/817/lib/libclient8.a loaded for
-lclient8 with "-a archive" not specified
ld: (Warning) Archive /cyborg/app/oracle/product/817/lib/libldapclnt8.a loaded f
or -lldapclnt8 with "-a archive" not specified
ld: (Warning) Archive /cyborg/app/oracle/product/817/lib/libnbeq8.a loaded for -
lnbeq8 with "-a archive" not specified
ld: (Warning) Archive /cyborg/app/oracle/product/817/lib/libnhost8.a loaded for
-lnhost8 with "-a archive" not specified
ld: (Warning) Archive /cyborg/app/oracle/product/817/lib/libnus8.a loaded for -l
nus8 with "-a archive" not specified
ld: (Warning) Archive /cyborg/app/oracle/product/817/lib/libnldap8.a loaded for
-lnldap8 with "-a archive" not specified
ld: (Warning) Archive /cyborg/app/oracle/product/817/lib/libldapclnt8.a loaded f
or -lldapclnt8 with "-a archive" not specified
ld: (Warning) Archive /cyborg/app/oracle/product/817/lib/libnsslb8.a loaded for
-lnsslb8 with "-a archive" not specified
ld: (Warning) Archive /cyborg/app/oracle/product/817/lib/libnlu628.a loaded for
-lnlu628 with "-a archive" not specified
ld: Can't find library: ":libappc.sl"
============================================
2. Size of /tmp directory :
cyb_hpux [ / ] # bdf /tmp
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol7 2048000 1677265 348260 83% /tmp

There is enough space.
============================================
3. Relink utilities :
cyb_hpux [ /cyborg/app/oracle/product/817/bin ] $ relink utilities

- Linking Import utility (imp)
rm -f /cyborg/app/oracle/product/817/rdbms/lib/imp
cc -Wl,+s -Wl,+n -o /cyborg/app/oracle/product/817/rdbms/lib/imp -L/cyb
org/app/oracle/product/817/rdbms/lib -L/cyborg/app/oracle/product/817/lib -o /c
yborg/app/oracle/product/817/rdbms/lib/imp /cyborg/app/oracle/product/817/rdbms
/lib/impdrv.o /cyborg/app/oracle/product/817/rdbms/lib/ssdbaed.o /cyborg/app/ora
cle/product/817/rdbms/lib/defopt.o /cyborg/app/oracle/product/817/rdbms/lib/libd
btools8.a -lclntsh /cyborg/app/oracle/product/817/rdbms/lib/kpuadef.o `sed -e
's/-ljava//g' /cyborg/app/oracle/product/817/lib/ldflags` -lnsgr8 -lnzjs8 -l
n8 -lnl8 -lnro8 `sed -e 's/-ljava//g' /cyborg/app/oracle/product/817/lib/ldflags
` -lnsgr8 -lnzjs8 -ln8 -lnl8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8
-lwtc8 -lmm -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 `sed -e 's/-ljava//g' /cybor
g/app/oracle/product/817/lib/ldflags` -lnsgr8 -lnzjs8 -ln8 -lnl8 -lnro8 `sed
-e 's/-ljava//g' /cyborg/app/oracle/product/817/lib/ldflags` -lnsgr8 -lnzjs
8 -ln8 -lnl8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -ltrace8 -lnls8 -l
core8 -lnls8 -lcore8 -lnls8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -l
nls8 -lcore8 -lnls8 -lcore8 -lnls8 `cat /cyborg/app/oracle/product/817/lib/
sysliblist` -lm
/usr/ccs/bin/ld: Can't find library: "clntsh"
*** Error exit code 1

Stop.

============================================
Question :

Possible some lib or object files are not correct on my installation.
Would you please check the size of the nautab.o file for me.

cyb_hpux [ /cyborg/app/oracle/product/817 ] $ l -l $ORACLE_HOME/lib/nautab.o
-rw-r--r-- 1 oracle dba 620 Feb 18 12:57
/cyborg/app/oracle/pro
duct/817/lib/nautab.o

Indira Aramandla
Honored Contributor

Re: libclntsh.sl.8.0 not found in the library

The size of $ORACLE_HOME/lib/nautab.o
is 812 bytes (in 8.1.7)
Never give up, Keep Trying
Ian Lochray
Respected Contributor

Re: libclntsh.sl.8.0 not found in the library

I have been looking at the output from when you ran the debug version of genclntsh. I cannot see the actual link (ld) statement. It seems to go from the statement that sets OLIBS to the redirection of output to the map file.
Is the whole of the output posted? If so, can you post mygenclntsh.
Engo Armand-Blaise
Frequent Advisor

Re: libclntsh.sl.8.0 not found in the library

Hi there,

Sorry to come to you late.....

It seams that there was no space in /tmp directory.
Before concluding it, I'm busy to re-Install Oracle 8i Entreprise Edition and Oracle 8i Client without forgetting the precompiler.

I'll give you a feedback later..... Thanks for your help. You're STARS!!!!!

Best regards,

Engo.

Engo Armand-Blaise
Frequent Advisor

Re: libclntsh.sl.8.0 not found in the library

New info : First phase of Installation successfull. When running "root.sh",
this is what I copied and pasted :
Chmod can't change libnof.* : No such file or Directory.
I'm still continue the next step....
Find the attached file make.log

First result of file make.log:

5 errors found :
/usr/ccs/bin/ld: Write failed in bulkmodify
*** Error exit code 1
Linking profor
/usr/ccs/bin/ld: Can't find library: "clntsh"
*** Error exit code 1
Stop.
/usr/ccs/bin/make -f ins_precomp.mk relink
ORACLE_HOME=/cyborg/app/oracle/produc
t/817 EXENAME=profor
Linking profor
/usr/ccs/bin/ld: Can't find library: "clntsh"
*** Error exit code 1
Stop.
/usr/ccs/bin/make -f ins_precomp.mk relink
ORACLE_HOME=/cyborg/app/oracle/produc
t/817 EXENAME=procob18
Linking procob18
/usr/ccs/bin/ld: Can't find library: "clntsh"
*** Error exit code 1
Stop.
/usr/ccs/bin/make -f ins_precomp.mk relink
ORACLE_HOME=/cyborg/app/oracle/produc
t/817 EXENAME=proc
Linking proc
/usr/ccs/bin/ld: Can't find library: "clntsh"
cat: Cannot open /tmp/clntst8.12051/*.nm: No such file or directory
Extracting from ...
sort: Cannot open /tmp/clntst8.12051/*.objs
usage: ar [-][mrxtdpq][ACTabcFfilsuvzS] [posname] archive files ...
ar: creating /cyborg/app/oracle/product/817/lib/libclntst8.a
Created /cyborg/app/oracle/product/817/lib/libclntst8.a
/cyborg/app/oracle/product/817/bin/genagtsh
/cyborg/app/oracle/product/8
17/lib/libagtsh.sl 1.0
Make: Cannot load /cyborg/app/oracle/product/817/bin/genagtsh. Stop.
*** Error exit code 1
Stop.
Make: Cannot read or get /precomp/lib/env_precomp.mk. Stop.
/usr/ccs/bin/make -f ins_rdbms.mk ioracle
ORACLE_HOME=/cyborg/app/oracle/product
/817
Make: Cannot read or get /cyborg/app/oracle/product/817/rdbms/lib/env_rdbms.mk.
Stop.
/usr/ccs/bin/make -f ins_net_server.mk install
ORACLE_HOME=/cyborg/app/oracle/pr
oduct/817
Make: Cannot read or get
/cyborg/app/oracle/product/817/network/lib/env_network.
mk. Stop.
Make: Cannot read or get /cyborg/app/oracle/product/817/rdbms/lib/env_rdbms.mk.
Stop.
=============================================================================
I'm going now to install the precompilers before the crutial test of make file.

After installing the Precompiler, as oracle user, I processed :
cd /cyborg/app/oracle/product/817/precomp/demo/procob
make -f demo_procob18.mk build EXE=sample2 COBS=sample2.cob > link.lib
Message contained in to the link.lib file :
`/cyborg/app/oracle/product/817/lib/libclntsh.sl' is up to date.
===============================================
So, How can I do to update libclntsh.sl?
Engo Armand-Blaise
Frequent Advisor

Re: libclntsh.sl.8.0 not found in the library

After all, I've found the solution of my original problem :
cd /cyborg/app/oracle/product/817/precomp/demo/procob
make -f demo_procob18.mk sample2 > link.lib

The link.lib file contains:

/usr/ccs/bin/make -f /cyborg/app/oracle/product/817/precomp/demo/procob/
demo_procob18.mk build COBS=sample2.cob EXE=sample2
procob18 iname=sample2.pco

Pro*COBOL: Release 1.8.52.0.0 - Production on Wed Mar 12 08:40:37 2003

(c) Copyright 2000 Oracle Corporation. All rights reserved.

System default option values taken from: /cyborg/app/oracle/product/817/precomp/
admin/pcccob.cfg

Precompiling sample2.pco
cob -C IBMCOMP -C NESTCALL -t -x -o sample2 sample2.cob -L/cyborg/app/or
acle/product/817/lib/ /cyborg/app/oracle/product/817/precomp/lib/cobsqlintf.o -l
clntsh `cat /cyborg/app/oracle/product/817/lib/sysliblist` -lm -lpthread -lp
thread
==============================================

That's all.

Thank you for your assistance. I appreciated it.

Best regards,

Engo.