78 lines
4.5 KiB
HTML
78 lines
4.5 KiB
HTML
|
<?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="reference" />
|
||
|
<meta name="DC.Title" content="Check pending" />
|
||
|
<meta name="abstract" content="Referential constraints and check constraints can be in a state known as check pending, where potential violations of the constraint exist." />
|
||
|
<meta name="description" content="Referential constraints and check constraints can be in a state known as check pending, where potential violations of the constraint exist." />
|
||
|
<meta name="DC.subject" content="constraint, referential, check pending" />
|
||
|
<meta name="keywords" content="constraint, referential, check pending" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafysqlpctablecreate.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../dbp/rbaforzahfcoh.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../dbp/rbaforzahfrcv.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="rbafyrfcheck" />
|
||
|
<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>Check pending</title>
|
||
|
</head>
|
||
|
<body id="rbafyrfcheck"><a name="rbafyrfcheck"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Check pending</h1>
|
||
|
<div><p>Referential constraints and check constraints can be in a state
|
||
|
known as check pending, where potential violations of the constraint exist. </p>
|
||
|
<div class="section"><p>For referential constraints, a violation occurs when potential
|
||
|
mismatches exist between parent and foreign keys. For check constraints, a
|
||
|
violation occurs when potential values exist in columns which are limited
|
||
|
by the check constraint. When the system determines that the constraint may
|
||
|
have been violated (such as after a restore operation), the constraint is
|
||
|
marked as check pending. When this happens, restrictions are placed on the
|
||
|
use of tables involved in the constraint. For referential constraints, the
|
||
|
following restrictions apply: </p>
|
||
|
<ul><li>No input or output operations are allowed on the dependent file.</li>
|
||
|
<li>Only read and insert operations are allowed on the parent file.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><p>When a check constraint is in check pending, the following restrictions
|
||
|
apply: </p>
|
||
|
<ul><li>Read operations are not allowed on the file.</li>
|
||
|
<li>Inserts and updates are allowed and the constraint is enforced.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><p>To get a constraint out of check pending, you must:</p>
|
||
|
</div>
|
||
|
<div class="section"> <ol><li>Disable the relationship with the Change Physical File Constraint (CHGPFCST)
|
||
|
CL command.</li>
|
||
|
<li>Correct the key (foreign, parent, or both) data for referential constraints
|
||
|
or column data for check constraints.</li>
|
||
|
<li>Enable the constraint again with the CHGPFCST CL command.</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
<div class="section"><p>You can identify the rows that are in violation of the constraint
|
||
|
with the Display Check Pending Constraint (DSPCPCST) CL command. </p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafysqlpctablecreate.htm" title="A table can be visualized as a two-dimensional arrangement of data consisting of rows and columns.">Create a table</a></div>
|
||
|
</div>
|
||
|
<div class="relinfo"><strong>Related information</strong><br />
|
||
|
<div><a href="../dbp/rbaforzahfcoh.htm">Work with constraints that are in check pending status</a></div>
|
||
|
<div><a href="../dbp/rbaforzahfrcv.htm">Check pending status in referential constraints</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|