DBSPACE
Syntax
SET DBSPACE {old_dbname.old_spacename} AS {new_dbname.new_spacename};
Description
The DBSPACE command is applicable only to PeopleSoft application databases installed with segmented tablespaces. It cannot be used with databases installed with universal tablespaces. See the PeopleTools Installation Guide for DB2 for z/OS for additional details.
The DBSPACE command is similar to the SPACE command, but it is designed to handle the combination of DBNAME.DDLSPACENAME. On DB2 UDB, the DBNAME or DDLSPACENAME alone is not necessarily unique. However, the combination of the two (DBNAME.DDLSPACENAME) provides a unique relationship. For example, DBSPACE would be needed in the following scenario:
PSFSDMO.HRAPP
PSHRDMO.HRAPP
PSPTDMO.HRAPP
Note:
This command is supported only on DB2 UDB for z/OS. You use this command in place of the SPACE command used on other platforms.
Parameters
IMPORT and REPLACE_ALL.
Example
The wildcard (*) character is permitted for the database name and space name parameters to apply to all values being processed for the specific parameter in which the wildcard character is used. The following are examples of using this command to achieve one of the following:
To change a specific DBNAME/DDLSPACENAME combination to a single new combination:
SET DBSPACE old_dbname.old_spacename AS new_dbname.new_spacename
To keep the current database name the same but change the specific space name to a new name:
SET DBSPACE *.old_spacename AS *.new_spacename
To keep the current space name the same, but change the specific database name to a new name:
SET DBSPACE old_dbname.* AS new_dbname.*
WARNING:
Because of the large number of objects delivered in the PeopleSoft logical databases, do not override all old database name or space name values to a single new database name or space name value when building a SYS or DMO database. However, this feature may be useful in working with smaller data files that contain a smaller number of objects.
For large databases, do not use the following commands:
SET DBSPACE *.* AS new_dbname.new_spacename
SET DBSPACE *.* AS *.new_spacename
SET DBSPACE *.* AS new_dbname.*
You can use multiple SET DBSPACE statements to override the space name in the .DAT file. This enables you to override multiple databases in the same section of the script. For example:
SET DBSPACE PSFSDMO.* AS MYFSDMO1.*;
SET DBSPACE PSFSDMOF.* AS MYFSDMO2.*;
SET DBSPACE PSFSDMOD.* AS MYFSDMO3.*;
SET DBSPACE PSFSDMOM.* AS MYFSDMO4.*;