This appendix provides information for users of Visual Warehouse 5.2 who want to run certain Visual Warehouse 5.2 programs in the Data Warehouse Center.
Use this step to run the Visual Warehouse DB2 UDB Data Export (VWPEXPT1) warehouse program in the Data Warehouse Center. You use the Data Export program to export data from the local DB2 database.
Connect a warehouse source to this step in the Process Model window before you define the values for this step subtype. Parameter values for this step subtype will be defined automatically based on your source definition.
If the export process generates warnings, the program returns as successfully completed.
This program is available for the following operating systems:
The Column Mapping page is not available for this step.
To define values for a step that uses this program:
Use this step to run the Visual Warehouse 5.2 DB2 UDB Data Load Insert (VWPLOADI) warehouse program in the Data Warehouse Center. You use VWPLOADI to load data from a flat file into a DB2 table, appending to existing data.
Connect the step to warehouse source and a warehouse target in the Process Model window.
The Visual Warehouse 5.2 DB2 UDB Load Insert warehouse program extracts the following step and warehouse source parameter values from the Process Model window and your step definition:
These parameters are predefined. You do not specify values for these parameters. Additionally, the step passes other parameters for which you provide values. Before the program loads new data into the table, it exports the table to a backup file, which you can use for recovery.
Recommendation: Create the target table in its own private DB2 tablespace. Any private tablespace that you create will be used by default for all new tables that do not specify a tablespace. If processing fails, DB2 might put the whole tablespace in hold status, making the tablespace inaccessible. To avoid this hold problem, create a second private tablespace for steps that do not use the load programs.
To create a tablespace:
CREATE TABLESPACE tablespace-name MANAGED BY SYSTEM USING ('d:/directory')
where directory is the directory that is to contain the databases. DB2 creates the directory for you.
Restrictions: The Data Warehouse Center definition for the warehouse agent site that is running the program must include a user ID and password. The DB2 load utility cannot be run by a user named SYSTEM. Be sure to select the same warehouse agent site in the warehouse source and the warehouse target for the step using the program. The database server does not need to be on the agent site. However, the source file must be on the database server. Specify the fully qualified name of the source files as defined on the DB2 server.
If the warehouse program detects a failure during processing, the table will be emptied. If the load generates warnings, the program returns as successfully completed.
The warehouse program does not collect database statistics. Run the DB2 UDB RUNSTATS program after a sizable load is complete.
This warehouse program is available for the following operating systems:
The Column Mapping page is not available for this step.
To define a values for a step that uses this warehouse program:
The file type modifier can use the following modifiers:
Modifier | Description |
Chardel x | x is a single-character string delimiter. The default value is a double quotation mark ("). The character that you specify is used in place of double quotation marks to enclose a character string. You can specify a single quotation mark () as a character string delimiter as follows: Modified by chardel |
Coldel x | x is a single-character column delimiter. The default value is a comma (,). The character that you specify is used instead of a comma to signal the end of a column. Do not insert a space between coldel and the comma. Enclose this parameter in double quotation marks. Otherwise, the command line processor interprets some characters as file redirection characters. In the following example, coldel ; causes the export utility to interpret any semicolon (;) it encounters as a column delimiter: Db2 "export to temp of del modified by coldel; select * from staff where dept = 20" |
Dateisiso | Dataisiso causes all date data values to be exported in ISO format. |
Decplusblank | Decplusblank causes positive decimal values to be prefixed with a blank space instead of a plus sign (=). The default action is to prefix positive decimal values with a plus sign. |
Decpt x | x is a single-character substitute for the period as a decimal point character. The default value is a period (.). The character that you specify is used in place of a period as a decimal point character. |
See the DB2 Utilities book for more information about these modifiers.
Use this step to run the Visual Warehouse 5.2 DB2 Data Load Replace (VWPLOADR) warehouse program in the Data Warehouse Center. You use VWPLOADR to load data from a flat file into a DB2 table, replacing existing data.
Connect the step to warehouse source and a warehouse target in the Process Model window.
The Visual Warehouse 5.2 DB2 UDB Load Replace warehouse program extracts the following step and warehouse source parameter values from the Process Model window and your step definition:
These parameters are predefined. You do not specify values for these parameters.
Recommendation: Create the target table in its own private DB2 tablespace. Any private tablespace that you create will be used for all new tables that do not specify a tablespace. If processing fails, DB2 might put the whole tablespace in hold status, making the tablespace inaccessible. To avoid this hold problem, create a second private tablespace for steps that do not use the load programs.
To create a tablespace:
CREATE TABLESPACE tablespace-name MANAGED BY SYSTEM USING ('d:/directory')
where directory is the directory that is to contain the databases. DB2 creates the directory.
Restrictions: The Data Warehouse Center definition for the agent site that is running the program must include a user ID and password. The DB2 load utility cannot be run by a user named SYSTEM. Be sure to select the same agent site in the warehouse source and the warehouse target for the step that uses the warehouse program. The database server does not need to be on the agent site. However, the source file must be on the database server. Specify the fully qualified name of the source files as defined on the DB2 server.
If the warehouse program detects a failure during processing, the table is emptied. If the load generates warnings, the program returns as successfully completed.
The DB2 UDB Load Replace program collects database statistics during the load, so you do not need to run the DB2 UDB RUNSTATS (VWPSTATS) program after this program.
This warehouse program is available for the following operating systems:
To define a values for a step that uses this program:
The file type modifier can use the following modifiers:
Modifier | Description |
Chardel x | x is a single-character string delimiter. The default value is a double quotation mark (). The character that you specify is used in place of double quotation marks to enclose a character string. You can specify a single quotation mark () as a character string delimiter as follows: Modified by chardel |
Coldel x | x is a single-character column delimiter. The default value is a comma (,). The character that you specify is used instead of a comma to signal the end of a column. Do not insert a space between coldel and the comma. Enclose this parameter in double quotation marks. Otherwise, the command line processor interprets some characters as file redirection characters. In the following example, coldel ; causes the export utility to interpret any semicolon (;) it encounters as a column delimiter: Db2 export to temp of del modified by coldel; select * from staff where dept = 20 |
Dateisiso | Dataisiso causes all date data values to be exported in ISO format. |
Decplusblank | Decplusblank causes positive decimal values to be prefixed with a blank space instead of a plus sign (=). The default action is to prefix positive decimal values with a plus sign. |
Decpt x | x is a single-character substitute for the period as a decimal point character. The default value is a period (.). The character that you specify is used in place of a period as a decimal point character. |
See the DB2 Utilities book for more information about these modifiers.
Use this step to run the Visual Warehouse 5.2 DB2 UDB REORG (VWPREORG) program in the Data Warehouse Center. This step runs the DB2 UDB REORG utility on a target table.
You schedule this step to run on the target table of a process, after the process completes. In the Process Model window, draw a data link from the step to the warehouse target.
The Visual Warehouse 5.2 DB2 UDB REORG program extracts the following step and warehouse source parameter values from the Process Model window and your step definition:
These parameters are predefined. You do not specify values for these parameters.
To define a values for a step that uses this program:
Use this step to run the Visual Warehouse 5.2 DB2 UDB RUNSTATS (VWPSTATS) warehouse program in the Data Warehouse Center.
This step runs the DB2 UDB RUNSTATS utility on a target table. You schedule this step to run on the target table of a process, after the process completes. In the Process Model window, draw a data link from the step to the warehouse target.
The Visual Warehouse 5.2 DB2 UDB RUNSTATS warehouse program extracts the following step and warehouse source parameter values from the Process Model window and your step definition:
These parameters are predefined. You do not specify values for these parameters.
To define a values for a step that uses this warehouse program:
Use this step to run the Visual Warehouse 5.2 Load flat file into DB2 UDB EEE (AIX only) (VWPLDPR) program in the Data Warehouse Center. This step loads data from a delimited flat file into a DB2 Universal Database Extended Enterprise Edition database, replacing existing data.
Before you use this warehouse program, you must be familiar with parallel system concepts and parallel load.
The VWPLDPR program performs the following steps when it is loading data to a parallel database:
If the load step fails on any node, the VWPLDPR program does the following:
The VWPLDPR program extracts the following step and warehouse source parameter values from the Process Model window and your step definition:
These parameters are predefined. You do not specify values for these parameters. Additionally, there are a number of parameters that you must provide values for.
The Load flat file into DB2 UDB EEE program does not run the DB2 RUNSTATS utility after the load. If you want to automatically run the RUNSTATS utility after the load, add a step to your process that runs RUNSTATS .
Recommendation: Create the target table in its own private DB2 tablespace. Any private tablespace that you create will be used for all new tables that do not specify a tablespace. If processing fails, DB2 might put the whole tablespace in hold status, making the tablespace inaccessible. To avoid this hold problem, create a second private tablespace for steps that do not use the load programs.
To create a tablespace:
CREATE TABLESPACE tablespace-name MANAGED BY SYSTEM USING (d:/directory')
where directory is the directory that is to contain the databases. DB2 creates the directory.
This program runs on AIX.
To define a values for a step that uses this warehouse program: