Dump Multi-tenant tables
- Last Updated: February 11, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
The SQLDUMP utility is extended to support multi-tenancy.
This utility allows you to dump data from multi-tenant tables—depending
on the user type—to an external file with the new (- n) command
line option. The following examples provide clarity on dumping multi-tenant
tables:
The following example directs the SQLDUMP utility
to dump data from the tenants ten1 and ten2 to
two SQL dump files respectively. The user_name and password to
connect to the database are supertenUser@superdom and superten.
The supertenUser account in the superdom domain must
have the authority to access the mttab1 table and
the _tenant system table in mtdb database.
To separate the tenant specific data the SQLDUMP utility
creates separate directories for each tenant. ten1/<OWNER>.MTTAB1.DSQL and ten2/<OWNER>.MTTAB1.DSQL are
the two directories that are created to dump tenant data.
Example: SQLDUMP from multi-tenant tables
|
If the regTenantUser is mapped to a regular
tenant, then the following example directs the SQLDUMP utility
to dump the data for the regTenantUser tenant's
partition.
Example: SQLDUMP by a regular tenant
|
If the regTenantUser is mapped to a regular
tenant, then the following example directs the SQLDUMP utility
to dump the data for the regTenantUser tenant's
partition.
|
If regTenantUser is not mapped to ten1 tenant,
the above statement throws an error.
Example: SQLDUMP by a DBA
If the dbaUser is a DBA, then, the following example directs
the SQLDUMP utility to dump the tenant-specific
data for all the tenants in their respective directory.
|
If the superTenUser is a super-tenant, then, the following example
directs the SQLDUMP utility to dump all the tenants
which start with the word ‘ten' from the table mttab.
Example: SQLDUMP using a % operator
|
If the dbaUser is a DBA, then the following example directs the SQLDUMP utility
to dump all the tenants which start with the word ‘ten' from all
the tables that start with mttab.
|