This topic describes the environment types supported by Data Management Service (DMS) and how to change the environment type of an instance.
Important notes
- We recommend that you select the environment type of an instance based on the actual environment of the database registered as the instance.
- In security rules, an instance in the Security Collaboration mode requires no approval and less control in the test environment by default. However, the instance requires strict control in the production environment by default. For more information about how to set the control mode, see Change or set the control mode.
Supported environment types
Currently, DMS supports eight types of environments that are divided into two categories: offline and online. The following table lists the environment types. You can change the environment type of an instance as needed. For more information, see the Procedure section.
Category | Environment type | Display name |
---|---|---|
Offline | Development | dev |
Test | test | |
SIT | sit | |
UAT | uat | |
Stress testing | pet | |
STAG | stag | |
Online | Production | product |
Staging | pre |
In the domain specific language (DSL) syntax, the display name of the environment type is used as the value of the
@fac.env_type
factor. For example,@fac.env_type in ['product','pre']
indicates the production environment and the staging environment. For more information about the DSL syntax, see DSL syntax for security rules.
Procedure
In the DMS console, you can change the environment type of an instance in one of the following ways:
- Change the environment type of an instance on the Instance page.
- Log on to the DMS console.
- In the top navigation bar, choose System Management > Instance.
- On the Instance List tab of the Instance page, find the target instance and choose More > Edit instance in the Actions column.
- In the Edit instance dialog box that appears, click Advanced information.
- Select an environment type from the Environment type drop-down list as needed.
- Click Submit.
- Change the environment type of an instance in the left-side navigation pane.
- Log on to the DMS console.
- In the left-side navigation pane, right-click the target instance.
- From the menu that appears, select Edit instance.
- In the Edit instance dialog box that appears, click Advanced information.
- Select an environment type from the Environment type drop-down list as needed.
- Click Submit.