The database object defines the DRDA server to DB2 Connect. It must always be defined.
For each DRDA server database that you will access, use the DCE command cdscp create object to create a database object. For example:
cdscp create object database_global_name
Add the following attributes to the object:
APPC;SPIFNET;NYM2DB2;DB2DRD;IBMRDB;PROGRAM
tcpip;jaguar;19713;NONE
To create a Database object with system security you could put the following instructions into a file:
create object /.../cdscell1/subsys/database/DBMVS01 add object /.../cdscell1/subsys/database/DBMVS01 DB_Object_Type=D add object /.../cdscell1/subsys/database/DBMVS01 DB_Product_Name=DB2_for_MVS add object /.../cdscell1/subsys/database/DBMVS01 DB_Database_Protocol=DRDA add object /.../cdscell1/subsys/database/DBMVS01 DB_Native_Database_Name=\ NEW_YORK add object /.../cdscell1/subsys/database/DBMVS01 DB_Authentication=SERVER add object /.../cdscell1/subsys/database/DBMVS01 DB_Communication_Protocol=\ APPC;SPIFNET;NYM2DB2;DB2DRDA;IBMRDB;PROGRAMand then enter the command:
cdscp < filename
Note: | In the file, specify a backslash (\) whenever you want a statement to continue to the next line. |
To create a Database object with DCE security you could put the following instructions into a file:
create object /.../cdscell1/subsys/database/DBMVS02 add object /.../cdscell1/subsys/database/DBMVS02 DB_Object_Type=D add object /.../cdscell1/subsys/database/DBMVS02 DB_Product_Name=DB2_for_MVS add object /.../cdscell1/subsys/database/DBMVS02 DB_Database_Protocol=DRDA add object /.../cdscell1/subsys/database/DBMVS02 DB_Native_Database_Name=\ NEW_YORK add object /.../cdscell1/subsys/database/DBMVS02 DB_Authentication=DCE add object /.../cdscell1/subsys/database/DBMVS02 DB_Principal=\ /.../cdscell1/principal_name add object /.../cdscell1/subsys/database/DBMVS02 DB_Communication_Protocol=\ APPC;SPIFNET;NYM2DB2;DB2DRDA;IBMRDB;NONEand then enter the command:
cdscp < filename