Jcat
          寵辱不驚,閑看庭前花開花落~~
          posts - 173,comments - 67,trackbacks - 0
          Oracle建好后,tnsnames和listener中自動就帶有如下內容,這里咱們就來解釋一下這些東西是干什么用的

          ----TNSNAMES.ora----
          EXTPROC_CONNECTION_DATA =
          ? (DESCRIPTION =
          ??? (ADDRESS_LIST =
          ????? (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          ??? )
          ??? (CONNECT_DATA =
          ????? (SID = PLSExtProc)
          ????? (PRESENTATION = RO)
          ??? )
          ? )

          ----LISTENER.ora----
          SID_LIST_LISTENER =
          ? (SID_LIST =
          ??? (SID_DESC =
          ????? (SID_NAME = PLSExtProc)
          ????? (ORACLE_HOME = /opt/oracle/10gR2)
          ????? (PROGRAM = extproc)
          ??? )
          ? )

          LISTENER =
          ? (DESCRIPTION_LIST =
          ??? (DESCRIPTION =
          ????? (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          ????? (ADDRESS = (PROTOCOL = TCP)(HOST = dcm)(PORT = 1521))
          ??? )
          ? )


          IPC - Inner Process Communication
          When a process is on the same machine as the server, use the IPC protocol for connectivity instead of TCP. Inner Process Communication on the same machine does not have the overhead of packet building and deciphering that TCP has.
          I've seen a SQL job that runs in 10 minutes using TCP on a local machine run as fast as one minute using an IPC connection. The difference in time is most dramatic when the Oracle process has to send and/or receive large amounts of data to and from the database.
          For example, a SQL*Plus connection that counts the number of rows of some tables will run about the same amount of time, whether the database connection is made via IPC or TCP. But if the SQL*Plus connection spools much data to a file, the IPC connection will often be much faster -- depending on the data transmitted and the machine workload on the TCP stack.

          For how to configure it:
          1. you should add one IPC line in the LISTENER.ORA
          2. You should also add one IPC line in the TNSNAMES.ORA



          PLSExtPro - PL/Sql External Procdure
          默認安裝時,會安裝一個PL/SQL外部程序(extproc--這是程序名)條目在listener.ora中,是oracle為調用外部程序默認配置的監聽,它的名字(也就是SID)通常是ExtProc或PLSExtProc
          但一般不會使用它,可以直接從listener.ora中將這項移除,因為對ExtProc已經有多種攻擊手段了,在不使用外部程序時,Oracle也是建議刪除的。



          extproc的作用
          就是在pl/sql中調用外部語句,如c,java寫的過程。
          現在,Oracle已經全面支持JAVA了,這東西也就過時了,之所以繼續保留是考慮到兼容以前老版本的數據庫實例。

          [oracle@dcm bin]$ extproc
          Oracle Corporation --- TUESDAY?? JAN 05 2010 21:58:23.878
          Heterogeneous Agent Release 10.2.0.1.0 - Production

          posted on 2010-01-05 21:59 Jcat 閱讀(659) 評論(0)  編輯  收藏 所屬分類: Database
          主站蜘蛛池模板: 紫阳县| 瓮安县| 嘉黎县| 井陉县| 阜平县| 卢氏县| 孝昌县| 廊坊市| 金堂县| 静乐县| 内丘县| 长岭县| 辽宁省| 牟定县| 普宁市| 永川市| 洛南县| 彭山县| 德格县| 高密市| 会理县| 连江县| 凌源市| 搜索| 水富县| 兴国县| 太仓市| 高阳县| 望城县| 临漳县| 元江| 安乡县| 梨树县| 枣阳市| 伊吾县| 辽阳市| 北安市| 高青县| 和平县| 渝北区| 辰溪县|