81 lines
4.6 KiB
HTML
81 lines
4.6 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="concept" />
|
|
<meta name="DC.Title" content="Save access paths" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiurzaiu130.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiurzaiu133.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzaiu132" />
|
|
<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>Save access paths</title>
|
|
</head>
|
|
<body id="rzaiu132"><a name="rzaiu132"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Save access paths</h1>
|
|
<div><p>When you restore a database file, but you did not save the access path
|
|
to the database, the server rebuilds the access path. You can significantly
|
|
reduce the amount of time it takes you to recover if you save the access paths.
|
|
However, the process that saves access paths increases the time for the save
|
|
operation and the amount of media that you use.</p>
|
|
<p>To save access paths that are owned by logical files, specify ACCPTH(*YES)
|
|
on the SAVCHGOBJ, SAVLIB, and SAVOBJ commands when you save the physical files.
|
|
The server saves access paths when you save the physical file because the
|
|
physical file contains the data that is associated with the access path. When
|
|
you save the logical file, you are saving only the description of the logical
|
|
file.</p>
|
|
<p>When a save command (SAVLIB, SAVOBJ, SAVCHGOBJ, SAVRSTLIB, SAVRSTOBJ, or
|
|
SAVRSTCHG) is performed, the save access paths parameter value is determined
|
|
by the QSAVACCPTH system value when ACCPTH(*SYSVAL) is specified. When ACCPTH(*YES)
|
|
or ACCPTH(*NO) is specified, this system value is ignored. If access paths
|
|
are to be saved, the process that saves access paths increases the time for
|
|
the save operation and the amount of media that you use. However, by having
|
|
the access paths saved, you significantly reduce the amount of time it takes
|
|
to recover a system because the access paths do not need to be rebuilt.</p>
|
|
<p>The server saves access paths that logical files own, and that are not
|
|
used for referential constraints if all of the following are true: </p>
|
|
<ul><li>You specify ACCPTH(*YES) on the save command for the physical files.</li>
|
|
<li>All based-on physical files under the logical file are in the same library
|
|
and are being saved at the same time on the same save command.</li>
|
|
<li>The logical file is MAINT(*IMMED) or MAINT(*DLY).</li>
|
|
</ul>
|
|
<p>In all cases, the server saves an access path only if it is valid and not
|
|
damaged at the time of the save operation.</p>
|
|
<p>When you save a physical file that is not a source file, the server saves
|
|
the following types of access paths with it, even if you do or do not specify
|
|
ACCPTH(*YES): </p>
|
|
<ul><li>Keyed access paths that are owned by the physical file</li>
|
|
<li>Primary key constraints</li>
|
|
<li>Unique constraints</li>
|
|
<li>Referential constraints</li>
|
|
</ul>
|
|
<p>If the based-on physical files and the logical files are in different libraries,
|
|
the server saves the access paths. However, the server may not restore these
|
|
access paths. Look for information about restoring access paths in the <a href="../books/sc415304.pdf" target="_blank">Backup and Recovery book</a><img src="wbpdf.gif" alt="Link to PDF" />.</p>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rzaiurzaiu133.htm">EXAMPLE - Saving files in a network</a></strong><br />
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiurzaiu130.htm">Save database files</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |