ibm-information-center/dist/eclipse/plugins/i5OS.ic.ddp_5.4.0.1/rbal1movesave.htm

100 lines
6.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="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="Move a table using server save and restore commands" />
<meta name="abstract" content="You can move a table from another iSeries server using the Save Object (SAVOBJ) and Restore Object (RSTOBJ) commands. The save commands save database files on tape or in a save file. The save file can be distributed to another server through communications." />
<meta name="description" content="You can move a table from another iSeries server using the Save Object (SAVOBJ) and Restore Object (RSTOBJ) commands. The save commands save database files on tape or in a save file. The save file can be distributed to another server through communications." />
<meta name="DC.subject" content="moving data, using save and restore, command, Save Object (SAVOBJ), moving data between, server, iSeries, Restore Object (RSTOBJ)" />
<meta name="keywords" content="moving data, using save and restore, command, Save Object (SAVOBJ), moving data between, server, iSeries, Restore Object (RSTOBJ)" />
<meta name="DC.Relation" scheme="URI" content="rbal1mvdat.htm" />
<meta name="DC.Relation" scheme="URI" content="../rzahg/rzahgbackup.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/rstlib.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/rstobj.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/savchgobj.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/savlib.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/savobj.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="rbal1movesave" />
<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>Move a table using server save and restore commands</title>
</head>
<body id="rbal1movesave"><a name="rbal1movesave"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Move a table using server save and restore commands</h1>
<div><p>You can move a table from another <span class="keyword">iSeries™ server</span> using
the <span class="cmdname">Save Object (SAVOBJ)</span> and <span class="cmdname">Restore Object (RSTOBJ)</span> commands.
The save commands save database files on tape or in a save file. The save
file can be distributed to another server through communications.</p>
<div class="section"> <p>The save and restore commands used to save and restore tables
or files include: </p>
<ul><li><span class="cmdname">Save Library (SAVLIB)</span> command saves one or more collections
or libraries</li>
<li><span class="cmdname">Save Object (SAVOBJ)</span> command saves one or more objects
(including database tables and views)</li>
<li><span class="cmdname">Save Changed Object (SAVCHGOBJ)</span> command saves any objects
that have changed since either the last time the collection or library was
saved or from a specified date</li>
<li><span class="cmdname">Restore Library (RSTLIB)</span> command restores a collection
or library</li>
<li><span class="cmdname">Restore Object (RSTOBJ)</span> command restores one or more
objects (including database tables and views)</li>
</ul>
<p>For example, if two dealerships were merging, the save and restore
commands could be used to save collections and tables for one relational database,
which are then restored on the remaining server's relational database. To
accomplish this an administrator would: </p>
</div>
<ol><li><span>Use the <span class="cmdname">Save Library (SAVLIB)</span> command on server
A to save a collection or use the <span class="cmdname">Save Object (SAVOBJ)</span> command
on server A to save a table.</span></li>
<li><span>Specify whether the data is saved to a save file, which can be
distributed using SNADS, or saved on tape.</span></li>
<li><span>Distribute the save file to server B or send the tape to
server B.</span></li>
<li><span>Use the <span class="cmdname">Restore Library (RSTLIB)</span> command on
server B to restore a collection or use the <span class="cmdname">Restore Object (RSTOBJ)</span> command
on server B to restore a table.</span></li>
</ol>
<div class="section"> <p>A consideration when using the save and restore commands is the
ownership and authorizations to the restored object. A valid user profile
for the current object owner should exist on the server where the object is
restored. If the current owner's profile does not exist on this server, the
object is restored under the QDFTOWN default user profile. User authorizations
to the object are limited by the default user profile parameters. A user with
QSECOFR authority must either create the original owner's profile on this
server and make changes to the restored object ownership, or specify new authorizations
to this object for both local and remote users.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal1mvdat.htm" title="A number of situations occur in enterprise operations that might require moving data from one iSeries server to another.">Move data from one iSeries server to another</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../rzahg/rzahgbackup.htm">Backup and recovery</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../cl/rstlib.htm">Restore Library (RSTLIB) command</a></div>
<div><a href="../cl/rstobj.htm">Restore Object (RSTOBJ) command</a></div>
<div><a href="../cl/savchgobj.htm">Save Changed Object (SAVCHGOBJ) command</a></div>
<div><a href="../cl/savlib.htm">Save Library (SAVLIB) command</a></div>
<div><a href="../cl/savobj.htm">Save Object (SAVOBJ) command</a></div>
</div>
</div>
</body>
</html>