Optimize Calling Oracle Stored Procedures

  • Last update:December 29, 2021
  • I. Description

    With Oracle database, in many cases, Oracle's stored procedures will be used as data sets. In actual situations, when Oracle's tablespace data is more Oracle returns data sets through storage packages, when user add stored procedures in the designer, Will wait a little longer.

    Here there are more table spaces in Oracle and more data. Using a stored procedure in Oracle as a data set will cause a longer waiting time, as shown in the following figure:

    1.png

    When the stored procedure on the left is displayed, enter the name of the stored procedure in the search box and wait for a while, as shown in the figure below:

    2.png

    II. Solution

    1. Remove the configuration that shows all Oracle tables

    Click onFile>Options,As follows:

    3.png

    Select Advanced to remove the selectedDisplay All Oracle Tables.

    4.png

    When creating a stored procedure in this way, only the data of the current table space will be displayed , but not all table space data. The storage process display and search speed is obviously accelerated.


    2. Call a stored procedure in a database query

    Example: In the Oracle stored procedure, obtain a piece of personnel information based on the user name and password, as shown in the following figure:

    5.png

    In the designer, create a new database query and directly call the stored procedure. This method does not need to create a new stored procedure data set, and the speed is faster than that of the first method, as shown in the following figure:

    6.png

    Input parameters${P_USERCODE}、${P_PASSWORD}Keep consistent with the stored procedure;

    Output parametersP_DATA; Indicates the output data set, use "?" in the template instead;

    Attachment List


    Theme: Performance Optimization
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy