ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatc_5.4.0.1/rzatcdeleteobj.htm

78 lines
4.7 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="copyright" content="(C) Copyright IBM Corporation 2005" />
<meta name="DC.rights.owner" content="(C) Copyright IBM Corporation 2005" />
<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="task" />
<meta name="DC.Title" content="Delete database objects" />
<meta name="DC.Relation" scheme="URI" content="rzatcgetstartinav.htm" />
<meta name="DC.Relation" scheme="URI" content="../rzatc/rzatcinavtasks.htm" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzatcdeleteobj" />
<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>Delete database objects</title>
</head>
<body id="rzatcdeleteobj"><a name="rzatcdeleteobj"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Delete database objects</h1>
<div><div class="section">After you have created these objects on your system, you might want
to drop them to save on system resource. You need Delete authority to perform
these tasks.<div class="note"><span class="notetitle">Note:</span> To keep the information in these tables, create a third
schema and copy the tables and views to it.</div>
</div>
<ol><li><span>First, drop INVENTORY_LIST table from LIBRARY1:</span><ol type="a"><li><span>In the <span class="keyword">iSeries™ Navigator</span> window,
expand the system that you want to use. </span></li>
<li><span>Expand <span class="uicontrol">Databases</span> and the database that
you want to work with.</span></li>
<li><span>Expand <span class="uicontrol">Schemas</span> and select LIBRARY1.</span></li>
<li><span>Select <span class="uicontrol">Tables</span>.</span></li>
<li><span>Right-click INVENTORY_LIST and select <span class="uicontrol">Delete</span> or
press the Delete key.</span></li>
<li><span>On the Object deletion confirmation window, select <span class="uicontrol">Delete</span>.
INVENTORY_LIST table is dropped.</span></li>
</ol>
</li>
<li><span>Next, delete SUPPLIERS from LIBRARY1, and delete LIBRARY1:</span><ol type="a"><li><span>Right-click SUPPLIERS and select <span class="uicontrol">Delete</span> or
press the Delete key.</span></li>
<li><span>On the Object deletion confirmation window, select <span class="uicontrol">Yes</span>.</span></li>
<li><span>A new window opens, indicating that the view, LOWER_COST, is
dependent on SUPPLIERS. The view should also be deleted. Click <span class="uicontrol">Delete</span>.</span></li>
<li><span>SUPPLIERS and LOWER_COST are deleted. Now that LIBRARY1 is empty,
delete it by right-clicking it and selecting <strong>Delete</strong>. </span></li>
<li><span>On the Object deletion confirmation window, select <span class="uicontrol">Yes</span>.
LIBRARY1 is deleted.</span></li>
</ol>
</li>
<li><span>Finally, delete SAMPLELIB:</span><ol type="a"><li><span>Navigate to SAMPLELIB in the <span class="uicontrol">Schemas</span> menu.</span></li>
<li><span>Right-click SAMPLELIB and select <span class="uicontrol">Delete</span>. </span></li>
<li><span>On the Object deletion confirmation window, select <span class="uicontrol">Delete</span>.</span></li>
<li><span>A new window opens, indicating that the table INVENTORY_LIST
and view RECENT_ORDERS are dependent on INVENTORY_LIST. These should also
be deleted. Click <span class="uicontrol">Yes</span>.</span></li>
</ol>
</li>
</ol>
<div class="section">SAMPLELIB, INVENTORY_LIST, and RECENT_ORDERS are deleted.</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzatcgetstartinav.htm" title="This tutorial describes how to create and work with schemas, tables, and views using iSeries Navigator.">Get started with iSeries Navigator</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../rzatc/rzatcinavtasks.htm">iSeries Navigator tasks</a></div>
</div>
</div>
</body>
</html>