1838655 Members
3228 Online
110128 Solutions
New Discussion

Re: /usr/lib/libcma.1

 
KapilRaj
Honored Contributor

/usr/lib/libcma.1

hi,

i have a HP9000 C 360 BOX with HPUX 10.20 loaded.

I have PROE-DATA Server ( an oracle data server) + PROE-2000i2 (CAD Software) installed in it.

I faced a problem while rotating 3-D models in PROE, It flickers.

As a solution ,I installed Quality Pack 1020 Dec.1999. The PROE problem got solved, after that Oracle data server stopped working. it gave some errors related to /usr/lib/libcma.1

So i copied the same file from another workstation. Oracle data server started working fine but my PROE models started flickering again.

Can anybody suggest a fix to this ?.

kaps
Nothing is impossible
7 REPLIES 7
Vincent Stedema
Esteemed Contributor

Re: /usr/lib/libcma.1

Put the lib that was installed with the QP back in place and re-link oracle. Oracle was linked against libcma.1 at install time so it has to be relinked when you install a newer version of the lib.

Hope this helps.

Vincent
KapilRaj
Honored Contributor

Re: /usr/lib/libcma.1

hi,

How do I re-link oracle ? Can you please assist ?

Kaps

Nothing is impossible
Alex Glennie
Honored Contributor

Re: /usr/lib/libcma.1

Patching does essentially the following to the shared libraries.
If the library is in use (check with fuser, for example: fuser libcma)

mv lib #lib
cp patch_lib lib
when everyone is done using the #lib it is cleaned up.

For "pure" archive library linked programs (i.e. no shared libraries)
it is generally not necessary to relink the program. It is desirable
to do so to take advantage of fixes or enhancements that have been made.
A "pure" archive library program would not show any shared libraries
when examined with the 'chatr' command.
In rare instances programs that rely on a protocol may not work correctly,
but usually protocols are downward compatible.

For "pure" shared library linked programs it is not necessary to relink
the program. The program will continue to run using the old "moved"
library until restarted. When restarted it will automatically link in the new
libraries. Can you tell from chatr if a program is "pure" shared - no.
The application developers should be able to supply this information
based on their Makefiles.

Rpc calls depend on a well defined protocol and have not changed for a
long time. Thread calls should continue to work.

Programs linked with a "mixture" of static and shared almost always need to
be relinked. Usually libc is the one statically linked in.
Oracle statically links in libc, so when it is restarted the newer shared
libcma library linked in tries to access getrlimit64 in the older statically
linked c lib and generates the following error:

unresolved symbol: getrlimit64 {code} from /usr/lib/libcma.1

Rebooting the system is best practice to ensure that all applications that
use the dynamic libraries are switched to the new version.

Since the customer site involves a large number of hosts there is an
investigation into the possibility of using older versions of the software to
avoid the relinking and rebooting.

I think the libcma patch also mentions something wrt Oracle in the special installation instructions in the patch readme file ?

KapilRaj
Honored Contributor

Re: /usr/lib/libcma.1

Hoooo alex,

thanks for your valuable time. But alex ,these many technical words !!! i just could'nt breath for few minutes after going through your message. The problem here is we do not hv a PROE Support engineer to assist. I have tried & tired of rebooting the machine. Frankly i caould not understand 50 % of your message. So let me ask you can i re-link oracle if yes how can i do that.

Kaps
Nothing is impossible
Alex Glennie
Honored Contributor

Re: /usr/lib/libcma.1

OK .... I'm familiar with ProE not so with oracle ....

From your description & tests it sounds like ProE needs a specific patch level of libcma .... no way getting around it.

Not so sure about Oracle ..... I suspect all that's needed is a recompile ..... I'll start looking for an eg but did Oracle not come with a set of install / docs etc .... i do not have direct access to these.

In the meantime could you post the exact syntax of the Oracle errors ?
Alex Glennie
Honored Contributor

Re: /usr/lib/libcma.1

I also don't know what patch or version of Oracle we're talking ..... however :

. EXIT FROM ALL APPLICATIONS ACCESSING THE ORACLE DATBABASE su - oracle
b. dbshutc. cd ${ORACLE_HOME}/bind. mkdir orige. mv oracle svrmgrl sqlplus orig
f. cd ${ORACLE_HOME}/svrmgr/libg. make -f ins_svrmgr.mk svrmgrl
h. mv svrmgrl ../../bini. cd ${ORACLE_HOME}/rdbms/lib
j. make -f ins_rdbms.mk oraclek. chmod 6755 oraclel. mv oracle ../../bin
m. cd ${ORACLE_HOME}/sqlplus/libn. make -f ins_sqlplus.mk sqlplus
o. mv sqlplus ../../bin
Please verify that the new binaries have the correct permissions.
Compare them with the binaries saved in ${ORACLE_HOME}/bin/ori
For example the oracle binary needs:p. ll bin/oracle
-rwsr-s--x 1 oracle dba 7503872 Mar 15 11:33 bin/oracle
Restart the database:q. dbstart

BUT if it was from an HP DCE/9000 1.5 cumulative patch :

Special Installation Instructions:
For this patch to take effect Stop and Start all
DCE daemons and application processes OR reboot
the machine after installing it.
*****IMPORTANT NOTE***** -- Oracle 7.3.3 and above will
need to be relinked. This patch contains changes to the
libcma library. Applications such as Oracle that use
this library and are built static will need to be
relinked. For information and help for the rebuild
please contact your Oracle support personnel.
***NOTE*** -- A new version of dce_com_utils is present
in this patch which will be installed in the directory
/opt/dce/newconfig/etc/opt/dce/. For the new version to
take effect please copy it to /etc/opt/dce/ directory.
Please save the customized /etc/opt/dce/dce_com_utils, if necessary.

As i said i'm not to good with Oracle so at the very least I'd have a good backup handy ....

if anyone else can confirm the above method is OK to re-link Oracle it would be appreciated ?
KapilRaj
Honored Contributor

Re: /usr/lib/libcma.1

thanks alex,

I am getting a PROE Support in few days. I will try this along with them. And this particular product "PRO-E Datalink Server " , it's a product from PROEngineer .

thanks alot.... I am finding this site very helpfull for me....

kaps
Nothing is impossible