For a user to be able to use the DBS utility on a non-DB2 Server for VM DRDA target application server, you must first preprocess the DBS utility package on the target application server and then create the table SQLDBA.DBSOPTIONS on that application server. This is done by the DB2 Server for VM application requester. You must then obtain the necessary program bind and table creation privileges for your authorization-id on the target application server.
Note: | If the target application server does not support the ERROR option when preprocessing, you must create the DB2 Server for VSE & VM system catalog tables on the target application server for the preprocessing to work. The database managers that do not support the ERROR option (such as the common server database managers) generally supply a command file that creates the necessary table definitions. The command file to create the tables for the DBS Utility is typically called SQLDBSU.CMD or SQLDBSU.BAT. |
To create the DBS Utility package, do the following from a DB2 Server for VM application requester:
LINK machid 193 193 RR
ACC 193 V
SQLPREP ASM PP (PREP=SQLDBA.ARIDSQL,BLOCK,ISOL(CS),NOPR,ERROR,NOPU, CTOKEN(NO)) IN (ARIDSQLP MACRO V)
Omit the ERROR option on the SQLPREP statement if the target application server does not support it.
SET ERRORMODE CONTINUE; CREATE TABLE SQLDBA.DBSOPTIONS (SQLOPTION VARCHAR (18) NOT NULL, VALUE VARCHAR (18) NOT NULL); CREATE UNIQUE INDEX SQLDBA.DBSINDEX ON SQLDBA.DBSOPTIONS (SQLOPTION,VALUE); INSERT INTO SQLDBA.DBSOPTIONS VALUES ('RELEASE','7.1.0'); COMMIT WORK;
You must now obtain the necessary program bind and table creation privileges for your authorization-id on the target application server.