<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-us" xml:lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="security" content="public" /> <meta name="Robots" content="index,follow" /> <meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' /> <meta name="DC.Type" content="concept" /> <meta name="DC.Title" content="Database data protection and monitoring" /> <meta name="abstract" content="The system provides features to improve the integrity and consistency of your data. Two ways to protect data are enforcing business rules and enforcing data type rules." /> <meta name="description" content="The system provides features to improve the integrity and consistency of your data. Two ways to protect data are enforcing business rules and enforcing data type rules." /> <meta name="DC.subject" content="protecting and monitoring database data, monitoring and protecting database data, database data, protecting and monitoring" /> <meta name="keywords" content="protecting and monitoring database data, monitoring and protecting database data, database data, protecting and monitoring" /> <meta name="DC.Relation" scheme="URI" content="rbafodbfcon.htm" /> <meta name="DC.Relation" scheme="URI" content="rbaforzahfrca.htm" /> <meta name="DC.Relation" scheme="URI" content="rbaforzahftra.htm" /> <meta name="DC.Relation" scheme="URI" content="rbaforzahfpra.htm" /> <meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" /> <meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" /> <meta name="DC.Format" content="XHTML" /> <meta name="DC.Identifier" content="rbaforitgint" /> <meta name="DC.Language" content="en-us" /> <!-- All rights reserved. Licensed Materials Property of IBM --> <!-- US Government Users Restricted Rights --> <!-- Use, duplication or disclosure restricted by --> <!-- GSA ADP Schedule Contract with IBM Corp. --> <link rel="stylesheet" type="text/css" href="./ibmdita.css" /> <link rel="stylesheet" type="text/css" href="./ic.css" /> <title>Database data protection and monitoring</title> </head> <body id="rbaforitgint"><a name="rbaforitgint"><!-- --></a> <!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script> <h1 class="topictitle1">Database data protection and monitoring</h1> <div><p>The system provides features to improve the integrity and consistency of your data. Two ways to protect data are enforcing business rules and enforcing data type rules.</p> <div class="p">You can enforce business rules using the following methods: <ul><li>Referential constraints let you put controls (constraints) on data in files you define as having a mutual dependency. A referential constraint lets you specify rules to be followed when changes are made to files with constraints. </li> <li>Triggers let you run your own program to take any action or evaluate changes when files are changed. When predefined changes are made or attempted, a trigger program is run. </li> </ul> </div> <p>The system performs data type checking in certain instances to ensure, for example, that data in a numeric field is really numeric.</p> <div class="p">In addition, the system protects data from loss using the following methods: <ul><li>Journaling and commitment control functions</li> <li>System-managed access path protection (SMAPP) support</li> </ul> </div> </div> <div> <div class="familylinks"> <div class="parentlink"><strong>Parent topic:</strong> <a href="rbafodbfcon.htm" title="These topics provide some of the basic database concepts for setting up or working with IBM i5/OS database files.">Database file concepts</a></div> </div> <div class="relconcepts"><strong>Related concepts</strong><br /> <div><a href="rbaforzahfrca.htm" title="These topics discuss how to use referential constraints in your database to ensure that it contains only valid data.">Ensure data integrity with referential constraints</a></div> <div><a href="rbaforzahftra.htm" title="A trigger is a set of actions that run automatically when a specified change or read operation is performed on a specified database file. On iSeries, you define a set of trigger actions in any supported high-level language.">Trigger automatic events in your database</a></div> <div><a href="rbaforzahfpra.htm" title="These topics discuss the iSeries functions of recovering or restoring your database after the system loses data.">Recover and restore your database</a></div> </div> </div> </body> </html>