Applying the DDL Files on the DB2 Host
The following procedure describes how to apply the DDL files on the host.
To apply the DDL files on the DB2 host
When the DDL file transfer is successfully completed, log on to the mainframe and navigate to the Data Set List Utility (DSLIST) panel.
The
DSLISTpanel reflects the data sets associated with the user ID you entered previously when logging on.Edit the HLQ.
SIEBEL.INST.JOBINSTLdata set, for example,SIEBLQ1.SIEBEL.INST.JOBINSTL,by entering e before the data set name and pressing Enter twice.The Edit Entry Panel appears.
As instructed in the comments section, change all occurrences of
SIEBELQ1to your HLQ using the following command:c SIEBELQ1 HLQ ALLNote: Make sure that your entry is in capital letters.Press Enter, and the changes are made.
Enter
submiton the Command line, and press Enter to submit the job.Details of the job are displayed. Press Enter again and a new data set named HLQ
.SIEBEL.INST.EXECis created.Press F3 to return to the DSLIST screen.
On the
DSLISTscreen, edit the HLQ.SIEBEL.INST.EXECdata set by entering e before the data set name and pressing Enter.Enter
execbefore the SBLINST member and press Enter to start the installation.On the Siebel Install Main Menu screen, you can select one of the following options:
1. Generate Siebel DDL - Generate JCL and DDL
2. Generate View DDL - Generate VIEW DDL
Enter
1on the Command line to create the JCL and DDL used to generate the schema.Enter the DDL input data set name, for example,
HLQ.SIEBEL.INST.SCHEMA, and then press Enter.Press Enter again and an SQL data set named
HLQ.SIEBEL.INST.SCHEMA.SCHis created.Press F3 to exit after the job completes.
On the
DSLISTscreen, enterebefore theHLQ.SIEBEL.INST.SCHEMA.SCHdata set, and press Enter.Note: If you use a tool other than the DSNTEP2 tool to create objects, specify the program and plan names of the tool you are using in the SIEBSQLA member, for example:DSN SYSTEM(Q109) RUN PROGRAM(MYTEP2) PLAN(MYTEP2) PARMS(‘ /SQLTERM(/) ‘) ENDIn the
HLQ.SIEBEL.INST.SCHEMA.SCHdata set, edit the following JCL members in the order shown. Run the GRJCL member last because it grants permissions to the objects (database, table spaces and tables) created when you run the other three members.DBJCL
TSJCL
TBJCL
GRJCL
To edit and run each JCL member, do the following:
Enter e before the JCL member, and press Enter.
Edit the job card parameters in each member, for example, specify the appropriate CLASS and MSGCLASS names:
// D2PUNL0 JOB ACCNT#,CLASS=S,MSGCLASS=X,MSGLEVEL=(1,1), // TIME=1440,REGION=0M,NOTIFY=&SYSUID,LINES=9999 //*TYPRUN=SCANEnter an asterisk (*) before the TYPRUN parameter to comment out this command.
Enter
submiton the Command line and press Enter to submit the job.After each job is completed, verify that the return code is
0(zero) to make sure that no errors occurred and that the job ran successfully.The Siebel DDL is now generated.
To generate the View DDL file, follow the instruction to edit the HLQ
.SIEBEL.INST.EXECdata set described in Step 8.Select 2 on the Install Main Menu screen to generate the View DDL.
Enter the DDL file name, for example,
HLQ.SIEBEL.INST.DDLVIEW, to specify the DDL input data set, then press Enter.Press Enter to generate a DDLVIEW SQL data set named
HLQ.SIEBEL.INST.DDLVIEW.VIE.Press F3 to exit after the job completes.
On the
DSLISTscreen, enterebeforeHLQ.SIEBEL.INST.DDLVIEW.VIEdata set, and press Enter.Note: If you use a tool to create objects other than the DSNTEP2 tool, specify the program and plan names of the tool you are using in the SIEBSQLA member, for example:DSN SYSTEM(Q109) RUN PROGRAM(MYTEP2) PLAN(MYTEP2) PARMS(‘ /SQLTERM(/) ‘) ENDIn the
HLQ.SIEBEL.INST.DDLVIEW.VIEdata set, edit the VIEJCL member:Enter e at the start of the VIEJCL member, and press Enter.
Edit job card parameters in each member, for example, specify the appropriate CLASS and MSGCLASS names:
// D2PUNL0 JOB ACCNT#,CLASS=S,MSGCLASS=X,MSGLEVEL=(1,1), // TIME=1440,REGION=0M,NOTIFY=&SYSUID,LINES=9999 //* TYPRUN=SCANEnter an asterisk (*) before TYPRUN parameter to comment out this statement.
Enter an asterisk (*) before GRANT statements; GRANT statements on views are not required with DB2 for z/OS. If you do not comment out these statements, error messages are returned when you run the VIEJCL member; you can ignore these messages.
Enter
submiton the Command line and press Enter to submit the job. Press Enter again.After each job is completed, verify that the return code is
0(zero), to make sure that no errors occurred and that the job ran successfully.
Return to the midtier to continue the Siebel Schema installation by verifying the schema that you have just created.
The schema.sql file is overwritten during the schema validation process. Therefore, if you would like to save the schema.sql file with the complete Siebel Schema DDL that was generated for the Siebel Schema, rename schema.sql (located in the DBSRVR_ROOT
\db2390\dboutput\installdirectory on Windows or DBSRVR_ROOT/db2390/dboutput/installdirectory on UNIX) after you apply schema.sql on the mainframe.