Creating a default restart table after installation
Use the procedure in this section to create a default restart table after installation by entering commands at a command prompt.
You can also run the installation wizard again to create the default restart table (To start the installation wizard). Completing this procedure is useful when you have multiple target databases and are using one High-speed Apply Engine installation.
To create a restart table by using a command prompt
Locate the appropriate sample file for your database platform from the directory: installationDirectory/HighSpeedApply/highspeedapply/examples/
- For Windows: installationDirectory/highspeedapply/examples
- For UNIX: installationDirectory/highspeedapply/examples
- oracle/CrtOraDefaultRestartTbl.sql
- db2udb/CrtUDBDefaultRestartTbl.sql
The following figure shows a sample DDL for a restart table.
CREATE TABLE APERSCLT
( RESTART_ID CHAR(16) NOT NULL,
REQUEST_ID CHAR(4) NOT NULL,
RECORD_TYPE CHAR NOT NULL,
AGENT_ID SMALLINT NOT NULL,
RECORD_SEQUENCE SMALLINT NOT NULL,
REQUEST_TIMESTAMP DATE NOT NULL,
RECORD_TIMESTAMP DATE NOT NULL,
TOTAL_LENGTH INTEGER NOT NULL,
DATA LONG VARCHAR NOT NULL
) ;
CREATE UNIQUE INDEX APERSCLX ON APERSCLT
( RESTART_ID,
RECORD_TYPE,
AGENT_ID,
RECORD_SEQUENCE
) ;
CREATE PUBLIC SYNONYM BMCAPE_APERSCL FOR APERSCLT;
GRANT SELECT, UPDATE, DELETE, INSERT ON APERSCLT TO PUBLIC;Accept the default names and skip to the next step, or if necessary, edit the DDL as appropriate for your site.
Run the DDL file by issuing one of the following commands:
For Db2 LUW, from the DB2CMD prompt:
Db2-t-f CrtUDBDefaultRestartTbl.sqlFrom a UNIX command prompt:
sqlplus userid/password@CrtUDBRestartTbl tableNameFor Oracle, from SQL*Plus:
@CrtOraDefaultRestartTbl tableName