Oracle開發者估計對PL/SQL Developer都非常熟悉了,里面有些小的功能點大概還有些初學者沒發現。PL/SQL Developer支持多連接多窗口,下面詳細說說。
-
主連接的概念
打開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窗口並運行查詢,你將隱含地建立一個與主連接的會話。對象瀏覽器也會使用這個主連接。在成功的登錄
更改主連接:
- Session菜單Log on...
2、Connection List雙擊連接。】
二、窗口釘住連接的功能
每個編輯窗口可以是不同的連接,
從這里選擇,選擇后這個窗口會被自動釘住連接。 旁邊那個"釘住"標志如是紅色則本窗口的連接在主連接改變的情況下不變,既不受影響。如是灰色,則這個窗口的連接跟隨主連接改變。
