1 Reply Latest reply on Mar 26, 2010 5:10 PM by mtmendes

    Discoverer: Problem Linking Libraries?

    21477
      Hi everybody,

      I just installed Business Intelligence (10.1.2.0.2) on my Gentoo Linux (Kernel 2.6). The installation ran succesfully apart from the fact that the OPMN config assistant failed. OK I dug the logs and I found out he had problems starting the Discoverer Services:

      $ opmnctl startall
      opmnctl: starting opmn and all managed processes...
      ================================================================================
      opmn id=am-dt01g:6200
      0 of 1 processes started.

      ias-instance id=HOMEAS.am-dt01g.maleev.net
      ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
      ias-component/process-type/process-set:
      Discoverer/ServicesStatus/ServicesStatus

      Error
      --> Process (pid=8472)
      failed to start a managed process after the maximum retry limit
      Log:
      /applications/oracle/obi/10.1.2.0.2/opmn/logs/Discoverer~ServicesStatus~1


      Now /applications/oracle/obi/10.1.2.0.2/opmn/logs/Discoverer~ServicesStatus~1
      --------
      06/05/08 17:08:45 Start process
      --------
      /applications/oracle/obi/10.1.2.0.2/bin/DiscSrvcStat: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory

      --------
      06/05/08 17:08:47 Start process
      --------
      /applications/oracle/obi/10.1.2.0.2/bin/DiscSrvcStat: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory



      OK libm.so.6 could be found as well under /lib and /usr/lib. I put both of them in LD_LIBRARY_PATH - in vain - the same error. Something similar is to be found in Discoverer~PreferenceServer~1
      --------
      06/05/08 17:01:24 Start process
      --------
      /applications/oracle/obi/10.1.2.0.2/bin/dis51pr: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

      --------
      06/05/08 17:01:26 Start process
      --------
      /applications/oracle/obi/10.1.2.0.2/bin/dis51pr: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory


      After playing with LD_LIBRARY_PATH and copying the libraries in any possible lib directory under $ORACLE_HOME for a couple of hours, I came to the conclusion this is too complex for me. Has anyone had the same problem or any clue why the processes fail to load the libraries? I even uninstalled the software and installed it again in case I messed up something ...

      Some other details/questions
      Output of opmnctl status

      Processes in Instance: HOMEAS.am-dt01g.maleev.net
      ------------------------------------------------+---------
      ias-component | process-type | pid | status
      ------------------------------------------------+---------
      DSA | DSA | N/A | Down
      LogLoader | logloaderd | N/A | Down
      dcm-daemon | dcm-daemon | 32350 | Alive
      WebCache | WebCache | 3331 | Alive
      WebCache | WebCacheAdmin | 3261 | Alive
      OC4J | home | 3262 | Alive
      OC4J | OC4J_BI_Forms | 8701 | Stop
      HTTP_Server | HTTP_Server | 3264 | Alive
      Discoverer | ServicesStatus | N/A | Down
      Discoverer | PreferenceServer | 0 | NONE


      opmn.xml

      <?xml version = '1.0' encoding = 'UTF-8'?>
      <opmn xmlns="http://www.oracle.com/ias-instance">
      <notification-server>
      <port local="6101" remote="6200" request="6003"/>
      <log-file path="$ORACLE_HOME/opmn/logs/ons.log" level="4" rotation-size="1500000"/>
      <ssl enabled="true" wallet-file="$ORACLE_HOME/opmn/conf/ssl.wlt/default"/>
      </notification-server>
      <process-manager>
      <log-file path="$ORACLE_HOME/opmn/logs/ipm.log" level="4" rotation-size="1500000"/>
      <process-modules>
      <module path="$ORACLE_HOME/opmn/lib/libopmnohs">
      <module-id id="OHS"/>
      </module>
      <module path="$ORACLE_HOME/opmn/lib/libopmnoc4j">
      <module-id id="OC4J"/>
      </module>
      <module path="$ORACLE_HOME/opmn/lib/libopmncustom">
      <module-id id="CUSTOM"/>
      </module>
      <module path="$ORACLE_HOME/opmn/lib/libopmnwc">
      <module-id id="WebCache"/>
      <module-id id="WebCache-admin"/>
      </module>
      <module path="$ORACLE_HOME/opmn/lib/libopmniaspt">
      <module-id id="IASPT"/>
      </module>
      <module path="$ORACLE_HOME/opmn/lib/libopmndisco">
      <module-id id="Disco_ServicesStatus"/>
      <module-id id="Disco_SessionServer"/>
      <module-id id="Disco_PreferenceServer"/>
      </module>
      <module path="$ORACLE_HOME/opmn/lib/libopmnip">
      <module-id id="integration-manager"/>
      <module-id id="adapter-framework"/>
      <module-id id="b2bengine"/>
      </module>
      <module path="$ORACLE_HOME/opmn/lib/libopmnoid">
      <module-id id="OID"/>
      </module>
      <module path="$ORACLE_HOME/opmn/lib/libopmnwireless">
      <module-id id="notificationeventcollector"/>
      <module-id id="datafeeder"/>
      <module-id id="performance"/>
      <module-id id="messaging"/>
      <module-id id="notification"/>
      <module-id id="location"/>
      <module-id id="telnetserver"/>
      <module-id id="telnetdispatcher"/>
      <module-id id="edgeserver"/>
      </module>
      <module path="$ORACLE_HOME/opmn/lib/libopmnreports">
      <module-id id="ReportsServices"/>
      <module-id id="ReportsBridgeServices"/>
      </module>
      <module path="$ORACLE_HOME/opmn/lib/liblogloader">
      <module-id id="LOGLDR"/>
      </module>
      <module path="$ORACLE_HOME/opmn/lib/libopmndcmdaemon">
      <module-id id="DCMDaemon"/>
      </module>
      <module path="$ORACLE_HOME/opmn/lib/libopmnbam">
      <module-id id="MonitorFramework"/>
      <module-id id="BAMEngine"/>
      </module>
      </process-modules>
      <ias-instance id="HOMEAS.am-dt01g.maleev.net">
      <environment>
      <variable id="TMP" value="/tmp"/>
      </environment>
      <ias-component id="IASPT" status="disabled">
      <environment>
      <variable id="LD_LIBRARY_PATH" value="/applications/oracle/obi/10.1.2.0.2/lib" append="true"/>
      </environment>
      <process-type id="IASPT" module-id="IASPT" working-dir="/applications/oracle/obi/10.1.2.0.2/iaspt/bin">
      <port id="ajp" range="7501-7600"/>
      <process-set id="IASPT" numprocs="1"/>
      </process-type>
      </ias-component>
      <ias-component id="DSA" status="enabled" id-matching="true">
      <process-type id="DSA" module-id="CUSTOM">
      <start timeout="600"/>
      <stop timeout="120"/>
      <process-set id="DSA" numprocs="1">
      <module-data>
      <category id="start-parameters">
      <data id="start-executable" value="/applications/oracle/obi/10.1.2.0.2/dsa/bin/dsaServer.sh"/>
      <data id="start-args" value="/applications/oracle/obi/10.1.2.0.2/dsa/dsa.conf"/>
      <data id="stop-executable" value="/applications/oracle/obi/10.1.2.0.2/dsa/bin/dsaShutdown.sh"/>
      </category>
      </module-data>
      </process-set>
      </process-type>
      </ias-component>
      <ias-component id="LogLoader" status="enabled" id-matching="true">
      <process-type id="logloaderd" module-id="LOGLDR" working-dir="$ORACLE_HOME">
      <environment>
      <variable id="CLASSPATH" value="$ORACLE_HOME/diagnostics/lib/ojdl.jar" append="true"/>
      <variable id="CLASSPATH" value="$ORACLE_HOME/lib/xmlparserv2.jar" append="true"/>
      <variable id="CLASSPATH" value="$ORACLE_HOME/jdbc/lib/classes12.jar" append="true"/>
      <variable id="CLASSPATH" value="$ORACLE_HOME/jdbc/lib/nls_charset12.jar" append="true"/>
      <variable id="CLASSPATH" value="$ORACLE_HOME/opmn/lib/ons.jar" append="true"/>
      <variable id="CLASSPATH" value="$ORACLE_HOME/opmn/lib/optic.jar" append="true"/>
      <variable id="CLASSPATH" value="$ORACLE_HOME/jlib/oraclepki.jar" append="true"/>
      </environment>
      <process-set id="logloaderd" restart-on-death="true" numprocs="1">
      <module-data>
      <category id="start-parameters">
      <data id="java-parameters" value="-server -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Doracle.h
      ome=$ORACLE_HOME -Djava.security.policy=$ORACLE_HOME/diagnostics/bin/java.policy"/>
      </category>
      <category id="stop-parameters">
      <data id="java-parameters" value="-Doracle.home=$ORACLE_HOME -Djava.security.policy=$ORACLE_HOME/diagnostics/bin/java.policy"/>
      </category>
      </module-data>
      </process-set>
      </process-type>
      </ias-component>
      <ias-component id="dcm-daemon" status="enabled" id-matching="true">
      <process-type id="dcm-daemon" module-id="DCMDaemon">
      <start timeout="600"/>
      <stop timeout="120"/>
      <process-set id="dcm" numprocs="1">
      <module-data>
      <category id="start-parameters">
      <data id="java-parameters" value="-Xmx256m -Doracle.ias.sysmgmt.logging.loglevel=ERROR -Djava.net.preferIPv4Stack=true -Djava.io.tmp
      dir=$TMP"/>
      <data id="jar-file" value="$ORACLE_HOME/dcm/lib/dcm.jar"/>
      <data id="application-parameters" value="daemon -logdir $ORACLE_HOME/dcm/logs/daemon_logs -o $ORACLE_HOME"/>
      </category>
      </module-data>
      </process-set>
      </process-type>
      </ias-component>
      <ias-component id="WebCache" status="enabled">
      <process-type id="WebCache" module-id="WebCache">
      <process-set id="WebCache" restart-on-death="true" numprocs="1"/>
      </process-type>
      <process-type id="WebCacheAdmin" module-id="WebCache-admin">
      <process-set id="WebCacheAdmin" restart-on-death="false" numprocs="1"/>
      </process-type>
      </ias-component>
      <ias-component id="OC4J">
      <process-type id="home" module-id="OC4J" status="enabled">
      <module-data>
      <category id="start-parameters">
      <data id="java-options" value="-server -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true"/>
      </category>
      <category id="stop-parameters">
      <data id="java-options" value="-Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true"/>
      </category>
      </module-data>
      <start timeout="600" retry="2"/>
      <stop timeout="120"/>
      <restart timeout="720" retry="2"/>
      <port id="ajp" range="12501-12600"/>
      <port id="rmi" range="12401-12500"/>
      <port id="jms" range="12601-12700"/>
      <process-set id="default_island" numprocs="1"/>
      </process-type>
      <process-type id="OC4J_BI_Forms" module-id="OC4J">
      <environment>
      <variable id="DISPLAY" value="localhost:0"/>
      <variable id="LD_LIBRARY_PATH" value="/applications/oracle/obi/10.1.2.0.2/lib:/applications/oracle/obi/10.1.2.0.2/lib:/applications/oracle
      /obi/10.1.2.0.2/network/lib:/applications/oracle/obi/10.1.2.0.2/jdk/jre/lib/i386"/>
      </environment>
      <module-data>
      <category id="start-parameters">
      <data id="java-options" value="-server -Djava.security.policy=/applications/oracle/obi/10.1.2.0.2/j2ee/OC4J_BI_Forms/config/java2.polic
      y -Djava.awt.headless=true -Xmx512M -Xms128M "/>
      <data id="oc4j-options" value="-properties -userThreads "/>
      </category>
      <category id="stop-parameters">
      <data id="java-options" value="-Djava.security.policy=/applications/oracle/obi/10.1.2.0.2/j2ee/OC4J_BI_Forms/config/java2.policy -Djava
      .awt.headless=true"/>
      </category>
      <category id="urlping-parameters">
      <data id="/reports/rwservlet/pingserver?start=auto" value="200"/>
      </category>
      </module-data>
      <start timeout="900" retry="2"/>
      <stop timeout="120"/>
      <restart timeout="720" retry="2"/>
      <port id="ajp" range="12501-12600"/>
      <port id="rmi" range="12401-12500"/>
      <port id="jms" range="12601-12700"/>
      <process-set id="default_island" numprocs="1"/>
      </process-type>
      </ias-component>
      <ias-component id="HTTP_Server">
      <process-type id="HTTP_Server" module-id="OHS">
      <module-data>
      <category id="start-parameters">
      <data id="start-mode" value="ssl-disabled"/>
      </category>
      </module-data>
      <process-set id="HTTP_Server" numprocs="1"/>
      </process-type>
      </ias-component>
      <ias-component id="Discoverer">
      <environment>
      <variable id="PREFERENCE_PORT" value="16001"/>
      <variable id="DISCO_DIR" value="$ORACLE_HOME"/>
      <variable id="DCLOG_CONFIG_FILE" value="/applications/oracle/obi/10.1.2.0.2/discoverer/util/ServerLogParams.txt"/>
      <variable id="LD_LIBRARY_PATH" value="/applications/oracle/obi/10.1.2.0.2/discoverer/lib:/applications/oracle/obi/10.1.2.0.2/lib:/usr/lib" ap
      pend="true"/>
      <variable id="DC10_REG" value="/applications/oracle/obi/10.1.2.0.2/discoverer/"/>
      <variable id="LD_ASSUME_KERNEL" value="2.4.19"/>
      <variable id="FND_TOP" value="/applications/oracle/obi/10.1.2.0.2/discoverer/"/>
      <variable id="FND_SECURE" value="/applications/oracle/obi/10.1.2.0.2/discoverer/secure"/>
      </environment>
      <process-type id="ServicesStatus" module-id="Disco_ServicesStatus" status="enabled">
      <process-set id="ServicesStatus" numprocs="1"/>
      </process-type>
      <process-type id="PreferenceServer" module-id="Disco_PreferenceServer" working-dir="$ORACLE_HOME/discoverer" status="enabled">
      <process-set id="PreferenceServer" numprocs="1"/>
      </process-type>
      <process-type id="SessionServer" module-id="Disco_SessionServer" status="enabled">
      <start timeout="180" retry="0"/>
      <port id="ses" range="0"/>
      <process-set id="SessionServer" minprocs="0" maxprocs="50" restart-on-death="false" parallel-requests="true"/>
      </process-type>
      </ias-component>
      </ias-instance>
      </process-manager>
      </opmn>


      I see a process-type SessionServer for ias-component Discoverer (at the end of the file). Why doesn't opmnctl status see this process-type?

      Any help would be appreciated.

      Best Regards,
      Anton Maleev