【问题标题】:Disable Auto-Commit in Oracle Application Express在 Oracle Application Express 中禁用自动提交
【发布时间】:2016-04-13 12:22:31
【问题描述】:

我正在学习 PL/SQL 的在线课程,我正在使用学生版的 Application Express (https://iacademy.oracle.com/ords/f?p=4550:1:0:::::)。我得到的一些任务要求我在尝试之前禁用自动提交。暗示有一个复选框可以执行此操作,但我找不到:

有没有办法在 APEX 中禁用自动提交?任何帮助表示赞赏。

【问题讨论】:

    标签: oracle oracle-apex


    【解决方案1】:
    1. 以管理员身份登录 APEX(表示进入 INTERNAL 工作区)。

    2. 转到管理实例 => 功能配置 => SQL Workshop => 将启用事务 SQL 命令设置为是

    1. 注销,以标准用户身份登录

    1. 自动提交复选框将可用。

    2. 你应该注意到:

    选择“是”为整个 Oracle Application Express 实例启用事务 SQL 命令。启用此功能允许 SQL 命令处理器用户在同一物理数据库事务中发出多个 SQL 命令。

    当您选择是时,自动提交复选框会出现在 SQL 命令处理器页面上。默认情况下,此选项设置为否。

    【讨论】:

    • 我认为 op 无权访问内部工作区。
    【解决方案2】:

    更改数据库类型的自动提交

    Open Tools->Tool Properties,
    Select the Database tab,
    Expand the node for the database type, e.g. Oracle,
    Select the Transaction category,
    Uncheck the Auto Commit checkbox.
    

    更改连接的自动提交

    Double-click the connection node in the Databases tab tree to open an Object View tab,
    Select the Properties tab,
    Select the Transaction category under the node for the database type, e.g. Oracle,
    Uncheck the Auto Commit checkbox.
    

    更改 SQL Commander 选项卡的自动提交

    Use the SQL Commander->Turn On/Off Auto Commit toggle item, or,
    Use the corresponding toggle button to the right in the SQL Commander toolbar.
    

    更改语句块的自动提交

    您可以在脚本中使用@set autocommit 命令来启用或禁用不同块的自动提交:

    【讨论】:

    • 感谢您的回答,但我找不到您提到的任何选项卡/窗口/按钮。我使用的是学生版 APEX (iacademy.oracle.com/ords/f?p=4550:1:0:::::),我不是 DBA。我需要 DBA 禁用自动提交,还是需要做其他事情?
    猜你喜欢
    • 2021-09-05
    • 2016-02-22
    • 1970-01-01
    • 1970-01-01
    • 2012-10-13
    • 1970-01-01
    • 2019-03-11
    • 2016-01-13
    • 1970-01-01
    相关资源
    最近更新 更多