perl.dbi.oracle-oci http://www.nntp.perl.org/group/perl.dbi.oracle-oci/ ... Copyright 1998-2013 perl.org Wed, 19 Jun 2013 06:00:40 +0000 ask@perl.org Re: Help on Calling external Perl script from Oracle DB by Assis Guerreiro Hi,<br/><br/>It seems that the problem is solved. I was about the character code <br/>&lt;http://ipv6.google.com/search?hl=en&amp;ei=bDKTScbnNcyp-gbhgpmuCw&amp;sa=X&amp;oi=spell&amp;resnum=0&amp;ct=result&amp;cd=1&amp;q=character+Code&amp;spell=1&gt;of <br/>the ASM listener.<br/><br/>Thanks<br/>Best Regards<br/><br/>-- <br/>Assis Guerreiro<br/>WG-DNS<br/> <br/> <br/>FCCN - Funda&ccedil;&atilde;o para a Computa&ccedil;&atilde;o Cient&iacute;fica Nacional | DNS.PT<br/>Apartado 50366 | 1708-001 Lisboa | Portugal<br/>Tel.: +351 218 440 140 | Fax.: +351 218 440 157<br/>Email: assis.guerreiro@fccn.pt &lt;mailto:assis.guerreiro@fccn.pt&gt;<br/>http://www.dns.pt<br/><br/><br/>[ Antes de imprimir esta mensagem pense no ambiente. Before printing<br/>this message, think about environment ]<br/><br/>NOTA DE CONFIDENCIALIDADE: Esta mensagem poder&aacute; conter informa&ccedil;&atilde;o<br/>privilegiada e confidencial. Se n&atilde;o &eacute; o destinat&aacute;rio da presente<br/>comunica&ccedil;&atilde;o, agradecemos que nos informe e elimine a mensagem sem que a<br/>mesma seja divulgada, distribu&iacute;da ou copiada.<br/> <br/>CONFIDENTIALITY NOTICE: This e-mail and any attachments are confidential<br/>and may be privileged. If you are not a named recipient, please notify<br/>the sender immediately and do not disclose the contents to another<br/>person, use it for any purpose or store or copy the information in any<br/>medium.<br/><br/><br/>Assis Guerreiro said the following on 11-02-2009 10:35:<br/>&gt; Hi,<br/>&gt;<br/>&gt; I&#39;ve got you email address from a presentation called &quot;Perl for Oracle<br/>&gt; - Tools and Technologies, by Tim Bunce (Jan 2002)&quot;, and I really hope<br/>&gt; you can help me on a issue that I&#39;m trying hard to solve, but with no<br/>&gt; positive result.<br/>&gt; The thing is:<br/>&gt; I used to have the database on a single machine and everything was<br/>&gt; ok, until last week, when we changed to new machines.<br/>&gt; now I have a Oracle 10.2.0.4 Standard Edition Database on a two nodes<br/>&gt; (RAC) Linux X86-64.<br/>&gt; And I&#39;m trying to run a perl script (external procedure) from the<br/>&gt; Database.<br/>&gt; Everything works fine but with a problem. My language is Portuguese<br/>&gt; and there are some Unicode characters, like &quot;&ccedil; &atilde; &otilde; &eacute; &egrave; &iacute; &igrave;&quot; that we<br/>&gt; use here.<br/>&gt;<br/>&gt; So when I call the perl script from the database those Unicode<br/>&gt; characters don&#39;t work, instead they are replaced by the &quot;?&quot; character.<br/>&gt;<br/>&gt; I&#39;ve installed the DBI module, the DBD Driver and I&#39;m using a<br/>&gt; libosint.so library and the osutil.RunOsCmd procedure to call external<br/>&gt; procedures, like it was before when everything was ok.<br/>&gt;<br/>&gt; Even if ask to run the linux command &quot;echo m&atilde;o&quot; (in English is &quot;echo<br/>&gt; hand&quot;) the output is wrong.<br/>&gt;<br/>&gt; declare<br/>&gt; cmdoutput varchar2(32767);<br/>&gt; cmd varchar2(32767);<br/>&gt; begin<br/>&gt; cmd := &#39;echo *m&atilde;o*&#39;;<br/>&gt; osutil.RunOsCmd(cmd, cmdoutput);<br/>&gt; dbms_output.put_line (cmdoutput);<br/>&gt; end;<br/>&gt;<br/>&gt; the ouput is:<br/>&gt;<br/>&gt; 19:38:12 Start SQL Editor Execution ...<br/>&gt; 19:38:12 Processing ...<br/>&gt; *m?o*<br/>&gt; 19:38:12 *** SCRIPT END : Session:WFCCN@FCCN(1) 10-02-2009<br/>&gt; 19:38:12 ***<br/>&gt; 19:38:12 End SQL Editor Execution<br/>&gt;<br/>&gt;<br/>&gt; Can you give any idea how to solve this problem?<br/>&gt;<br/>&gt; Thanks in advance from Portugal :)<br/>&gt; <br/>&gt; Assis Guerreiro<br/>&gt; WG-DNS<br/>&gt; <br/>&gt; <br/>&gt; FCCN - Funda&ccedil;&atilde;o para a Computa&ccedil;&atilde;o Cient&iacute;fica Nacional | DNS.PT<br/>&gt; Apartado 50366 | 1708-001 Lisboa | Portugal<br/>&gt; Tel.: +351 218 440 140 | Fax.: +351 218 440 157<br/>&gt; Email: assis.guerreiro@fccn.pt &lt;mailto:assis.guerreiro@fccn.pt&gt;<br/>&gt; http://www.dns.pt<br/>&gt;<br/>&gt;<br/>&gt; [ Antes de imprimir esta mensagem pense no ambiente. Before printing<br/>&gt; this message, think about environment ]<br/>&gt;<br/>&gt; NOTA DE CONFIDENCIALIDADE: Esta mensagem poder&aacute; conter informa&ccedil;&atilde;o<br/>&gt; privilegiada e confidencial. Se n&atilde;o &eacute; o destinat&aacute;rio da presente<br/>&gt; comunica&ccedil;&atilde;o, agradecemos que nos informe e elimine a mensagem sem que<br/>&gt; a mesma seja divulgada, distribu&iacute;da ou copiada.<br/>&gt; <br/>&gt; CONFIDENTIALITY NOTICE: This e-mail and any attachments are<br/>&gt; confidential and may be privileged. If you are not a named recipient,<br/>&gt; please notify the sender immediately and do not disclose the contents<br/>&gt; to another person, use it for any purpose or store or copy the<br/>&gt; information in any medium.<br/>&gt;<br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2009/02/msg169.html Thu, 12 Feb 2009 01:26:43 +0000 Help on Calling external Perl script from Oracle DB by Assis Guerreiro Hi,<br/><br/>I&#39;ve got you email address from a presentation called &quot;Perl for Oracle -<br/>Tools and Technologies, by Tim Bunce (Jan 2002)&quot;, and I really hope you<br/>can help me on a issue that I&#39;m trying hard to solve, but with no<br/>positive result.<br/>The thing is:<br/> I used to have the database on a single machine and everything was ok,<br/>until last week, when we changed to new machines.<br/> now I have a Oracle 10.2.0.4 Standard Edition Database on a two nodes<br/>(RAC) Linux X86-64.<br/>And I&#39;m trying to run a perl script (external procedure) from the Database.<br/>Everything works fine but with a problem. My language is Portuguese and<br/>there are some Unicode characters, like &quot;&ccedil; &atilde; &otilde; &eacute; &egrave; &iacute; &igrave;&quot; that we use here.<br/><br/>So when I call the perl script from the database those Unicode<br/>characters don&#39;t work, instead they are replaced by the &quot;?&quot; character.<br/><br/>I&#39;ve installed the DBI module, the DBD Driver and I&#39;m using a<br/>libosint.so library and the osutil.RunOsCmd procedure to call external<br/>procedures, like it was before when everything was ok.<br/><br/>Even if ask to run the linux command &quot;echo m&atilde;o&quot; (in English is &quot;echo<br/>hand&quot;) the output is wrong.<br/><br/>declare<br/>cmdoutput varchar2(32767);<br/>cmd varchar2(32767);<br/>begin<br/>cmd := &#39;echo *m&atilde;o*&#39;;<br/>osutil.RunOsCmd(cmd, cmdoutput);<br/>dbms_output.put_line (cmdoutput);<br/>end;<br/><br/>the ouput is:<br/><br/>19:38:12 Start SQL Editor Execution ...<br/>19:38:12 Processing ...<br/>*m?o*<br/>19:38:12 *** SCRIPT END : Session:WFCCN@FCCN(1) 10-02-2009 19:38:12 ***<br/>19:38:12 End SQL Editor Execution<br/><br/><br/>Can you give any idea how to solve this problem?<br/><br/>Thanks in advance from Portugal :)<br/> <br/>Assis Guerreiro<br/>WG-DNS<br/> <br/> <br/>FCCN - Funda&ccedil;&atilde;o para a Computa&ccedil;&atilde;o Cient&iacute;fica Nacional | DNS.PT<br/>Apartado 50366 | 1708-001 Lisboa | Portugal<br/>Tel.: +351 218 440 140 | Fax.: +351 218 440 157<br/>Email: assis.guerreiro@fccn.pt &lt;mailto:assis.guerreiro@fccn.pt&gt;<br/>http://www.dns.pt<br/><br/><br/>[ Antes de imprimir esta mensagem pense no ambiente. Before printing<br/>this message, think about environment ]<br/><br/>NOTA DE CONFIDENCIALIDADE: Esta mensagem poder&aacute; conter informa&ccedil;&atilde;o<br/>privilegiada e confidencial. Se n&atilde;o &eacute; o destinat&aacute;rio da presente<br/>comunica&ccedil;&atilde;o, agradecemos que nos informe e elimine a mensagem sem que a<br/>mesma seja divulgada, distribu&iacute;da ou copiada.<br/> <br/>CONFIDENTIALITY NOTICE: This e-mail and any attachments are confidential<br/>and may be privileged. If you are not a named recipient, please notify<br/>the sender immediately and do not disclose the contents to another<br/>person, use it for any purpose or store or copy the information in any<br/>medium.<br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2009/02/msg168.html Thu, 12 Feb 2009 00:56:18 +0000 Re: DBD-DBI and Oracle Advanced Security (ASO) support by Charles Jardine On 19/11/07 17:35, Kim Laabs wrote:<br/><br/>&gt; Any help would be greatly appreciated.<br/>&gt; I&#39;ve submitted this same question to DBI-users list but I thought I <br/>&gt; should try it here too.<br/><br/>This is definitely the wrong mail list. This mail list is for<br/>users of the module Oracle::OCI only.<br/><br/>-- <br/>Charles Jardine - Computing Service, University of Cambridge<br/>cj10@cam.ac.uk Tel: +44 1223 334506, Fax: +44 1223 334679<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2007/11/msg167.html Mon, 19 Nov 2007 09:53:18 +0000 DBD-DBI and Oracle Advanced Security (ASO) support by Kim Laabs Hello,<br/>Does anyone if DBD_DBI support Oracle Advanced Security(ASO)?<br/>We have DBD/DBI-oracle 1.15 installed with Oracle 9.2.0.4. As soon as <br/>the ASO is used, it gives me the following error message.<br/><br/>failed: ORA-12641: Authentication service failed to initialize (DBD <br/>ERROR: OCIServerAttach) at /psoft/CS89DEV/scripts/royall_conversion line <br/>825<br/><br/>Any help would be greatly appreciated.<br/>I&#39;ve submitted this same question to DBI-users list but I thought I <br/>should try it here too.<br/><br/><br/>Thanks,<br/>Kim<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2007/11/msg166.html Mon, 19 Nov 2007 09:35:31 +0000 Re: Oracle::OCI by Tim Bunce On Mon, Jan 15, 2007 at 02:54:14PM -0600, Nelson, Allan wrote:<br/>&gt; Hello Tim,<br/>&gt; <br/>&gt; I&#39;m wondering if the Oracle::OCI project is dead? I&#39;m trying to get the boot script to run under HP-UX<br/>&gt; 11.11 and I get an error.<br/><br/>Perhaps not dead, but certainly dormant. I&#39;m not using Oracle these<br/>days so I&#39;ve no itch to scratch with Oracle::OCI.<br/><br/>Any volunteers to help maintain it?<br/><br/>I&#39;ll give commit access and co-maint status to anyone who wants to help.<br/><br/>Tim.<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2007/01/msg165.html Tue, 16 Jan 2007 14:22:22 +0000 Re: dbd Oracle 10g AIX - install nightmare..... :< by Scott T. Hildreth You should post this to dbi-users@perl.org.<br/><br/><br/>On Sat, 2005-07-09 at 10:36 -0400, Andrew wrote:<br/>&gt; Folks,<br/>&gt; I hope this is correct group.<br/>&gt; I just can&#39;t install dbd:oracle on aix . Went though all archives...<br/>&gt; nothing seems to work:<br/>&gt; Here are details :<br/>&gt; 10g 10.2<br/>&gt; This is perl, v5.8.0 built for aix-thread-multi<br/>&gt; AIX somehost 2 5 00081BCC4C00<br/>&gt; DBD-Oracle-1.16<br/>&gt; <br/>&gt; the output:<br/>&gt; $ perl ./Makefile.PL PREFIX=$HOME/modules<br/>&gt; Multiple copies of Driver.xst found in:<br/>&gt; /home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/>&gt; /home/azyman/modules/lib/site_perl/5.8.0//aix-thread-multi/auto/DBI/<br/>&gt; at ./Makefile.PL line 39<br/>&gt; Using DBI 1.48 (for perl 5.008 on aix-thread-multi) installed in<br/>&gt; /home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/>&gt; <br/>&gt; Configuring DBD::Oracle ...<br/>&gt; <br/>&gt; &gt;&gt;&gt; Remember to actually *READ* the README file!<br/>&gt; Especially if you have any problems.<br/>&gt; <br/>&gt; Using Oracle in /u01/app/oracle/product/10g<br/>&gt; DEFINE _SQLPLUS_RELEASE = &quot;1001000200&quot; (CHAR)<br/>&gt; Oracle version 10.1.0.2 (10.1)<br/>&gt; Found /u01/app/oracle/product/10g/rdbms/demo/demo_rdbms.mk<br/>&gt; Using /u01/app/oracle/product/10g/rdbms/demo/demo_rdbms.mk<br/>&gt; Reading /u01/app/oracle/product/10g/rdbms/demo/demo_rdbms.mk<br/>&gt; Reading /u01/app/oracle/product/10g/rdbms/lib/env_rdbms.mk<br/>&gt; Deleting -b64 from COMPOBJS because -b64 doesn&#39;t exist.<br/>&gt; <br/>&gt; Attempting to discover Oracle OCI build rules<br/>&gt; cc_r -O -c DBD_ORA_OBJ.c<br/>&gt; by executing: [make -f<br/>&gt; /u01/app/oracle/product/10g/rdbms/demo/demo_rdbms.mk build ECHODO=echo<br/>&gt; ECHO=echo GENCLNTSH=&#39;echo genclntsh&#39; CC=true OPTIMIZE= CCFLAGS=<br/>&gt; EXE=DBD_ORA_EXE OBJS=DBD_ORA_OBJ.o]<br/>&gt; Oracle oci build command:<br/>&gt; [ true -L/u01/app/oracle/product/10g/lib/<br/>&gt; -L/u01/app/oracle/product/10g/rdbms/lib/ -o DBD_ORA_EXE DBD_ORA_OBJ.o<br/>&gt; -lclntsh -lld -lm `cat /u01/app/oracle/product/10g/lib/sysliblist`<br/>&gt; -lm -lpthreads]<br/>&gt; <br/>&gt; Found header files in plsql/public rdbms/public.<br/>&gt; <br/>&gt; Checking for functioning wait.ph<br/>&gt; <br/>&gt; <br/>&gt; System: perl5.008 aix rocky 2 5 000ad7df4c00<br/>&gt; Compiler: cc_r -O -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE<br/>&gt; -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT<br/>&gt; -q32 -D_LARGE_FILES -qlonglong<br/>&gt; Linker: /usr/bin/ld<br/>&gt; Sysliblist: /lib/crt0_64.o -ldl -lc -lm -lpthreads -lodm -lbsd_r -lld<br/>&gt; -lperfstat<br/>&gt; Oracle makefiles would have used these definitions but we override<br/>&gt; them:<br/>&gt; CC: $(ORACLE_HOME)/bin/oraxlc $(ORAXLCFLAGS)<br/>&gt; <br/>&gt; CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)\<br/>&gt; $(SHARED_CFLAG) $(USRFLAGS)<br/>&gt; [$(GFLAG) -O3 $(CDEBUG) -q64 -DSS_64BIT_SERVER -qtocmerge<br/>&gt; -bimport:/u01/app/oracle/product/10g/lib/ksms.imp<br/>&gt; -I/u01/app/oracle/product/10g/rdbms/demo<br/>&gt; -I/u01/app/oracle/product/10g/rdbms/public<br/>&gt; -I/u01/app/oracle/product/10g/plsql/public<br/>&gt; -I/u01/app/oracle/product/10g/network/public $(SPFLAGS) $(LPFLAGS)<br/>&gt; $(USRFLAGS)]<br/>&gt; <br/>&gt; LDFLAGS: -o $@ $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME)<br/>&gt; [-o $@ -L/u01/app/oracle/product/10g/rdbms/lib/<br/>&gt; -L$(LIBHOME)]<br/>&gt; <br/>&gt; <br/>&gt; Linking with OTHERLDFLAGS = -L/u01/app/oracle/product/10g/lib/<br/>&gt; -L/u01/app/oracle/product/10g/rdbms/lib/ -lclntsh -lld -lm `cat<br/>&gt; /u01/app/oracle/product/10g/lib/sysliblist` -lm -lpthreads [from<br/>&gt; &#39;build&#39; rule]<br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; Warning: You will may need to rebuild perl using the xlc_r compiler.<br/>&gt; You may also need do: ORACCENV=&#39;cc=xlc_r&#39;; export ORACCENV<br/>&gt; Also see the README about the -p option<br/>&gt; <br/>&gt; Checking if your kit is complete...<br/>&gt; Looks good<br/>&gt; LD_RUN_PATH=/u01/app/oracle/product/10g/lib32:/u01/app/oracle/product/10g/rd<br/>&gt; bms/lib32<br/>&gt; Using DBD::Oracle 1.16.<br/>&gt; Using DBD::Oracle 1.16.<br/>&gt; Multiple copies of Driver.xst found in:<br/>&gt; /home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/>&gt; /home/azyman/modules/lib/site_perl/5.8.0//aix-thread-multi/auto/DBI/<br/>&gt; at ./Makefile.PL line 1436<br/>&gt; Using DBI 1.48 (for perl 5.008 on aix-thread-multi) installed in<br/>&gt; /home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/>&gt; Writing Makefile for DBD::Oracle<br/>&gt; <br/>&gt; *** If you have problems...<br/>&gt; read all the log printed above, and the README and README.help<br/>&gt; files.<br/>&gt; (Of course, you have read README by now anyway, haven&#39;t you?)<br/>&gt; <br/>&gt; ---------------------------------------------------------------<br/>&gt; ----------------- make --------<br/>&gt; cp Oracle.pm blib/lib/DBD/Oracle.pm<br/>&gt; cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h<br/>&gt; cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h<br/>&gt; cp oraperl.ph blib/lib/oraperl.ph<br/>&gt; cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h<br/>&gt; cp Oraperl.pm blib/lib/Oraperl.pm<br/>&gt; cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm<br/>&gt; cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm<br/>&gt; /usr/bin/perl -e &#39;use ExtUtils::Mksymlists; Mksymlists(&quot;NAME&quot;<br/>&gt; =&gt; &quot;DBD::Oracle&quot;, &quot;DL_FUNCS&quot; =&gt; { }, &quot;FUNCLIST&quot; =&gt; [], &quot;DL_VARS&quot; =&gt;<br/>&gt; []);&#39;<br/>&gt; /usr/bin/perl -p -e &quot;s/~DRIVER~/Oracle/g&quot;<br/>&gt; /home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI//Driver.x<br/>&gt; st<br/>&gt; &gt; Oracle.xsi<br/>&gt; /usr/bin/perl /usr/opt/perl5/lib/5.8.0/ExtUtils/xsubpp<br/>&gt; -typemap /usr/opt/perl5/lib/5.8.0/ExtUtils/typemap -typemap typemap<br/>&gt; Oracle.xs &gt; Oracle.xsc &amp;&amp; mv Oracle.xsc Oracle.c<br/>&gt; cc_r -c -I/u01/app/oracle/product/10g/rdbms/demo<br/>&gt; -I/u01/app/oracle/product/10g/rdbms/public<br/>&gt; -I/u01/app/oracle/product/10g/plsql/public<br/>&gt; -I/u01/app/oracle/product/10g/network/public<br/>&gt; -I/u01/app/oracle/product/10g/rdbms/demo<br/>&gt; -I/u01/app/oracle/product/10g/plsql/public<br/>&gt; -I/u01/app/oracle/product/10g/rdbms/public<br/>&gt; -I/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/>&gt; -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384<br/>&gt; -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32<br/>&gt; -D_LARGE_FILES -qlonglong -O -DVERSION=\&quot;1.16\&quot;<br/>&gt; -DXS_VERSION=\&quot;1.16\&quot;<br/>&gt; &quot;-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE&quot; -DUTF8_SUPPORT<br/>&gt; -DNEW_OCI_INIT -DORA_OCI_VERSION=\&quot;10.1.0.2\&quot; Oracle.c<br/>&gt; cc_r -c -I/u01/app/oracle/product/10g/rdbms/demo<br/>&gt; -I/u01/app/oracle/product/10g/rdbms/public<br/>&gt; -I/u01/app/oracle/product/10g/plsql/public<br/>&gt; -I/u01/app/oracle/product/10g/network/public<br/>&gt; -I/u01/app/oracle/product/10g/rdbms/demo<br/>&gt; -I/u01/app/oracle/product/10g/plsql/public<br/>&gt; -I/u01/app/oracle/product/10g/rdbms/public<br/>&gt; -I/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/>&gt; -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384<br/>&gt; -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32<br/>&gt; -D_LARGE_FILES -qlonglong -O -DVERSION=\&quot;1.16\&quot;<br/>&gt; -DXS_VERSION=\&quot;1.16\&quot;<br/>&gt; &quot;-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE&quot; -DUTF8_SUPPORT<br/>&gt; -DNEW_OCI_INIT -DORA_OCI_VERSION=\&quot;10.1.0.2\&quot; dbdimp.c<br/>&gt; cc_r -c -I/u01/app/oracle/product/10g/rdbms/demo<br/>&gt; -I/u01/app/oracle/product/10g/rdbms/public<br/>&gt; -I/u01/app/oracle/product/10g/plsql/public<br/>&gt; -I/u01/app/oracle/product/10g/network/public<br/>&gt; -I/u01/app/oracle/product/10g/rdbms/demo<br/>&gt; -I/u01/app/oracle/product/10g/plsql/public<br/>&gt; -I/u01/app/oracle/product/10g/rdbms/public<br/>&gt; -I/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/>&gt; -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384<br/>&gt; -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32<br/>&gt; -D_LARGE_FILES -qlonglong -O -DVERSION=\&quot;1.16\&quot;<br/>&gt; -DXS_VERSION=\&quot;1.16\&quot;<br/>&gt; &quot;-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE&quot; -DUTF8_SUPPORT<br/>&gt; -DNEW_OCI_INIT -DORA_OCI_VERSION=\&quot;10.1.0.2\&quot; oci8.c<br/>&gt; Running Mkbootstrap for DBD::Oracle ()<br/>&gt; chmod 644 Oracle.bs<br/>&gt; rm -f blib/arch/auto/DBD/Oracle/Oracle.so<br/>&gt; <br/>&gt; LD_RUN_PATH=&quot;/u01/app/oracle/product/10g/lib32:/u01/app/oracle/product/10g/r<br/>&gt; dbms/lib32&quot;<br/>&gt; ld -bhalt:4 -bM:SRE<br/>&gt; -bI:/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE/perl.exp<br/>&gt; -bE:Oracle.exp -bnoentry -lpthreads -lc_r Oracle.o dbdimp.o oci8.o<br/>&gt; -L/u01/app/oracle/product/10g/lib/<br/>&gt; -L/u01/app/oracle/product/10g/rdbms/lib/ -lclntsh -lld -lm `cat<br/>&gt; /u01/app/oracle/product/10g/lib/sysliblist` -lm -lpthreads -o<br/>&gt; blib/arch/auto/DBD/Oracle/Oracle.so<br/>&gt; ld: 0711-736 ERROR: Input file /lib/crt0_64.o:<br/>&gt; XCOFF64 object files are not allowed in 32-bit mode.<br/>&gt; make: 1254-004 The error code from the last command is 8.<br/>&gt; <br/>&gt; <br/>&gt; Stop.<br/>&gt; --------------- end ---------------------<br/>&gt; <br/>&gt; i did try to change the lib to lib32. no effect :&lt;<br/>&gt; Please ANY help this this nightmare.<br/>&gt; Andrew<br/>&gt; <br/>&gt; <br/>-- <br/>Scott T. Hildreth &lt;shildret@scotth.emsphone.com&gt;<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/07/msg164.html Mon, 11 Jul 2005 07:18:11 +0000 dbd Oracle 10g AIX - install nightmare..... :< by Andrew Folks,<br/> I hope this is correct group.<br/>I just can&#39;t install dbd:oracle on aix . Went though all archives...<br/>nothing seems to work:<br/>Here are details :<br/>10g 10.2<br/>This is perl, v5.8.0 built for aix-thread-multi<br/>AIX somehost 2 5 00081BCC4C00<br/>DBD-Oracle-1.16<br/><br/>the output:<br/>$ perl ./Makefile.PL PREFIX=$HOME/modules<br/>Multiple copies of Driver.xst found in:<br/>/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/>/home/azyman/modules/lib/site_perl/5.8.0//aix-thread-multi/auto/DBI/<br/>at ./Makefile.PL line 39<br/>Using DBI 1.48 (for perl 5.008 on aix-thread-multi) installed in<br/>/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/><br/> Configuring DBD::Oracle ...<br/><br/>&gt;&gt;&gt; Remember to actually *READ* the README file!<br/> Especially if you have any problems.<br/><br/>Using Oracle in /u01/app/oracle/product/10g<br/>DEFINE _SQLPLUS_RELEASE = &quot;1001000200&quot; (CHAR)<br/>Oracle version 10.1.0.2 (10.1)<br/>Found /u01/app/oracle/product/10g/rdbms/demo/demo_rdbms.mk<br/>Using /u01/app/oracle/product/10g/rdbms/demo/demo_rdbms.mk<br/>Reading /u01/app/oracle/product/10g/rdbms/demo/demo_rdbms.mk<br/>Reading /u01/app/oracle/product/10g/rdbms/lib/env_rdbms.mk<br/>Deleting -b64 from COMPOBJS because -b64 doesn&#39;t exist.<br/><br/>Attempting to discover Oracle OCI build rules<br/> cc_r -O -c DBD_ORA_OBJ.c<br/>by executing: [make -f<br/>/u01/app/oracle/product/10g/rdbms/demo/demo_rdbms.mk build ECHODO=echo<br/>ECHO=echo GENCLNTSH=&#39;echo genclntsh&#39; CC=true OPTIMIZE= CCFLAGS=<br/>EXE=DBD_ORA_EXE OBJS=DBD_ORA_OBJ.o]<br/>Oracle oci build command:<br/> [ true -L/u01/app/oracle/product/10g/lib/<br/>-L/u01/app/oracle/product/10g/rdbms/lib/ -o DBD_ORA_EXE DBD_ORA_OBJ.o<br/>-lclntsh -lld -lm `cat /u01/app/oracle/product/10g/lib/sysliblist`<br/>-lm -lpthreads]<br/><br/>Found header files in plsql/public rdbms/public.<br/><br/>Checking for functioning wait.ph<br/><br/><br/>System: perl5.008 aix rocky 2 5 000ad7df4c00<br/>Compiler: cc_r -O -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE<br/>-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT<br/>-q32 -D_LARGE_FILES -qlonglong<br/>Linker: /usr/bin/ld<br/>Sysliblist: /lib/crt0_64.o -ldl -lc -lm -lpthreads -lodm -lbsd_r -lld<br/>-lperfstat<br/>Oracle makefiles would have used these definitions but we override<br/>them:<br/> CC: $(ORACLE_HOME)/bin/oraxlc $(ORAXLCFLAGS)<br/><br/> CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)\<br/> $(SHARED_CFLAG) $(USRFLAGS)<br/> [$(GFLAG) -O3 $(CDEBUG) -q64 -DSS_64BIT_SERVER -qtocmerge<br/>-bimport:/u01/app/oracle/product/10g/lib/ksms.imp<br/>-I/u01/app/oracle/product/10g/rdbms/demo<br/>-I/u01/app/oracle/product/10g/rdbms/public<br/>-I/u01/app/oracle/product/10g/plsql/public<br/>-I/u01/app/oracle/product/10g/network/public $(SPFLAGS) $(LPFLAGS)<br/>$(USRFLAGS)]<br/><br/> LDFLAGS: -o $@ $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME)<br/> [-o $@ -L/u01/app/oracle/product/10g/rdbms/lib/<br/>-L$(LIBHOME)]<br/><br/><br/>Linking with OTHERLDFLAGS = -L/u01/app/oracle/product/10g/lib/<br/>-L/u01/app/oracle/product/10g/rdbms/lib/ -lclntsh -lld -lm `cat<br/>/u01/app/oracle/product/10g/lib/sysliblist` -lm -lpthreads [from<br/>&#39;build&#39; rule]<br/><br/><br/><br/>Warning: You will may need to rebuild perl using the xlc_r compiler.<br/> You may also need do: ORACCENV=&#39;cc=xlc_r&#39;; export ORACCENV<br/> Also see the README about the -p option<br/><br/>Checking if your kit is complete...<br/>Looks good<br/>LD_RUN_PATH=/u01/app/oracle/product/10g/lib32:/u01/app/oracle/product/10g/rd<br/>bms/lib32<br/>Using DBD::Oracle 1.16.<br/>Using DBD::Oracle 1.16.<br/>Multiple copies of Driver.xst found in:<br/>/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/>/home/azyman/modules/lib/site_perl/5.8.0//aix-thread-multi/auto/DBI/<br/>at ./Makefile.PL line 1436<br/>Using DBI 1.48 (for perl 5.008 on aix-thread-multi) installed in<br/>/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/>Writing Makefile for DBD::Oracle<br/><br/>*** If you have problems...<br/> read all the log printed above, and the README and README.help<br/>files.<br/> (Of course, you have read README by now anyway, haven&#39;t you?)<br/><br/>---------------------------------------------------------------<br/>----------------- make --------<br/>cp Oracle.pm blib/lib/DBD/Oracle.pm<br/>cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h<br/>cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h<br/>cp oraperl.ph blib/lib/oraperl.ph<br/>cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h<br/>cp Oraperl.pm blib/lib/Oraperl.pm<br/>cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm<br/>cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm<br/> /usr/bin/perl -e &#39;use ExtUtils::Mksymlists; Mksymlists(&quot;NAME&quot;<br/>=&gt; &quot;DBD::Oracle&quot;, &quot;DL_FUNCS&quot; =&gt; { }, &quot;FUNCLIST&quot; =&gt; [], &quot;DL_VARS&quot; =&gt;<br/>[]);&#39;<br/> /usr/bin/perl -p -e &quot;s/~DRIVER~/Oracle/g&quot;<br/>/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI//Driver.x<br/>st<br/>&gt; Oracle.xsi<br/> /usr/bin/perl /usr/opt/perl5/lib/5.8.0/ExtUtils/xsubpp<br/>-typemap /usr/opt/perl5/lib/5.8.0/ExtUtils/typemap -typemap typemap<br/>Oracle.xs &gt; Oracle.xsc &amp;&amp; mv Oracle.xsc Oracle.c<br/> cc_r -c -I/u01/app/oracle/product/10g/rdbms/demo<br/>-I/u01/app/oracle/product/10g/rdbms/public<br/>-I/u01/app/oracle/product/10g/plsql/public<br/>-I/u01/app/oracle/product/10g/network/public<br/>-I/u01/app/oracle/product/10g/rdbms/demo<br/>-I/u01/app/oracle/product/10g/plsql/public<br/>-I/u01/app/oracle/product/10g/rdbms/public<br/>-I/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/> -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384<br/>-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32<br/>-D_LARGE_FILES -qlonglong -O -DVERSION=\&quot;1.16\&quot;<br/>-DXS_VERSION=\&quot;1.16\&quot;<br/>&quot;-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE&quot; -DUTF8_SUPPORT<br/>-DNEW_OCI_INIT -DORA_OCI_VERSION=\&quot;10.1.0.2\&quot; Oracle.c<br/> cc_r -c -I/u01/app/oracle/product/10g/rdbms/demo<br/>-I/u01/app/oracle/product/10g/rdbms/public<br/>-I/u01/app/oracle/product/10g/plsql/public<br/>-I/u01/app/oracle/product/10g/network/public<br/>-I/u01/app/oracle/product/10g/rdbms/demo<br/>-I/u01/app/oracle/product/10g/plsql/public<br/>-I/u01/app/oracle/product/10g/rdbms/public<br/>-I/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/> -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384<br/>-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32<br/>-D_LARGE_FILES -qlonglong -O -DVERSION=\&quot;1.16\&quot;<br/>-DXS_VERSION=\&quot;1.16\&quot;<br/>&quot;-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE&quot; -DUTF8_SUPPORT<br/>-DNEW_OCI_INIT -DORA_OCI_VERSION=\&quot;10.1.0.2\&quot; dbdimp.c<br/> cc_r -c -I/u01/app/oracle/product/10g/rdbms/demo<br/>-I/u01/app/oracle/product/10g/rdbms/public<br/>-I/u01/app/oracle/product/10g/plsql/public<br/>-I/u01/app/oracle/product/10g/network/public<br/>-I/u01/app/oracle/product/10g/rdbms/demo<br/>-I/u01/app/oracle/product/10g/plsql/public<br/>-I/u01/app/oracle/product/10g/rdbms/public<br/>-I/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/<br/> -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384<br/>-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32<br/>-D_LARGE_FILES -qlonglong -O -DVERSION=\&quot;1.16\&quot;<br/>-DXS_VERSION=\&quot;1.16\&quot;<br/>&quot;-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE&quot; -DUTF8_SUPPORT<br/>-DNEW_OCI_INIT -DORA_OCI_VERSION=\&quot;10.1.0.2\&quot; oci8.c<br/>Running Mkbootstrap for DBD::Oracle ()<br/> chmod 644 Oracle.bs<br/> rm -f blib/arch/auto/DBD/Oracle/Oracle.so<br/><br/>LD_RUN_PATH=&quot;/u01/app/oracle/product/10g/lib32:/u01/app/oracle/product/10g/r<br/>dbms/lib32&quot;<br/>ld -bhalt:4 -bM:SRE<br/>-bI:/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE/perl.exp<br/>-bE:Oracle.exp -bnoentry -lpthreads -lc_r Oracle.o dbdimp.o oci8.o<br/>-L/u01/app/oracle/product/10g/lib/<br/>-L/u01/app/oracle/product/10g/rdbms/lib/ -lclntsh -lld -lm `cat<br/>/u01/app/oracle/product/10g/lib/sysliblist` -lm -lpthreads -o<br/>blib/arch/auto/DBD/Oracle/Oracle.so<br/>ld: 0711-736 ERROR: Input file /lib/crt0_64.o:<br/> XCOFF64 object files are not allowed in 32-bit mode.<br/>make: 1254-004 The error code from the last command is 8.<br/><br/><br/>Stop.<br/>--------------- end ---------------------<br/><br/>i did try to change the lib to lib32. no effect :&lt;<br/>Please ANY help this this nightmare.<br/>Andrew<br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/07/msg163.html Sun, 10 Jul 2005 09:19:50 +0000 RE: Retrieving data from Oracle by Markiewicz, Andrew <br/>One additional thing I noticed.<br/>The fetchrow_hashref currently returns a different reference each time it is<br/>executed. So looping through and pushing the references in a list works<br/>fine for now. But from the perldoc DBI:<br/><br/> &quot;Currently, a new hash reference is returned for each<br/> row. This will change in the future to return the same<br/> hash ref each time, so don&#39;t rely on the current<br/> behaviour.&quot;<br/><br/>Your code relies on the fact that the references are different for each<br/>call.<br/>When/if the DBI module is changed to return the same reference, your code<br/>will break since it will store a list of all the same hash reference, all<br/>pointing to your last row in the cursor.<br/><br/>To continue using an array of hash references, copy the hash results into an<br/>anonymous hash reference and push that reference on the array.<br/><br/><br/> while ($row = $sth-&gt;fetchrow_hashref()) {<br/> push (@list,$row); # original<br/> push (@list,{%$row}); # new reference<br/> }<br/><br/>You can check both hex addresses of the references to verify that they are<br/>different.<br/><br/>-----Original Message-----<br/>From: Sangeeth V S [mailto:sangeeth.vs@masconit.com] <br/>Sent: Wednesday, June 01, 2005 4:32 AM<br/>To: Markiewicz, Andrew<br/>Subject: Re: Retrieving data from Oracle<br/><br/><br/>Sent by mailto:sangeeth.vs@masconit.com<br/>______________________________________________<br/><br/>Hi Andrew,<br/><br/>$sth-&gt;fetchrow_hashref(&#39;NAME_lc&#39;) worked for me! Thanks for the help.<br/><br/>Sangeeth<br/><br/><br/><br/>----- Original Message ----- <br/>From: &quot;Markiewicz, Andrew&quot; &lt;AMarkiewicz@americantv.com&gt;<br/>To: &lt;sangeeth.vs@masconit.com&gt;; &lt;oracle-oci@perl.org&gt;<br/>Sent: Tuesday, May 31, 2005 8:53 PM<br/>Subject: RE: Retrieving data from Oracle<br/><br/><br/>&gt; I use fetchrow_hashref with Oracle successfully.<br/>&gt;<br/>&gt; Try specifying the case of the columns (uc or lc depending on <br/>&gt; preference<br/>or<br/>&gt; current usage in the program):<br/>&gt; $sth-&gt;fetchrow_hashref(&#39;NAME_lc&#39;)<br/>&gt;<br/>&gt;<br/>&gt;<br/>&gt; -----Original Message-----<br/>&gt; From: sangeeth.vs@masconit.com [mailto:sangeeth.vs@masconit.com]<br/>&gt; Sent: Tuesday, May 31, 2005 9:36 AM<br/>&gt; To: oracle-oci@perl.org<br/>&gt; Subject: Retrieving data from Oracle<br/>&gt;<br/>&gt;<br/>&gt; Sent by <br/>&gt; mailto:oracle-oci-return-160-AMarkiewicz=americantv.com@perl.org<br/>&gt; __________________________________________________________<br/>&gt;<br/>&gt; Hi,<br/>&gt;<br/>&gt; I&#39;m migrating a perl application in postgres to Oracle. Here, the <br/>&gt; data is being retrieved as below.<br/>&gt;<br/>&gt; while ($row = $sth-&gt;fetchrow_hashref()) {<br/>&gt; push (@list,$row);<br/>&gt; }<br/>&gt;<br/>&gt; It looks like fetchrow_hashref() is not working with Oracle. But I&#39;m <br/>&gt; able to retrieve the data through fetchrow_array. Any idea why<br/>&gt; fetchrow_hashref() is not working? Is there any other alternative for <br/>&gt; fetchrow_hashref()? How do I accomplish the above with any other <br/>&gt; fetch methods?<br/>&gt;<br/>&gt; Thanks in advance.<br/>&gt;<br/>&gt; Sangeeth<br/>&gt;<br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/06/msg162.html Wed, 01 Jun 2005 13:21:19 +0000 RE: Retrieving data from Oracle by Markiewicz, Andrew I use fetchrow_hashref with Oracle successfully.<br/><br/>Try specifying the case of the columns (uc or lc depending on preference or<br/>current usage in the program):<br/> $sth-&gt;fetchrow_hashref(&#39;NAME_lc&#39;)<br/><br/><br/><br/>-----Original Message-----<br/>From: sangeeth.vs@masconit.com [mailto:sangeeth.vs@masconit.com] <br/>Sent: Tuesday, May 31, 2005 9:36 AM<br/>To: oracle-oci@perl.org<br/>Subject: Retrieving data from Oracle<br/><br/><br/>Sent by mailto:oracle-oci-return-160-AMarkiewicz=americantv.com@perl.org<br/>__________________________________________________________<br/><br/>Hi,<br/><br/>I&#39;m migrating a perl application in postgres to Oracle. Here, the data is<br/>being retrieved as below.<br/><br/> while ($row = $sth-&gt;fetchrow_hashref()) {<br/> push (@list,$row);<br/> }<br/><br/>It looks like fetchrow_hashref() is not working with Oracle. But I&#39;m able<br/>to retrieve the data through fetchrow_array. Any idea why<br/>fetchrow_hashref() is not working? Is there any other alternative for<br/>fetchrow_hashref()? How do I accomplish the above with any other fetch<br/>methods?<br/><br/>Thanks in advance.<br/><br/>Sangeeth<br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/05/msg161.html Tue, 31 May 2005 08:22:25 +0000 Retrieving data from Oracle by sangeeth.vs Hi,<br/><br/>I&#39;m migrating a perl application in postgres to Oracle. Here, the data is<br/>being retrieved as below.<br/><br/> while ($row = $sth-&gt;fetchrow_hashref()) {<br/> push (@list,$row);<br/> }<br/><br/>It looks like fetchrow_hashref() is not working with Oracle. But I&#39;m able<br/>to retrieve the data through fetchrow_array. Any idea why<br/>fetchrow_hashref() is not working? Is there any other alternative for<br/>fetchrow_hashref()? How do I accomplish the above with any other fetch<br/>methods?<br/><br/>Thanks in advance.<br/><br/>Sangeeth<br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/05/msg160.html Tue, 31 May 2005 08:14:38 +0000 Re: Oracle-Perl Connection Problem by Mordechai_Pniel You have to recompile the DBD::Oracle module against your current Oracle <br/>version.<br/><br/>Mordechai<br/><br/><br/>The content of this message is Applied Materials Confidential. If you are <br/>not the intended recipient and have received this message in error, any <br/>use or distribution is prohibited. Please notify me immediately by reply <br/>e-mail and delete this message from your computer system. Thank you.<br/><br/><br/><br/><br/><br/><br/><br/>Sandeep Warikoo &lt;sandeep_warikoo@persistent.co.in&gt;<br/>04/01/2005 16:50<br/> <br/> To: richard.foley@rfi.net<br/> cc: oracle-oci@perl.org<br/> Subject: Re: Oracle-Perl Connection Problem<br/> <br/><br/><br/>Hi again,<br/><br/>I tried NLS_LANG too. But still same result.<br/>My database settings are:<br/>NLS_LANGUAGE=AMERICAN<br/>NLS_TERRITORY=AMERICA<br/>NLS_CHARACTERSET=WE8ISO8859P1<br/><br/>I tried:&quot; export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1&quot;, but still <br/>execution of script gave me same error.<br/>I can connect to database through sqlplus and run queries.<br/>I&#39;m working on HP-UX, and database is also on an HP-UX machine.<br/>LD_LIBRARY_PATH is also correct. :-(<br/><br/>We have reinstalled DBI and other related packages. But that also didn&#39;t <br/>work.<br/><br/>Regards,<br/>Sandeep<br/><br/>Richard Foley wrote:<br/><br/>&gt;There&#39;s a few things to look at:<br/>&gt;<br/>&gt;Sometimes you need NLS_LANG (etc.) and several others set too.<br/>&gt;<br/>&gt;LD_LIBRARY_PATH may be worth checking.<br/>&gt;<br/>&gt;Have you upgraded this Oracle recently?<br/>&gt;<br/>&gt;Can you connect using sqlplus?<br/>&gt;<br/>&gt;Don&#39;t give up - once it works, it&#39;ll work forever ;-)<br/>&gt;<br/>&gt;On Tuesday 04 January 2005 14:04, Sandeep Warikoo wrote:<br/>&gt; <br/>&gt;<br/>&gt;&gt;Hi Richards,<br/>&gt;&gt;<br/>&gt;&gt;Thanks for the help.<br/>&gt;&gt;I have checked all the environment variables. All are correctly set<br/>&gt;&gt;including TWO_TASK, ORACLE_SID, ORACLE_HOME. Still the problem persists.<br/>&gt;&gt;<br/>&gt;&gt;here is my modified code:<br/>&gt;&gt;------------------------------------------------------------------------<br/>&gt;&gt;#!/usr/bin/perl<br/>&gt;&gt;<br/>&gt;&gt;use DBI;<br/>&gt;&gt;<br/>&gt;&gt;$ENV{TWO_TASK}=&quot;d7_bilab03&quot;;<br/>&gt;&gt;$ENV{ORACLE_HOME}=&quot;/data/oracle/product/9.2.0/&quot;;<br/>&gt;&gt;$ENV{ORACLE_SID}=&quot;dmc&quot;;<br/>&gt;&gt;<br/>&gt;&gt;$dbH = DBI-&gt;connect(&quot;dbi:Oracle:&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;) or die <br/>$DBI::errstr;<br/>&gt;&gt;------------------------------------------------------------------------<br/>&gt;&gt;<br/>&gt;&gt;d7_bilab03 is net alias for my database. It works well with tnsping. And<br/>&gt;&gt;I&#39;m able to connect to database through &quot;sqlplus<br/>&gt;&gt;hpbi_owner/hpbi@d7_bilab03&quot;<br/>&gt;&gt;<br/>&gt;&gt;Sandeep<br/>&gt;&gt;<br/>&gt;&gt;Richard Foley wrote:<br/>&gt;&gt; <br/>&gt;&gt;<br/>&gt;&gt;&gt;You usually need to have quite a few environment variables set before <br/>you<br/>&gt;&gt;&gt;can access Oracle, as the error message (OCIEnvInit) roughly indicates. <br/><br/>&gt;&gt;&gt;Try reading the docs that came with the DBI (and DBD::Oracle<br/>&gt;&gt;&gt;particularly), I believe there are many examples in there.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;You are at least short of<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; ORACLE_SID or TWO_TASK<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;Ciao<br/>&gt;&gt;&gt;Richard Foley<br/>&gt;&gt;&gt;---<br/>&gt;&gt;&gt;Ciao - Shorter than Aufwiedersehen<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;http://www.oreilly.com/catalog/perldebugpr/index.html<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;On Tuesday 04 January 2005 09:47, Sandeep Warikoo wrote:<br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;Hi,<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;I&#39;m trying the access oracle through perl, but am getting the error<br/>&gt;&gt;&gt;&gt;&quot;ERROR OCIEnvInit&quot;.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;My perl script is:<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;-------------------------------------------------------------------------<br/>&gt;&gt;&gt;&gt;use DBI;<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;$ENV{ORACLE_HOME}=&#39;/data/oracle/product/9.2.0&#39;;<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;my $dbh = DBI-&gt;connect(&quot;dbi:Oracle:d7_bilab03&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;) or<br/>&gt;&gt;&gt;&gt;die &quot;couldn&#39;t connect to database: $DBI::errstr\n&quot;;<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;-------------------------------------------------------------------------<br/>&gt;&gt;&gt;&gt;-<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;Does anyone know how to solve this?<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;Regards,<br/>&gt;&gt;&gt;&gt;Sandeep W.<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;<br/>&gt;<br/>&gt; <br/>&gt;<br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/01/msg159.html Tue, 04 Jan 2005 07:23:53 +0000 RE: Oracle-Perl Connection Problem by Barbara Lindsey I have my connect set up as follows:<br/><br/>DBI-&gt;connect(&quot;dbi:Oracle:xxx&quot;,&quot;yyy&quot;,&quot;zzz&quot;)<br/><br/>Where <br/>&quot;xxx&quot; matches the name used in the tnsnames.ora file for the database<br/>you are connecting to<br/>&quot;yyy&quot; is the user<br/>&quot;zzz&quot; is the password<br/><br/>Another suggestion is to use debugging as follows:<br/><br/>#!/usr/bin/perl -d<br/><br/>Run your script from the command line to debug. In this way you can<br/>step into each of the modules and examine the variables to find what is<br/>missing/wrong and exactly where the error is occurring. I found this<br/>helpful when I was starting out with it.<br/><br/>Richard is right - once you get it going, it just plain works.<br/><br/>Cheers,<br/>Barb<br/><br/>-----Original Message-----<br/>From: Richard Foley [mailto:Richard.Foley@t-online.de] <br/>Sent: Tuesday, January 04, 2005 9:04 AM<br/>To: Sandeep Warikoo<br/>Cc: oracle-oci@perl.org<br/>Subject: Re: Oracle-Perl Connection Problem<br/><br/>There&#39;s a few things to look at:<br/><br/>Sometimes you need NLS_LANG (etc.) and several others set too.<br/><br/>LD_LIBRARY_PATH may be worth checking.<br/><br/>Have you upgraded this Oracle recently?<br/><br/>Can you connect using sqlplus?<br/><br/>Don&#39;t give up - once it works, it&#39;ll work forever ;-)<br/><br/>On Tuesday 04 January 2005 14:04, Sandeep Warikoo wrote:<br/>&gt; Hi Richards,<br/>&gt;<br/>&gt; Thanks for the help.<br/>&gt; I have checked all the environment variables. All are correctly set <br/>&gt; including TWO_TASK, ORACLE_SID, ORACLE_HOME. Still the problem<br/>persists.<br/>&gt;<br/>&gt; here is my modified code:<br/>&gt; ----------------------------------------------------------------------<br/>&gt; --<br/>&gt; #!/usr/bin/perl<br/>&gt;<br/>&gt; use DBI;<br/>&gt;<br/>&gt; $ENV{TWO_TASK}=&quot;d7_bilab03&quot;;<br/>&gt; $ENV{ORACLE_HOME}=&quot;/data/oracle/product/9.2.0/&quot;;<br/>&gt; $ENV{ORACLE_SID}=&quot;dmc&quot;;<br/>&gt;<br/>&gt; $dbH = DBI-&gt;connect(&quot;dbi:Oracle:&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;) or die <br/>&gt; $DBI::errstr;<br/>&gt; ----------------------------------------------------------------------<br/>&gt; --<br/>&gt;<br/>&gt; d7_bilab03 is net alias for my database. It works well with tnsping. <br/>&gt; And I&#39;m able to connect to database through &quot;sqlplus <br/>&gt; hpbi_owner/hpbi@d7_bilab03&quot;<br/>&gt;<br/>&gt; Sandeep<br/>&gt;<br/>&gt; Richard Foley wrote:<br/>&gt; &gt;You usually need to have quite a few environment variables set before<br/><br/>&gt; &gt;you can access Oracle, as the error message (OCIEnvInit) roughly<br/>indicates.<br/>&gt; &gt; Try reading the docs that came with the DBI (and DBD::Oracle <br/>&gt; &gt;particularly), I believe there are many examples in there.<br/>&gt; &gt;<br/>&gt; &gt;You are at least short of<br/>&gt; &gt;<br/>&gt; &gt; ORACLE_SID or TWO_TASK<br/>&gt; &gt;<br/>&gt; &gt;Ciao<br/>&gt; &gt;Richard Foley<br/>&gt; &gt;---<br/>&gt; &gt;Ciao - Shorter than Aufwiedersehen<br/>&gt; &gt;<br/>&gt; &gt;http://www.oreilly.com/catalog/perldebugpr/index.html<br/>&gt; &gt;<br/>&gt; &gt;On Tuesday 04 January 2005 09:47, Sandeep Warikoo wrote:<br/>&gt; &gt;&gt;Hi,<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;I&#39;m trying the access oracle through perl, but am getting the error <br/>&gt; &gt;&gt;&quot;ERROR OCIEnvInit&quot;.<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;My perl script is:<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;--------------------------------------------------------------------<br/>&gt; &gt;&gt;-----<br/>&gt; &gt;&gt;use DBI;<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;$ENV{ORACLE_HOME}=&#39;/data/oracle/product/9.2.0&#39;;<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;my $dbh = DBI-&gt;connect(&quot;dbi:Oracle:d7_bilab03&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;)<br/>or<br/>&gt; &gt;&gt;die &quot;couldn&#39;t connect to database: $DBI::errstr\n&quot;;<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;--------------------------------------------------------------------<br/>&gt; &gt;&gt;-----<br/>&gt; &gt;&gt;-<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;Does anyone know how to solve this?<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;Regards,<br/>&gt; &gt;&gt;Sandeep W.<br/><br/>-- <br/><br/>Ciao<br/>Richard Foley<br/>---<br/>Ciao - Shorter than Aufwiedersehen<br/><br/>http://www.oreilly.com/catalog/perldebugpr/index.html<br/><br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/01/msg158.html Tue, 04 Jan 2005 07:20:50 +0000 Re: Oracle-Perl Connection Problem by Sandeep Warikoo Hi again,<br/><br/>I tried NLS_LANG too. But still same result.<br/>My database settings are:<br/>NLS_LANGUAGE=AMERICAN<br/>NLS_TERRITORY=AMERICA<br/>NLS_CHARACTERSET=WE8ISO8859P1<br/><br/>I tried:&quot; export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1&quot;, but still <br/>execution of script gave me same error.<br/>I can connect to database through sqlplus and run queries.<br/>I&#39;m working on HP-UX, and database is also on an HP-UX machine.<br/>LD_LIBRARY_PATH is also correct. :-(<br/><br/>We have reinstalled DBI and other related packages. But that also didn&#39;t <br/>work.<br/><br/>Regards,<br/>Sandeep<br/><br/>Richard Foley wrote:<br/><br/>&gt;There&#39;s a few things to look at:<br/>&gt;<br/>&gt;Sometimes you need NLS_LANG (etc.) and several others set too.<br/>&gt;<br/>&gt;LD_LIBRARY_PATH may be worth checking.<br/>&gt;<br/>&gt;Have you upgraded this Oracle recently?<br/>&gt;<br/>&gt;Can you connect using sqlplus?<br/>&gt;<br/>&gt;Don&#39;t give up - once it works, it&#39;ll work forever ;-)<br/>&gt;<br/>&gt;On Tuesday 04 January 2005 14:04, Sandeep Warikoo wrote:<br/>&gt; <br/>&gt;<br/>&gt;&gt;Hi Richards,<br/>&gt;&gt;<br/>&gt;&gt;Thanks for the help.<br/>&gt;&gt;I have checked all the environment variables. All are correctly set<br/>&gt;&gt;including TWO_TASK, ORACLE_SID, ORACLE_HOME. Still the problem persists.<br/>&gt;&gt;<br/>&gt;&gt;here is my modified code:<br/>&gt;&gt;------------------------------------------------------------------------<br/>&gt;&gt;#!/usr/bin/perl<br/>&gt;&gt;<br/>&gt;&gt;use DBI;<br/>&gt;&gt;<br/>&gt;&gt;$ENV{TWO_TASK}=&quot;d7_bilab03&quot;;<br/>&gt;&gt;$ENV{ORACLE_HOME}=&quot;/data/oracle/product/9.2.0/&quot;;<br/>&gt;&gt;$ENV{ORACLE_SID}=&quot;dmc&quot;;<br/>&gt;&gt;<br/>&gt;&gt;$dbH = DBI-&gt;connect(&quot;dbi:Oracle:&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;) or die $DBI::errstr;<br/>&gt;&gt;------------------------------------------------------------------------<br/>&gt;&gt;<br/>&gt;&gt;d7_bilab03 is net alias for my database. It works well with tnsping. And<br/>&gt;&gt;I&#39;m able to connect to database through &quot;sqlplus<br/>&gt;&gt;hpbi_owner/hpbi@d7_bilab03&quot;<br/>&gt;&gt;<br/>&gt;&gt;Sandeep<br/>&gt;&gt;<br/>&gt;&gt;Richard Foley wrote:<br/>&gt;&gt; <br/>&gt;&gt;<br/>&gt;&gt;&gt;You usually need to have quite a few environment variables set before you<br/>&gt;&gt;&gt;can access Oracle, as the error message (OCIEnvInit) roughly indicates. <br/>&gt;&gt;&gt;Try reading the docs that came with the DBI (and DBD::Oracle<br/>&gt;&gt;&gt;particularly), I believe there are many examples in there.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;You are at least short of<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; ORACLE_SID or TWO_TASK<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;Ciao<br/>&gt;&gt;&gt;Richard Foley<br/>&gt;&gt;&gt;---<br/>&gt;&gt;&gt;Ciao - Shorter than Aufwiedersehen<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;http://www.oreilly.com/catalog/perldebugpr/index.html<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;On Tuesday 04 January 2005 09:47, Sandeep Warikoo wrote:<br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;Hi,<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;I&#39;m trying the access oracle through perl, but am getting the error<br/>&gt;&gt;&gt;&gt;&quot;ERROR OCIEnvInit&quot;.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;My perl script is:<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;-------------------------------------------------------------------------<br/>&gt;&gt;&gt;&gt;use DBI;<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;$ENV{ORACLE_HOME}=&#39;/data/oracle/product/9.2.0&#39;;<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;my $dbh = DBI-&gt;connect(&quot;dbi:Oracle:d7_bilab03&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;) or<br/>&gt;&gt;&gt;&gt;die &quot;couldn&#39;t connect to database: $DBI::errstr\n&quot;;<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;-------------------------------------------------------------------------<br/>&gt;&gt;&gt;&gt;-<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;Does anyone know how to solve this?<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;Regards,<br/>&gt;&gt;&gt;&gt;Sandeep W.<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;<br/>&gt;<br/>&gt; <br/>&gt;<br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/01/msg157.html Tue, 04 Jan 2005 06:56:25 +0000 Re: Oracle-Perl Connection Problem by Richard.Foley There&#39;s a few things to look at:<br/><br/>Sometimes you need NLS_LANG (etc.) and several others set too.<br/><br/>LD_LIBRARY_PATH may be worth checking.<br/><br/>Have you upgraded this Oracle recently?<br/><br/>Can you connect using sqlplus?<br/><br/>Don&#39;t give up - once it works, it&#39;ll work forever ;-)<br/><br/>On Tuesday 04 January 2005 14:04, Sandeep Warikoo wrote:<br/>&gt; Hi Richards,<br/>&gt;<br/>&gt; Thanks for the help.<br/>&gt; I have checked all the environment variables. All are correctly set<br/>&gt; including TWO_TASK, ORACLE_SID, ORACLE_HOME. Still the problem persists.<br/>&gt;<br/>&gt; here is my modified code:<br/>&gt; ------------------------------------------------------------------------<br/>&gt; #!/usr/bin/perl<br/>&gt;<br/>&gt; use DBI;<br/>&gt;<br/>&gt; $ENV{TWO_TASK}=&quot;d7_bilab03&quot;;<br/>&gt; $ENV{ORACLE_HOME}=&quot;/data/oracle/product/9.2.0/&quot;;<br/>&gt; $ENV{ORACLE_SID}=&quot;dmc&quot;;<br/>&gt;<br/>&gt; $dbH = DBI-&gt;connect(&quot;dbi:Oracle:&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;) or die $DBI::errstr;<br/>&gt; ------------------------------------------------------------------------<br/>&gt;<br/>&gt; d7_bilab03 is net alias for my database. It works well with tnsping. And<br/>&gt; I&#39;m able to connect to database through &quot;sqlplus<br/>&gt; hpbi_owner/hpbi@d7_bilab03&quot;<br/>&gt;<br/>&gt; Sandeep<br/>&gt;<br/>&gt; Richard Foley wrote:<br/>&gt; &gt;You usually need to have quite a few environment variables set before you<br/>&gt; &gt; can access Oracle, as the error message (OCIEnvInit) roughly indicates. <br/>&gt; &gt; Try reading the docs that came with the DBI (and DBD::Oracle<br/>&gt; &gt; particularly), I believe there are many examples in there.<br/>&gt; &gt;<br/>&gt; &gt;You are at least short of<br/>&gt; &gt;<br/>&gt; &gt; ORACLE_SID or TWO_TASK<br/>&gt; &gt;<br/>&gt; &gt;Ciao<br/>&gt; &gt;Richard Foley<br/>&gt; &gt;---<br/>&gt; &gt;Ciao - Shorter than Aufwiedersehen<br/>&gt; &gt;<br/>&gt; &gt;http://www.oreilly.com/catalog/perldebugpr/index.html<br/>&gt; &gt;<br/>&gt; &gt;On Tuesday 04 January 2005 09:47, Sandeep Warikoo wrote:<br/>&gt; &gt;&gt;Hi,<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;I&#39;m trying the access oracle through perl, but am getting the error<br/>&gt; &gt;&gt;&quot;ERROR OCIEnvInit&quot;.<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;My perl script is:<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;-------------------------------------------------------------------------<br/>&gt; &gt;&gt;use DBI;<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;$ENV{ORACLE_HOME}=&#39;/data/oracle/product/9.2.0&#39;;<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;my $dbh = DBI-&gt;connect(&quot;dbi:Oracle:d7_bilab03&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;) or<br/>&gt; &gt;&gt;die &quot;couldn&#39;t connect to database: $DBI::errstr\n&quot;;<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;-------------------------------------------------------------------------<br/>&gt; &gt;&gt;-<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;Does anyone know how to solve this?<br/>&gt; &gt;&gt;<br/>&gt; &gt;&gt;Regards,<br/>&gt; &gt;&gt;Sandeep W.<br/><br/>-- <br/><br/>Ciao<br/>Richard Foley<br/>---<br/>Ciao - Shorter than Aufwiedersehen<br/><br/>http://www.oreilly.com/catalog/perldebugpr/index.html<br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/01/msg156.html Tue, 04 Jan 2005 06:56:21 +0000 Re: Oracle-Perl Connection Problem by Sandeep Warikoo Hi Richards,<br/><br/>Thanks for the help.<br/>I have checked all the environment variables. All are correctly set <br/>including TWO_TASK, ORACLE_SID, ORACLE_HOME. Still the problem persists.<br/><br/>here is my modified code:<br/>------------------------------------------------------------------------<br/>#!/usr/bin/perl<br/><br/>use DBI;<br/><br/>$ENV{TWO_TASK}=&quot;d7_bilab03&quot;;<br/>$ENV{ORACLE_HOME}=&quot;/data/oracle/product/9.2.0/&quot;;<br/>$ENV{ORACLE_SID}=&quot;dmc&quot;;<br/><br/>$dbH = DBI-&gt;connect(&quot;dbi:Oracle:&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;) or die $DBI::errstr;<br/>------------------------------------------------------------------------<br/><br/>d7_bilab03 is net alias for my database. It works well with tnsping. And <br/>I&#39;m able to connect to database through &quot;sqlplus hpbi_owner/hpbi@d7_bilab03&quot;<br/><br/>Sandeep<br/><br/>Richard Foley wrote:<br/><br/>&gt;You usually need to have quite a few environment variables set before you can <br/>&gt;access Oracle, as the error message (OCIEnvInit) roughly indicates. Try <br/>&gt;reading the docs that came with the DBI (and DBD::Oracle particularly), I <br/>&gt;believe there are many examples in there.<br/>&gt;<br/>&gt;You are at least short of <br/>&gt;<br/>&gt; ORACLE_SID or TWO_TASK<br/>&gt;<br/>&gt;Ciao<br/>&gt;Richard Foley<br/>&gt;---<br/>&gt;Ciao - Shorter than Aufwiedersehen<br/>&gt;<br/>&gt;http://www.oreilly.com/catalog/perldebugpr/index.html<br/>&gt;<br/>&gt;On Tuesday 04 January 2005 09:47, Sandeep Warikoo wrote:<br/>&gt; <br/>&gt;<br/>&gt;&gt;Hi,<br/>&gt;&gt;<br/>&gt;&gt;I&#39;m trying the access oracle through perl, but am getting the error<br/>&gt;&gt;&quot;ERROR OCIEnvInit&quot;.<br/>&gt;&gt;<br/>&gt;&gt;My perl script is:<br/>&gt;&gt;<br/>&gt;&gt;-------------------------------------------------------------------------<br/>&gt;&gt;use DBI;<br/>&gt;&gt;<br/>&gt;&gt;$ENV{ORACLE_HOME}=&#39;/data/oracle/product/9.2.0&#39;;<br/>&gt;&gt;<br/>&gt;&gt;my $dbh = DBI-&gt;connect(&quot;dbi:Oracle:d7_bilab03&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;) or<br/>&gt;&gt;die &quot;couldn&#39;t connect to database: $DBI::errstr\n&quot;;<br/>&gt;&gt;<br/>&gt;&gt;--------------------------------------------------------------------------<br/>&gt;&gt;<br/>&gt;&gt;Does anyone know how to solve this?<br/>&gt;&gt;<br/>&gt;&gt;Regards,<br/>&gt;&gt;Sandeep W.<br/>&gt;&gt; <br/>&gt;&gt;<br/>&gt;<br/>&gt;<br/>&gt; <br/>&gt;<br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/01/msg155.html Tue, 04 Jan 2005 06:56:19 +0000 Re: Oracle-Perl Connection Problem by Scott T. Hildreth Also, this should be on the dbi-users list. Join that list for<br/>DBI/DBD Questions.<br/><br/>On Tue, 2005-01-04 at 12:09 +0100, Richard Foley wrote:<br/>&gt; You usually need to have quite a few environment variables set before you can <br/>&gt; access Oracle, as the error message (OCIEnvInit) roughly indicates. Try <br/>&gt; reading the docs that came with the DBI (and DBD::Oracle particularly), I <br/>&gt; believe there are many examples in there.<br/>&gt; <br/>&gt; You are at least short of <br/>&gt; <br/>&gt; ORACLE_SID or TWO_TASK<br/>&gt; <br/>&gt; Ciao<br/>&gt; Richard Foley<br/>&gt; ---<br/>&gt; Ciao - Shorter than Aufwiedersehen<br/>&gt; <br/>&gt; http://www.oreilly.com/catalog/perldebugpr/index.html<br/>&gt; <br/>&gt; On Tuesday 04 January 2005 09:47, Sandeep Warikoo wrote:<br/>&gt; &gt; Hi,<br/>&gt; &gt;<br/>&gt; &gt; I&#39;m trying the access oracle through perl, but am getting the error<br/>&gt; &gt; &quot;ERROR OCIEnvInit&quot;.<br/>&gt; &gt;<br/>&gt; &gt; My perl script is:<br/>&gt; &gt;<br/>&gt; &gt; -------------------------------------------------------------------------<br/>&gt; &gt; use DBI;<br/>&gt; &gt;<br/>&gt; &gt; $ENV{ORACLE_HOME}=&#39;/data/oracle/product/9.2.0&#39;;<br/>&gt; &gt;<br/>&gt; &gt; my $dbh = DBI-&gt;connect(&quot;dbi:Oracle:d7_bilab03&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;) or<br/>&gt; &gt; die &quot;couldn&#39;t connect to database: $DBI::errstr\n&quot;;<br/>&gt; &gt;<br/>&gt; &gt; --------------------------------------------------------------------------<br/>&gt; &gt;<br/>&gt; &gt; Does anyone know how to solve this?<br/>&gt; &gt;<br/>&gt; &gt; Regards,<br/>&gt; &gt; Sandeep W.<br/>&gt; <br/>-- <br/>Scott T. Hildreth &lt;shildret@scotth.emsphone.com&gt;<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/01/msg154.html Tue, 04 Jan 2005 06:51:19 +0000 Re: Oracle-Perl Connection Problem by Richard.Foley You usually need to have quite a few environment variables set before you can <br/>access Oracle, as the error message (OCIEnvInit) roughly indicates. Try <br/>reading the docs that came with the DBI (and DBD::Oracle particularly), I <br/>believe there are many examples in there.<br/><br/>You are at least short of <br/><br/> ORACLE_SID or TWO_TASK<br/><br/>Ciao<br/>Richard Foley<br/>---<br/>Ciao - Shorter than Aufwiedersehen<br/><br/>http://www.oreilly.com/catalog/perldebugpr/index.html<br/><br/>On Tuesday 04 January 2005 09:47, Sandeep Warikoo wrote:<br/>&gt; Hi,<br/>&gt;<br/>&gt; I&#39;m trying the access oracle through perl, but am getting the error<br/>&gt; &quot;ERROR OCIEnvInit&quot;.<br/>&gt;<br/>&gt; My perl script is:<br/>&gt;<br/>&gt; -------------------------------------------------------------------------<br/>&gt; use DBI;<br/>&gt;<br/>&gt; $ENV{ORACLE_HOME}=&#39;/data/oracle/product/9.2.0&#39;;<br/>&gt;<br/>&gt; my $dbh = DBI-&gt;connect(&quot;dbi:Oracle:d7_bilab03&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;) or<br/>&gt; die &quot;couldn&#39;t connect to database: $DBI::errstr\n&quot;;<br/>&gt;<br/>&gt; --------------------------------------------------------------------------<br/>&gt;<br/>&gt; Does anyone know how to solve this?<br/>&gt;<br/>&gt; Regards,<br/>&gt; Sandeep W.<br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/01/msg153.html Tue, 04 Jan 2005 03:41:26 +0000 Oracle-Perl Connection Problem by Sandeep Warikoo Hi,<br/><br/>I&#39;m trying the access oracle through perl, but am getting the error <br/>&quot;ERROR OCIEnvInit&quot;.<br/><br/>My perl script is:<br/><br/>-------------------------------------------------------------------------<br/>use DBI;<br/><br/>$ENV{ORACLE_HOME}=&#39;/data/oracle/product/9.2.0&#39;;<br/><br/>my $dbh = DBI-&gt;connect(&quot;dbi:Oracle:d7_bilab03&quot;,&quot;hpbi_owner&quot;,&quot;hpbi&quot;) or <br/>die &quot;couldn&#39;t connect to database: $DBI::errstr\n&quot;;<br/><br/>--------------------------------------------------------------------------<br/><br/>Does anyone know how to solve this?<br/><br/>Regards,<br/>Sandeep W.<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2005/01/msg152.html Tue, 04 Jan 2005 02:16:55 +0000 Parrot NCI interface for Oracle OCI by Tim Bunce Thanks!<br/><br/>Anyone interested in writing a utility to generate a Parrot NCI<br/>interface for Oracle OCI? (Basically &quot;just&quot; parse oracle header<br/>files and spit out Parrot NCI function interface definitions.)<br/><br/>If you&#39;re interested then post to the oracle-oci@perl.org mailinglist<br/>(which is also used for Oracle::OCI module).<br/><br/>Tim.<br/><br/><br/>On Fri, Nov 19, 2004 at 04:50:45PM +0000, Charles Jardine wrote:<br/>&gt; I have just tried to compile Oracle::OCI 0.06 under DBI 1.46<br/>&gt; and DBD::Oracle 1.16. (Using perl 5.8.5-dor under Solaris 8).<br/>&gt; The compilation failed. The first error message was:<br/>&gt; <br/>&gt; &quot;OCI.xs&quot;, line 6: cannot find include file: &lt;Oracle.h&gt;<br/>&gt; <br/>&gt; The cause of the problem is a small change in the behaviour of<br/>&gt; DBI::DBD::dbd_dbi_arch_dir(). In DBI 1.43, this returned a<br/>&gt; string ending with &#39;/DBI&#39;, in 1.46 the string ends with &#39;/DBI/&#39;.<br/>&gt; The extra &#39;/&#39; confuses the Makefile.PL that is created by<br/>&gt; Oracle-OCI-0.06/boot, so that it does not set the include path<br/>&gt; correctly for the compilation.<br/>&gt; <br/>&gt; I have attached a patch. I hope this helps someone.<br/>&gt; <br/>&gt; -- <br/>&gt; Charles Jardine - Computing Service, University of Cambridge<br/>&gt; cj10@cam.ac.uk Tel: +44 1223 334506, Fax: +44 1223 334679<br/><br/>&gt; diff -u -r Oracle-OCI-0.06/boot Oracle-OCI-0.06.patched/boot<br/>&gt; --- Oracle-OCI-0.06/boot Thu Aug 30 16:49:24 2001<br/>&gt; +++ Oracle-OCI-0.06.patched/boot Fri Nov 19 16:37:51 2004<br/>&gt; @@ -293,7 +293,7 @@<br/>&gt; use DBI::DBD;<br/>&gt; my $dbi_dir = dbd_dbi_dir();<br/>&gt; my $dbi_arch_dir = dbd_dbi_arch_dir();<br/>&gt; - (my $ora_arch_dir = $dbi_arch_dir) =~ s!DBI$!DBD/Oracle!;<br/>&gt; + (my $ora_arch_dir = $dbi_arch_dir) =~ s!DBI/?$!DBD/Oracle!;<br/>&gt; }.&quot;\n&quot; if $. == 1;<br/>&gt; s!^\);! CONFIGURE =&gt; \\&amp;wmf_config,\n);!;<br/>&gt; print $new_mk $_;<br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2004/11/msg151.html Sat, 20 Nov 2004 03:32:21 +0000 Re: building an Oracle::Oci with ExtUtils::XSBuilder by Tim Bunce On Tue, Oct 07, 2003 at 12:10:26PM +0100, Andy Crichton wrote:<br/>&gt; Hi,<br/>&gt; I have started looking at this but must admit to being at a bit of a loss<br/>&gt; as to how I proceed. I have produced my maps and tables from the oci headers<br/>&gt; (which appear to only reside in $ORACLE_HOME/rdbms/demo???) but as I am more<br/>&gt; of a C programmer and perl &quot;user&quot; I am not certain exactly how I turn these<br/>&gt; into Oracle::Oci and how I insert any C code which is required?<br/>&gt; <br/>&gt; Any pointers or advice would be much appreciated.<br/><br/>Praveen Ray (CC&#39;d) is also looking into this.<br/><br/>Perhaps in the short term a good &#39;next step&#39; would be to add an<br/>option to the &quot;boot&quot; script to tell it to use ExtUtils::XSBuilder<br/>instead of C::Scan. Obviously in the short term it won&#39;t do the<br/>complete job but if (one of) you could post a patch for that part<br/>then we can all play along at home. Specifically, I could more<br/>easily guide you next steps...<br/><br/>Tim.<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/10/msg150.html Fri, 10 Oct 2003 09:04:43 +0000 building an Oracle::Oci with ExtUtils::XSBuilder by Andy Crichton Hi,<br/> I have started looking at this but must admit to being at a bit of a loss<br/>as to how I proceed. I have produced my maps and tables from the oci headers<br/>(which appear to only reside in $ORACLE_HOME/rdbms/demo???) but as I am more<br/>of a C programmer and perl &quot;user&quot; I am not certain exactly how I turn these<br/>into Oracle::Oci and how I insert any C code which is required?<br/><br/>Any pointers or advice would be much appreciated.<br/><br/>Cheers<br/>Andy Crichton<br/><br/><br/>__________________________<br/>This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. The contents are confidential and may be privileged.<br/>Any views or opinions expressed are those of the sender and may not reflect the views or opinions of the company and the company accepts no liability in respect thereof.<br/>If you have received this email in error please notify postmaster@abibuildingdata.com immediately.<br/><br/>________________________________________________________________________<br/>This e-mail has been scanned for all viruses by Star Internet. The<br/>service is powered by MessageLabs. For more information on a proactive<br/>anti-virus service working around the clock, around the globe, visit:<br/>http://www.star.net.uk<br/>________________________________________________________________________<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/10/msg149.html Tue, 07 Oct 2003 04:11:13 +0000 Re: Oracle::OCI still in Beta? by Tim Bunce On Tue, Sep 23, 2003 at 05:07:48PM -0500, Scott Dial wrote:<br/>&gt; Greetings!<br/>&gt; <br/>&gt; In trying to get started with PERL and Oracle,<br/><br/>The Oracle::OCI module is not for the fainthearted. I wouldn&#39;t<br/>recommend it to people just getting started with Perl and Oracle.<br/><br/>&gt; I thought it encouraging to<br/>&gt; read that a beta version of Oracle::OCI was made public back in<br/>&gt; 2000/2001. However, I haven&#39;t heard or seen anything of it as of<br/>&gt; late. Does anyone know what the plans are for the raw OCI driver?<br/><br/>Lots of plans for good things, but no time now, nor any time soon.<br/><br/>I&#39;d be happy to find a volunteer to take over development (I can<br/>provide lots of help and design suggestions but they&#39;d need to be<br/>pretty self-sufficient in dealing with the C code as I wouldn&#39;t<br/>have time to get into debugging).<br/><br/>&gt; Will it just be incorporated into the DBD::Oracle driver?<br/><br/>It may play a part in a Perl 6 implementation of DBD::Oracle.<br/>Either directly or perhaps just in concept. Or maybe not.<br/><br/>Tim.<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/09/msg148.html Wed, 24 Sep 2003 04:22:16 +0000 Re: Oracle-OCI-0.06 does not boot on Sun Solaris 8 with Perl 8 by Tim Bunce Great. Please let me know how you get on with it.<br/><br/>Tim.<br/><br/>On Tue, Aug 12, 2003 at 02:10:52PM +0200, Peter Dyballa wrote:<br/>&gt; Hello once more!<br/>&gt; <br/>&gt; I finally managed to make this package available on our server. One <br/>&gt; cause for the problems was that I had installed the package <br/>&gt; perl_s-5.8.0-sol8-sparc-local. This one contains the perl lib as an DSO, <br/>&gt; and due to that fact and that it&#39;s one year younger than the &#39;static&#39; <br/>&gt; version perl-5.8.0-sol8-sparc-local it has some more packages already <br/>&gt; contained. Somewhere here around is the reason to find that h2xs failed <br/>&gt; with some C header files in ${ORACLE_HOME}/rdbms/demo. This was the <br/>&gt; reason that I had to add some data types and function descriptions by <br/>&gt; hand. (I had to change the paths to the perl executable in boot and h2xs.)<br/>&gt; <br/>&gt; With a bit of Emacs Lisp (some variants, some interactive invocations, <br/>&gt; depending on the number of lines in the #if or the #else branches)<br/>&gt; <br/>&gt; (replace-regexp &quot;^#if.*<br/>&gt; \\(.*^J<br/>&gt; .*^J<br/>&gt; .*\\)^J<br/>&gt; #else^J<br/>&gt; .*^J<br/>&gt; .*^J<br/>&gt; .*^J<br/>&gt; #endif&quot; &quot;\\1&quot; nil nil nil)<br/>&gt; <br/>&gt; <br/>&gt; I had re-written oci8dp.h that statements like<br/>&gt; <br/>&gt; sword<br/>&gt; #if defined(__STDC__) || defined(__cplusplus)<br/>&gt; OCIDirPathLoadStream(OCIDirPathCtx *dpctx, OCIDirPathStream *dpstr,<br/>&gt; OCIError *errhp);<br/>&gt; #else<br/>&gt; OCIDirPathLoadStream(/*_ OCIDirPathCtx *dpctx, OCIDirPathStream *dpstr,<br/>&gt; OCIError *errhp _*/);<br/>&gt; #endif<br/>&gt; <br/>&gt; <br/>&gt; became useful as<br/>&gt; <br/>&gt; sword<br/>&gt; OCIDirPathLoadStream(OCIDirPathCtx *dpctx, OCIDirPathStream *dpstr,<br/>&gt; OCIError *errhp);<br/>&gt; <br/>&gt; <br/>&gt; -- and I had the *static* Perl 5.8 package installed. So h2xs became <br/>&gt; able to parse the whole C header file completely. No data had to be <br/>&gt; added to any file.<br/>&gt; <br/>&gt; <br/>&gt; In case you were curious I attached h2xs.log and a log of &#39;boot -all&#39; to <br/>&gt; my eMail.<br/>&gt; <br/>&gt; <br/>&gt; Thank you for your help and the interface!<br/>&gt; <br/>&gt; -- <br/>&gt; Greetings<br/>&gt; <br/>&gt; Pete Nols GES AG<br/>&gt; Gervinusstra&szlig;e 18-22<br/>&gt; (Peter Dyballa) 069-92024&middot;795 60322 Frankfurt am Main<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/08/msg147.html Tue, 12 Aug 2003 07:45:51 +0000 Re: Oracle-OCI-0.06 does not boot on Sun Solaris 8 with Perl 8 by Tim Bunce On Mon, Aug 11, 2003 at 04:39:03PM +0200, Peter Dyballa wrote:<br/>&gt; t/05dbi.....Can&#39;t load<br/>&gt; &#39;/home/dyballpe/Perl/Oracle-OCI-0.06/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.so&#39;<br/>&gt; for module Oracle::OCI: ld.so.1: /usr/local/bin/perl: fatal:<br/>&gt; relocation error: file<br/>&gt; /home/dyballpe/Perl/Oracle-OCI-0.06/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.so:<br/>&gt; symbol ora_getptr_OCIEnvPtrPtr: referenced symbol not found at<br/>&gt; /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.<br/>&gt; at t/05dbi.t line 8<br/>&gt; <br/>&gt; Particularly this ora_getptr_OCIEnvPtrPtr symbol looks a bit starnge ...<br/>&gt; <br/>&gt; What can I do to improve booting?<br/><br/>Add an entry to getptrdef.h<br/><br/>Tim.<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/08/msg146.html Mon, 11 Aug 2003 09:27:13 +0000 Oracle-OCI-0.06 does not boot on Sun Solaris 8 with Perl 8 by Peter Dyballa Hello!<br/><br/>On a Sun server E450 with Solaris 8/SunOS 5.8 I am trying to install <br/>Oracle-OCI-0.06. Oracle is of version 8.1.7.0. Since the system&#39;s Perl <br/>is only 5.005 I installed the Perl 5.8 packege from Sun Freeware.<br/><br/>First boot exacution was:<br/><br/> v-string in use/require non-portable at ./boot line 3.<br/> Regex for h2xs ignores:<br/> ^OCI(?!AQ|AttrGet|Bind|Cache|Callback|Complex|Context|Date|DirPath|EnvCallback|Extract|File|Format|Interval|Iter|Memory|Message|MultiByte|Object|Pickler|Raw|Ref|Security|SharedLibInit|StmtBindByName|StmtBindByPos|StmtGetBindInfo|String|Subscription|Table|Thread|Type|TypeArrayByName|TypeArrayByRef|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE)|^SQL<br/> Complete h2xs arguments: ./h2xs -d -O -n Oracle::OCI -F<br/> -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public<br/> -I/opt/oracle/network/public -I/opt/oracle/plsql/public<br/> -I/opt/oracle/rdbms/demo,/opt/oracle/rdbms/public,/opt/oracle/network/public,/opt/oracle/plsql/public<br/> -E get_oci_error,get_oci_handle,oci_buf_len,OCIAttrGet -M<br/> &#39;^OCI(?!AQ|AttrGet|Bind|Cache|Callback|Complex|Context|Date|DirPath|EnvCallback|Extract|File|Format|Interval|Iter|Memory|Message|MultiByte|Object|Pickler|Raw|Ref|Security|SharedLibInit|StmtBindByName|StmtBindByPos|StmtGetBindInfo|String|Subscription|Table|Thread|Type|TypeArrayByName|TypeArrayByRef|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE)|^SQL&#39;<br/> -k -x /opt/oracle/rdbms/demo/oci.h<br/> Running h2xs...<br/> Scanning typemaps...<br/> Scanning /usr/local/lib/perl5/5.8.0/ExtUtils/typemap<br/> Scanning /opt/oracle/rdbms/demo/oci.h for functions...<br/> sh: -I/opt/oracle/rdbms/demo: not found<br/> sh: -I/opt/oracle/rdbms/demo: not found<br/> Scanning /opt/oracle/rdbms/demo/oci.h for typedefs...<br/> Writing Oracle/OCI/OCI.pm<br/> Writing Oracle/OCI/OCI.xs<br/> Writing Oracle/OCI/Makefile.PL<br/> Writing Oracle/OCI/test.pl<br/> Writing Oracle/OCI/Changes<br/> Writing Oracle/OCI/MANIFEST<br/> Editing OCI.xs...<br/> Editing Makefile.PL...<br/> Building...<br/> Using DBI 1.37 installed in<br/> /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI<br/> Checking if your kit is complete...<br/> Looks good<br/> Typemap h2xs.typemap not found.<br/> Writing Makefile for Oracle::OCI<br/> cp OCI.pm blib/lib/Oracle/OCI.pm<br/> AutoSplitting blib/lib/Oracle/OCI.pm (blib/lib/auto/Oracle/OCI)<br/> /usr/local/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp <br/> -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap -typemap<br/> typemap OCI.xs &gt; OCI.xsc &amp;&amp; mv OCI.xsc OCI.c<br/> Error: &#39;OCIError *&#39; not in typemap in extra.xsh, line 11<br/> Error: &#39;ub4&#39; not in typemap in extra.xsh, line 68<br/> Error: &#39;ub4&#39; not in typemap in extra.xsh, line 71<br/> Error: &#39;OCIError *&#39; not in typemap in extra.xsh, line 72<br/> Please specify prototyping behavior for OCI.xs (see perlxs manual)<br/> *** Error code 1<br/> make: Fatal error: Command failed for target `OCI.c&#39;<br/><br/><br/>So I tried to add a description for OCIError and the data type ub4. When <br/>I finally had fixed all missing functions and data types a ./boot <br/>proceeded like that:<br/><br/> Regex for h2xs ignores:<br/> ^OCI(?!AQ|AttrGet|Bind|Cache|Callback|Complex|Context|Date|DirPath|EnvCallback|Extract|File|Format|Interval|Iter|Memory|Message|MultiByte|Object|Pickler|Raw|Ref|Security|SharedLibInit|StmtBindByName|StmtBindByPos|StmtGetBindInfo|String|Subscription|Table|Thread|Type|TypeArrayByName|TypeArrayByRef|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE)|^SQL<br/> Complete h2xs arguments: ./h2xs -d -O -n Oracle::OCI -F<br/> -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public<br/> -I/opt/oracle/network/public -I/opt/oracle/plsql/public<br/> -I/opt/oracle/precomp/public -I/opt/oracle/xdk/c/parser/include<br/> -I/opt/oracle/rdbms/demo,/opt/oracle/rdbms/public,/opt/oracle/network/public,/opt/oracle/plsql/public,/opt/oracle/precomp/public,/opt/oracle/xdk/c/parser/include<br/> -E get_oci_error,get_oci_handle,oci_buf_len,OCIAttrGet -M<br/> &#39;^OCI(?!AQ|AttrGet|Bind|Cache|Callback|Complex|Context|Date|DirPath|EnvCallback|Extract|File|Format|Interval|Iter|Memory|Message|MultiByte|Object|Pickler|Raw|Ref|Security|SharedLibInit|StmtBindByName|StmtBindByPos|StmtGetBindInfo|String|Subscription|Table|Thread|Type|TypeArrayByName|TypeArrayByRef|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE)|^SQL&#39;<br/> -k -x /opt/oracle/rdbms/demo/oci.h<br/> Running h2xs...<br/> Scanning typemaps...<br/> Scanning /usr/local/lib/perl5/5.8.0/ExtUtils/typemap<br/> Scanning /opt/oracle/rdbms/demo/oci.h for functions...<br/> sh: -I/opt/oracle/rdbms/demo: not found<br/> sh: -I/opt/oracle/rdbms/demo: not found<br/> Scanning /opt/oracle/rdbms/demo/oci.h for typedefs...<br/> Writing Oracle/OCI/OCI.pm<br/> Writing Oracle/OCI/OCI.xs<br/> Writing Oracle/OCI/Makefile.PL<br/> Writing Oracle/OCI/test.pl<br/> Writing Oracle/OCI/Changes<br/> Writing Oracle/OCI/MANIFEST<br/> Editing OCI.xs...<br/> Editing Makefile.PL...<br/> Building...<br/> Using DBI 1.37 installed in<br/> /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI<br/> Checking if your kit is complete...<br/> Looks good<br/> Typemap h2xs.typemap not found.<br/> Writing Makefile for Oracle::OCI<br/> cp OCI.pm blib/lib/Oracle/OCI.pm<br/> AutoSplitting blib/lib/Oracle/OCI.pm (blib/lib/auto/Oracle/OCI)<br/> /usr/local/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp <br/> -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap -typemap<br/> typemap OCI.xs &gt; OCI.xsc &amp;&amp; mv OCI.xsc OCI.c<br/> Please specify prototyping behavior for OCI.xs (see perlxs manual)<br/> cc -c -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public<br/> -I/opt/oracle/network/public -I/opt/oracle/plsql/public<br/> -I/opt/oracle/precomp/public -I/opt/oracle/xdk/c/parser/include<br/> -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBD/Oracle<br/> -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI -Xt<br/> -mc -xc99 -xcsi -xprefetch=auto -xcrossfile -xvector=yes -mt<br/> -xautopar -xreduction -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br/> -g -DVERSION=\&quot;0.01\&quot; -DXS_VERSION=\&quot;0.01\&quot; -KPIC<br/> &quot;-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE&quot; <br/> -I/opt/oracle/rdbms/demo OCI.c<br/> &quot;OCI.c&quot;, line 9632: warning: implicit function declaration:<br/> ora_getptr_OCIEnvPtrPtr<br/> &quot;OCI.c&quot;, line 9632: warning: improper pointer/integer combination:<br/> op &quot;=&quot;<br/> &quot;extra.xsh&quot;, line 7: warning: implicit function declaration:<br/> oci_util_init<br/> cc -c -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public<br/> -I/opt/oracle/network/public -I/opt/oracle/plsql/public<br/> -I/opt/oracle/precomp/public -I/opt/oracle/xdk/c/parser/include<br/> -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBD/Oracle<br/> -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI -Xt<br/> -mc -xc99 -xcsi -xprefetch=auto -xcrossfile -xvector=yes -mt<br/> -xautopar -xreduction -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br/> -g -DVERSION=\&quot;0.01\&quot; -DXS_VERSION=\&quot;0.01\&quot; -KPIC<br/> &quot;-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE&quot; <br/> -I/opt/oracle/rdbms/demo utility.c<br/> Running Mkbootstrap for Oracle::OCI ()<br/> chmod 644 OCI.bs<br/> rm -f blib/arch/auto/Oracle/OCI/OCI.so<br/> LD_RUN_PATH=&quot;&quot; cc -G -L/usr/local/lib OCI.o utility.o<br/> -L/opt/oracle/lib/ -L/opt/oracle/rdbms/lib/ -lclntsh<br/> /opt/oracle/rdbms/lib/kpuadef.o -lnbeq8 -lnhost8 -lnus8 -lnldap8<br/> -lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -lnoname8 -lntcp8 -lntcps8<br/> -lnent8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8 -lnro8 -lnbeq8 -lnhost8<br/> -lnus8 -lnldap8 -lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -lnoname8<br/> -lntcp8 -lntcps8 -lnent8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8<br/> -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lwtc8 -lmm -lnls8<br/> -lcore8 -lnls8 -lcore8 -lnls8 -lnbeq8 -lnhost8 -lnus8 -lnldap8<br/> -lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -lnoname8 -lntcp8 -lntcps8<br/> -lnent8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8 -lnro8 -lnbeq8 -lnhost8<br/> -lnus8 -lnldap8 -lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -lnoname8<br/> -lntcp8 -lntcps8 -lnent8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8<br/> -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -ltrace8 -lnls8 -lcore8<br/> -lnls8 -lcore8 -lnls8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8<br/> -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 -lnsl -lsocket -lgen -ldl<br/> -lsched -lsched -R/opt/oracle/lib -laio -lposix4 -lkstat -lm<br/> -lthread -o blib/arch/auto/Oracle/OCI/OCI.so <br/> chmod 755 blib/arch/auto/Oracle/OCI/OCI.so<br/> cp OCI.bs blib/arch/auto/Oracle/OCI/OCI.bs<br/> chmod 644 blib/arch/auto/Oracle/OCI/OCI.bs<br/> Manifying blib/man3/Oracle::OCI.3<br/> PERL_DL_NONLAZY=1 /usr/local/bin/perl &quot;-MExtUtils::Command::MM&quot; &quot;-e&quot;<br/> &quot;test_harness(0, &#39;blib/lib&#39;, &#39;blib/arch&#39;)&quot; t/*.t<br/> t/01base....Can&#39;t load<br/> &#39;/home/dyballpe/Perl/Oracle-OCI-0.06/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.so&#39;<br/> for module Oracle::OCI: ld.so.1: /usr/local/bin/perl: fatal:<br/> relocation error: file<br/> /home/dyballpe/Perl/Oracle-OCI-0.06/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.so:<br/> symbol ora_getptr_OCIEnvPtrPtr: referenced symbol not found at<br/> /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.<br/> at t/01base.t line 9<br/> Compilation failed in require at t/01base.t line 9.<br/> BEGIN failed--compilation aborted at t/01base.t line 9.<br/> t/01base....dubious<br/> Test returned status 255 (wstat 65280, 0xff00)<br/> t/05dbi.....Can&#39;t load<br/> &#39;/home/dyballpe/Perl/Oracle-OCI-0.06/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.so&#39;<br/> for module Oracle::OCI: ld.so.1: /usr/local/bin/perl: fatal:<br/> relocation error: file<br/> /home/dyballpe/Perl/Oracle-OCI-0.06/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.so:<br/> symbol ora_getptr_OCIEnvPtrPtr: referenced symbol not found at<br/> /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.<br/> at t/05dbi.t line 8<br/> Compilation failed in require at t/05dbi.t line 8.<br/> BEGIN failed--compilation aborted at t/05dbi.t line 8.<br/> t/05dbi.....dubious<br/> Test returned status 255 (wstat 65280, 0xff00)<br/> FAILED--2 test scripts could be run, alas--no output ever seen<br/> *** Error code 255<br/> make: Fatal error: Command failed for target `test_dynamic&#39;<br/><br/><br/>Particularly this ora_getptr_OCIEnvPtrPtr symbol looks a bit starnge ...<br/><br/><br/>What can I do to improve booting?<br/><br/>-- <br/>Greetings<br/><br/>Pete Nols GES AG<br/> Gervinusstra&szlig;e 18-22<br/>(Peter Dyballa) 069-92024&middot;795 60322 Frankfurt am Main<br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/08/msg145.html Mon, 11 Aug 2003 07:58:25 +0000 I need help for installation DBD::ORACLE by fgonzava Hi,<br/> I have a very urgent questions for installing<br/>DBD::ORACLE.<br/><br/>When I run the command &quot;make test&quot;, after I&#39;ve ran the command &quot;perl Makefile.PL<br/>-l&quot; and the command &quot;make&quot;; following error appeared :<br/><br/>************************************************************************<br/> /bin/sh -c true<br/> /bin/sh -c true<br/> /usr/bin/perl -I/opt/perl5/lib/5.6.0/PA-RISC1.1 -I/opt/perl5/lib/5.6.0<br/>/opt/perl5/lib/5.6.0/ExtUtils/xsubpp -typemap /opt/perl5/lib/5.6.0/ExtUtils/typemap<br/>Oracle.xs &gt; Oracle.xsc &amp;&amp; mv Oracle.xsc Oracle.c<br/> cc -c -I/oracle/8.1.7/rdbms/public -I/oracle/8.1.7/rdbms/demo -I/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI<br/>-Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O +Onolimit -DVERSION=\&quot;1.14\&quot;<br/> -DXS_VERSION=\&quot;1.14\&quot; +z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE -DUTF8_SUPPORT<br/>Oracle.c<br/> LD_RUN_PATH=&quot;/oracle/8.1.7/lib&quot; ld -o blib/arch/auto/DBD/Oracle/Oracle.sl<br/> -b -s -a shared Oracle.o dbdimp.o oci7.o oci8.o -L/oracle/8.1.7/lib<br/>-lclntsh -lrt -lpthread -ldld<br/> chmod 755 blib/arch/auto/DBD/Oracle/Oracle.sl<br/> cp ora_explain blib/script/ora_explain<br/> /usr/bin/perl -I/opt/perl5/lib/5.6.0/PA-RISC1.1 -I/opt/perl5/lib/5.6.0<br/>-MExtUtils::MakeMaker -e &quot;MY-&gt;fixin(shift)&quot; blib/script/ora_explain<br/> PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/opt/perl5/lib/5.6.0/PA-RISC1.1<br/>-I/opt/perl5/lib/5.6.0 -e &#39;use Test::Harness qw(&amp;runtests $verbose); $verbose=0;<br/>runtests @ARGV;&#39; t/*.t<br/>t/base............../usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>Failed to load Oracle extension and/or shared libraries:<br/>install_driver(Oracle) failed: Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39;<br/>for module DBD::Oracle: Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm<br/>line 200.<br/> at (eval 1) line 3<br/>Compilation failed in require at (eval 1) line 3.<br/>Perhaps a required shared library or dll isn&#39;t installed where expected<br/> at t/base.t line 19<br/>The remaining tests will probably also fail with the same error.<br/><br/>*** Please read the README and README.help files for help. ***<br/><br/>t/base..............ok 3/5FAILED tests 4-5<br/><br/> Failed 2/5 tests, 60.00% okay<br/>t/cursor............/usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39; for module DBD::Oracle:<br/>Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line<br/>200.<br/> at t/cursor.t line 18<br/>Compilation failed in require at t/cursor.t line 18.<br/>BEGIN failed--compilation aborted at t/cursor.t line 18.<br/>t/cursor............dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/general.........../usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>install_driver(Oracle) failed: Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39;<br/>for module DBD::Oracle: Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm<br/>line 200.<br/> at (eval 1) line 3<br/>Compilation failed in require at (eval 1) line 3.<br/>Perhaps a required shared library or dll isn&#39;t installed where expected<br/> at t/general.t line 20<br/>t/general...........dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/long............../usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39; for module DBD::Oracle:<br/>Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line<br/>200.<br/> at t/long.t line 4<br/>Compilation failed in require at t/long.t line 4.<br/>BEGIN failed--compilation aborted at t/long.t line 4.<br/>t/long..............dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/meta............../usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>install_driver(Oracle) failed: Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39;<br/>for module DBD::Oracle: Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm<br/>line 200.<br/> at (eval 1) line 3<br/>Compilation failed in require at (eval 1) line 3.<br/>Perhaps a required shared library or dll isn&#39;t installed where expected<br/> at t/meta.t line 23<br/>t/meta..............dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/ph_type.........../usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39; for module DBD::Oracle:<br/>Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line<br/>200.<br/> at t/ph_type.t line 18<br/>Compilation failed in require at t/ph_type.t line 18.<br/>BEGIN failed--compilation aborted at t/ph_type.t line 18.<br/>t/ph_type...........dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/plsql............./usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39; for module DBD::Oracle:<br/>Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line<br/>200.<br/> at t/plsql.t line 17<br/>Compilation failed in require at t/plsql.t line 17.<br/>BEGIN failed--compilation aborted at t/plsql.t line 17.<br/>t/plsql.............dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/reauth............skipped test on this platform<br/>t/select............/usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39; for module DBD::Oracle:<br/>Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line<br/>200.<br/> at t/select.t line 4<br/>Compilation failed in require at t/select.t line 4.<br/>BEGIN failed--compilation aborted at t/select.t line 4.<br/>t/select............dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>Failed Test Status Wstat Total Fail Failed List of failed<br/>-------------------------------------------------------------------------------<br/>t/base.t 5 2 40.00% 4-5<br/>t/cursor.t 255 65280 ?? ?? % ??<br/>t/general.t 255 65280 ?? ?? % ??<br/>t/long.t 255 65280 ?? ?? % ??<br/>t/meta.t 255 65280 ?? ?? % ??<br/>t/ph_type.t 255 65280 ?? ?? % ??<br/>t/plsql.t 255 65280 ?? ?? % ??<br/>t/select.t 255 65280 ?? ?? % ??<br/>1 test skipped.<br/>Failed 8/9 test scripts, 11.11% okay. 2/5 subtests failed, 60.00% okay.<br/>*** Error exit code 2<br/><br/>Stop.<br/>************************************************************************<br/><br/><br/>And when I run the command &quot;make&quot;, after I&#39;ve ran the command &quot;perl Makefile.PL&quot;;<br/>following error appeared :<br/><br/>************************************************************************<br/>mkdir blib<br/>mkdir blib/lib<br/>mkdir blib/lib/DBD<br/>mkdir blib/arch<br/>mkdir blib/arch/auto<br/>mkdir blib/arch/auto/DBD<br/>mkdir blib/arch/auto/DBD/Oracle<br/>mkdir blib/lib/auto<br/>mkdir blib/lib/auto/DBD<br/>mkdir blib/lib/auto/DBD/Oracle<br/>mkdir blib/man1<br/>mkdir blib/man3<br/>cp Oracle.pm blib/lib/DBD/Oracle.pm<br/>cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm<br/>cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm<br/>cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h<br/>cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h<br/>cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h<br/>cp oraperl.ph blib/lib/oraperl.ph<br/>cp Oraperl.pm blib/lib/Oraperl.pm<br/> /bin/sh -c true<br/> /bin/sh -c true<br/> /usr/bin/perl -p -e &quot;s/~DRIVER~/Oracle/g&quot; &lt; /opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI/Driver.xst<br/>&gt; Oracle.xsi<br/> /usr/bin/perl -I/opt/perl5/lib/5.6.0/PA-RISC1.1 -I/opt/perl5/lib/5.6.0<br/>/opt/perl5/lib/5.6.0/ExtUtils/xsubpp -typemap /opt/perl5/lib/5.6.0/ExtUtils/typemap<br/>Oracle.xs &gt; Oracle.xsc &amp;&amp; mv Oracle.xsc Oracle.c<br/> cc -c -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public -I/oracle/8.1.7/plsql/public<br/>-I/oracle/8.1.7/network/public -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public<br/>-I/oracle/8.1.7/rdbms/demo -I/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI<br/>-Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O +Onolimit -DVERSION=\&quot;1.14\&quot;<br/> -DXS_VERSION=\&quot;1.14\&quot; +z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE -DUTF8_SUPPORT<br/>Oracle.c<br/> cc -c -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public -I/oracle/8.1.7/plsql/public<br/>-I/oracle/8.1.7/network/public -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public<br/>-I/oracle/8.1.7/rdbms/demo -I/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI<br/>-Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O +Onolimit -DVERSION=\&quot;1.14\&quot;<br/> -DXS_VERSION=\&quot;1.14\&quot; +z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE -DUTF8_SUPPORT<br/>dbdimp.c<br/> cc -c -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public -I/oracle/8.1.7/plsql/public<br/>-I/oracle/8.1.7/network/public -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public<br/>-I/oracle/8.1.7/rdbms/demo -I/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI<br/>-Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O +Onolimit -DVERSION=\&quot;1.14\&quot;<br/> -DXS_VERSION=\&quot;1.14\&quot; +z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE -DUTF8_SUPPORT<br/>oci7.c<br/> cc -c -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public -I/oracle/8.1.7/plsql/public<br/>-I/oracle/8.1.7/network/public -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public<br/>-I/oracle/8.1.7/rdbms/demo -I/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI<br/>-Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O +Onolimit -DVERSION=\&quot;1.14\&quot;<br/> -DXS_VERSION=\&quot;1.14\&quot; +z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE -DUTF8_SUPPORT<br/>oci8.c<br/>Running Mkbootstrap for DBD::Oracle ()<br/> chmod 644 Oracle.bs<br/> LD_RUN_PATH=&quot;/oracle/8.1.7/lib:/oracle/8.1.7/rdbms/lib&quot; ld -o blib/arch/auto/DBD/Oracle/Oracle.sl<br/> -b -s -a shared Oracle.o dbdimp.o oci7.o oci8.o -L/oracle/8.1.7/lib/<br/>-L/oracle/8.1.7/rdbms/lib/ /oracle/8.1.7/rdbms/lib/kpudfo.o /oracle/8.1.7/lib/nautab.o<br/>/oracle/8.1.7/lib/naeet.o /oracle/8.1.7/lib/naect.o /oracle/8.1.7/lib/naedhs.o<br/>-lclntsh /oracle/8.1.7/rdbms/lib/kpuadef.o -lnbeq8 -lnhost8 -lnus8 -lnldap8<br/>-lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -ln8 -lncrypt8 -lnoname8 -lntcp8 -lntcps8<br/>-lnsslb8 -lnent8 -lntcp8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8 -lnro8 -lnbeq8<br/>-lnhost8 -lnus8 -lnldap8 -lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -ln8 -lncrypt8<br/>-lnoname8 -lntcp8 -lntcps8 -lnsslb8 -lnent8 -lntcp8 -lntns8 -lnsgr8 -lnzjs8<br/>-ln8 -lnl8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lwtc8 -lmm -lnls8<br/>-lcore8 -lnls8 -lcore8 -lnls8 -lnbeq8 -lnhost8 -lnus8 -lnldap8 -lldapclnt8<br/>-lnsslb8 -ln8 -lncrypt8 -ln8 -lncrypt8 -lnoname8 -lntcp8 -lntcps8 -lnsslb8<br/>-lnent8 -lntcp8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8 -lnro8 -lnbeq8 -lnho<br/>st8 -lnus8 -lnldap8 -lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -ln8 -lncrypt8 -lnoname8<br/>-lntcp8 -lntcps8 -lnsslb8 -lnent8 -lntcp8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8<br/>-lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -ltrace8 -lnls8 -lcore8 -lnls8<br/>-lcore8 -lnls8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lnls8 -lcore8<br/>-lnls8 -lcore8 -lnls8 -l:libcl.a -l:librt.sl -lpthread -l:libnss_dns.1 -l:libdld.sl<br/>-lm -lpls8 -lsql8 -lqsmashr<br/>ld: Can&#39;t find library: &quot;nbeq8&quot;<br/>*** Error exit code 1<br/><br/>Stop.<br/>************************************************************************<br/><br/><br/>Configuration:<br/>HPUX 11.00<br/>Oracle 8.1.7<br/>Perl 5.6.0<br/>DBI 1.37<br/>DBD 1.14<br/><br/>thanking you in advance<br/>Regards<br/>Francisco.<br/><br/>&iexcl;&iexcl;&iexcl;OFERTA VERANO: TISCALI ADSL TOP 24 h. a 9,95 &#128;/mes<br/>m&aacute;s m&uacute;sica y webcam GRATIS!!!<br/><br/>http://acceso.tiscali.es/html/mxtop.html?did=adt-7390015<br/><br/><br/><br/><br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/07/msg144.html Wed, 30 Jul 2003 03:35:38 +0000 I need help for installation DBD::ORACLE by Francisco Gonzïlez Vïzquez Hi,<br/> I have a very urgent questions for installing<br/>DBD::ORACLE.<br/><br/>When I run the command &quot;make test&quot;, after I&#39;ve ran the command &quot;perl Makefile.PL<br/>-l&quot; and the command &quot;make&quot;; following error appeared :<br/><br/>************************************************************************<br/> /bin/sh -c true<br/> /bin/sh -c true<br/> /usr/bin/perl -I/opt/perl5/lib/5.6.0/PA-RISC1.1 -I/opt/perl5/lib/5.6.0<br/>/opt/perl5/lib/5.6.0/ExtUtils/xsubpp -typemap /opt/perl5/lib/5.6.0/ExtUtils/typemap<br/>Oracle.xs &gt; Oracle.xsc &amp;&amp; mv Oracle.xsc Oracle.c<br/> cc -c -I/oracle/8.1.7/rdbms/public -I/oracle/8.1.7/rdbms/demo -I/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI<br/>-Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O +Onolimit -DVERSION=\&quot;1.14\&quot;<br/> -DXS_VERSION=\&quot;1.14\&quot; +z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE -DUTF8_SUPPORT<br/>Oracle.c<br/> LD_RUN_PATH=&quot;/oracle/8.1.7/lib&quot; ld -o blib/arch/auto/DBD/Oracle/Oracle.sl<br/> -b -s -a shared Oracle.o dbdimp.o oci7.o oci8.o -L/oracle/8.1.7/lib<br/>-lclntsh -lrt -lpthread -ldld<br/> chmod 755 blib/arch/auto/DBD/Oracle/Oracle.sl<br/> cp ora_explain blib/script/ora_explain<br/> /usr/bin/perl -I/opt/perl5/lib/5.6.0/PA-RISC1.1 -I/opt/perl5/lib/5.6.0<br/>-MExtUtils::MakeMaker -e &quot;MY-&gt;fixin(shift)&quot; blib/script/ora_explain<br/> PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/opt/perl5/lib/5.6.0/PA-RISC1.1<br/>-I/opt/perl5/lib/5.6.0 -e &#39;use Test::Harness qw(&amp;runtests $verbose); $verbose=0;<br/>runtests @ARGV;&#39; t/*.t<br/>t/base............../usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>Failed to load Oracle extension and/or shared libraries:<br/>install_driver(Oracle) failed: Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39;<br/>for module DBD::Oracle: Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm<br/>line 200.<br/> at (eval 1) line 3<br/>Compilation failed in require at (eval 1) line 3.<br/>Perhaps a required shared library or dll isn&#39;t installed where expected<br/> at t/base.t line 19<br/>The remaining tests will probably also fail with the same error.<br/><br/>*** Please read the README and README.help files for help. ***<br/><br/>t/base..............ok 3/5FAILED tests 4-5<br/><br/> Failed 2/5 tests, 60.00% okay<br/>t/cursor............/usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39; for module DBD::Oracle:<br/>Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line<br/>200.<br/> at t/cursor.t line 18<br/>Compilation failed in require at t/cursor.t line 18.<br/>BEGIN failed--compilation aborted at t/cursor.t line 18.<br/>t/cursor............dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/general.........../usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>install_driver(Oracle) failed: Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39;<br/>for module DBD::Oracle: Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm<br/>line 200.<br/> at (eval 1) line 3<br/>Compilation failed in require at (eval 1) line 3.<br/>Perhaps a required shared library or dll isn&#39;t installed where expected<br/> at t/general.t line 20<br/>t/general...........dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/long............../usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39; for module DBD::Oracle:<br/>Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line<br/>200.<br/> at t/long.t line 4<br/>Compilation failed in require at t/long.t line 4.<br/>BEGIN failed--compilation aborted at t/long.t line 4.<br/>t/long..............dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/meta............../usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>install_driver(Oracle) failed: Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39;<br/>for module DBD::Oracle: Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm<br/>line 200.<br/> at (eval 1) line 3<br/>Compilation failed in require at (eval 1) line 3.<br/>Perhaps a required shared library or dll isn&#39;t installed where expected<br/> at t/meta.t line 23<br/>t/meta..............dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/ph_type.........../usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39; for module DBD::Oracle:<br/>Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line<br/>200.<br/> at t/ph_type.t line 18<br/>Compilation failed in require at t/ph_type.t line 18.<br/>BEGIN failed--compilation aborted at t/ph_type.t line 18.<br/>t/ph_type...........dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/plsql............./usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39; for module DBD::Oracle:<br/>Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line<br/>200.<br/> at t/plsql.t line 17<br/>Compilation failed in require at t/plsql.t line 17.<br/>BEGIN failed--compilation aborted at t/plsql.t line 17.<br/>t/plsql.............dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/reauth............skipped test on this platform<br/>t/select............/usr/lib/dld.sl: Can&#39;t shl_load() a library containing<br/>Thread Local Storage: /usr/lib/libpthread.1<br/>/usr/lib/dld.sl: Exec format error<br/>Can&#39;t load &#39;blib/arch/auto/DBD/Oracle/Oracle.sl&#39; for module DBD::Oracle:<br/>Exec format error at /opt/perl5/lib/5.6.0/PA-RISC1.1/DynaLoader.pm line<br/>200.<br/> at t/select.t line 4<br/>Compilation failed in require at t/select.t line 4.<br/>BEGIN failed--compilation aborted at t/select.t line 4.<br/>t/select............dubious<br/><br/> Test returned status 255 (wstat 65280, 0xff00)<br/>Failed Test Status Wstat Total Fail Failed List of failed<br/>-------------------------------------------------------------------------------<br/>t/base.t 5 2 40.00% 4-5<br/>t/cursor.t 255 65280 ?? ?? % ??<br/>t/general.t 255 65280 ?? ?? % ??<br/>t/long.t 255 65280 ?? ?? % ??<br/>t/meta.t 255 65280 ?? ?? % ??<br/>t/ph_type.t 255 65280 ?? ?? % ??<br/>t/plsql.t 255 65280 ?? ?? % ??<br/>t/select.t 255 65280 ?? ?? % ??<br/>1 test skipped.<br/>Failed 8/9 test scripts, 11.11% okay. 2/5 subtests failed, 60.00% okay.<br/>*** Error exit code 2<br/><br/>Stop.<br/>************************************************************************<br/><br/><br/>And when I run the command &quot;make&quot;, after I&#39;ve ran the command &quot;perl Makefile.PL&quot;;<br/>following error appeared :<br/><br/>************************************************************************<br/>mkdir blib<br/>mkdir blib/lib<br/>mkdir blib/lib/DBD<br/>mkdir blib/arch<br/>mkdir blib/arch/auto<br/>mkdir blib/arch/auto/DBD<br/>mkdir blib/arch/auto/DBD/Oracle<br/>mkdir blib/lib/auto<br/>mkdir blib/lib/auto/DBD<br/>mkdir blib/lib/auto/DBD/Oracle<br/>mkdir blib/man1<br/>mkdir blib/man3<br/>cp Oracle.pm blib/lib/DBD/Oracle.pm<br/>cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm<br/>cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm<br/>cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h<br/>cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h<br/>cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h<br/>cp oraperl.ph blib/lib/oraperl.ph<br/>cp Oraperl.pm blib/lib/Oraperl.pm<br/> /bin/sh -c true<br/> /bin/sh -c true<br/> /usr/bin/perl -p -e &quot;s/~DRIVER~/Oracle/g&quot; &lt; /opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI/Driver.xst<br/>&gt; Oracle.xsi<br/> /usr/bin/perl -I/opt/perl5/lib/5.6.0/PA-RISC1.1 -I/opt/perl5/lib/5.6.0<br/>/opt/perl5/lib/5.6.0/ExtUtils/xsubpp -typemap /opt/perl5/lib/5.6.0/ExtUtils/typemap<br/>Oracle.xs &gt; Oracle.xsc &amp;&amp; mv Oracle.xsc Oracle.c<br/> cc -c -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public -I/oracle/8.1.7/plsql/public<br/>-I/oracle/8.1.7/network/public -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public<br/>-I/oracle/8.1.7/rdbms/demo -I/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI<br/>-Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O +Onolimit -DVERSION=\&quot;1.14\&quot;<br/> -DXS_VERSION=\&quot;1.14\&quot; +z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE -DUTF8_SUPPORT<br/>Oracle.c<br/> cc -c -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public -I/oracle/8.1.7/plsql/public<br/>-I/oracle/8.1.7/network/public -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public<br/>-I/oracle/8.1.7/rdbms/demo -I/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI<br/>-Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O +Onolimit -DVERSION=\&quot;1.14\&quot;<br/> -DXS_VERSION=\&quot;1.14\&quot; +z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE -DUTF8_SUPPORT<br/>dbdimp.c<br/> cc -c -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public -I/oracle/8.1.7/plsql/public<br/>-I/oracle/8.1.7/network/public -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public<br/>-I/oracle/8.1.7/rdbms/demo -I/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI<br/>-Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O +Onolimit -DVERSION=\&quot;1.14\&quot;<br/> -DXS_VERSION=\&quot;1.14\&quot; +z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE -DUTF8_SUPPORT<br/>oci7.c<br/> cc -c -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public -I/oracle/8.1.7/plsql/public<br/>-I/oracle/8.1.7/network/public -I/oracle/8.1.7/rdbms/demo -I/oracle/8.1.7/rdbms/public<br/>-I/oracle/8.1.7/rdbms/demo -I/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI<br/>-Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O +Onolimit -DVERSION=\&quot;1.14\&quot;<br/> -DXS_VERSION=\&quot;1.14\&quot; +z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE -DUTF8_SUPPORT<br/>oci8.c<br/>Running Mkbootstrap for DBD::Oracle ()<br/> chmod 644 Oracle.bs<br/> LD_RUN_PATH=&quot;/oracle/8.1.7/lib:/oracle/8.1.7/rdbms/lib&quot; ld -o blib/arch/auto/DBD/Oracle/Oracle.sl<br/> -b -s -a shared Oracle.o dbdimp.o oci7.o oci8.o -L/oracle/8.1.7/lib/<br/>-L/oracle/8.1.7/rdbms/lib/ /oracle/8.1.7/rdbms/lib/kpudfo.o /oracle/8.1.7/lib/nautab.o<br/>/oracle/8.1.7/lib/naeet.o /oracle/8.1.7/lib/naect.o /oracle/8.1.7/lib/naedhs.o<br/>-lclntsh /oracle/8.1.7/rdbms/lib/kpuadef.o -lnbeq8 -lnhost8 -lnus8 -lnldap8<br/>-lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -ln8 -lncrypt8 -lnoname8 -lntcp8 -lntcps8<br/>-lnsslb8 -lnent8 -lntcp8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8 -lnro8 -lnbeq8<br/>-lnhost8 -lnus8 -lnldap8 -lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -ln8 -lncrypt8<br/>-lnoname8 -lntcp8 -lntcps8 -lnsslb8 -lnent8 -lntcp8 -lntns8 -lnsgr8 -lnzjs8<br/>-ln8 -lnl8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lwtc8 -lmm -lnls8<br/>-lcore8 -lnls8 -lcore8 -lnls8 -lnbeq8 -lnhost8 -lnus8 -lnldap8 -lldapclnt8<br/>-lnsslb8 -ln8 -lncrypt8 -ln8 -lncrypt8 -lnoname8 -lntcp8 -lntcps8 -lnsslb8<br/>-lnent8 -lntcp8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8 -lnro8 -lnbeq8 -lnho<br/>st8 -lnus8 -lnldap8 -lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -ln8 -lncrypt8 -lnoname8<br/>-lntcp8 -lntcps8 -lnsslb8 -lnent8 -lntcp8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8<br/>-lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -ltrace8 -lnls8 -lcore8 -lnls8<br/>-lcore8 -lnls8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lnls8 -lcore8<br/>-lnls8 -lcore8 -lnls8 -l:libcl.a -l:librt.sl -lpthread -l:libnss_dns.1 -l:libdld.sl<br/>-lm -lpls8 -lsql8 -lqsmashr<br/>ld: Can&#39;t find library: &quot;nbeq8&quot;<br/>*** Error exit code 1<br/><br/>Stop.<br/>************************************************************************<br/><br/><br/>Configuration:<br/>HPUX 11.00<br/>Oracle 8.1.7<br/>Perl 5.6.0<br/>DBI 1.37<br/>DBD 1.14<br/><br/>thanking you in advance<br/>Regards<br/>Francisco.<br/><br/>&iexcl;&iexcl;&iexcl;OFERTA VERANO: TISCALI ADSL TOP 24 h. a 9,95 &#128;/mes<br/>m&aacute;s m&uacute;sica y webcam GRATIS!!!<br/><br/>http://acceso.tiscali.es/html/mxtop.html?did=adt-7390015<br/><br/><br/><br/><br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/07/msg143.html Wed, 30 Jul 2003 03:35:34 +0000 No ora_errno by Harter, Douglas I am doing a <br/>use Oraperl;<br/>on a Sun Unix system in perl.<br/><br/>My problem is I cannot seem to get anything from ora_errno or orr_errstr.<br/><br/>I have put in what I know is a bad select statement into my string to<br/>ora_open. I am putting in a value for a where which I know is not there.<br/>This string gives me a record not found using sqlplus. If I put in a good<br/>value I get a valid find.<br/><br/>However, I get an undef to both ora_errno and ora_errstr from the ora_open<br/>and ora_fetch.<br/><br/>My version of Oraperl is 3.000.<br/><br/>The statements I am using are:<br/>my $csr = &amp;ora_open($lda,$sql);<br/>my ($id,$email,$last,$first) = &amp;ora_fetch($csr);<br/><br/>.<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/07/msg142.html Fri, 25 Jul 2003 08:38:53 +0000 LongReadLen doesn't work ... by diego Hi, (heeeelp!)<br/><br/>I am having problems to retrieve BLOB fields with DBI 1.37 and DBD::Oracle<br/>1.14 (on SunOS 5.8).<br/><br/>I couldn&#39;t set $h-&gt;{LongReadLen}. I did it, but is still truncate in 80.<br/>If I do not set &#39;LongTruncOk&#39; I got an error when a BLOB field exceed 80<br/>chars.<br/><br/>(I was looking arround and found the same error but in version 0.60 of<br/>DBD::Oracle and the thread ends when solve this problem updating DBI and<br/>DBD)<br/><br/>If someone need more info just tell me.<br/><br/>]:DK:[<br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/07/msg141.html Thu, 17 Jul 2003 02:53:51 +0000 Re: need help by Michael A Chase On Sat, 7 Jun 2003 15:26:48 -0400 (EDT) Barbara Lindsey &lt;blindsey@cog.ufl.edu&gt; wrote:<br/><br/>&gt; Does anyone know what this error means?<br/>&gt; <br/>&gt; DBD::Oracle::st fetchrow_arrayref failed: ORA-03106: fatal two-task<br/>&gt; communication protocol error (DBD ERROR: OCIStmtFetch) at<br/>&gt; LocalDBSupport.pm line 214.<br/>&gt; <br/>&gt; I am using Perl on Linux with Oracle. All of my other apps work<br/>&gt; fine in same environment.<br/>&gt; <br/>&gt; I am pushing arrayref values onto array in module and returning the<br/>&gt; array to my caller.<br/>&gt; <br/>&gt; Any suggestion of what to look for appreciated.<br/><br/>See the &quot;GETTING HELP&quot; section in the fine manual (`perldoc DBI` or<br/>http://search.cpan.org/author/TIMB/DBI/DBI.pm).<br/><br/>This is a DBI and DBD::Oracle operations issue, not an Oracle::OCI<br/>development one. You should be asking in dbi-users.perl.org. When<br/>you go there, more details would help someone guess what is happening.<br/><br/>-- <br/>Mac :})<br/>** I normally forward private questions to the appropriate mail list. **<br/>Ask Smarter: http://www.catb.org/~esr/faqs/smart-questions.html<br/>Give a hobbit a fish and he eats fish for a day.<br/>Give a hobbit a ring and he eats fish for an age.<br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/06/msg140.html Wed, 11 Jun 2003 08:02:04 +0000 need help by Barbara Lindsey Does anyone know what this error means?<br/><br/>DBD::Oracle::st fetchrow_arrayref failed: ORA-03106: fatal two-task<br/>communication<br/>protocol error (DBD ERROR: OCIStmtFetch) at LocalDBSupport.pm line 214.<br/><br/>I am using Perl on Linux with Oracle. All of my other apps work fine in<br/>same environment.<br/><br/>I am pushing arrayref values onto array in module and returning the array<br/>to my caller.<br/><br/>Any suggestion of what to look for appreciated.<br/><br/>Barb<br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/06/msg139.html Sat, 07 Jun 2003 12:26:57 +0000 Re: OCI on Win by Dave K Tim, Gerrit, and Anybody with an idea of how I can push this forward.<br/>I am trying to run the boot script on WinNT with cygwin. DBD::Oracle was<br/>compiled on this machine<br/>with perl 5.8.0.<br/>To keep the posts short (and not burden those who are not intrested) I have<br/>a &#39;blow by blow&#39;<br/>account of my attempt posted at.<br/>http://geocities.com/k2001evad/oci.txt<br/>One of the more vexing problems I was having stemmed from upgrading some<br/>portion of my system:<br/>dlopen: Win32 error 127<br/>Which reared its head again when I was redoing some of the exercises from<br/>the XS tutorial. This prompted me to restart &#39;from scratch&#39; with the OCI<br/>attempt. I opted to track the attempt &#39;operation by operation&#39; so it might<br/>be useful to others trying to do the same thing. The current state of the<br/>effort is 2 steps short of where I had been earlier. This is where I throw<br/>caution to the wind and dive into that portion of the boot script marked<br/>&#39;High Voltage&#39;...<br/>Any hints, help or pointers appreciated.<br/>David<br/><br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/04/msg138.html Wed, 23 Apr 2003 00:48:50 +0000 Re: Oracle::OCI on Win by Dave K Gerrit, Tim,<br/>&gt; Hallo Dave,<br/>Hallo Garrit,<br/>&gt;<br/>&gt; Am Freitag, 18. April 2003 um 12:58 schriebst du:<br/>&gt;<br/>&gt; [...]<br/>&gt; &gt;&gt; /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a -loci<br/>&gt; &gt;&gt; Creating library file: libOCI.dll.a<br/>&gt;<br/>&gt;<br/>&gt; &gt;&gt; /usr/bin/perl.exe &quot;-MExtUtils::Command::MM&quot; &quot;-e&quot; &quot;test_harness(0,<br/>&gt; &gt;&gt; &#39;blib/lib&#39;, &#39;blib/arch&#39;)&quot; t/*.t<br/>&gt; &gt;&gt; t/01base....Can&#39;t load<br/>&gt; &gt;&gt;<br/>&#39;/home/dave/ORA_OCI/Oracle-OCI/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.dll&#39;<br/>&gt; &gt;&gt; for module Oracle::OCI: dlopen: Win32 error 127 at<br/>&gt; &gt;&gt; /usr/lib/perl5/5.8.0/cygwin-multi-64int/DynaLoader.pm line 229.<br/>&gt; &gt;&gt; at t/01base.t line 9<br/>&gt;<br/>&gt; grep 127 /usr/include/w32api/winerror.h<br/>&gt;<br/>&gt; #define ERROR_PROC_NOT_FOUND 127L<br/>&gt;<br/>&gt; Did you use a Cygwin compatible importlibrary (liboci.a) to link<br/>&gt; against?<br/>DBD::Oracle was compiled on this machine, under Cygwin - but I don&#39;t know if<br/>that is sufficient to answer your question. There is a liboci.a under<br/>{cygwin home}/lib.<br/>Tim&#39;s warnings seem foreboding but I am going to forge ahead with this and<br/>try to get this compiled in a manner that will allow others to replicate the<br/>results.<br/>Thanks and bear in mind that I am learning about linking, GCC, XS, perl<br/>etc..<br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/04/msg137.html Fri, 18 Apr 2003 23:34:34 +0000 Re: Oracle::OCI on Win by Gerrit P. Haase Hallo Dave,<br/><br/>Am Freitag, 18. April 2003 um 12:58 schriebst du:<br/><br/>[...]<br/>&gt;&gt; /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a -loci<br/>&gt;&gt; Creating library file: libOCI.dll.a<br/><br/><br/>&gt;&gt; /usr/bin/perl.exe &quot;-MExtUtils::Command::MM&quot; &quot;-e&quot; &quot;test_harness(0,<br/>&gt;&gt; &#39;blib/lib&#39;, &#39;blib/arch&#39;)&quot; t/*.t<br/>&gt;&gt; t/01base....Can&#39;t load<br/>&gt;&gt; &#39;/home/dave/ORA_OCI/Oracle-OCI/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.dll&#39;<br/>&gt;&gt; for module Oracle::OCI: dlopen: Win32 error 127 at<br/>&gt;&gt; /usr/lib/perl5/5.8.0/cygwin-multi-64int/DynaLoader.pm line 229.<br/>&gt;&gt; at t/01base.t line 9<br/><br/>grep 127 /usr/include/w32api/winerror.h<br/><br/> #define ERROR_PROC_NOT_FOUND 127L<br/><br/>Did you use a Cygwin compatible importlibrary (liboci.a) to link<br/>against? <br/><br/><br/>Gerrit<br/>-- <br/>=^..^=<br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/04/msg136.html Fri, 18 Apr 2003 08:09:09 +0000 Re: Oracle::OCI make problems by Tim Bunce Ah, sorry. Looking closer I see it&#39;s actually README.build and that files<br/>doesn&#39;t actually mention this specific error (ora_getptr_*).<br/><br/>Try adding<br/> OCIDOMDocument * T_PTROBJ<br/>to the typemap file and rerunning boot.<br/><br/>If that doesn&#39;t help then look in the source to find the function<br/>that using ora_getptr_OCIDOMDocumentPtr and then add that function<br/>name (or set of names) into the skip list.<br/><br/>Please send me a summary of the changes (ideally as a diff -u) once<br/>you get it working. Thanks.<br/><br/>Tim.<br/><br/>On Thu, Apr 17, 2003 at 10:45:02AM -0600, Reidy, Ronald wrote:<br/>&gt; I read the README files and cannot find any kind of resolution for<br/>&gt; &#39;undefined symbol&#39; errors. Should these be included in &#39;ora_skip&#39; in the<br/>&gt; boot script?<br/>&gt; <br/>&gt; -----Original Message-----<br/>&gt; From: Tim Bunce [mailto:Tim.Bunce@pobox.com]<br/>&gt; Sent: Thursday, April 17, 2003 10:11 AM<br/>&gt; To: Reidy, Ronald<br/>&gt; Cc: oracle-oci@perl.org<br/>&gt; Subject: Re: Oracle::OCI make problems<br/>&gt; <br/>&gt; <br/>&gt; undefined symbol: ora_getptr_OCIDOMDocumentPtr<br/>&gt; <br/>&gt; Read the README.<br/>&gt; <br/>&gt; Tim.<br/>&gt; <br/>&gt; On Thu, Apr 17, 2003 at 09:44:32AM -0600, Reidy, Ronald wrote:<br/>&gt; &gt; All,<br/>&gt; &gt; <br/>&gt; &gt; I am trying to make Oracle::OCI and am receiving the errors in the<br/>&gt; attached<br/>&gt; &gt; files.<br/>&gt; &gt; <br/>&gt; &gt; My environment is:<br/>&gt; &gt; <br/>&gt; &gt; RedHat Linux 8.0, kernel 2.4.18-14; glibc-2.2.93-5<br/>&gt; &gt; Oracle 9ir2<br/>&gt; &gt; Perl:<br/>&gt; &gt; <br/>&gt; &gt; Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:<br/>&gt; &gt; Platform:<br/>&gt; &gt; osname=linux, osvers=2.4.18-14, archname=i686-linux<br/>&gt; &gt; uname=&#39;linux 2.4.18-14 #1 wed sep 4 13:35:50 edt 2002 i686 i686 i386<br/>&gt; &gt; gnulinux &#39;<br/>&gt; &gt; config_args=&#39;&#39;<br/>&gt; &gt; hint=recommended, useposix=true, d_sigaction=define<br/>&gt; &gt; usethreads=undef use5005threads=undef useithreads=undef<br/>&gt; &gt; usemultiplicity=undef<br/>&gt; &gt; useperlio=define d_sfio=undef uselargefiles=define usesocks=undef<br/>&gt; &gt; use64bitint=undef use64bitall=undef uselongdouble=undef<br/>&gt; &gt; usemymalloc=n, bincompat5005=undef<br/>&gt; &gt; Compiler:<br/>&gt; &gt; cc=&#39;gcc&#39;, ccflags =&#39;-fno-strict-aliasing -D_LARGEFILE_SOURCE<br/>&gt; &gt; -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm&#39;,<br/>&gt; &gt; optimize=&#39;-O3&#39;,<br/>&gt; &gt; cppflags=&#39;-fno-strict-aliasing -I/usr/include/gdbm&#39;<br/>&gt; &gt; ccversion=&#39;&#39;, gccversion=&#39;3.2 20020903 (Red Hat Linux 8.0 3.2-7)&#39;,<br/>&gt; &gt; gccosandvers=&#39;&#39;<br/>&gt; &gt; intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234<br/>&gt; &gt; d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12<br/>&gt; &gt; ivtype=&#39;long&#39;, ivsize=4, nvtype=&#39;double&#39;, nvsize=8, Off_t=&#39;off_t&#39;,<br/>&gt; &gt; lseeksize=8<br/>&gt; &gt; alignbytes=4, prototype=define<br/>&gt; &gt; Linker and Libraries:<br/>&gt; &gt; ld=&#39;gcc&#39;, ldflags =&#39; -L/usr/local/lib&#39;<br/>&gt; &gt; libpth=/usr/local/lib /lib /usr/lib<br/>&gt; &gt; libs=-lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil<br/>&gt; &gt; perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil<br/>&gt; &gt; libc=/lib/libc-2.2.93.so, so=so, useshrplib=true, libperl=libperl.so<br/>&gt; &gt; gnulibc_version=&#39;2.2.93&#39;<br/>&gt; &gt; Dynamic Linking:<br/>&gt; &gt; dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=&#39;-rdynamic<br/>&gt; &gt; -Wl,-rpath,/opt/perl5.8/lib/5.8.0/i686-linux/CORE&#39;<br/>&gt; &gt; cccdlflags=&#39;-fpic&#39;, lddlflags=&#39;-shared -L/usr/local/lib&#39;<br/>&gt; &gt; <br/>&gt; &gt; <br/>&gt; &gt; Characteristics of this binary (from libperl):<br/>&gt; &gt; Compile-time options: USE_LARGE_FILES<br/>&gt; &gt; Built under linux<br/>&gt; &gt; Compiled at Mar 13 2003 09:59:41<br/>&gt; &gt; @INC:<br/>&gt; &gt; /opt/perl5.8/lib/5.8.0/i686-linux<br/>&gt; &gt; /opt/perl5.8/lib/5.8.0<br/>&gt; &gt; /opt/perl5.8/lib/site_perl/5.8.0/i686-linux<br/>&gt; &gt; /opt/perl5.8/lib/site_perl/5.8.0<br/>&gt; &gt; /opt/perl5.8/lib/site_perl<br/>&gt; &gt; .<br/>&gt; &gt; <br/>&gt; &gt; Can anyone shed some light on this?<br/>&gt; &gt; <br/>&gt; &gt; Thanks.<br/>&gt; &gt; <br/>&gt; &gt; Ron Reidy<br/>&gt; &gt; &lt;&lt;boot.log&gt;&gt; &lt;&lt;boot_all.log&gt;&gt; <br/>&gt; &gt; This electronic message transmission is a PRIVATE communication which<br/>&gt; &gt; contains information which may be confidential or privileged. The<br/>&gt; &gt; information is intended to be for the use of the individual or entity<br/>&gt; named<br/>&gt; &gt; above. If you are not the intended recipient, please be aware that any<br/>&gt; &gt; disclosure, copying, distribution or use of the contents of this<br/>&gt; information<br/>&gt; &gt; is prohibited. Please notify the sender of the delivery error by replying<br/>&gt; to<br/>&gt; &gt; this message, or notify us by telephone (877-633-2436, ext. 0), and then<br/>&gt; &gt; delete it from your system.<br/>&gt; &gt; <br/>&gt; <br/>&gt; <br/>&gt; This electronic message transmission is a PRIVATE communication which<br/>&gt; contains information which may be confidential or privileged. The<br/>&gt; information is intended to be for the use of the individual or entity named<br/>&gt; above. If you are not the intended recipient, please be aware that any<br/>&gt; disclosure, copying, distribution or use of the contents of this information<br/>&gt; is prohibited. Please notify the sender of the delivery error by replying to<br/>&gt; this message, or notify us by telephone (877-633-2436, ext. 0), and then<br/>&gt; delete it from your system.<br/>&gt; <br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/04/msg135.html Fri, 18 Apr 2003 04:04:36 +0000 Re: Oracle::OCI on Win by Tim Bunce On Thu, Apr 17, 2003 at 07:05:08PM -0400, Dave K wrote:<br/>&gt; LD_RUN_PATH=&quot;/usr/lib&quot; ld2 -s -L/usr/local/lib OCI.o utility.o -o<br/>&gt; blib/arch/auto/Oracle/OCI/OCI.dll<br/>&gt; /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/li<br/>&gt; bperl.dll.a -loci<br/>&gt; gcc -shared -o<br/>&gt; OCI.dll -Wl,--out-implib=libOCI.dll.a -Wl,--export-all-symbols -Wl,--enable-<br/>&gt; auto-import -Wl,--stack,8388608 \<br/>&gt; -s -L/usr/local/lib OCI.o utility.o<br/>&gt; /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a -loci<br/>&gt; Creating library file: libOCI.dll.a<br/><br/>&gt; /usr/bin/perl.exe &quot;-MExtUtils::Command::MM&quot; &quot;-e&quot; &quot;test_harness(0,<br/>&gt; &#39;blib/lib&#39;, &#39;blib/arch&#39;)&quot; t/*.t<br/>&gt; t/01base....Can&#39;t load<br/>&gt; &#39;/home/dave/ORA_OCI/Oracle-OCI/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.dll&#39;<br/>&gt; for module Oracle::OCI: dlopen: Win32 error 127 at<br/>&gt; /usr/lib/perl5/5.8.0/cygwin-multi-64int/DynaLoader.pm line 229.<br/>&gt; at t/01base.t line 9<br/><br/>I&#39;m sorry but I can&#39;t help you much as I know practically nothing about<br/>build/link/dll issues on windows.<br/><br/>Google ay have some ideas you could explore:<br/> http://www.google.com/search?q=%22dlopen%3A+Win32+error+127%22<br/><br/>I&#39;ve CC&#39;d this to perl5-porters in the hope someone could shed some light.<br/><br/>But basically, as far as porting Oracle::OCI to windows goes, you&#39;re in<br/>uncharted waters and, judging by the problems I have with DBD::Oracle<br/>on unix, it may be rough sailing.<br/><br/>Good luck.<br/><br/>Tim.<br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/04/msg134.html Fri, 18 Apr 2003 03:58:27 +0000 Re: OCI on Win by Dave K Tim (and anybody else that can point me in the right direction),<br/>&gt; Hint: I&#39;m very unlikely to read that. Far better to include the<br/>&gt; text in the email (or attach it in a way that doesn&#39;t uuencode it).<br/>Sorry about that. The Listing is fairly big and includes things I included<br/>to deal with errors, identify things I wanted to modify and so on. The full<br/>output of mod_boot is:<br/><br/>v-string in use/require non-portable at ./mod_boot line 3.<br/><br/> Oracle home is reported to be :E:/Oracle/Ora81/<br/><br/> OCI Include reported to be E:/Oracle/Ora81/oci/include/<br/><br/>A listing of the contents follows<br/>Directory: /cygdrive/e/Oracle/Ora81/oci/include/<br/>CDEMODP0.H<br/>KUSAPI.H<br/>KUSTAGS.H<br/>NZERROR.H<br/>NZT.H<br/>OCI.H<br/>OCI1.H<br/>OCI8DP.H<br/>OCIAP.H<br/>OCIAPR.H<br/>OCIDEF.H<br/>OCIDEM.H<br/>OCIDFN.H<br/>OCIEXTP.H<br/>OCIKP.H<br/>OCIKPR.H<br/>ODCI.H<br/>ORATYPES.H<br/>ORI.H<br/>ORID.H<br/>ORL.H<br/>ORO.H<br/>ORT.H<br/>SX3.H<br/>TNSAPI.H<br/><br/>Regex for h2xs ignores:<br/>^OCI(?!AQ|AttrGet|Bind|Cache|Callback|CharSetConversionIsReplacementUsed|Cha<br/>rSetToUnicode|CollIsLocator|Complex|Context|Date|D<br/>irPath|EnvCallback|EnvCreate|Extract|File|Format|Interval|Iter|LobClose|LobC<br/>reateTemporary|LobFreeTemporary|LobGetChunkSize|LobIsOpen|LobIsTemporary|L<br/>obLocatorAssign|LobOpen|LobWriteAppend|Memory|Message|MultiByte|NlsGetInfo|N<br/>umberDec|NumberInc|NumberIsInt|NumberPrec|NumberSetPi|NumberShift|NumberSi<br/>gn|Object|Pickler|Raw|Ref|Reset|Security|SharedLibInit|StmtBindByName|StmtBi<br/>ndByPos|StmtGetBindInfo|String|Subscription|Table|Terminate|Thread|Type|Ty<br/>peArrayByName|TypeArrayByRef|UnicodeToCharSet|UserCallbackGet|UserCallbackRe<br/>gister|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE|constant_OCI_LOB)|^SQL<br/>Complete h2xs arguments: ./h2xs -d -O -n<br/>Oracle::OCI -F -I/cygdrive/e/Oracle/Ora81/oci/include/ -I/cygdrive/e/Oracle/<br/>Ora81/oci/include/ -E get_oci_err<br/>or,get_oci_handle,oci_buf_len,OCIAttrGet -M<br/>&#39;^OCI(?!AQ|AttrGet|Bind|Cache|Callback|CharSetConversionIsReplacementUsed|Ch<br/>arSetToUnicode|CollIsLocator|C<br/>omplex|Context|Date|DirPath|EnvCallback|EnvCreate|Extract|File|Format|Interv<br/>al|Iter|LobClose|LobCreateTemporary|LobFreeTemporary|LobGetChunkSize|LobIs<br/>Open|LobIsTemporary|LobLocatorAssign|LobOpen|LobWriteAppend|Memory|Message|M<br/>ultiByte|NlsGetInfo|NumberDec|NumberInc|NumberIsInt|NumberPrec|NumberSetPi<br/>|NumberShift|NumberSign|Object|Pickler|Raw|Ref|Reset|Security|SharedLibInit|<br/>StmtBindByName|StmtBindByPos|StmtGetBindInfo|String|Subscription|Table|Ter<br/>minate|Thread|Type|TypeArrayByName|TypeArrayByRef|UnicodeToCharSet|UserCallb<br/>ackGet|UserCallbackRegister|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE|constan<br/>t_OCI_LOB)|^SQL&#39; -k -x /cygdrive/e/Oracle/Ora81/OCI/INCLUDE/oci.h<br/><br/><br/>Actual var sent to qx<br/><br/>./h2xs -d -O -n<br/>Oracle::OCI -F -I/cygdrive/e/Oracle/Ora81/oci/include/ -I/cygdrive/e/Oracle/<br/>Ora81/oci/include/ -E get_oci_error,get_oci_handle,oci_buf<br/>_len,OCIAttrGet -M<br/>&#39;^OCI(?!AQ|AttrGet|Bind|Cache|Callback|CharSetConversionIsReplacementUsed|Ch<br/>arSetToUnicode|CollIsLocator|Complex|Context|Date|DirPa<br/>th|EnvCallback|EnvCreate|Extract|File|Format|Interval|Iter|LobClose|LobCreat<br/>eTemporary|LobFreeTemporary|LobGetChunkSize|LobIsOpen|LobIsTemporary|LobLo<br/>catorAssign|LobOpen|LobWriteAppend|Memory|Message|MultiByte|NlsGetInfo|Numbe<br/>rDec|NumberInc|NumberIsInt|NumberPrec|NumberSetPi|NumberShift|NumberSign|O<br/>bject|Pickler|Raw|Ref|Reset|Security|SharedLibInit|StmtBindByName|StmtBindBy<br/>Pos|StmtGetBindInfo|String|Subscription|Table|Terminate|Thread|Type|TypeAr<br/>rayByName|TypeArrayByRef|UnicodeToCharSet|UserCallbackGet|UserCallbackRegist<br/>er|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE|constant_OCI_LOB)|^SQL&#39; -k -x /c<br/>ygdrive/e/Oracle/Ora81/OCI/INCLUDE/oci.h<br/>Running h2xs...<br/>Scanning typemaps...<br/> Scanning /usr/lib/perl5/5.8.0/ExtUtils/typemap<br/>Scanning /cygdrive/e/Oracle/Ora81/OCI/INCLUDE/oci.h for functions...<br/>Scanning /cygdrive/e/Oracle/Ora81/OCI/INCLUDE/oci.h for typedefs...<br/>Writing Oracle/OCI/OCI.pm<br/>Writing Oracle/OCI/OCI.xs<br/>Writing Oracle/OCI/typemap<br/>Writing Oracle/OCI/Makefile.PL<br/>Writing Oracle/OCI/test.pl<br/>Writing Oracle/OCI/Changes<br/>Writing Oracle/OCI/MANIFEST<br/>Editing OCI.xs...<br/>Editing Makefile.PL...<br/>Building...<br/>Using DBI 1.32 installed in<br/>/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int/auto/DBI<br/>Checking if your kit is complete...<br/>Looks good<br/>Writing Makefile for Oracle::OCI<br/>cp OCI.pm blib/lib/Oracle/OCI.pm<br/>AutoSplitting blib/lib/Oracle/OCI.pm (blib/lib/auto/Oracle/OCI)<br/>/usr/bin/perl.exe /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap<br/>/usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap h2xs.typemap -typemap typemap<br/>OCI.xs<br/>&gt; OCI.xsc &amp;&amp; mv OCI.xsc OCI.c<br/>Please specify prototyping behavior for OCI.xs (see perlxs manual)<br/>gcc -c -I/cygdrive/e/Oracle/Ora81/oci/include/ -I/usr/lib/perl5/site_perl/5<br/>.8.0/cygwin-multi-64int/auto/DBD/Oracle -I/usr/lib/perl5/site_perl/5.8.0/c<br/>ygwin-multi-64int/auto/DBI -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSE<br/>IMPORTLIB -g -DVERSION=\&quot;0.01\&quot; -DXS_VERSION=\&quot;0.01\&quot; &quot;-I/usr/lib/perl5<br/>/5.8.0/cygwin-multi-64int/CORE&quot; -I/cygdrive/e/Oracle/Ora81/oci/include/<br/>OCI.c<br/>OCI.xs: In function `constant_OCI_LOB&#39;:<br/>OCI.xs:1456: warning: decimal constant is so large that it is unsigned<br/>extra.xsh: In function `XS_Oracle__OCI_get_oci_handle&#39;:<br/>extra.xsh:23: warning: cast from pointer to integer of different size<br/>extra.xsh: In function `XS_Oracle__OCI_oci_buf_len&#39;:<br/>extra.xsh:51: warning: assignment from incompatible pointer type<br/>extra.xsh:52: warning: assignment from incompatible pointer type<br/>extra.xsh:53: warning: cast from pointer to integer of different size<br/>gcc -c -I/cygdrive/e/Oracle/Ora81/oci/include/ -I/usr/lib/perl5/site_perl/5<br/>.8.0/cygwin-multi-64int/auto/DBD/Oracle -I/usr/lib/perl5/site_perl/5.8.0/c<br/>ygwin-multi-64int/auto/DBI -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSE<br/>IMPORTLIB -g -DVERSION=\&quot;0.01\&quot; -DXS_VERSION=\&quot;0.01\&quot; &quot;-I/usr/lib/perl5<br/>/5.8.0/cygwin-multi-64int/CORE&quot; -I/cygdrive/e/Oracle/Ora81/oci/include/<br/>utility.c<br/>utility.c: In function `oci_buf_getmaxlen&#39;:<br/>utility.c:45: warning: cast to pointer from integer of different size<br/>utility.c: In function `oci_buf_setcurlen&#39;:<br/>utility.c:55: warning: cast to pointer from integer of different size<br/>Running Mkbootstrap for Oracle::OCI ()<br/>chmod 644 OCI.bs<br/>rm -f blib/arch/auto/Oracle/OCI/OCI.dll<br/>LD_RUN_PATH=&quot;/usr/lib&quot; ld2 -s -L/usr/local/lib OCI.o utility.o -o<br/>blib/arch/auto/Oracle/OCI/OCI.dll<br/>/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/li<br/>bperl.dll.a -loci<br/>gcc -shared -o<br/><br/>OCI.dll -Wl,--out-implib=libOCI.dll.a -Wl,--export-all-symbols -Wl,--enable-<br/>auto-import -Wl,--stack,8388608 \<br/>-s -L/usr/local/lib OCI.o utility.o<br/>/usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a -loci<br/>Creating library file: libOCI.dll.a<br/>mv OCI.dll libOCI.dll.a blib/arch/auto/Oracle/OCI/<br/>chmod 755 blib/arch/auto/Oracle/OCI/OCI.dll<br/>cp OCI.bs blib/arch/auto/Oracle/OCI/OCI.bs<br/>chmod 644 blib/arch/auto/Oracle/OCI/OCI.bs<br/>Manifying blib/man3/Oracle.OCI.3pm<br/>/usr/bin/perl.exe &quot;-MExtUtils::Command::MM&quot; &quot;-e&quot; &quot;test_harness(0,<br/>&#39;blib/lib&#39;, &#39;blib/arch&#39;)&quot; t/*.t<br/>t/01base....Can&#39;t load<br/>&#39;/home/dave/ORA_OCI/Oracle-OCI/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.dll&#39;<br/>for module Oracle::OCI: dlopen: Win32 error 127 at<br/> /usr/lib/perl5/5.8.0/cygwin-multi-64int/DynaLoader.pm line 229.<br/> at t/01base.t line 9<br/>Compilation failed in require at t/01base.t line 9.<br/>BEGIN failed--compilation aborted at t/01base.t line 9.<br/>t/01base....dubious<br/> Test returned status 255 (wstat 65280, 0xff00)<br/>t/05dbi.....Can&#39;t load<br/>&#39;/home/dave/ORA_OCI/Oracle-OCI/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.dll&#39;<br/>for module Oracle::OCI: dlopen: Win32 error 127 at<br/> /usr/lib/perl5/5.8.0/cygwin-multi-64int/DynaLoader.pm line 229.<br/> at t/05dbi.t line 8<br/>Compilation failed in require at t/05dbi.t line 8.<br/>BEGIN failed--compilation aborted at t/05dbi.t line 8.<br/>t/05dbi.....dubious<br/> Test returned status 255 (wstat 65280, 0xff00)<br/>FAILED--2 test scripts could be run, alas--no output ever seen<br/>make: *** [test_dynamic] Error 2<br/><br/><br/>Thanks<br/>David<br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/04/msg133.html Fri, 18 Apr 2003 00:59:49 +0000 RE: Oracle::OCI make problems by Reidy, Ronald I read the README files and cannot find any kind of resolution for<br/>&#39;undefined symbol&#39; errors. Should these be included in &#39;ora_skip&#39; in the<br/>boot script?<br/><br/>-----Original Message-----<br/>From: Tim Bunce [mailto:Tim.Bunce@pobox.com]<br/>Sent: Thursday, April 17, 2003 10:11 AM<br/>To: Reidy, Ronald<br/>Cc: oracle-oci@perl.org<br/>Subject: Re: Oracle::OCI make problems<br/><br/><br/> undefined symbol: ora_getptr_OCIDOMDocumentPtr<br/><br/>Read the README.<br/><br/>Tim.<br/><br/>On Thu, Apr 17, 2003 at 09:44:32AM -0600, Reidy, Ronald wrote:<br/>&gt; All,<br/>&gt; <br/>&gt; I am trying to make Oracle::OCI and am receiving the errors in the<br/>attached<br/>&gt; files.<br/>&gt; <br/>&gt; My environment is:<br/>&gt; <br/>&gt; RedHat Linux 8.0, kernel 2.4.18-14; glibc-2.2.93-5<br/>&gt; Oracle 9ir2<br/>&gt; Perl:<br/>&gt; <br/>&gt; Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:<br/>&gt; Platform:<br/>&gt; osname=linux, osvers=2.4.18-14, archname=i686-linux<br/>&gt; uname=&#39;linux 2.4.18-14 #1 wed sep 4 13:35:50 edt 2002 i686 i686 i386<br/>&gt; gnulinux &#39;<br/>&gt; config_args=&#39;&#39;<br/>&gt; hint=recommended, useposix=true, d_sigaction=define<br/>&gt; usethreads=undef use5005threads=undef useithreads=undef<br/>&gt; usemultiplicity=undef<br/>&gt; useperlio=define d_sfio=undef uselargefiles=define usesocks=undef<br/>&gt; use64bitint=undef use64bitall=undef uselongdouble=undef<br/>&gt; usemymalloc=n, bincompat5005=undef<br/>&gt; Compiler:<br/>&gt; cc=&#39;gcc&#39;, ccflags =&#39;-fno-strict-aliasing -D_LARGEFILE_SOURCE<br/>&gt; -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm&#39;,<br/>&gt; optimize=&#39;-O3&#39;,<br/>&gt; cppflags=&#39;-fno-strict-aliasing -I/usr/include/gdbm&#39;<br/>&gt; ccversion=&#39;&#39;, gccversion=&#39;3.2 20020903 (Red Hat Linux 8.0 3.2-7)&#39;,<br/>&gt; gccosandvers=&#39;&#39;<br/>&gt; intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234<br/>&gt; d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12<br/>&gt; ivtype=&#39;long&#39;, ivsize=4, nvtype=&#39;double&#39;, nvsize=8, Off_t=&#39;off_t&#39;,<br/>&gt; lseeksize=8<br/>&gt; alignbytes=4, prototype=define<br/>&gt; Linker and Libraries:<br/>&gt; ld=&#39;gcc&#39;, ldflags =&#39; -L/usr/local/lib&#39;<br/>&gt; libpth=/usr/local/lib /lib /usr/lib<br/>&gt; libs=-lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil<br/>&gt; perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil<br/>&gt; libc=/lib/libc-2.2.93.so, so=so, useshrplib=true, libperl=libperl.so<br/>&gt; gnulibc_version=&#39;2.2.93&#39;<br/>&gt; Dynamic Linking:<br/>&gt; dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=&#39;-rdynamic<br/>&gt; -Wl,-rpath,/opt/perl5.8/lib/5.8.0/i686-linux/CORE&#39;<br/>&gt; cccdlflags=&#39;-fpic&#39;, lddlflags=&#39;-shared -L/usr/local/lib&#39;<br/>&gt; <br/>&gt; <br/>&gt; Characteristics of this binary (from libperl):<br/>&gt; Compile-time options: USE_LARGE_FILES<br/>&gt; Built under linux<br/>&gt; Compiled at Mar 13 2003 09:59:41<br/>&gt; @INC:<br/>&gt; /opt/perl5.8/lib/5.8.0/i686-linux<br/>&gt; /opt/perl5.8/lib/5.8.0<br/>&gt; /opt/perl5.8/lib/site_perl/5.8.0/i686-linux<br/>&gt; /opt/perl5.8/lib/site_perl/5.8.0<br/>&gt; /opt/perl5.8/lib/site_perl<br/>&gt; .<br/>&gt; <br/>&gt; Can anyone shed some light on this?<br/>&gt; <br/>&gt; Thanks.<br/>&gt; <br/>&gt; Ron Reidy<br/>&gt; &lt;&lt;boot.log&gt;&gt; &lt;&lt;boot_all.log&gt;&gt; <br/>&gt; This electronic message transmission is a PRIVATE communication which<br/>&gt; contains information which may be confidential or privileged. The<br/>&gt; information is intended to be for the use of the individual or entity<br/>named<br/>&gt; above. If you are not the intended recipient, please be aware that any<br/>&gt; disclosure, copying, distribution or use of the contents of this<br/>information<br/>&gt; is prohibited. Please notify the sender of the delivery error by replying<br/>to<br/>&gt; this message, or notify us by telephone (877-633-2436, ext. 0), and then<br/>&gt; delete it from your system.<br/>&gt; <br/><br/><br/>This electronic message transmission is a PRIVATE communication which<br/>contains information which may be confidential or privileged. The<br/>information is intended to be for the use of the individual or entity named<br/>above. If you are not the intended recipient, please be aware that any<br/>disclosure, copying, distribution or use of the contents of this information<br/>is prohibited. Please notify the sender of the delivery error by replying to<br/>this message, or notify us by telephone (877-633-2436, ext. 0), and then<br/>delete it from your system.<br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/04/msg132.html Fri, 18 Apr 2003 00:56:20 +0000 Re: Oracle::OCI make problems by Tim Bunce undefined symbol: ora_getptr_OCIDOMDocumentPtr<br/><br/>Read the README.<br/><br/>Tim.<br/><br/>On Thu, Apr 17, 2003 at 09:44:32AM -0600, Reidy, Ronald wrote:<br/>&gt; All,<br/>&gt; <br/>&gt; I am trying to make Oracle::OCI and am receiving the errors in the attached<br/>&gt; files.<br/>&gt; <br/>&gt; My environment is:<br/>&gt; <br/>&gt; RedHat Linux 8.0, kernel 2.4.18-14; glibc-2.2.93-5<br/>&gt; Oracle 9ir2<br/>&gt; Perl:<br/>&gt; <br/>&gt; Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:<br/>&gt; Platform:<br/>&gt; osname=linux, osvers=2.4.18-14, archname=i686-linux<br/>&gt; uname=&#39;linux 2.4.18-14 #1 wed sep 4 13:35:50 edt 2002 i686 i686 i386<br/>&gt; gnulinux &#39;<br/>&gt; config_args=&#39;&#39;<br/>&gt; hint=recommended, useposix=true, d_sigaction=define<br/>&gt; usethreads=undef use5005threads=undef useithreads=undef<br/>&gt; usemultiplicity=undef<br/>&gt; useperlio=define d_sfio=undef uselargefiles=define usesocks=undef<br/>&gt; use64bitint=undef use64bitall=undef uselongdouble=undef<br/>&gt; usemymalloc=n, bincompat5005=undef<br/>&gt; Compiler:<br/>&gt; cc=&#39;gcc&#39;, ccflags =&#39;-fno-strict-aliasing -D_LARGEFILE_SOURCE<br/>&gt; -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm&#39;,<br/>&gt; optimize=&#39;-O3&#39;,<br/>&gt; cppflags=&#39;-fno-strict-aliasing -I/usr/include/gdbm&#39;<br/>&gt; ccversion=&#39;&#39;, gccversion=&#39;3.2 20020903 (Red Hat Linux 8.0 3.2-7)&#39;,<br/>&gt; gccosandvers=&#39;&#39;<br/>&gt; intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234<br/>&gt; d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12<br/>&gt; ivtype=&#39;long&#39;, ivsize=4, nvtype=&#39;double&#39;, nvsize=8, Off_t=&#39;off_t&#39;,<br/>&gt; lseeksize=8<br/>&gt; alignbytes=4, prototype=define<br/>&gt; Linker and Libraries:<br/>&gt; ld=&#39;gcc&#39;, ldflags =&#39; -L/usr/local/lib&#39;<br/>&gt; libpth=/usr/local/lib /lib /usr/lib<br/>&gt; libs=-lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil<br/>&gt; perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil<br/>&gt; libc=/lib/libc-2.2.93.so, so=so, useshrplib=true, libperl=libperl.so<br/>&gt; gnulibc_version=&#39;2.2.93&#39;<br/>&gt; Dynamic Linking:<br/>&gt; dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=&#39;-rdynamic<br/>&gt; -Wl,-rpath,/opt/perl5.8/lib/5.8.0/i686-linux/CORE&#39;<br/>&gt; cccdlflags=&#39;-fpic&#39;, lddlflags=&#39;-shared -L/usr/local/lib&#39;<br/>&gt; <br/>&gt; <br/>&gt; Characteristics of this binary (from libperl):<br/>&gt; Compile-time options: USE_LARGE_FILES<br/>&gt; Built under linux<br/>&gt; Compiled at Mar 13 2003 09:59:41<br/>&gt; @INC:<br/>&gt; /opt/perl5.8/lib/5.8.0/i686-linux<br/>&gt; /opt/perl5.8/lib/5.8.0<br/>&gt; /opt/perl5.8/lib/site_perl/5.8.0/i686-linux<br/>&gt; /opt/perl5.8/lib/site_perl/5.8.0<br/>&gt; /opt/perl5.8/lib/site_perl<br/>&gt; .<br/>&gt; <br/>&gt; Can anyone shed some light on this?<br/>&gt; <br/>&gt; Thanks.<br/>&gt; <br/>&gt; Ron Reidy<br/>&gt; &lt;&lt;boot.log&gt;&gt; &lt;&lt;boot_all.log&gt;&gt; <br/>&gt; This electronic message transmission is a PRIVATE communication which<br/>&gt; contains information which may be confidential or privileged. The<br/>&gt; information is intended to be for the use of the individual or entity named<br/>&gt; above. If you are not the intended recipient, please be aware that any<br/>&gt; disclosure, copying, distribution or use of the contents of this information<br/>&gt; is prohibited. Please notify the sender of the delivery error by replying to<br/>&gt; this message, or notify us by telephone (877-633-2436, ext. 0), and then<br/>&gt; delete it from your system.<br/>&gt; <br/><br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/04/msg131.html Thu, 17 Apr 2003 09:11:18 +0000 Oracle::OCI make problems by Reidy, Ronald All,<br/><br/>I am trying to make Oracle::OCI and am receiving the errors in the attached<br/>files.<br/><br/>My environment is:<br/><br/>RedHat Linux 8.0, kernel 2.4.18-14; glibc-2.2.93-5<br/>Oracle 9ir2<br/>Perl:<br/><br/>Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:<br/> Platform:<br/> osname=linux, osvers=2.4.18-14, archname=i686-linux<br/> uname=&#39;linux 2.4.18-14 #1 wed sep 4 13:35:50 edt 2002 i686 i686 i386<br/>gnulinux &#39;<br/> config_args=&#39;&#39;<br/> hint=recommended, useposix=true, d_sigaction=define<br/> usethreads=undef use5005threads=undef useithreads=undef<br/>usemultiplicity=undef<br/> useperlio=define d_sfio=undef uselargefiles=define usesocks=undef<br/> use64bitint=undef use64bitall=undef uselongdouble=undef<br/> usemymalloc=n, bincompat5005=undef<br/> Compiler:<br/> cc=&#39;gcc&#39;, ccflags =&#39;-fno-strict-aliasing -D_LARGEFILE_SOURCE<br/>-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm&#39;,<br/> optimize=&#39;-O3&#39;,<br/> cppflags=&#39;-fno-strict-aliasing -I/usr/include/gdbm&#39;<br/> ccversion=&#39;&#39;, gccversion=&#39;3.2 20020903 (Red Hat Linux 8.0 3.2-7)&#39;,<br/>gccosandvers=&#39;&#39;<br/> intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234<br/> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12<br/> ivtype=&#39;long&#39;, ivsize=4, nvtype=&#39;double&#39;, nvsize=8, Off_t=&#39;off_t&#39;,<br/>lseeksize=8<br/> alignbytes=4, prototype=define<br/> Linker and Libraries:<br/> ld=&#39;gcc&#39;, ldflags =&#39; -L/usr/local/lib&#39;<br/> libpth=/usr/local/lib /lib /usr/lib<br/> libs=-lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil<br/> perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil<br/> libc=/lib/libc-2.2.93.so, so=so, useshrplib=true, libperl=libperl.so<br/> gnulibc_version=&#39;2.2.93&#39;<br/> Dynamic Linking:<br/> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=&#39;-rdynamic<br/>-Wl,-rpath,/opt/perl5.8/lib/5.8.0/i686-linux/CORE&#39;<br/> cccdlflags=&#39;-fpic&#39;, lddlflags=&#39;-shared -L/usr/local/lib&#39;<br/><br/><br/>Characteristics of this binary (from libperl):<br/> Compile-time options: USE_LARGE_FILES<br/> Built under linux<br/> Compiled at Mar 13 2003 09:59:41<br/> @INC:<br/> /opt/perl5.8/lib/5.8.0/i686-linux<br/> /opt/perl5.8/lib/5.8.0<br/> /opt/perl5.8/lib/site_perl/5.8.0/i686-linux<br/> /opt/perl5.8/lib/site_perl/5.8.0<br/> /opt/perl5.8/lib/site_perl<br/> .<br/><br/>Can anyone shed some light on this?<br/><br/>Thanks.<br/><br/>Ron Reidy<br/> &lt;&lt;boot.log&gt;&gt; &lt;&lt;boot_all.log&gt;&gt; <br/>This electronic message transmission is a PRIVATE communication which<br/>contains information which may be confidential or privileged. The<br/>information is intended to be for the use of the individual or entity named<br/>above. If you are not the intended recipient, please be aware that any<br/>disclosure, copying, distribution or use of the contents of this information<br/>is prohibited. Please notify the sender of the delivery error by replying to<br/>this message, or notify us by telephone (877-633-2436, ext. 0), and then<br/>delete it from your system.<br/><br/><br/> http://www.nntp.perl.org/group/perl.dbi.oracle-oci/2003/04/msg130.html Thu, 17 Apr 2003 08:48:32 +0000