Author Topic: Tablespace / Index Creation using ars.cfg DB2 Parameters  (Read 1641 times)

hmed

  • Newbie
  • *
  • Posts: 7
    • View Profile
Tablespace / Index Creation using ars.cfg DB2 Parameters
« on: May 07, 2021, 10:09:07 AM »
We used to use the arsutbl cobol exit in 9.5 to create tablespaces and index tables based on our shop standards.  After moving to 10.5 we are using the ars.cfg DB2 ARSMVS Parameters to accomplish most of the functionality.

One of the things that we'd like to do is direct the tablespace and index tables to their own separate storage groups. 
Another thing that we would like to do is add a 'with restrict on drop' condition to the create table DDL.

How have other shops accomplished this? 
or... Does anybody have any suggestions on how these things can be done?

Thanks.  Ed W.

scottnys

  • Jr. Member
  • **
  • Posts: 38
    • View Profile
Re: Tablespace / Index Creation using ars.cfg DB2 Parameters
« Reply #1 on: May 13, 2021, 07:39:09 AM »
We work with our Storage unit and use SMS rules.  Naming conventions of the Database conforms to the SMS rules.  Same is true with OAM DBs for Retentions.  Other than the initial ARS* Tables, All the Index Data Tables are "automatically" controlled. 

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1199
    • View Profile
Re: Tablespace / Index Creation using ars.cfg DB2 Parameters
« Reply #2 on: May 14, 2021, 06:26:50 AM »
For applgrp data tables, CMOD will specify the STOGROUP associated with the database for its CREATE TABLESPACE/INDEX.  If there’s a database associated with a given applgrp, it will use the STOGROUP for THAT database when creating the tablespaces/indexes for that applgrp.  Create a STOGROUP CMOD, GRANT USE, ALTER DATABASE db STOGROUP CMOD. 
 
ARSUTBL can put a “restrict on drop” in the DDL.  Perhaps  “restrict on drop” is going to cause problems?   Not something we've ever used or thought out. 

I'm curious as to what the business reason for using "restrict on drop" is.

Ed
#zOS #ODF