Sophie

Sophie

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

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="11. Data Replication, Synchronization and Transformation Services" />
  <meta name="dc.subject" content="11. Data Replication, Synchronization and Transformation Services" />
  <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="repl.html" title="Chapter Contents" />
  <link rel="prev" href="proctransrepl.html" title="Transactional Replication " />
  <link rel="next" href="replexamples.html" title="Transactional Replication Example" />
  <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>11. Data Replication, Synchronization and Transformation Services</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="SCHEDULER" />
    <img src="../images/misc/logo.jpg" alt="" />
    <h1>11. Data Replication, Synchronization and Transformation Services</h1>
  </div>
  <div id="navbartop">
   <div>
      <a class="link" href="repl.html">Chapter Contents</a> | <a class="link" href="proctransrepl.html" title="Transactional Replication ">Prev</a> | <a class="link" href="replexamples.html" title="Transactional Replication Example">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 class="selected">
      <a href="repl.html">Data Replication, Synchronization and Transformation Services</a>
   </div>
    <br />
   <div>
      <a href="replintro.html">Introduction</a>
   </div>
   <div>
      <a href="SNAPSHOT.html">Snapshot Replication</a>
   </div>
   <div>
      <a href="proctransrepl.html">Transactional Replication </a>
   </div>
   <div class="selected">
      <a href="SCHEDULER.html">Virtuoso scheduler</a>
    <div>
        <a href="#replschSYSTABLES" title="SYS_SCHEDULED_EVENT">SYS_SCHEDULED_EVENT</a>
    </div>
   </div>
   <div>
      <a href="replexamples.html">Transactional Replication Example</a>
   </div>
   <div>
      <a href="replsample.html">Replication Logger Sample</a>
   </div>
    <br />
  </div>
  <div id="text">
		<a name="SCHEDULER" />
    <h2>11.4. Virtuoso scheduler</h2>
		<p>
Virtuoso scheduler allows an arbitrary SQL command to be run at certain intervals.
</p>
		<p>
The scheduler process wakes up every n minutes, scans the SYS_SCHEDULED_EVENT table and
executes each command which applies to the current time. Note that overdue commands are executed
only once.
</p>
		<p>
There is a virtuoso.ini parameter &quot;SchedulerInterval&quot; under 
<a href="sect5_ini_Parameters.html">Parameters</a> section which defines the scheduler wake-up interval. 
Set this to 0 (the default) to disable the scheduler.
</p>
		
			<a name="replschSYSTABLES" />
    <h3>11.4.1. SYS_SCHEDULED_EVENT</h3>
			<div>
      <pre class="programlisting">
CREATE TABLE SYS_SCHEDULED_EVENT(
    SE_NAME		varchar,
    SE_START		datetime,
    SE_SQL		varchar,
    SE_LAST_COMPLETED	datetime,
    SE_INTERVAL		integer,
    PRIMARY KEY(SE_NAME));
</pre>
    </div>
			<p>
This table describes each scheduled SQL command. SE_NAME is the name of the scheduled event.
SE_START is the first schedule execution time.
SE_SQL is the text of the SQL command to be executed.
SE_LAST_COMPLETED is the last time when the SQL command was executed successfully.
SE_INTERVAL is the interval between the runs of the SQL command in minutes.
</p>
			<p>
Defining a new scheduled event means adding a row to the SYS_SCHEDULED_EVENT with an insert statement like this:
</p>
			<div>
      <pre class="programlisting">
INSERT INTO SYS_SCHEDULED_EVENT (SE_NAME, SE_SQL, SE_START, SE_INTERVAL)
		VALUES (.....)
</pre>
    </div>
		<br />
	<table border="0" width="90%" id="navbarbottom">
    <tr>
        <td align="left" width="33%">
          <a href="proctransrepl.html" title="Transactional Replication ">Previous</a>
          <br />Transactional Replication </td>
     <td align="center" width="34%">
          <a href="repl.html">Chapter Contents</a>
     </td>
        <td align="right" width="33%">
          <a href="replexamples.html" title="Transactional Replication Example">Next</a>
          <br />Transactional Replication Example</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>