Background information
OceanBase Developer Center (ODC) V4.3.2 and later allow you to change the data in your logical database. You can create a logical database change task to run time-consuming SQL statements to avoid an execution timeout.
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. For more information, such as the relationship between physical and logical databases, see Logical database management.
Considerations
Only MySQL and OceanBase MySQL data sources are supported.
Only data definition language (DDL) changes are supported.
SQL check specifications and SQL window specifications included in the ODC security specifications are not supported.
Create a logical database change task
On the
Projects orTickets tab, clickApply for Database Permissions to apply for table permissions.Create a logical database change task on the
Projects tab.
Create a logical database change task on the
Tickets tab.
In the
Create Logical Database Change panel, specify the following information:
Parameter Description Logical Database Select the logical database to which the database change task belongs. SQL Content Select SQL Entry , which is the default way to specify SQL content. You can directly write the SQL script in the editing area.Note
- The maximum size of the SQL statements that can be entered in the SQL window is limited to 500,000 characters. If the SQL script to be executed has more than 500,000 characters, you can directly upload the script file.
- You can click IN Value Conversion to convert the batch copied data into the
in('A','B')format. - Column values are separated with line breaks.
- Row values are separated with spaces or tabs.
Delimiter The delimiters are supported. Task Settings Select Execute Now orScheduled Execution .Execution Timeout Specify the timeout period for statement execution, in hours. The default value is 48 hours. The maximum value is 480 hours. Description Optional. Additional information about the task, which cannot exceed 200 characters in length. Click
Create .After the logical database change task is generated, choose
Tickets >Logical Database Change and view the task information in the task list.
View a logical database change task
Task information
In the logical database change task list on the
Tickets tab shown in the preceding figure, clickView in theActions column of the target task.In the task details panel, click the
Task Information tab to view the information about the task, including the logical database, type, risk level, and SQL content.Click
Initiate Again in the lower-right corner of the panel to initiate the logical database change task again.
Task process
In the
Execution records
In the
Task logs
In the
| Parameter | Description |
|---|---|
| All Logs | Displays the complete information of all task logs, including
|
| Alert Logs | Displays the
|