Background information
Web OceanBase Developer Center (ODC) V4.2.0 and later allow a user with the project creation permission to create a project and add members to the project. A project member can add and change databases in the project.
This topic describes how to implement database changes through project collaboration.
Technical mechanism

The ODC system administrator grants the project creation permission to a user. Then, the user can create a project and adds members to the project.
The project administrator or DBA adds a database to the project.
A project member initiates a database change ticket.
ODC determines the risk level of this ticket based on the risk level identification rules and selects the corresponding approval process for this ticket.
After the ticket is approved, the database change is automatically executed by ODC or manually executed by the user.
Project creation
Method 1: A user with the project creation permission creates a project
The system administrator grants the project creation permission to a user.

The project administrator creates a project and adds members to the project.
Note
An ODC user with the project creation permission can create projects. By default, the user who creates a project is granted the administrator role of this project. After the project administrator assigns ODC users as members of the project, the members can access this project after logging on to the ODC console with their own accounts, and work as a team in the project.

Parameter Description Project Name The name of the project. Administrator A user that manages all databases and members of the project. DBA A user that manages all databases of the project. Developer A user that can log on to all databases, execute SQL statements, and submit tickets, which is usually a developer. Security Administrator (Optional) A user that can manage only sensitive columns of the project and participate in review. Participant (Optional) A user that can participate only in review. Description (Optional) The description of the project.
Method 2: Join a project
An ODC user can apply for project permissions to join an existing project.
On the Projects or Tickets tab, click the corresponding button to apply for project permissions.
a. Apply for permissions on the Projects tab.

b. Apply for permissions on the Tickets tab.

Select the project, specify your role, enter the reason for application, and then click Apply.

View the approval status on the Tickets tab.

View the project that you joined in the project list.

Database management
Method 1: A user with database permissions adds a database
Click the name of a project to go to the project management page.

Add a database.

A member can export data, import data, perform database changes, and log on to databases. The project administrator or DBA can set a database administrator and change the project to which a member belongs.

Note
If a data source has been bound to a project, you cannot transfer the databases in the data source to other projects.
Method 2: Apply for database permissions
Notice
- To apply for database permissions, make sure that you have joined the corresponding project.
- You can apply for permissions on databases only in the project that you have joined.
You can apply for the query, export, and change permissions on databases.
On the Projects or Tickets tab, click the corresponding button to apply for database permissions.
a. Apply for permissions on the Projects tab.

b. Apply for permissions on the Tickets tab.

Select the project, databases, permission types, and permission validity period, enter the reason for application, and then click Apply.

Logical database management
ODC V4.3.2 and later allow you to configure a logical database and a logical table for one or more physical databases, in order to query and manage huge database and table shards.
ODC V4.3.2 only supports the structural changes of logical databases and the configuration of risk level specifications in security specifications.
Note
If you do not have the logical database permissions, you can click the corresponding button on the Projects or Tickets tab to apply for the permissions.
Relationship between physical and logical databases
You can configure a logical database for one or more physical databases with the same data source and in the same environment.
After a logical database is configured, ODC automatically parses the database, retrieves physical tables with similar names and same structure from the database, stores these tables into a logical table, and generates an expression for this logical table.
Note
- No logical table will be generated if a physical table structure is unique in the logical database.
- The default name of the generated logical table consists of the non-number strings shared by the retrieved physical tables. For example, if the names of the retrieved physical tables are
db.test_0,db.test_1,db.test_2, anddb.test_3, the generated logical table is namedtest, and its expression isdb.test_[0-3]. For more information, see the description of logical table expression rules.
Logical database configuration
Click the name of a project to go to the project management page.

On the Database tab, click Add Database and select Configure Logical Database from the drop-down list.

In the panel that appears, specify the following parameters.
Parameter Description Base Database Select a database as the benchmark. The database must be included in the logical database to specify the database environment and type. ODC can filter databases based on the benchmark database information, such as the name, environment, and type. Logical Database Name The name of the logical database, that is, the prefix shared among the names of the selected physical databases. For example, the name of the logical database configured for physical databases foo00 to foo99 is foo. Logical Database Alias The alias is used to distinguish logical databases with the same name. By default, the alias is the same as the actual logical database name. The value must be unique and cannot be modified. Database Select a database. Click Submit.
List of logical databases
You can find the list of configured logical databases on the Database tab.
You can click the corresponding button in the Actions column to perform the following operations.
Manage a logical table: ODC supports automatic data extraction and manual creation of a logical database.

Create a logical database change task. For more information, see Logical change management.
Manage databases in the SQL development window after logon.
Remove a logical database.
Table management
A project member can apply for permissions on tables in any database in the project.
A project member can click Table Permission Application to apply for the query, export, and change permissions on tables.
Notice
- You can apply for permissions only on tables in the project that you have joined.
- If a table is transferred to another database or the database to which the table belongs is transferred to another project, the original permissions on the table will become invalid.
On the Projects or Tickets tab, click Table Permission Application to apply for table permissions.
a. Apply for permissions on the Projects tab.
b. Apply for permissions on the Tickets tab.

Select the project, tables, permission types, and permission validity period, enter the reason for application, and then click Apply.

After the application, you can manage tables based on the permission types.
- If you have the query permission on a table, you can execute query statements on the table in the SQL window.
- If you have the change permission on a table, you can execute change statements on the table in the SQL window.
- If you have the export permission on a table, you can initiate a ticket to export the table.
- If you have the query permission on a database, you can execute query statements on the database in the SQL window.
- If you have the change permission on a database, you can execute change statements on the database in the SQL window and initiate tickets for the database except regular export tickets and result set export tickets.
- If you have the export permission on a database, you can initiate export tickets for the database.
- If you have the query and export permissions on a database, you can initiate a result set export ticket for the database.
For more information, see Create and manage tables in SQL, Visually create and manage tables, and Database change management.
Ticket management
A project member without the database editing permission can submit a ticket to execute a data export, data import, data mocking, database change, lock-free schema change, SQL plan, or data archiving task.

Member management
The project administrator can add, edit, or remove members as well as manage database permissions on the Members tab.

Message notification
A project member can specify the ticket events for which notifications are sent and add notification channels such as DingTalk, Feishu, WeCom, and custom webhooks on the Notification tab. When the corresponding ticket event occurs, ODC will send a change message to notify the project member. For more information, see Message notification management.

Project settings
The project administrator can rename the project and archive the project on the project settings page.
