<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: shell script access to oracle data in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187470#M796644</link>
    <description>I got it from software.hp.com.&lt;BR /&gt;I am currently downloading gcc 3.3.2&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;John.</description>
    <pubDate>Wed, 11 Feb 2004 09:35:42 GMT</pubDate>
    <dc:creator>John Flanagan</dc:creator>
    <dc:date>2004-02-11T09:35:42Z</dc:date>
    <item>
      <title>shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187458#M796632</link>
      <description>I want to write a unix shell script to collect serial numbers but as each serial number is entered I want to check it is available in my oracle database.   Is it possible to make a single connection to oracle do I need to make a connection for every request?&lt;BR /&gt;&lt;BR /&gt;ie&lt;BR /&gt;start script&lt;BR /&gt;connect to database&lt;BR /&gt;loop&lt;BR /&gt;   enter serial number&lt;BR /&gt;   run pl/sql script&lt;BR /&gt;   check result&lt;BR /&gt;end loop&lt;BR /&gt;close database connection&lt;BR /&gt;run job on serial number list&lt;BR /&gt;end script&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Tue, 10 Feb 2004 07:22:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187458#M796632</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2004-02-10T07:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187459#M796633</link>
      <description>Hmmm, does it have to be a *shell* script? I see this as a perl DBI/DBD::Oracle job&lt;BR /&gt;&lt;BR /&gt;#!/opt/perl/bin/perl&lt;BR /&gt;&lt;BR /&gt;my %collect;&lt;BR /&gt;foreach my $db (qw( DBI_1 DBI_2 )) {&lt;BR /&gt;my $dbh = DBI-&amp;gt;connect (.....);&lt;BR /&gt;while (1) {&lt;BR /&gt;print "Snr: ";&lt;BR /&gt;my $snr = scalar &lt;STDIN&gt;;&lt;BR /&gt;$snr =~ m/regex-to-check-snr/ or last;&lt;BR /&gt;# some dbi stuff&lt;BR /&gt;# store results in %collect;&lt;BR /&gt;}&lt;BR /&gt;$dbh-&amp;gt;commit;&lt;BR /&gt;$dbh-&amp;gt;disconnect;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;foreach my $key (keys %collect) {&lt;BR /&gt;# post processing&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn&lt;BR /&gt;&lt;/STDIN&gt;</description>
      <pubDate>Tue, 10 Feb 2004 07:30:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187459#M796633</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-02-10T07:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187460#M796634</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I think 3 choices&lt;BR /&gt;&lt;BR /&gt;1) As is and open Oracle each time;&lt;BR /&gt;&lt;BR /&gt;2)Read all numbers to a flat file and then input and check them&lt;BR /&gt;&lt;BR /&gt;3)Script the whole thing to run in the oracle login . sql  pl/sql&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                  Steve Steel</description>
      <pubDate>Tue, 10 Feb 2004 07:37:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187460#M796634</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-02-10T07:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187461#M796635</link>
      <description>Procura&lt;BR /&gt;&lt;BR /&gt;Can you point me at a resource to start learning perl from.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Tue, 10 Feb 2004 07:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187461#M796635</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2004-02-10T07:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187462#M796636</link>
      <description>My site has a link to a nice article from Wendy:&lt;BR /&gt;&lt;A href="http://perlmonks.org/index.pl?node_id=284175" target="_blank"&gt;http://perlmonks.org/index.pl?node_id=284175&lt;/A&gt; (where and how to start learning Perl)&lt;BR /&gt;&lt;BR /&gt;My HP ITRC site pages can be found at&lt;BR /&gt;&lt;BR /&gt;Singapore &lt;A href="https://www.beepz.com/personal/merijn/" target="_blank"&gt;https://www.beepz.com/personal/merijn/&lt;/A&gt;&lt;BR /&gt;Rotterdam &lt;A href="http://www.cmve.net/~merijn/" target="_blank"&gt;http://www.cmve.net/~merijn/&lt;/A&gt;&lt;BR /&gt;Seattle   &lt;A href="http://ww.hpux.ws/merijn/" target="_blank"&gt;http://ww.hpux.ws/merijn/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Tue, 10 Feb 2004 07:46:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187462#M796636</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-02-10T07:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187463#M796637</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;Why not load the list in the database?  You could build the pl/sql script into a procedure, and pass it a variable from inside of a pl/sql block.  You could even define your result as an out variable of the code, and check the result in the block:&lt;BR /&gt;&lt;BR /&gt;declare&lt;BR /&gt;   seriallist is select number from serial;&lt;BR /&gt;   result varchar2(20);&lt;BR /&gt;begin&lt;BR /&gt;for seriallist_rec in seriallist loop&lt;BR /&gt;checkscript(seriallist_rec,result);&lt;BR /&gt;if result != 0 then&lt;BR /&gt;   dbms_output.put_line(result||' failed!');&lt;BR /&gt;end if;&lt;BR /&gt;end loop;&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;/</description>
      <pubDate>Tue, 10 Feb 2004 20:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187463#M796637</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2004-02-10T20:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187464#M796638</link>
      <description>I considered using PL/SQL to do this but I also need a small user interface screen and I don't think PL/SQL is good at that.&lt;BR /&gt;&lt;BR /&gt;I am currently looking at the PERL option.  It looks promising but I am having problems with the DBI interface.   DBI is looking for perl 5.00503 and my version is 5.00502.   I am currently searching the hp web site.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Wed, 11 Feb 2004 04:08:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187464#M796638</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2004-02-11T04:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187465#M796639</link>
      <description>hi john,&lt;BR /&gt;&lt;BR /&gt;for perl, also have a look at &lt;A href="http://www.cmve.net/~merijn/#Perl" target="_blank"&gt;http://www.cmve.net/~merijn/#Perl&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Wed, 11 Feb 2004 04:26:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187465#M796639</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2004-02-11T04:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187466#M796640</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I can't get DBI to build.  I get the following errors.&lt;BR /&gt;&lt;BR /&gt;(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.&lt;BR /&gt;(Bundled) cc: warning 422: Unknown option "f" ignored.&lt;BR /&gt;(Bundled) cc: warning 480: The +Onolimit option is available only with the C/ANSI C product; ignored.&lt;BR /&gt;(Bundled) cc: warning 480: The +Opromote_indirect_calls option is available only with the C/ANSI C product; ignored.&lt;BR /&gt;(Bundled) cc: warning 480: The +Z option is available only with the C/ANSI C product; ignored.&lt;BR /&gt;cpp: "/opt/perl/lib/5.8.2/PA-RISC1.1-thread-multi/CORE/perlio.h", line 108: error 4065: Recursion in macro "PerlIO".&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John.</description>
      <pubDate>Wed, 11 Feb 2004 08:31:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187466#M796640</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2004-02-11T08:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187467#M796641</link>
      <description>The binary available from my site is 5.8.3 and includes the most recent DBI already.&lt;BR /&gt;&lt;BR /&gt;The perl you have (5.005.x) is OK for building DBI (with some nags), but I am sure you will not be able to build DBD::Oracle with it (for reasons you can read in README.hpux in more recent perl distributions)&lt;BR /&gt;&lt;BR /&gt;Addresses already posted&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn [ Who wonders what info Yogeeraj had to add ]</description>
      <pubDate>Wed, 11 Feb 2004 08:44:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187467#M796641</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-02-11T08:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187468#M796642</link>
      <description>I had downloaded and installed 5.8.2 earlier today.   Is this version good enough?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Wed, 11 Feb 2004 08:53:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187468#M796642</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2004-02-11T08:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187469#M796643</link>
      <description>Yes. IMHO 5.8.3 is better, but that's only small changes.&lt;BR /&gt;&lt;BR /&gt;Where did you get it? from my site?&lt;BR /&gt;Then make sure that /opt/perl/bin or /opt/perl64/bin (if you fetched the 64bit version) is in front in your $PATH. (in front of path elements where other perl's can be found that is)&lt;BR /&gt;&lt;BR /&gt;If you want to build DBD::Oracle too, you need the matching GNU gcc too&lt;BR /&gt;&lt;BR /&gt;Use DBD::Oracle-1.15&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 11 Feb 2004 09:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187469#M796643</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-02-11T09:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187470#M796644</link>
      <description>I got it from software.hp.com.&lt;BR /&gt;I am currently downloading gcc 3.3.2&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Wed, 11 Feb 2004 09:35:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187470#M796644</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2004-02-11T09:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187471#M796645</link>
      <description>I have downloaded and extracted gcc from your page but how do I install?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Feb 2004 11:12:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187471#M796645</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2004-02-11T11:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187472#M796646</link>
      <description>Installation instruction (litarally) in the section that has the "GNU gcc" header:&lt;BR /&gt;&lt;BR /&gt;Singapore &lt;A href="https://www.beepz.com/personal/merijn/#Gcc" target="_blank"&gt;https://www.beepz.com/personal/merijn/#Gcc&lt;/A&gt;&lt;BR /&gt;Rotterdam &lt;A href="http://www.cmve.net/~merijn/#Gcc" target="_blank"&gt;http://www.cmve.net/~merijn/#Gcc&lt;/A&gt;&lt;BR /&gt;Seattle   &lt;A href="http://ww.hpux.ws/merijn/#Gcc" target="_blank"&gt;http://ww.hpux.ws/merijn/#Gcc&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--8&amp;lt;---&lt;BR /&gt;The 3.3.2 version of gcc available in the download section includes binutils 2.14 and gdb-6.0. Install it like this:&lt;BR /&gt;&lt;BR /&gt;  # cd /usr/local&lt;BR /&gt;  # bzip2 -d &amp;lt; /var/tmp/gcc-3.3.2-64-11.00-elf64.tbz | tar xf -&lt;BR /&gt;&lt;BR /&gt;And add /usr/local/pa20_64/bin to your $PATH, preferably in /etc/PATH.&lt;BR /&gt;--&amp;gt;8---&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Wed, 11 Feb 2004 11:17:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187472#M796646</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-02-11T11:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: shell script access to oracle data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187473#M796647</link>
      <description>I have tried to compile with gcc and perl 5.6.1 and I get the following errors.&lt;BR /&gt;&lt;BR /&gt;/usr/include/sys/socket.h:484: error: parse error before "sendfile"&lt;BR /&gt;/usr/include/sys/socket.h:484: error: parse error before "bsize_t"&lt;BR /&gt;/usr/include/sys/socket.h:486: error: parse error before "sendpath"&lt;BR /&gt;/usr/include/sys/socket.h:486: error: parse error before "bsize_t"&lt;BR /&gt;/usr/include/sys/socket.h:501: error: parse error before "__sendfile64"&lt;BR /&gt;/usr/include/sys/socket.h:501: error: parse error before "bsize_t"&lt;BR /&gt;/usr/include/sys/socket.h:502: error: parse error before "__sendpath64"&lt;BR /&gt;/usr/include/sys/socket.h:502: error: parse error before "bsize_t"&lt;BR /&gt;/usr/include/sys/socket.h:504: error: parse error before "sendfile"&lt;BR /&gt;/usr/include/sys/socket.h: In function `sendfile':&lt;BR /&gt;/usr/include/sys/socket.h:504: error: parse error before "bsize_t"&lt;BR /&gt;/usr/include/sys/socket.h: At top level:&lt;BR /&gt;/usr/include/sys/socket.h:505: error: parse error before "sendpath"&lt;BR /&gt;/usr/include/sys/socket.h: In function `sendpath':&lt;BR /&gt;/usr/include/sys/socket.h:505: error: parse error before "bsize_t"&lt;BR /&gt;&lt;BR /&gt;Is it possible to find a compiled DBI and DBD for Oracle on HP-UX 11.11 32 bit?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Thu, 12 Feb 2004 04:32:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-access-to-oracle-data/m-p/3187473#M796647</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2004-02-12T04:32:37Z</dc:date>
    </item>
  </channel>
</rss>

