<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Bad magic number for shared library in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686896#M932349</link>
    <description>HI,&lt;BR /&gt;We have finished the installation Oracle 8.1.7 -64bit on HP-UX 11.00 -64bit an upgraded SAP to 4.6C SR2. Now when we start oracle/sap with command "startsap" or "stopsap" we get an error message:&lt;BR /&gt;/usr/lib/dld.sl: bad magic number for shared library: /oracle/&lt;SID&gt;/817_64/lib64/libclntsh.sl.8.0&lt;BR /&gt;/usr/lib/dls.sl: Exec format error&lt;BR /&gt;/usr/sap/&lt;SID&gt;/SYS/exe/run/stopdb[229]: 7056 Abort(coredump)&lt;BR /&gt;&lt;BR /&gt;All our kernel SAP are in 64bit&lt;BR /&gt;What is the problem? environment variables?&lt;BR /&gt;SHLIB_PATH is set to /oracle/&lt;SID&gt;/817_64/lib64:/usr/sap/&lt;SID&gt;/SYS/exe/run&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Arlindo Ferreira.&lt;/SID&gt;&lt;/SID&gt;&lt;/SID&gt;&lt;/SID&gt;</description>
    <pubDate>Wed, 20 Mar 2002 10:56:33 GMT</pubDate>
    <dc:creator>Arlindo Ferreira_1</dc:creator>
    <dc:date>2002-03-20T10:56:33Z</dc:date>
    <item>
      <title>Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686896#M932349</link>
      <description>HI,&lt;BR /&gt;We have finished the installation Oracle 8.1.7 -64bit on HP-UX 11.00 -64bit an upgraded SAP to 4.6C SR2. Now when we start oracle/sap with command "startsap" or "stopsap" we get an error message:&lt;BR /&gt;/usr/lib/dld.sl: bad magic number for shared library: /oracle/&lt;SID&gt;/817_64/lib64/libclntsh.sl.8.0&lt;BR /&gt;/usr/lib/dls.sl: Exec format error&lt;BR /&gt;/usr/sap/&lt;SID&gt;/SYS/exe/run/stopdb[229]: 7056 Abort(coredump)&lt;BR /&gt;&lt;BR /&gt;All our kernel SAP are in 64bit&lt;BR /&gt;What is the problem? environment variables?&lt;BR /&gt;SHLIB_PATH is set to /oracle/&lt;SID&gt;/817_64/lib64:/usr/sap/&lt;SID&gt;/SYS/exe/run&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Arlindo Ferreira.&lt;/SID&gt;&lt;/SID&gt;&lt;/SID&gt;&lt;/SID&gt;</description>
      <pubDate>Wed, 20 Mar 2002 10:56:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686896#M932349</guid>
      <dc:creator>Arlindo Ferreira_1</dc:creator>
      <dc:date>2002-03-20T10:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686897#M932350</link>
      <description>Is it possible that you're using a 32bit version of SAP?  It kind of looks like a 32bit app is trying to load a 64bit library.  Does it work if you remove /oracle/&lt;SID&gt;/817_64/lib64 from your SHLIB_PATH variable?  What about if you replace it with /oracle/&lt;SID&gt;/817_64/lib?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve&lt;/SID&gt;&lt;/SID&gt;</description>
      <pubDate>Wed, 20 Mar 2002 11:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686897#M932350</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-03-20T11:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686898#M932351</link>
      <description>this error occurs when trying to use 64-bit client libraries on HP11.&lt;BR /&gt;To verify if the Oracle installation is 64-bit or 32-bit, use the following command at the unix prompt:&lt;BR /&gt;&lt;BR /&gt;chatr $ORACLE_HOME/lib/libclntsh.sl&lt;BR /&gt;&lt;BR /&gt;If the output from this command shows a 64-bit ELF shared library, the user will need to get a 32-bit Oracle client installed on the machine used.&lt;BR /&gt;&lt;BR /&gt;Regards, Ceesjan</description>
      <pubDate>Wed, 20 Mar 2002 15:12:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686898#M932351</guid>
      <dc:creator>Ceesjan van Hattum</dc:creator>
      <dc:date>2002-03-20T15:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686899#M932352</link>
      <description>HI,&lt;BR /&gt;I think there is a problem related to Kernel parameters setting.&lt;BR /&gt;&lt;BR /&gt;Please post output from "kmtune" command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Mar 2002 16:06:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686899#M932352</guid>
      <dc:creator>pap</dc:creator>
      <dc:date>2002-03-20T16:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686900#M932353</link>
      <description>kmtune command output&lt;BR /&gt;in attachment file.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Mar 2002 16:25:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686900#M932353</guid>
      <dc:creator>Arlindo Ferreira_1</dc:creator>
      <dc:date>2002-03-20T16:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686901#M932354</link>
      <description>We are on the same OS and SAP verision that you are on. We are on Oracle 8.1.7.2&lt;BR /&gt;&lt;BR /&gt;Make sure you have the following libc patches on your machine.&lt;BR /&gt;&lt;BR /&gt;PHCO_23092  libc cuml. header patch&lt;BR /&gt;PHCO_23770  libc cuml. patch.&lt;BR /&gt;&lt;BR /&gt;You may have to re-link Oracle after the install of the patches.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Mar 2002 16:37:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686901#M932354</guid>
      <dc:creator>Krishna Prasad</dc:creator>
      <dc:date>2002-03-20T16:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686902#M932355</link>
      <description>Hi Arlino,&lt;BR /&gt;It looks like kernel parameters are alright.&lt;BR /&gt;&lt;BR /&gt;Please consider following points that will help you in resolving your problem.&lt;BR /&gt;&lt;BR /&gt;1. SHLIB_PATH should include both $ORACLE_HOME/lib and $ORACLE_HOME/lib64 &lt;BR /&gt;&lt;BR /&gt;I belive there still is some 32 bit software within the Oracle package. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. &lt;BR /&gt;Not sure if this will help you or not, &lt;BR /&gt;&lt;BR /&gt;From the HP Doc KBRC00000398 &lt;BR /&gt;"bad magic number" and "exec" errors from dld.sl &lt;BR /&gt;&lt;BR /&gt;/Begin/ &lt;BR /&gt;Possible causes and the fixes are: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If libc is older than dld.sl or vice versa, then the two libraries will have difficulties understanding each other. Update both by installing the latest libc and dld.sl patches. &lt;BR /&gt;&lt;BR /&gt;If the error was encountered while attempting to run a COBOL program, then it is possible that the executable was created on a PA1.1 machine using a shared library that was created on a PA2.0 machine. The linker did not give the typical warning that a PA2.0 object was detected. Instead, the only error returned occurred at runtime, when dld.sl attempted to bind the shared libraries. The only solutions are to: &lt;BR /&gt;&lt;BR /&gt;compile and run the program on the same machine. &lt;BR /&gt;install the latest dld.sl and libc patches on both machines and recompile. &lt;BR /&gt;&lt;BR /&gt;If /lib is not linked to /usr/lib, then the shared libraries will not have a reference point. &lt;BR /&gt;ln -s /usr/lib /lib &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;-pap&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Mar 2002 16:43:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686902#M932355</guid>
      <dc:creator>pap</dc:creator>
      <dc:date>2002-03-20T16:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686903#M932356</link>
      <description>Please search the SAP OSS database for the answer to this problem.  As I recall you have edit the start-up shell files .cs for both users &lt;SID&gt;adm and ora&lt;SID&gt;. in their respective home directories.  &lt;BR /&gt;&lt;BR /&gt;&lt;/SID&gt;&lt;/SID&gt;</description>
      <pubDate>Thu, 21 Mar 2002 06:40:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686903#M932356</guid>
      <dc:creator>Al Fournier</dc:creator>
      <dc:date>2002-03-21T06:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686904#M932357</link>
      <description>IMPORTANT: HPUX_64 only. Before continuing with the database load portion of R3SETUP you must edit 4 files to remove reference to the SHLIB_PATH.  Comment out the lines within the case statement for HP in the .dbenv_&lt;HOSTNAME&gt;.sh, and the .dbenv_&lt;HOSTNAME&gt;.csh files for both users &lt;SAPSID&gt;adm  (in directory /home/&lt;SAPSID&gt;adm) and ora&lt;SAPSID&gt; (in directory /oracle/&lt;SAPSID&gt;/).  It was simple to edit these files by opening them in Xwindows --- select the file in the GUI, rightmouse click and select open.  Before editing the files check note 313110.  SAP had a note that displayed the eact context but they have removed that note from the database.  This will fix your problem.&lt;/SAPSID&gt;&lt;/SAPSID&gt;&lt;/SAPSID&gt;&lt;/SAPSID&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;</description>
      <pubDate>Thu, 21 Mar 2002 14:05:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686904#M932357</guid>
      <dc:creator>Al Fournier</dc:creator>
      <dc:date>2002-03-21T14:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686905#M932358</link>
      <description>an example of the change made to the .dbenv_&lt;HOSTNAME&gt;.csh file  follows  (It is only the section that needs to be remoraked out):&lt;BR /&gt;    case HP*:&lt;BR /&gt;#        if ( ! $?SHLIB_PATH ) then&lt;BR /&gt;#            setenv SHLIB_PATH $ORACLE_HOME/lib64&lt;BR /&gt;#        else&lt;BR /&gt;#            foreach d ( $ORACLE_HOME/lib64 )&lt;BR /&gt;#                set i=0&lt;BR /&gt;#                foreach p ( `echo $SHLIB_PATH | sed 's/:/ /g'` )&lt;BR /&gt;#                    if ( "$p" == "$d" ) then&lt;BR /&gt;#                        set i=1&lt;BR /&gt;#                        break&lt;BR /&gt;#                    endif&lt;BR /&gt;#                end&lt;BR /&gt;#                if ( $i == 0 ) then&lt;BR /&gt;#                    setenv SHLIB_PATH ${SHLIB_PATH}:$d&lt;BR /&gt;#                endif&lt;BR /&gt;#            end&lt;BR /&gt;#        endif&lt;BR /&gt;        breaksw&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the lines are commented out except the case statement and the breaksw.  &lt;BR /&gt;&lt;/HOSTNAME&gt;</description>
      <pubDate>Thu, 21 Mar 2002 16:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library/m-p/2686905#M932358</guid>
      <dc:creator>Al Fournier</dc:creator>
      <dc:date>2002-03-21T16:49:05Z</dc:date>
    </item>
  </channel>
</rss>

