Re: DBD::Oracle and RHEL8

2020-07-08 Thread Christopher Jones


On 6/7/20 8:50 pm, Oliver Dörr wrote:

Hi,

i just tried to install DBD::Oracle 1.80 on RHEL 8 and the make command failes.
gcc  -lpthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -fstack-protector-strong  Oracle.o 
dbdimp.o oci8.o  -o blib/arch/auto/DBD/Oracle/Oracle.so  \

   -L/db/main/oraclient193/lib -lclntsh -ldl -lm -lpthread -lnsl -lirc -limf 
-lirc -lrt -laio -lresolv -lsvml -lperl   \

*/usr/bin/ld: cannot find -lnsl*
collect2: error: ld returned 1 exit status
make: *** [Makefile:524: blib/arch/auto/DBD/Oracle/Oracle.so] Error 1

A little research and comparing to RHEL 7 shows the problem.
*RHEL7:*
ll /usr/lib64/libnsl*
-rwxr-xr-x 1 root root 115816 Jan 22 06:19 /usr/lib64/libnsl-2.17.so
*lrwxrwxrwx 1 root root 23 May  5 06:05 /usr/lib64/libnsl.so -> 
../../lib64/libnsl.so.1*
lrwxrwxrwx 1 root root 14 May  5 06:00 /usr/lib64/libnsl.so.1 -> 
libnsl-2.17.so

RHEL8:
 ll /usr/lib64/libnsl*
-rwxr-xr-x  1 root root 163520 Jan 16 21:40 /usr/lib64/libnsl-2.28.so
lrwxrwxrwx  1 root root 14 Jan 16 21:29 /usr/lib64/libnsl.so.1 -> 
libnsl-2.28.so
lrwxrwxrwx. 1 root root 15 Aug 12  2018 /usr/lib64/libnsl.so.2 -> 
libnsl.so.2.0.0
-rwxr-xr-x. 1 root root 116408 Aug 12  2018 /usr/lib64/libnsl.so.2.0.0


So the softlink is */usr/lib64/libnsl.so* missing in RHEl8. Everything compiles if I add the softlink, but I'm not sure if this is a good idea. 
Should that not be fixed inside the Makefile.PL or so?


Any hints are welcome


On RHEL8 or OL8 (or similar) you should install the 'libnsl' package to use Oracle Instant Client.  My update to the Instant Client install 
instructions about this seems to have gone AWOL.


A future Instant Client RPM will install this package by default. Work is also 
ongoing to review the need for this dependency in the first place.

Chris


--
https://twitter.com/ghrd



Re: RFC: Official DBI for Perl 6

2016-12-20 Thread Christopher Jones



On 10/12/2016 9:08 PM, Darren Duncan wrote:

As a followup to this thread, I have now committed and updated on GitHub a 
rename of my API spec(s) as follows:

Muldis::DBP - Formal spec of an abstract database protocol for Perl 6

The "DBP" was also one of Brock Wilcox' working name suggestions so I also 
"acknowledge" this in the spec.

And so, "Muldis DBP" or "MDBP" further abbreviated, will be my working title 
for the forseeable future, used for both the Perl 6 and Perl 5 versions
of this spec; in contexts where they need to be differentiated, they are called for example 
"Muldis DBP for Perl 6" or "Perl 6 Muldis DBP".

This title appears to be a good fit considering the scope of the spec and the 
important qualities of what it defines.

Unless someone else makes comments or asks questions, I probably won't post 
further on this subject until I have a reference implementation and
fleshed out documentation, which will hopefully be within a month.

-- Darren Duncan


Here's a question: what is the GitHub repo?  I see 0 repos under 
https://github.com/duncand (which I assume is you)

Chris

--
http://twitter.com/ghrd


Re: DBD::Oracle 1.72 fail

2014-05-22 Thread Christopher Jones



On 5/21/14, 11:03 PM, H.Merijn Brand wrote:

On Wed, 21 May 2014 17:28:53 -0700, Christopher Jones
christopher.jo...@oracle.com wrote:




On 05/19/2014 01:48 PM, H.Merijn Brand wrote:

On Thu, 17 Apr 2014 23:49:24 -0700, Christopher Jones
christopher.jo...@oracle.com wrote:



I appreciate the wealth of information.
It really does help when we have to prioritize project and features.


FEEDBACK!

I have perl-5.18.2-ia64 running with 12c client in a 10g environment :)


It sounds like you have a client using 12c libraries from a mixed environment 
directory!
I'd have to ask why?.  I couldn't recommend doing it.


Neither would I, BUT …

perl-5.14.2 and newer with OpenSSL-1.0.0 or newer and DBD::Oracle does
not work for quite a few of our applications when linking DBD::Oracle
to the 10g client that is available in the 10g database environment.


The problem is the interesting part. I'd like to know what does not
work.



The client is not (yet) willing to move on to 11g or 12c, so the 10g is
there to stay.


It sounds like you've moved them, at least for Perl.

Chris

--
christopher.jo...@oracle.com  http://twitter.com/ghrd
Free PHP  Oracle book:
http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html


Re: DBD::Oracle 1.72 fail

2014-05-21 Thread Christopher Jones



On 05/19/2014 01:48 PM, H.Merijn Brand wrote:

On Thu, 17 Apr 2014 23:49:24 -0700, Christopher Jones
christopher.jo...@oracle.com wrote:



I appreciate the wealth of information.
It really does help when we have to prioritize project and features.


FEEDBACK!

I have perl-5.18.2-ia64 running with 12c client in a 10g environment :)


It sounds like you have a client using 12c libraries from a mixed environment 
directory!
I'd have to ask why?.  I couldn't recommend doing it.

Chris



1. Install 12c-client for HP-UX itanium
2. Build DBD::Oracle against that and install

3. Move to the 10g environment
4. Get these files from 12c into the 10g tree: none of them overwrites
an other file!

lib/libclntsh.so.12.1
lib/libnnz12.so
lib/libclntshcore.so.12.1
oracore/zoneinfo/timezdif.csv
oracore/zoneinfo/timezlrg_1.dat
oracore/zoneinfo/timezlrg_10.dat
oracore/zoneinfo/timezlrg_11.dat
oracore/zoneinfo/timezlrg_12.dat
oracore/zoneinfo/timezlrg_13.dat
oracore/zoneinfo/timezlrg_14.dat
oracore/zoneinfo/timezlrg_15.dat
oracore/zoneinfo/timezlrg_16.dat
oracore/zoneinfo/timezlrg_17.dat
oracore/zoneinfo/timezlrg_18.dat
oracore/zoneinfo/timezlrg_2.dat
oracore/zoneinfo/timezlrg_3.dat
oracore/zoneinfo/timezlrg_4.dat
oracore/zoneinfo/timezlrg_5.dat
oracore/zoneinfo/timezlrg_6.dat
oracore/zoneinfo/timezlrg_7.dat
oracore/zoneinfo/timezlrg_8.dat
oracore/zoneinfo/timezlrg_9.dat
oracore/zoneinfo/timezone_1.dat
oracore/zoneinfo/timezone_10.dat
oracore/zoneinfo/timezone_11.dat
oracore/zoneinfo/timezone_12.dat
oracore/zoneinfo/timezone_13.dat
oracore/zoneinfo/timezone_14.dat
oracore/zoneinfo/timezone_15.dat
oracore/zoneinfo/timezone_16.dat
oracore/zoneinfo/timezone_17.dat
oracore/zoneinfo/timezone_18.dat
oracore/zoneinfo/timezone_2.dat
oracore/zoneinfo/timezone_3.dat
oracore/zoneinfo/timezone_4.dat
oracore/zoneinfo/timezone_5.dat
oracore/zoneinfo/timezone_6.dat
oracore/zoneinfo/timezone_7.dat
oracore/zoneinfo/timezone_8.dat
oracore/zoneinfo/timezone_9.dat


HP-UX 11.31/64 U  rx2660/64 Itanium 2 9100/1710(2) ia64  4075 Mb

This is perl 5, version 14, subversion 2 (v5.14.2) built for 
IA64.ARCHREV_0-LP64-ld

DBI-1.631
DBD::Oracle-1.74

SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 19 22:45:19 2014

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

$ llldd 
/pro/asql/o83R/lib/perl/5.14.2/IA64.ARCHREV_0-LP64-ld/auto/DBD/Oracle/Oracle.so

Lib  Real pathSize  
DateRefs
  
- --- 
/pro/asql/o83R/lib/perl/5.14.2/IA64. /pro/asql/o83R/lib/perl/5.14.2/IA64.
668072 2014-05-19 18:39:46   25
/pro/oracle/v102/lib/libclntsh.so.12 /pro/oracle/v102/lib/libclntsh.so.12 
117402552 2014-05-19 18:33:03   21
/pro/oracle/v102/lib/libnnz12.so /pro/oracle/v102/lib/libnnz12.so  
16442824 2013-12-05 09:29:34   12
/pro/oracle/v102/lib/libclntshcore.s /pro/oracle/v102/lib/libclntshcore.s  
14541616 2014-05-19 18:33:03   11
/usr/lib/hpux64/librt.so.1   /usr/lib/hpux64/librt.so.1   
85568 2007-02-15 22:36:361
/usr/lib/hpux64/libdl.so.1   /usr/lib/hpux64/libdl.so.1   
78704 2012-07-20 08:34:040
/usr/lib/hpux64/libm.so.1/usr/lib/hpux64/libm.so.1  
6481912 2011-05-18 22:53:120
/usr/lib/hpux64/libpthread.so.1  /usr/lib/hpux64/libpthread.so.1
1613024 2011-08-10 22:04:540
/usr/lib/hpux64/libnsl.so.1  /usr/lib/hpux64/libnsl.so.1
1511400 2010-07-30 16:06:083
/usr/lib/hpux64/libc.so.1/usr/lib/hpux64/libc.so.1  
4900360 2012-08-27 09:33:451
/usr/lib/hpux64/libxti.so.1  /usr/lib/hpux64/libxti.so.1 
298552 2011-02-22 16:00:360
/usr/lib/hpux64/libunwind.so.1   /usr/lib/hpux64/libunwind.so.1  
714608 2010-12-06 22:57:421
/usr/lib/hpux64/libuca.so.1  /usr/lib/hpux64/libuca.so.1  
85680 2007-02-15 22:36:360
/usr/lib/hpux64/libdiskown.so/usr/lib/hpux64/libdiskown.so.1  
95736 2013-04-01 10:43:490
/pro/oracle/v102/lib/libons.so   /pro/oracle/v102/lib/libons10.so
218944 2005-06-27 10:04:005

In the end, all products work with both the libons.so from 10g as well
as with libons.so from 12c





--
christopher.jo...@oracle.com  http://twitter.com/ghrd
Free PHP  Oracle book:
http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html


Re: DBD::Oracle 1.72 fail

2014-04-15 Thread Christopher Jones



On 04/15/2014 04:38 AM, H.Merijn Brand wrote:


As a side note, is anyone able to fetch Oracle Instant Client-12 for
HP-UX Itanium 64 bit? Even on WinBlow$ that doesn't work :(
http://www.oracle.com/technetwork/topics/hpitanium64soft-091490.html


It downloads for me: I had to log into OTN first, though.
If you can describe your actual problem, I can ask an admin to review it.

Chris

--
christopher.jo...@oracle.com  http://twitter.com/ghrd
Free PHP  Oracle book:
http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html


Re: DBD::Oracle 1.72 fail

2014-04-15 Thread Christopher Jones



On 4/15/14, 10:56 AM, H.Merijn Brand wrote:

On Tue, 15 Apr 2014 10:33:19 -0700, Christopher Jones
christopher.jo...@oracle.com wrote:


On 04/15/2014 04:38 AM, H.Merijn Brand wrote:


As a side note, is anyone able to fetch Oracle Instant Client-12 for
HP-UX Itanium 64 bit? Even on WinBlow$ that doesn't work :(
http://www.oracle.com/technetwork/topics/hpitanium64soft-091490.html


It downloads for me: I had to log into OTN first, though.
If you can describe your actual problem, I can ask an admin to review it.


My colleague is currently downloading all of them.
Lets just assume it was a temporary glitch

FWIW I also logged in to OTN before I tried



Thanks for the status update. Let me know if the issue reappears.

Chris

--
christopher.jo...@oracle.com  http://twitter.com/ghrd
Free PHP  Oracle book:
http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html