OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Developer Center

V4.4.2
  • Topics Overview
  • Overview
    • What is ODC?
    • Features
    • Architecture
    • Limitations
    • ODC console
  • Quick Start
    • Client ODC
      • Overview
      • Install Client ODC
      • Use Client ODC
    • Web ODC
      • Overview
      • Deploy Web ODC
      • Use Web ODC
  • Data Source Management
    • Create a data source
    • Data sources and project collaboration
    • Database O&M
      • Session management
      • Global variable management
      • Recycle bin management
  • SQL Development
    • Edit and execute SQL statements
    • Perform PL compilation and debugging
    • Use the command-line window
    • Edit and export the result set
    • Execution analysis
    • Generate test data
    • System settings
    • Intelligent SQL development
    • Common features
    • Database objects
      • Table objects
        • Overview
        • Create a table
      • View objects
        • Overview
        • Create a view
        • Manage views
      • Materialized view objects
        • Overview
        • Create a materialized view
        • Manage materialized views
      • Function objects
        • Overview
        • Create a function
        • Manage functions
      • Stored procedure objects
        • Overview
        • Create a stored procedure
        • Manage stored procedures
      • Sequence objects
        • Overview
        • Create a sequence
        • Manage sequences
      • Package objects
        • Overview
        • Create a program package
        • Manage program packages
      • Trigger objects
        • Overview
        • Create a trigger
        • Manage triggers
      • Type objects
        • Overview
        • Create a type
        • Manage types
      • Synonym objects
        • Overview
        • Create a synonym
        • Manage synonyms
      • External resource objects
        • External resources
        • Create an external resource
        • Manage external resources
  • Database Change Risk Management
    • Project collaborative management
      • Project management
      • Manage databases
      • Manage logical databases
      • Add object storage files
      • Manage project members
      • Desensitize data
      • Notification management
        • Overview
        • View notification records
        • Manage notification channels
          • Create a notification channel
          • View, edit, and delete a notification channel
          • Configure a custom channel
        • Manage notification rules
    • Manage user permissions
      • Users and roles
      • Automatic authorization
      • Apply for project permissions
      • Apply for database permissions
      • Apply table/view permissions
    • Security standards
      • Environment configuration
        • SQL check specifications
        • SQL window specification
      • Risk Management
        • Overview
        • Manage risk identification rules
        • Manage approval processes
      • Desensitization algorithms
      • Operation audit
  • Ticket Management
    • Import schemas and data
    • Export schemas and data
    • Database change management
    • Manage changes to logical databases
    • Batch database change management
    • Online schema changes
    • Synchronize shadow tables
    • Schema comparison
  • Data Lifecycle Management
    • Data archiving
    • Data cleanup
    • Manage partitioning plans
      • Manage partitioning plans
      • Set partitioning strategies
      • Examples of partitioning strategies
    • SQL Plan
  • System Integration
    • Login integration
    • Approval integration
    • SQL approval integration
    • Bastion host integration
    • Integrate with LLMs
  • Deployment Guide
    • Deployment overview
    • Preparations before deployment
    • Deploy ODC in single-node mode
    • Deploy ODC in high-availability mode
    • Deployment verification
  • Upgrade Guide
    • Upgrade Overview
    • Preparations for upgrade
    • Update single-node ODC
    • Update high-avaliability ODC
    • Upgrade verification
    • Rollback after upgrade failed
  • Best Practices
    • Tips for SQL development
    • Explore ODC team workspaces
    • Understanding real-time SQL diagnostics for OceanBase AP
    • OceanBase historical database solutions
    • ODC SQL check for automatic identification of high-risk operations
    • Integration with ODC enterprise-level account system
    • Manage and modify sharded databases and tables via ODC
    • Data masking and control practices
    • Enterprise-level control and collaboration: Safeguard every database change
  • Troubleshooting
    • ODC troubleshooting process
    • Collect message
      • View the runtime environment and version information
      • View web ODC logs
      • View client ODC logs
      • View end-to-end ODC-related logs
      • View ODC MetaDB data
      • Query the index status in OceanBase Database V4.x
      • Query the index status in OceanBase Database V1.4.x to V3.2.x
      • Collect JVM runtime information
      • Use tcpdump to capture packets
    • FAQ
      • Installation of client ODC
      • Web ODC deployment and startup
      • Connection Information
      • Command-line window
      • DDL statement display
  • Release Notes
    • V4.4
      • ODC V4.4.0
      • ODC V4.4.1
      • ODC V4.4.2
    • V4.3
      • ODC V4.3.4
      • ODC V4.3.3
      • ODC V4.3.2
      • ODC V4.3.1
      • ODC V4.3.0
    • V4.2
      • ODC V4.2.4
      • ODC V4.2.3
      • ODC V4.2.2
      • ODC V4.2.1
      • ODC V4.2.0
    • V4.1
      • ODC V4.1.3
      • ODC V4.1.2
      • ODC V4.1.1
      • ODC V4.1.0
    • V4.0
      • ODC V4.0.2
      • ODC V4.0.0
    • V3.4
      • ODC V3.4.0
    • V3.3
      • ODC V3.3.3
      • ODC V3.3.2
      • ODC V3.3.1
      • ODC V3.3.0
    • V3.2
      • ODC V3.2.3
      • ODC V3.2.2
      • ODC V3.2.1
      • ODC V3.2.0

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Developer Center
  3. V4.4.2

SQL Plan

Last Updated:2026-09-03 09:11:18

Background information
Create an SQL plan job
View an SQL plan job
Batch import and export
Batch export
Batch import

Background information

OceanBase Developer Center (ODC) allows you to periodically execute user-created SQL scripts to meet the needs of periodic database development and maintenance tasks, such as periodic execution of stored procedures, backups, and synchronization of database and table structures.

This topic describes how to apply for and manage SQL plan jobs in OceanBase Developer Center (ODC).

Create an SQL plan job

Example: Query the employee table every 2nd and 29th of the month.

Parameter
Example value
Data source mysql_4.2.0
Database name odc_test
Table name employee
  1. Click Jobs > SQL Plan > Create New in the SQL window.

  2. Specify the following information.

    Parameter
    Description
    Database Select a database.
    SQL Content You can specify SQL content in one of the following ways:
    • SQL Entry (default): You can directly enter an SQL script in the editing area.
      • By default, you can enter up to 10 MB of characters. If the input exceeds the limit, you can upload an attachment.
      • Click IN Value Conversion to convert batch-copied data into the IN ('A','B') format.
      • The column value separator is a line break.
      • The row value separator is a space or tab.
    • File Upload: After you select this option, you can click the file pool to enter the file resource manager and select the file to import, or you can directly drag the file to the file pool to upload the file.
      • You can upload up to 500 files, and the total file size cannot exceed 256 MB.
      • By default, the uploaded files are sorted in the order in which they are uploaded. You can drag the files to change the order. The tasks are executed in the order of the files.
      • Currently, only .sql files can be uploaded.
    Delimiter You can specify a delimiter.
    Query Result Limit You can specify the query result limit (1-1,000,000).
    Execution Timeout Enter a number in the Execution Timeout text box to specify the statement execution timeout, in hours (the default timeout is 48 hours, and the maximum is 480 hours).
    Execution Mode Select Periodic Execution, Immediate Execution, or Scheduled Execution.
    For periodic execution, you can select the following options:
    • You can directly select the hourly, daily, or weekly execution mode.
    • You can set the periodic execution mode in one of the following ways:
      • Default mode: You can select the daily, weekly, or monthly execution mode and set the required execution period.
      • Custom mode: You can select the second, minute, hour, day, month, or week execution mode and set the required execution period.
    Job Settings
    • Select Task Error Handling Method:
      • Abort Task: This is the default mode. If an error occurs during script execution, the task is stopped.
      • Ignore Error and Continue: If you select this option, the task will skip the error statement and continue execution after an error occurs during script execution.
    • Select Task Execution Timeout Handling Method:
      • Initiate Another Task When Current Task Is Completed
      • Ignore Current Task Status and Periodically Initiate New Tasks
  3. Click Create to apply for the job.

  4. After the job is generated, you can view the job information in the Jobs > SQL Plan list.

View an SQL plan job

  1. Go to Jobs > SQL Plan, click the name of the target job in the list to view its details. You can also click ··· in the Actions column to perform more operations on the job.

    • Terminate: If the job execution mode is set to periodic execution or scheduled execution, you can terminate the job. You can also select the target jobs and click Batch Terminate at the top to terminate multiple jobs.
    • Disable/Enable: If the job execution mode is set to periodic execution or scheduled execution, you can disable the job to temporarily stop its execution. The job will resume execution after it is enabled.
    • Edit: If the job status is disabled, you can edit the job to update its content.
    • Delete: If the job status is completed or terminated, you can delete the job.
    • View: View the job details.
    • Clone: Clone the job to quickly generate a new job with the same configuration.
    • Share: Copy the job access address.
  2. In the job details panel that appears, the Basic Information tab is displayed by default. You can view information such as the job type, database information, variable configuration, partitioning strategy, and execution mode.

  3. In the job details panel, click the Execution Records tab to view the execution details of the job.

  4. In the job details panel, click the Operation Records tab to view the approval status and change records of the job.

Batch import and export

Batch export

  1. Go to Jobs > SQL Plan.

  2. Select the target tasks and click Batch Actions > Batch Export.

  3. Confirm the export content and click Export to complete the batch export.

  4. After the export is completed, the export result is displayed on the right side of the page. You can view the key and view the exported file locally.

    Notice

    Keep the key properly. It is required when you import the exported file.

Batch import

  1. Go to Jobs > SQL Plan.

  2. Click the ∨ icon next to Create New and select Import SQL Plan.

  3. Select the file to import, enter the file key, select the target project, and click Next: Import.

  4. Select the tasks to import and the target database, and click Import after you select I acknowledge the relevant business risks..

  5. After the tasks are imported, you can view them in the list.

Previous topic

Examples of partitioning strategies
Last

Next topic

Login integration
Next
on this page
Background information
Create an SQL plan job
View an SQL plan job
Batch import and export
Batch export
Batch import