Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Overview
PeopleSoft Data Mover is a stand-alone two-tier program, which you can run through a graphical interface on
Microsoft Windows, or a command line interface on either Microsoft Windows or UNIX systems.
Note. PeopleSoft Data Mover runs in two-tier mode only. You must sign in to the database directly, not through an
application server.
Operating Modes
Operating modes determine how you are connected to the database. PeopleSoft Data Mover modes are:
Most of the time, we use regular mode. To sign in to regular mode, enter your
PeopleSoft user ID and password during sign-in.
Bootstrap mode.
In bootstrap mode, you use a database access ID and password when signing in. Typically,
you use bootstrap mode for database loading, because no PeopleSoft security tables are
established yet.
Using bootstrap mode is necessary for database loading, because there are no
PeopleSoft security tables established yet.
10
11
Select record information and data from records and store the result set in a file. You can use the generated export file as input
for migrating to another platform.
Syntax
EXPORT {record | *} [WHERE condition(s)];
Description
Creates a single export file containing the specified database contents. The result set can contain any of the following: a single
PeopleSoft record, a group of records, or the entire database. You can use the export file as input for the PeopleSoft Data Mover IMPORT
command to migrate the data within the platform or to another platform.
When you export all records using EXPORT*, PeopleSoft Data Mover orders the records alphabetically (with the exception of PSLOCK,
which is the last record exported). After each record, PeopleSoft Data Mover indicates how many records remain. After all the tables are
exported, then the views are exported.
Parameters
LOG, NO COMMIT, NO DATA, NO TRACE, NO VIEW, and OUTPUT.
Note. SET NO VIEW is only valid with EXPORT *.
Note. If SET OUTPUT is not used, PeopleSoft Data Mover writes to the default file name, DATAMOVE.DAT.
Note. This command is not available in bootstrap mode.
Example
export a single record, use an EXPORT command for the specific record. For example:
EXPORT PS_ROLEDEFN;
12
13
Insert data into tables using the information in an export file. If a tablespace or table does not exist, this command creates
tablespace, table, and indexes for the record, using the information in the export file, and inserts the data.
Syntax
IMPORT {record | *} [IGNORE_DUPS] [AS new_table_name];
Description
Creates database spaces, create nonexistent records and indexes, and appends non-duplicate rows to records. In addition, creates views if the
export file was created using EXPORT * and imported using IMPORT *.
In the IMPORT statement, the AS clause is only valid if you specify a particular record; it is not valid and should not be used with IMPORT*.
Also, the table name that you specify immediately after the AS command modifier must not exceed 18 characters (including the ps_
prefix).
Note. There are also two variations of IMPORT that you can use: REPLACE_ALL and REPLACE_DATA.
Parameters
All except OUTPUT.
INPUT is a required parameter.
Note. IGNORE_DUPS is only valid in bootstrap mode.
Example
To import a single record from an export file, use an IMPORT command for that record. For example:
SET INPUT file_name;
IMPORT PS_PSROLEDEFN;
14
15
16
17
Syntax
Description
Parameters
18
19
Syntax
RENAME {RECORD record | FIELD {field | record.field}} AS new_name;
Description
Renames a PeopleSoft record, a field in one record, or a field in all records.
Note. This command is not available in bootstrap mode.
Parameters
LOG, NO COMMIT, and NO TRACE.
Example
To rename a record:
RENAME RECORD absence_hist AS absent_hist;
To rename a recfield:
RENAME FIELD course_tbl.duration_days AS duration_d;
20
REPLACE_DATA
Syntax
REPLACE_DATA {record | *};
Description
This command is a variation of the IMPORT command. Use it to delete data in existing tables and insert the corresponding data from the
export file.
Parameters
COMMIT, EXECUTE_SQL, EXTRACT, INPUT, INSERT_DATA_ONCE, LOG, NO COMMIT, NO TRACE, NO VIEW, SIZING_SET,
SPACE, START, and VERSION.
INPUT is a required parameter.
21
22
23
24
CREATE_INDEX_BEFORE_DATA:
Syntax
SET CREATE_INDEX_BEFORE_DATA;
Description
Creates the index before inserting rows into a record. The default method is to insert rows into a record and then create the index.
Parameters
IMPORT and REPLACE_ALL.
25
EXTRACT
Syntax
SET EXTRACT {COMMAND | DDL | INPUT | SPACE | OUTPUT file_name};
Description
Extracts various types of information from an export file (the DAT file specified in the corresponding SET INPUT command
that precedes the IMPORT or REPLACE ALL command) and writes this information to the user-defined output file specified in
the SET EXTRACT OUTPUT file_name statement.
Note. You must use SET EXTRACT OUPUT before issuing any other SET EXTRACT statements. EXTRACT INPUT writes out any
statements from the DAT file that are associated with the tables being imported. EXTRACT DDL writes out any CREATE
TABLE, CREATE INDEX, or CREATE UNIQUE INDEX statements from the DAT file. EXTRACT COMMAND writes out the
EXPORT statements from the DAT file.
Parameters
26
INSERT_DATA_ONCE
Syntax
SET INSERT_DATA_ONCE record;
Description
Skips (that is, bypasses importing) the specified record if there is already one or more rows in the table corresponding to that
record. If the table is empty, only a single row is inserted.
Parameters
IMPORT, REPLACE_ALL, and REPLACE_DATA.
27
NO DATA
Syntax
SET NO DATA;
Description
During an export, the NO DATA command prevents data from being exported. In an import, this command prevents data from
being inserted.
Parameters
EXPORT, IMPORT, and REPLACE_ALL
28
NO INDEX
Syntax
SET NO INDEX;
Description
Prevents indexes from being created during an IMPORT or a REPLACE_ALL command
Parameters
IMPORT and REPLACE_ALL
29
NO SPACE
Syntax
SET NO SPACE;
Description
Prevents tablespaces from being created, this is the default setting. You can use this statement to reset the default after
executing a SET SPACE statement.
Parameters
IMPORT and REPLACE_ALL
30
NO VIEW
Syntax
SET NO VIEW;
Description
Prevents views from being created
Parameters
EXPORT * only, IMPORT * only, REPLACE_ALL * only, and REPLACE_DATA * only.
31
SPACE
Syntax
SET SPACE old spcname AS new_spcname;
Description
Use for all operating systems other than z/OS. Renames the default space names to customized space names, to name all
record default space names to a single space name, substitute * for a space name.
Parameters
IMPORT and REPLACE_ALL
Example
SET SPACE * AS PS;
32
STATISTICS
Syntax
SET STATISTICS {ON | OFF};
Description
Sets UPDATE STATISTICS to on or off. The default value is on. Set the value to off if you do not want to update statistics
after an IMPORT. This command works only in bootstrap mode.
Parameters
IMPORT and REPLACE_ALL
33
VERSION
Syntax
SET VERSION sql_table.column condition;
Description
Verifies the version of the database for importing
Parameters
IMPORT, REPLACE_ALL and REPLACE_DATA
Example
SET VERSION PSLOCK.TOOLSREL="8.4"
PeopleSoft Data Mover verifies that the TOOLSREL column in PSLOCK equals 8.4. This avoids importing an export file into
the wrong database. Use the SQL table name to indicate which PeopleSoft record to check.
34
35
36
The PeopleSoft Data Mover interface consists of two horizontal panes: an input pane and an output
pane.
The status bar at the bottom of the window provides the following information:
The input pane displays the script that you open. In this pane, you view and edit PeopleSoft Data Mover
scripts.
The output window displays the results after running a script. If you encounter any errors, the
37
38
39
40
Case Sensitivity
Statement text is not case-sensitive. For example,
IMPORT * is equivalent to import *
String Constants
String constants are case-sensitive and must be surrounded by single quotation marks. For example, ABC is treated differently
than Abc or abc.
41
42
Running Scripts
When running scripts through PeopleSoft Data Mover, keep the following items in mind:
Turn off the SQL Trace utility to run PeopleSoft Data Mover scripts. If SQL Trace is enabled, disable it on the
Trace tab in PeopleSoft Configuration Manager before you run the script. You can also enter the SET NO TRACE
statement within scripts. This disables SQL Trace for the DMS script even if it is enabled in PeopleSoft
Configuration
Manager.
To run a SQL script, you must open it by selecting File, Open so that the SQL runs properly. Do not copy and
paste SQL from another source into PeopleSoft Data Mover.
To run a script:
1. Select File, Open.
2. Select one of the following types of script to run.
PeopleSoft Data Mover files (.DMS). These are the files created using PeopleSoft Data Mover.
Query files (.SQL).These are the files created using the Build SQL functionality in PeopleSoft
Application Designer or using a query tool specific to a relational database management system
(RDBMS), such as PL/SQL on Oracle.
3. Select File, Run.
You can monitor the scripts progress in the output pane, which reveals any error messages and
displays the message Script Completed when processing has ended.
43
3.Select Target Database Select the RDBMS against which to run the database setup script. For instance, if the
database that you are creating will run on an Oracle server, select Oracle. Database Type , PeopleSoft supports nonUnicode (ANSI) and Unicode database types.
4.Select Character Set Select a character sets. Your choices vary depending on the database type that you selected.
44
45
46
47
48
THANK YOU
49