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 add members to the project.
The project administrator or database administrator (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.
The project administrator archives the project after all tickets in the project are executed and no active scheduled tasks exist. Databases and sensitive columns added to the project are released when it is archived. An archived project is unrecoverable and no longer supports any collaboration activities.
After the project is archived, the project administrator deletes the project. The data of a deleted project is unrecoverable.
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.
NoteAn 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 has all permissions of the project.
DBA
A user that has all permissions of the project, except for member management, message configuration, and project setting.
Developer (Optional)
A user that can log in to all databases, execute SQL statements, and submit tickets, who is usually a developer.
Security Administrator (Optional)
A user that has all participant permissions and can manage sensitive columns of the project.
Participant (Optional)
A user that can view basic information of the project, request database permissions, and submit tickets.
Description (Optional)
The description of the user.
Method 2: Join a project
An ODC user can click 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 database permissions on the Projects tab.
b. Apply for project permissions on the Tickets tab.
Select the project, specify your role, enter the reason for application, and then click Create.
View the approval status on the Tickets tab.
View the project that you joined in the project list.
Archive a project
After all tickets in a project are executed and no active scheduled tasks exist, and the project is no longer in use, the project administrator can archive the project.
Databases and sensitive columns added to the project are released when it is archived. An archived project is unrecoverable and no longer supports any collaboration activities.
If a partitioning plan task is in progress when you archive the project, the partitioning plan task will be automatically terminated after the project is archived.
In the project list, click the name of the project to be archived.
On the Settings tab of the project, click Archive Project.
In the dialog box that appears, click OK.
When the project is archived, you can view it on the Archived Projects tab.
Delete a project
The project administrator can delete an archived project.
The data of a deleted project is unrecoverable.
On the Archived Projects tab, click the More icon in the row of the archived project and select Delete Project. To batch delete archived projects, select the archived projects and click Delete Project on top of the project list.
In the dialog box that appears, type
delete
and click Delete.
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 database admin and change the project to which a member belongs.
NoteIf 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
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 Database Permission Application.
a. Apply for database permissions on the Projects tab.
b. Apply for project permissions on the Tickets tab.
In the Database Permission Application panel, select the project, databases, permission types, and permission validity period, enter the reason for application, and then click Create to create a database permission application.
Add an object storage service
ODC V4.3.3 and later allow you to add files of the following object storage services to a project: Alibaba Cloud Object Storage Service (OSS), Tencent Cloud Object Storage (COS), Huawei Object Storage Service (OBS), and Amazon Simple Storage Service (S3). You can archive added object store files to other databases.
Click the name of a project to go to the project management page.
On the Database tab, click Add Database and select Add Object Storage from the drop-down list.
In the Add Object Storage dialog box, specify the data source and DBA information and click OK.
Manage tables and views
A project member can apply for permissions on tables and views 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 and views.
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 become invalid.
On the Projects or Tickets tab, click Table Permission Application to apply for table permissions.
Apply for permissions on the Projects tab.
b. Apply for permissions on the Tickets tab.
Select the project, tables, views, permission types, and permission validity period, enter the reason for application, and then click Apply.
After the application, you can manage tables and views 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 view, you can execute query statements on the view in the SQL window.
If you have the export permission on a view, you can initiate a ticket to export the view.
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, Database change management, and Create a view.
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.
Project settings
The project administrator can rename the project and archive the project on the project settings page.