PL/SQL Developer主数据库连接和窗口连接切换

来源:互联网 发布:php游戏开发教程 编辑:程序博客网 时间:2024/04/24 04:04

Oracle开发者估计对PL/SQL Developer都非常熟悉了,里面有些小的功能点大概还有些初学者没发现。PL/SQL Developer支持多连接多窗口,下面详细说说。

  1. 主连接的概念

    打开PL/SQL Developer出现登录界面,成功登录后的数据库连接就是主连接。新建窗口和打开文件都是使用这个主连接,对象浏览器也显示主连接的内容。主连接的特征

    1)Session菜单Log on...,里面那个黑体的就是当前主连接。

    2)Connection List

    可以直接在每个连接点右键上新建和打开脚本。

    那么这个主连接又是什么意思呢?

    官方文档:

    The main connection is used for all functions in PL/SQL Developer where you do not explicitly select a

    connection. For example, when opening a new SQL Window and executing a query, you will implicitly

    create a database session for the main connection. The Object Browser will also use the main

    connection.

    After logging on in PL/SQL Developer you have implicitly set the main connection. The main

    connection can be changed by using the Session > Log on function again, or by double-clicking on a

    connection in the Connection List. In the Connection List the main connection is displayed in bold.

    【当你没有明确选择一个连接时PL/SQL Developer的所有功能将使用主连接。例如打开一个新的SQL窗口并运行查询,你将隐含地建立一个与主连接的会话。对象浏览器也会使用这个主连接。在成功的登录

    更改主连接:

    1. Session菜单Log on...

    2、Connection List双击连接。】

     

    二、窗口钉住连接的功能

    每个编辑窗口可以是不同的连接,从这里选择,选择后这个窗口会被自动钉住连接。

    旁边那个"钉住"标志如是红色则本窗口的连接在主连接改变的情况下不变,既不受影响。如是灰色,则这个窗口的连接跟随主连接改变。

0 0
原创粉丝点击