Using the DB2SYSPB.SQL script

Why do this

If you are a system administrator at a DB2 site, you might prefer to create the extended attribute system tables outside PowerBuilder for two reasons:

NoteWhen using the DirectConnect interface You must create the extended attribute system tables outside PowerBuilder if you are using the DirectConnect interface. You need to decide which database and tablespace should store the system tables. You might also want to grant update privileges only to specific developers or groups.

What you do

To create the extended attribute system tables, you run the DB2SYSPB.SQL script outside PowerBuilder. This script contains SQL commands that create and initialize the system tables with the table owner and tablespace you specify.

Where to find DB2SYSPB.SQL

The DB2SYSPB.SQL script is in the Server directory on the PowerBuilder CD-ROM. This directory contains server-side installation components and is not installed with PowerBuilder on your computer.

You can access the DB2SYSPB.SQL script directly from your computer’s CD-ROM drive or you can copy it to your computer.

Use the following procedure from the database server to create the extended attribute system tables in a DB2 database outside PowerBuilder. This procedure assumes you are accessing the DB2SYSPB.SQL script from the product CD in your computer’s CD-ROM drive and the drive letter is Z.

StepsTo create the extended attribute system tables in a DB2 database outside PowerBuilder:

  1. Log in to the database server or gateway as the system administrator.

  2. Insert the PowerBuilder CD-ROM into the computer’s CD-ROM drive.

  3. Use any text editor to modify Z:\Server\DB2SYSPB.SQL for your environment. You can do any of the following:

  4. Save any changes you made to the DB2SYSPB.SQL script.

  5. Execute the DB2SYSPB.SQL script from the database server or gateway using the SQL tool of your choice.