Solaris 10 has some great proc tools which give process information. Good ones among them are pfiles, pldd and pwdx
pfiles reports all the files which are opened by a given pid
pldd lists all the dynamic libraries linked to the process
pwdx gives the directory from which the process is running
I did a pfiles on Apache process:
$ pfiles 13789
13789: /apps11i/erpdev/10GAS/Apache/Apache/bin/httpd -d /apps11i/erpdev/10G
Current rlimit: 1024 file descriptors
0: S_IFIFO mode:0000 dev:350,0 ino:114723 uid:65060 gid:54032 size:301
O_RDWR
1: S_IFREG mode:0640 dev:307,28001 ino:612208 uid:65060 gid:54032 size:386
O_WRONLY|O_APPEND|O_CREAT
/apps11i/erpdev/10GAS/opmn/logs/HTTP_Server~1
2: S_IFIFO mode:0000 dev:350,0 ino:143956 uid:65060 gid:54032 size:0
O_RDWR
3: S_IFREG mode:0600 dev:307,28001 ino:606387 uid:65060 gid:54032 size:1056768
O_RDWR|O_CREAT
/apps11i/erpdev/10GAS/Apache/Apache/logs/mm.19389.mem
4: S_IFREG mode:0600 dev:307,28001 ino:606383 uid:65060 gid:54032 size:0
O_RDWR|O_CREAT
5: S_IFREG mode:0600 dev:307,28001 ino:621827 uid:65060 gid:54032 size:1056768
O_RDWR|O_CREAT
6: S_IFDOOR mode:0444 dev:351,0 ino:58 uid:0 gid:0 size:0
O_RDONLY|O_LARGEFILE FD_CLOEXEC door to nscd[421]
/var/run/name_service_door
7: S_IFIFO mode:0000 dev:350,0 ino:143956 uid:65060 gid:54032 size:0
O_RDWR
8: S_IFCHR mode:0666 dev:342,0 ino:47185924 uid:0 gid:3 rdev:90,0
O_RDONLY
/devices/pseudo/kstat@0:kstat
9: S_IFREG mode:0600 dev:307,28001 ino:621828 uid:65060 gid:54032 size:0
O_RDWR|O_CREAT
/apps11i/erpdev/10GAS/Apache/Apache/logs/mod_oc4j.19389.shm.sem
10: S_IFREG mode:0755 dev:307,28001 ino:621829 uid:65060 gid:54032 size:0
O_RDWR|O_CREAT
11: S_IFREG mode:0600 dev:307,28001 ino:603445 uid:65060 gid:54032 size:17408
O_RDONLY FD_CLOEXEC
/apps11i/erpdev/10GAS/rdbms/mesg/ocius.msb
12: S_IFIFO mode:0000 dev:350,0 ino:143958 uid:65060 gid:54032 size:0
O_RDWR FD_CLOEXEC
13: S_IFIFO mode:0000 dev:350,0 ino:143957 uid:65060 gid:54032 size:0
O_RDWR
14: S_IFIFO mode:0000 dev:350,0 ino:143958 uid:65060 gid:54032 size:0
O_RDWR FD_CLOEXEC
15: S_IFSOCK mode:0666 dev:348,0 ino:5866 uid:0 gid:0 size:0
O_RDWR|O_NONBLOCK FD_CLOEXEC
SOCK_STREAM
SO_REUSEADDR,SO_KEEPALIVE,SO_SNDBUF(49152),SO_RCVBUF(49152),IP_NEXTHOP(0.0.192.0)
sockname: AF_INET 127.0.0.1 port: 7201
16: S_IFSOCK mode:0666 dev:348,0 ino:63613 uid:0 gid:0 size:0
O_RDWR|O_NONBLOCK FD_CLOEXEC
SOCK_STREAM
SO_REUSEADDR,SO_KEEPALIVE,SO_SNDBUF(49152),SO_RCVBUF(49152),IP_NEXTHOP(0.0.192.0)
sockname: AF_INET 0.0.0.0 port: 7779
17: S_IFCHR mode:0666 dev:342,0 ino:6815752 uid:0 gid:3 rdev:13,2
O_WRONLY|O_APPEND|O_CREAT FD_CLOEXEC
/devices/pseudo/mm@0:null
18: S_IFREG mode:0644 dev:307,28001 ino:621830 uid:65060 gid:54032 size:0
O_WRONLY|O_CREAT|O_EXCL FD_CLOEXEC
19: S_IFREG mode:0600 dev:307,28001 ino:606420 uid:65060 gid:54032 size:2285568
O_RDWR|O_CREAT
/apps11i/erpdev/10GAS/Apache/Apache/logs/dms_metrics.19389.shm.mem
20: S_IFREG mode:0600 dev:307,28001 ino:606421 uid:65060 gid:54032 size:0
O_RDWR|O_CREAT
/apps11i/erpdev/10GAS/Apache/Apache/logs/dms_metrics.19389.shm.sem
21: S_IFREG mode:0600 dev:307,28001 ino:603445 uid:65060 gid:54032 size:17408
O_RDONLY FD_CLOEXEC
/apps11i/erpdev/10GAS/rdbms/mesg/ocius.msb
23: S_IFSOCK mode:0666 dev:348,0 ino:60339 uid:0 gid:0 size:0
O_RDWR
SOCK_STREAM
SO_SNDBUF(49152),SO_RCVBUF(49152),IP_NEXTHOP(0.0.192.0)
sockname: AF_INET 3.56.189.4 port: 45395
peername: AF_INET 3.56.189.4 port: 12501
256: S_IFREG mode:0444 dev:85,0 ino:234504 uid:0 gid:3 size:1616
O_RDONLY|O_LARGEFILE
/etc/inet/hosts
A pldd on the same process gave this result:
applmpd1@tsgsd1007 # pldd 13789
13789: /apps11i/erpdev/10GAS/Apache/Apache/bin/httpd -d /apps11i/erpdev/10G
/apps11i/erpdev/10GAS/lib32/libdms2.so
/lib/libpthread.so.1
/lib/libsocket.so.1
/lib/libnsl.so.1
/lib/libdl.so.1
/lib/libc.so.1
/platform/sun4u-us3/lib/libc_psr.so.1
/lib/libmd5.so.1
/platform/sun4u/lib/libmd5_psr.so.1
/lib/libscf.so.1
/lib/libdoor.so.1
/lib/libuutil.so.1
/lib/libgen.so.1
/lib/libmp.so.2
/lib/libm.so.2
/lib/libresolv.so.2
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_onsint.so
/lib/librt.so.1
/apps11i/erpdev/10GAS/lib32/libons.so
/lib/libkstat.so.1
/lib/libaio.so.1
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_mmap_static.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_vhost_alias.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_env.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_define.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_log_config.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_log_agent.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_log_referer.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_mime_magic.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_mime.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_negotiation.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_status.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_info.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_include.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_autoindex.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_dir.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_cgi.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_asis.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_imap.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_actions.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_speling.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_alias.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_access.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_auth.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_auth_anon.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_auth_dbm.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_digest.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/libproxy.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_cern_meta.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_expires.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_headers.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_usertrack.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_unique_id.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_setenvif.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/libperl.so
/lib/libm.so.1
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_fastcgi.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/libphp4.so
/usr/lib/libsched.so.1
/apps11i/erpdev/10GAS/lib32/libclntsh.so.10.1
/apps11i/erpdev/10GAS/lib32/libnnz10.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_wchandshake.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_oc4j.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_dms.so
/apps11i/erpdev/10GAS/Apache/Apache/libexec/mod_rewrite.so
/apps11i/erpdev/10GAS/Apache/oradav/lib/mod_oradav.so
/apps11i/erpdev/10GAS/Apache/modplsql/bin/modplsql.so
Blog dedicated to Oracle Applications (E-Business Suite) Technology; covers Apps Architecture, Administration and third party bolt-ons to Apps
Friday, June 20, 2008
Subscribe to:
Post Comments (Atom)
2 comments:
How to solve this issue
/u01/app/oracle/11g/ohs/bin/apachectl startssl: execing httpd
Syntax error on line 272 of /u01/app/oracle/11g/ohs/conf/httpd.conf:
Cannot load /u01/app/oracle/11g/ohs/modules/mod_onsint.so into server: /u01/app/oracle/11g/lib/libons.so: undefined symbol: _intel_fast_memcpy
Thanks,
Hi Bhupendra,
Please refer to Metalink Note 758227.1 which has similar issue:
Changes
This is likely a new installation or possibly the LIB_PATH, LIBPATH, SHLIB_PATH or LD_LIBRARY_PATH has been changed since the installation took place.
Cause
The ORACLE_HOME/lib32 directory is being referenced for the libraries because the environment is incorrect.
Error stack:
exec(): 0509-036 Cannot load program /app/Administrator/product/.../bin/tnslsnr because of the
following errors:
0509-150 Dependent module /app/Administrator/product/.../1110/lib32/libons.so could not
be loaded.
0509-103 The module has an invalid magic number.
Solution:
1_ Unset the LIBPATH in the environment, so that the correct libons.so will be used.
export LIB_PATH=
OR:
2_ In your environment be sure that the $ORACLE_HOME/lib is before the $ORACLE_HOME/lib32
for example:
export LIBPATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32:
3_ In the case of platforms other than AIX the shared library environment variable might
be LD_LIBRARY_PATH, LIBPATH, or SHLIB_PATH
Also refer to Metalink note 743042.1 which describes the OS prerequisite patches for 11g on Solaris 10 SPARC-64:
2. Software Requirements
* Solaris 10
* The following packages (or later versions) must be installed:
# SUNWarc
# SUNWbtool
# SUNWhea
# SUNWlibC
# SUNWlibm
# SUNWlibms
# SUNWsprot
# SUNWtoo
# SUNWi1of
# SUNWi1cs
# SUNWi15cs
# SUNWxwfnt
# SUNWuiu8 - refer Note 290034.1
# SUNWulcf - refer Note 290034.1
* The following are the compiler requirements for Pro*C/C++, Oracle Call Interface, Oracle C++ Call Interface, and Oracle XML Developer's Kit (XDK), and GNU Compiler Collection (GCC) with Oracle Database 11g Release 1:
Sun One Studio 11
* The following patches are required:
# 127111-02 SunOS 5.10: libc patch
# 137111-04 SunOS 5.10: kernel patch
If you are using Pro*C/C++, Pro*FORTRAN, Oracle Call Interface, Oracle C++ Call Interface, Oracle XML Developer's Kit (XDK), then the following additional requirements apply:
# 117837-05: C++ compiler optimizer patch
# 117846-08: C++ compiler Optimization patch
# 118682-01
The above are for Client installs X86:
Additionally, the following installation pre-requisites must be met if the specific Oracle product listed is being installed:
- Oracle JDBC/OCI Drivers:
* Sun JDK 1.5.0
- Oracle Messaging Gateway
* IBM MQSeries V6, client and server
* TIBCO Rendezvous 7.2
- Vikram
Post a Comment