What is the maximum number of object ids that the Gen CSE can hold and how do I know if my CSE is nearing it's limit?

Document ID : KB000011364
Last Modified Date : 14/02/2018
Show Technical Document Details

What is the maximum number of object ids that the Gen CSE can hold and how do I know if my CSE is nearing it's limit?

CA Gen Client Server Encyclopedia (CSE)Release Gen 6.5+

The maximum number of object ids that a CSE can hold is 2147483647.

NOTE: The CSE does not reuse object ids that have been previously allocated to an object but subsequently deleted due to the removal of that object.


Object id partitions:

CSE originally created prior to Gen 7.0: In earlier releases prior to Gen 7.0 the concept of object id partitions was added to improve the performance of the CSE running against RDBMS systems that did not have row level locking at the time (e.g. SQL Server) and in those releases the number of object id partitions was configurable at install time (default value of 8). If the current CSE has been migrated from a pre 7.x release of Gen then it is likely that multiple object id partitions will still exist.

The DMAX table holds the information about the object id partitions in rows where MAX_TYPE = 'MAXDOBJ'. The column MAX_RELEASE contains the partition number and the column MAX_INT_VALUE shows the next available object id for that partition. The row MAX_TYPE = 'NUMPART' also contains the number of object id partitions in it's MAX_INT_VALUE column. This SQL statement will return a row for each object id partition that exists showing the values of partition number and next available object id:

select max_release, max_int_value from dmax where max_type='MAXDOBJ'; 

The following table illustrates the limits for minimum ((Min. Object id#n) and maximum object id (Max. Object id#n) for each partition #n for a CSE with 8 partitions. The DMAX 'MAXDOBJ' MAX_INT_VALUE column (MAXDOBJ#n) can be used to calculate the number of remaining object ids in each partition using "Max. Object id#n - (MAXDOBJ#n -1)" and hence the total number of object ids that still remain available in the whole CSE.

Partition #
Min Object ID
Max. Object id
DMAX "Next available object id"
Number of remaining available object ids
Max. Object id#1 - (MAXDOBJ#1 -1)
Max. Object id#2 - (MAXDOBJ#2 -1)
Max. Object id#3 - (MAXDOBJ#3 -1)
Max. Object id#4 - (MAXDOBJ#4 -1)
Max. Object id#5 - (MAXDOBJ#5 -1)
Max. Object id#6 - (MAXDOBJ#6 -1)
Max. Object id#7 - (MAXDOBJ#7 -1)
Max. Object id#8 - (MAXDOBJ#8 -1)

The way that the CSE uses the partitions means that it will switch to another partition before allowing the current partition to reach it's maximum. As the CSE will not go back and reuse any object id that was previously allocated to an object but then subsequently deleted it is normal to see unallocated object ids with values less than the current DMAX "Next available object id". Multiple object id partitions also mean that the maximum value of obj_id in the DOBJ table does not indicate how near the CSE is to reaching it's object id limit.

CSE originally created in Gen 7.0+: In Gen 7.0 and later releases because of enhancements to such RDBMS systems, the option to create multiple object id partitions is no longer part of the CSE configuration and the number of partitions for a new CSE database defaults to 1. These SQL statements operating on the DMAX table can be used to find the object id usage and remaining available ids. 

a. There is only 1 row in the DMAX table where MAX_TYPE = 'MAXDOBJ' and so the next available object id is: 

select max_int_value from dmax where max_type='MAXDOBJ'

b. Remaining object ids available: 

select 2147483647 - (max_int_value - 1) from dmax where max_type='MAXDOBJ'; 

c. For a single partition CSE the current maximum value of obj_id in the DOBJ table should always be 1 less than the value returned from (a):

select max(obj_id) from dobj;

Additional Information:

CSE is close to object id limit:

When the CSE is nearing its object id limit it will start to impact further model development e.g. these types of errors are seen during normal operation:

Error: LocalEncy::fetchObjectid: EnGetId error, rc = 2 

GETIDREQ: Error: Reached maximum Object Id (in iefmd.log) 

The only supported option to is to configure a new CSE database as follows:

  • Download with extract all required models from the current CSE (extract option retains the ancestry)
  • Configure new CSE database with a different/unique Encyclopedia ID and upload the extracted models (unique Encyclopedia ID ensures that the Original Encyclopedia and Object ID ("Org ID") of an object is unique). Unique Encyclopedia IDs