>On March 28, Icheng said:
>After I try the command you provide, I got the following error
>Can't load
'/opt/perl5/lib/site_perl/5.8.0/PARISC2.0/auto/DBD/Oracle/Oracle.sl' 
>for module DBD::Oracle: No such file or directory at
>/opt/perl5/lib/5.8.0/PA-RISC2.0/DynaLoader.pm line 229.
> at test_dbd_ver.pl line 5

This looks like the DBD-Oracle module is installed dynamically.  Use the
HP chatr
command to find out what libs it needs and make them available via your 
environment variables.  Specifically, issue
chatr /opt/perl5/lib/site_perl/5.8.0/PARISC2.0/auto/DBD/Oracle/Oracle.sl
This will show you what libraries need to be available to satisfy the 
dynamic requirements of this module.  
Example for the following output:
sl:
  shared library
  shared library dynamic path search:
     SHLIB_PATH     disabled  second
     embedded path  enabled   first  /usr/oracle/client/10.2/lib32:
                                     /usr/oracle/client/10.2/rdbms/lib32
  shared library list:
     dynamic   /usr/oracle/client/10.2/lib32//libclntsh.sl.10.1
     dynamic   /usr/lib/libm.2
  shared vtable support disabled
  explicit unloading enabled
  static branch prediction disabled
  executable from stack: D (default)
  kernel assisted branch prediction enabled
  lazy swap allocation disabled
  text segment locking disabled
  data segment locking disabled
  third quadrant private data space disabled
  fourth quadrant private data space disabled
  third quadrant global data space disabled
  data page size: D (default)
  instruction page size: D (default)
  nulptr references disabled
  shared library private mapping disabled

You would need to export the following environment variables:
export ORACLE_HOME=/usr/oracle/client/10.2
export TNS_ADMIN=??? (where your tnsnames.ora file is)
export PATH=/usr/oracle/client/10.2/bin:$PATH

I hope this helps.
Paula 



  
  

Reply via email to