129 lines
9.0 KiB
HTML
129 lines
9.0 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="Create database objects" />
|
|||
|
<meta name="abstract" content="The first step in developing your database is to create the objects that hold your data. This category covers both SQL and file-based methods for creating tables, views, and indexes (with SQL) as well as physical and logical files (with file-based methods)." />
|
|||
|
<meta name="description" content="The first step in developing your database is to create the objects that hold your data. This category covers both SQL and file-based methods for creating tables, views, and indexes (with SQL) as well as physical and logical files (with file-based methods)." />
|
|||
|
<meta name="DC.Relation" scheme="URI" content="rzahfdbadmin.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="rzahfcreatedbotable" />
|
|||
|
<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>Create database objects</title>
|
|||
|
</head>
|
|||
|
<body id="rzahfcreatedbotable"><a name="rzahfcreatedbotable"><!-- --></a>
|
|||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|||
|
<h1 class="topictitle1">Create database objects</h1>
|
|||
|
<div><p>The first step in developing your database is to create the objects
|
|||
|
that hold your data. This category covers both SQL and file-based methods
|
|||
|
for creating tables, views, and indexes (with SQL) as well as physical and
|
|||
|
logical files (with file-based methods).</p>
|
|||
|
<p>The first step in developing any DB2 Universal Database™ database
|
|||
|
is to create the database objects that hold the actual data. For SQL-based
|
|||
|
databases, you create tables, views, and indexes; for system file databases,
|
|||
|
you create physical or logical files.</p>
|
|||
|
<p>You can create objects using <span class="keyword">iSeries™</span> Navigator,
|
|||
|
SQL, or the traditional file interface. The following table shows the available
|
|||
|
options for each task. Click the appropriate “X” for more information about
|
|||
|
performing the task.</p>
|
|||
|
<p>The <span class="keyword">iSeries</span> Navigator tasks
|
|||
|
are documented in the Online help. For more information about accessing <span class="keyword">iSeries</span> Navigator objects and using
|
|||
|
Online help, see <a href="../rzatc/rzatccreateobj.htm"><span class="keyword">iSeries</span> Navigator database tasks</a>.</p>
|
|||
|
<div class="p">
|
|||
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><thead align="left"><tr><th align="left" valign="top" width="25%" id="d0e49">Task</th>
|
|||
|
<th align="center" valign="top" width="25%" id="d0e51"><span class="keyword">iSeries</span> Navigator</th>
|
|||
|
<th align="center" valign="top" width="25%" id="d0e56">SQL</th>
|
|||
|
<th align="center" valign="top" width="25%" id="d0e58">Traditional file interface</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody><tr><td valign="top" width="25%" headers="d0e49 ">Create a map of database object relationships</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "> </td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "> </td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="25%" headers="d0e49 ">Create a package</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "><a href="../sqlp/rbafypack1.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../db2/rbafzmstpackageap.htm">X</a></td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="25%" headers="d0e49 ">Create a schema (library)</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "><a href="../sqlp/rbafysqlpcschema.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "> </td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="25%" headers="d0e49 ">Create a stored procedure</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "><a href="../sqlp/rbafysqlproc.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "> </td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="25%" headers="d0e49 ">Create a table (file)</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "><a href="../sqlp/rbafysqlpctablecreate.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../dbp/rbafocrepf.htm">X</a></td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="25%" headers="d0e49 ">Create a user-defined function</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "><a href="../sqlp/rbafyudfdudf.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "> </td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="25%" headers="d0e49 ">Create a user-defined type</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "><a href="../sqlp/rbafydefudt.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "> </td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="25%" headers="d0e49 ">Create a view or logical file</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "><a href="../sqlp/rbafyviewnt.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../dbp/rbafocrlof.htm">X</a></td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="25%" headers="d0e49 ">Create an alias</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "><a href="../sqlp/rbafycreatingalias.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../dbp/rbafodesckw.htm">X</a></td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="25%" headers="d0e49 ">Create an index or access path</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "><a href="../sqlp/rbafycrtindx.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "><a href="../dbp/rbafoapath.htm">X</a></td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="25%" headers="d0e49 ">Create an object using Run SQL Scripts</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "> </td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "> </td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="25%" headers="d0e49 ">Generate SQL for database objects</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "> </td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "> </td>
|
|||
|
</tr>
|
|||
|
<tr><td valign="top" width="25%" headers="d0e49 ">Create a sequence</td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e51 "><a href="../rzatc/rzatccreateobj.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e56 "><a href="../db2/rbafzmstcsequence.htm">X</a></td>
|
|||
|
<td align="center" valign="top" width="25%" headers="d0e58 "> </td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div>
|
|||
|
<div class="familylinks">
|
|||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahfdbadmin.htm" title="See several topics that can help you to manage your database.">Database administration</a></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
</html>
|