Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 71d40963b505df4524269198e237b3e3 > files > 772

virtuoso-opensource-doc-6.1.4-2.fc14.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
 <head profile="http://internetalchemy.org/2003/02/profile">
  <link rel="foaf" type="application/rdf+xml" title="FOAF" href="http://www.openlinksw.com/dataspace/uda/about.rdf" />
  <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
  <meta name="dc.title" content="10. Database Event Hooks" />
  <meta name="dc.subject" content="10. Database Event Hooks" />
  <meta name="dc.creator" content="OpenLink Software Documentation Team ;&#10;" />
  <meta name="dc.copyright" content="OpenLink Software, 1999 - 2009" />
  <link rel="top" href="index.html" title="OpenLink Virtuoso Universal Server: Documentation" />
  <link rel="search" href="/doc/adv_search.vspx" title="Search OpenLink Virtuoso Universal Server: Documentation" />
  <link rel="parent" href="hooks.html" title="Chapter Contents" />
  <link rel="prev" href="sqlprocedures.html" title="SQL Procedure Language Guide" />
  <link rel="next" href="fn_dbev_startup.html" title="Database Startup" />
  <link rel="shortcut icon" href="../images/misc/favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" type="text/css" href="doc.css" />
  <link rel="stylesheet" type="text/css" href="/doc/translation.css" />
  <title>10. Database Event Hooks</title>
  <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
  <meta name="author" content="OpenLink Software Documentation Team ;&#10;" />
  <meta name="copyright" content="OpenLink Software, 1999 - 2009" />
  <meta name="keywords" content="" />
  <meta name="GENERATOR" content="OpenLink XSLT Team" />
 </head>
 <body>
  <div id="header">
    <a name="hooks" />
    <img src="../images/misc/logo.jpg" alt="" />
    <h1>10. Database Event Hooks</h1>
  </div>
  <div id="navbartop">
   <div>
      <a class="link" href="hooks.html">Chapter Contents</a> | <a class="link" href="rowlevelsecurity.html" title="Row Level Security">Prev</a> | <a class="link" href="fn_dbev_startup.html" title="Database Startup">Next</a>
   </div>
  </div>
  <div id="currenttoc">
   <form method="post" action="/doc/adv_search.vspx">
    <div class="search">Keyword Search: <br />
        <input type="text" name="q" /> <input type="submit" name="go" value="Go" />
    </div>
   </form>
   <div>
      <a href="http://www.openlinksw.com/">www.openlinksw.com</a>
   </div>
   <div>
      <a href="http://docs.openlinksw.com/">docs.openlinksw.com</a>
   </div>
    <br />
   <div>
      <a href="index.html">Book Home</a>
   </div>
    <br />
   <div>
      <a href="contents.html">Contents</a>
   </div>
   <div>
      <a href="preface.html">Preface</a>
   </div>
    <br />
   <div>
      <a href="overview.html">Overview</a>
   </div>
   <div>
      <a href="installation.html">Installation Guide</a>
   </div>
   <div>
      <a href="quicktours.html">Quick Start &amp; Tours</a>
   </div>
   <div>
      <a href="sampleapps.html">Sample ODBC &amp; JDBC Applications</a>
   </div>
   <div>
      <a href="concepts.html">Conceptual Overview</a>
   </div>
   <div>
      <a href="server.html">Administration</a>
   </div>
   <div>
      <a href="accessinterfaces.html">Data Access Interfaces</a>
   </div>
   <div>
      <a href="sqlreference.html">SQL Reference</a>
   </div>
   <div>
      <a href="sqlprocedures.html">SQL Procedure Language Guide</a>
   </div>
   <div class="selected">
      <a href="hooks.html">Database Event Hooks</a>
    <div>
        <a href="fn_dbev_startup.html" title="Database Startup">Database Startup</a>
    </div>
    <div>
        <a href="fn_dbev_connect.html" title="Database Connections">Database Connections</a>
    </div>
    <div>
        <a href="fn_logins.html" title="Database Logins">Database Logins</a>
    </div>
    <div>
        <a href="fn_disconnect.html" title="Database Disconnections">Database Disconnections</a>
    </div>
    <div>
        <a href="fn_dbev_shutdown.html" title="Database Shutdown">Database Shutdown</a>
    </div>
    <div>
        <a href="fn_dbev_prepare.html" title="SQL Statement Preparation">SQL Statement Preparation</a>
    </div>
    <div>
        <a href="sqlparsetree.html" title="SQL Parse Tree">SQL Parse Tree</a>
    </div>
    <div>
        <a href="fn_davlogins.html" title="WebDAV Logins">WebDAV Logins</a>
    </div>
    <div>
        <a href="assocauxdata.html" title="Associating Auxiliary Data With A Connection">Associating Auxiliary Data With A Connection</a>
    </div>
   </div>
   <div>
      <a href="repl.html">Data Replication, Synchronization and Transformation Services</a>
   </div>
   <div>
      <a href="webappdevelopment.html">Web Application Development</a>
   </div>
   <div>
      <a href="webandxml.html">XML Support</a>
   </div>
   <div>
      <a href="rdfandsparql.html">RDF Data Access and Data Management</a>
   </div>
   <div>
      <a href="webservices.html">Web Services</a>
   </div>
   <div>
      <a href="runtimehosting.html">Runtime Hosting</a>
   </div>
   <div>
      <a href="internetservices.html">Internet Services</a>
   </div>
   <div>
      <a href="freetext.html">Free Text Search</a>
   </div>
   <div>
      <a href="tpcc.html">TPC C Benchmark Kit</a>
   </div>
   <div>
      <a href="xa.html">Using Virtuoso with Tuxedo</a>
   </div>
   <div>
      <a href="appendixa.html">Appendix</a>
   </div>
   <div>
      <a href="functions.html">Virtuoso Functions Guide</a>
   </div>
    <br />
  </div>
  <div id="text">
   <div class="abstract">
      <h2>Abstract</h2>
      <p>Virtuoso provides a number of hooks that enable you to traps events
    within the database such as startup, shutdown, connection, disconnection and
    SQL compilation events.</p>
   </div>
    <h2>Table of Contents</h2>
   <div class="minitoc">
    <div>
        <a class="sect1" href="fn_dbev_startup.html">10.1. Database Startup</a>
    </div>
    <div>
        <a class="sect1" href="fn_dbev_connect.html">10.2. Database Connections</a>
    </div>
    <div>
        <a class="sect1" href="fn_logins.html">10.3. Database Logins</a>
    </div>
    <div>
        <a class="sect1" href="fn_disconnect.html">10.4. Database Disconnections</a>
    </div>
    <div>
        <a class="sect1" href="fn_dbev_shutdown.html">10.5. Database Shutdown</a>
    </div>
    <div>
        <a class="sect1" href="fn_dbev_prepare.html">10.6. SQL Statement Preparation</a>
    </div>
    <div>
        <a class="sect1" href="sqlparsetree.html">10.7. SQL Parse Tree</a>
    </div>
    <div>
        <a class="sect2" href="sqlparsetree.html#notesonspecialparsetree">10.7.1. Notes on Special Features of the Parse Tree</a>
    </div>
    <div>
        <a class="sect2" href="sqlparsetree.html#sqlsecandparsetrees">10.7.2. SQL Security and Parse Trees</a>
    </div>
    <div>
        <a class="sect2" href="sqlparsetree.html#debuggingparsetree">10.7.3. Debugging with Parse Trees</a>
    </div>
    <div>
        <a class="sect1" href="fn_davlogins.html">10.8. WebDAV Logins</a>
    </div>
    <div>
        <a class="sect1" href="assocauxdata.html">10.9. Associating Auxiliary Data With A Connection</a>
    </div>
   </div>
    <br />
    <p>
Virtuoso allows the dba to set hooks for various events, such as:
</p>
   <ul>
      <li>Startup</li>
      <li>Shutdown</li>
      <li>Client Connect</li>
      <li>Client Disconnect</li>
      <li>Compilation of a Dynamic SQL Statement</li>
   </ul>
    <p>
These events are intercepted by calling a SQL procedure if one is defined.
</p>
    <p>
In the following we will examine each hook in the context of a simplified
database security system.  The system will record all logins
and logouts and will enforce custom security rules on reading a
specific application table.
</p>
   <table border="0" width="90%" id="navbarbottom">
    <tr>
        <td align="left" width="33%">
          <a href="rowlevelsecurity.html" title="Row Level Security">Previous</a>
          <br />Row Level Security</td>
     <td align="center" width="34%">
          <a href="hooks.html">Chapter Contents</a>
     </td>
        <td align="right" width="33%">
          <a href="fn_dbev_startup.html" title="Database Startup">Next</a>
          <br />Database Startup</td>
    </tr>
   </table>
  </div>
  <div id="footer">
    <div>Copyright© 1999 - 2009 OpenLink Software All rights reserved.</div>
   <div id="validation">
    <a href="http://validator.w3.org/check/referer">
        <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" />
    </a>
    <a href="http://jigsaw.w3.org/css-validator/">
        <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" height="31" width="88" />
    </a>
   </div>
  </div>
 </body>
</html>