<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#0050d0">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Just FYI, the
patches in that post are REALLY bad. They dont use optimized queries
and every single insert statement performs a commit. If you will be
doing a high amount of transactions, this will devour your database's
processing power.<br>
Also as that patch is for libdbi, it will affect every single thing
that uses libdbi, not just syslog-ng.<br>
See <a class="moz-txt-link-freetext" href="https://bugzilla.balabit.com/show_bug.cgi?id=73">https://bugzilla.balabit.com/show_bug.cgi?id=73</a>. Syslog-ng 3.2 will
have changes in it that make those patches unnecessary.<br>
<br>
<br>
</font></font><br>
Sent: Wednesday, May 05, 2010 10:20:21 AM<br>
From: Dmitry Sedov <a class="moz-txt-link-rfc2396E" href="mailto:sda@rosenergo.com">&lt;sda@rosenergo.com&gt;</a><br>
To: Syslog-ng users' and developers' mailing list
<a class="moz-txt-link-rfc2396E" href="mailto:syslog-ng@lists.balabit.hu">&lt;syslog-ng@lists.balabit.hu&gt;</a> <br>
Subject: Re: [syslog-ng] syslog-ng can not work with oracle backend
<blockquote cite="mid:20100505162021.GD19067@x.rosenergo.com"
 type="cite">
  <pre wrap="">        We have done workaround by installing syslog-ng and libdbi-drivers on rhel 5, as this described in this link:

<a class="moz-txt-link-freetext" href="https://lists.balabit.hu/pipermail/syslog-ng/2009-August/013260.html">https://lists.balabit.hu/pipermail/syslog-ng/2009-August/013260.html</a>

        Thanks for your input,

        Dmitry Sedov.

On Fri, Apr 30, 2010 at 01:06:49PM -0600, Patrick H. wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">You wont be able to compile syslog-ng 3 on a rhel4 without ugly changes 
to the system (like glib). The easiest way is to just download the 
oracle 0.8.1 driver and compile it instead of 0.8.3.

Sent: Friday, April 30, 2010 10:59:16 AM
From: Dmitry Sedov <a class="moz-txt-link-rfc2396E" href="mailto:sda@rosenergo.com">&lt;sda@rosenergo.com&gt;</a>
To: Syslog-ng users' and developers' mailing list 
<a class="moz-txt-link-rfc2396E" href="mailto:syslog-ng@lists.balabit.hu">&lt;syslog-ng@lists.balabit.hu&gt;</a>
Subject: Re: [syslog-ng] syslog-ng can not work with oracle backend
    </pre>
    <blockquote type="cite">
      <pre wrap="">        Oracle driver was added to shared libraryes cache:

[root@vm-dc-syslog doc]# ldconfig -p|grep dbi
       libdbi.so.0 (libc6) =&gt; /usr/local/libdbi/lib/libdbi.so.0
       libdbi.so (libc6) =&gt; /usr/local/libdbi/lib/libdbi.so
       libdbdoracle.so (libc6) =&gt; 
       /usr/local/libdbi-drivers/lib/dbd/libdbdoracle.so
[root@vm-dc-syslog doc]#

        Now I hardlinked oracle driver to /opt/syslog-ng/lib/dbd/, but 
        without success. Is it from difference of libdbi versions - in rpm 
        and 0.8.3 compiled by me?

        I tried to compile syslog-ng from tarball and with same libdbi as in 
        oracle driver case, but 'configure' cancel his work with strange 
        error:

checking for GLIB - version &gt;= 2.10.1... no
*** A new enough version of pkg-config was not found.
*** See <a class="moz-txt-link-freetext" href="http://www.freedesktop.org/software/pkgconfig/">http://www.freedesktop.org/software/pkgconfig/</a>
configure: error: Cannot find GLIB version &gt;= 2.10.1: is pkg-config in 
path?


        Regards,

        Dmitry Sedov.



On Fri, Apr 30, 2010 at 09:53:42AM -0600, Patrick H. wrote:
 
      </pre>
      <blockquote type="cite">
        <pre wrap="">If you used the pre-compiled syslog-ng rpm, it comes with its own 
location for the libdbi-dbd-drivers files. You need to place the oracle 
driver in that directory; /opt/syslog-ng/lib/dbd/.


Sent: Friday, April 30, 2010 9:07:09 AM
From: Dmitry Sedov <a class="moz-txt-link-rfc2396E" href="mailto:sda@rosenergo.com">&lt;sda@rosenergo.com&gt;</a>
To: <a class="moz-txt-link-abbreviated" href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a>
Subject: [syslog-ng]  syslog-ng can not work with oracle backend
   
        </pre>
        <blockquote type="cite">
          <pre wrap="">        Hello!

        I took stable binary rpm with open source syslog-ng version 3.0.6 on 
        balabit.hu and install it on rhel 4u7. For some reason it does not 
        want to work with oracle backend. I try next bekend description in 
        syslog-ng.conf:

destination d_oracle_syslog {
      sql(type(oracle)
          username("login")
          password("password")
          database("database")
          table("table")
          columns("DATE varchar2(24)",
                  "facility number(2)",
                  "LEVEL number(1)",
                  "host varchar2(128)",
                  "program varchar2(64)",
                  "pid number(8)",
                  "message varchar2(1024)")
          indexes( "DATE","facility","host")
      );
};


        And after start syslog-ng post in /var/log/messages notes about 
        failure:

Apr 30 18:35:47 vm-dc-syslog syslog-ng[9815]: No such DBI driver; 
type='oracle'
Apr 30 18:35:47 vm-dc-syslog syslog-ng[9815]: No such DBI driver; 
type='oracle'
Apr 30 18:35:47 vm-dc-syslog syslog-ng[9815]: No such DBI driver; 
type='oracle'


        After this issue appear, I compile libdbi and libdbi-drivers version 
        0.8.3. But it did not help: syslog-ng continue write "No such DBI 
        driver; type='oracle'". And the same happens with the syslog-ng 
        versions 3.1.1 and 3.1.0.

        I install syslog-ng with binary rpm's from <a class="moz-txt-link-abbreviated" href="http://www.balabit.com">www.balabit.com</a>. 

        Tell me, please, how I may fix this issue.


        Regards,

        Dmitry Sedov.
______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: 
<a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a>


     
          </pre>
        </blockquote>
      </blockquote>
      <pre wrap=""> 
      </pre>
      <blockquote type="cite">
        <pre wrap="">______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: 
<a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a>

   
        </pre>
      </blockquote>
      <pre wrap="">______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: 
<a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a>

 
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->
______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a>

  </pre>
</blockquote>
</body>
</html>