Overview
After you log on to OceanBase Developer Center (ODC), you can click the name of a connection on the homepage to go to the corresponding connection management page. In the left-side navigation pane, you can click Stored Procedure to get a list of stored procedures in the current database.
In the stored procedure list, you can view the structure tree of an object, or right-click the object to perform some management actions on the object. You can also double-click the name of the stored procedure in the list to go to the stored procedure management page .
Structure tree
You can click the expand icon
before the name of the target stored procedure in the stored procedure list, and the structure tree of the stored procedure is displayed in a drop-down list, as shown in the following figure.
The structure tree of a stored procedure can have up to three levels. When you right-click an item in the tree, the shortcut menu displays some actions that you can perform on the item. For more information about these actions, see the Management actions section. In this section, you can find the table describing the management options.

Management actions
Right-click the target object in the structure tree. A shortcut menu appears, displaying some management options provided by ODC for you to conveniently manage the target object.
The following table describes the management options.
| Action | Description |
|---|---|
| View | Click this option to go to the stored procedure management page , where you can view comprehensive information such as the basic information, parameters, and code of the stored procedure. |
| Create | Click this option to go to the Create Stored Procedure page, where you can create a stored procedure as prompted. |
| Edit | Click this option to go to the stored procedure editing page , which displays the statements that define the stored procedure and where you can edit the stored procedure. |
| Compile | Click this option to compile the stored procedure. |
| Debug | Click this option to go to the debugging page , where you can debug the stored procedure. |
| Run | Click this option to execute the stored procedure. |
| Delete | Click this option to delete the stored procedure. |
| Refresh | Click this option to refresh the structure tree after you perform management actions on the stored procedure so that the structure tree displays the latest information. Note * We recommend that you upgrade to OBServer V2.2.77 or later. This is because some versions of OBServer have been found with PL/SQL debugging issues, which may compromise the OBServer stability. * ODC V3.2.2 or earlier does not support the debugging feature when you connect ODC to the target instance by using OBProxy. To use the debugging feature, directly connect ODC to the target instance. * ODC V3.2.2 and later support PL/SQL debugging when you connect to OBServer by using OBProxy. |
Stored procedure management page

You can double-click the name of a stored procedure in the function list to go to the stored procedure management page. The stored procedure management page displays the following information:
| Section | Description |
|---|---|
| Basic Information | This section displays the basic information about the stored procedure in fields such as Stored Procedure Name , Created By , Creation At , and Last Modified At . |
| Parameter | This section displays the information about the parameters in fields such as Name , Mode , Data Type , Length , and Default Value .Click the icon to refresh the parameters. |
| DDL | This section displays the script that defines the stored procedure and provides the Edit , Find , Format , and Refresh buttons. Note Click the Edit icon to go to the PL object editing page. |
Stored procedure editing page
Right-click the target item in the stored procedure list. In the menu that appears, click Edit to go to the stored procedure editing page. In the code area of the editing page, the statements that define the stored procedure are displayed. You can edit the statements. In addition, the toolbar provides the following buttons:
| Button | Description |
|---|---|
| Confirm modification | Click this button to apply the current modification. |
| Compile | Click this button to compile the statements on the current page.
Note
|
Stored procedure output page

After the stored procedure is executed, you can view the information of execution results in the Output and DBMS Output tabs.
| Tab | Description |
|---|---|
| Output | Displays the status, parameters, parameter types, parameter values, return type, and return value of the stored procedure. |
| DBMS Output | Displays DBMS outputs of the stored procedure. |
icon to refresh the parameters.