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 閱讀(660) 評論(0)  編輯  收藏 所屬分類: Database
          主站蜘蛛池模板: 镇原县| 六盘水市| 天津市| 明水县| 西充县| 徐汇区| 淳化县| 五大连池市| 泰来县| 章丘市| 红河县| 前郭尔| 客服| 仪征市| 芜湖市| 铁岭县| 无棣县| 金山区| 修水县| 平顶山市| 遂溪县| 望江县| 杭锦后旗| 八宿县| 营山县| 陵川县| 旬邑县| 丽水市| 高雄市| 长宁区| 金堂县| 平山县| 疏勒县| 乐陵市| 大竹县| 平谷区| 邢台县| 陆川县| 东兰县| 林周县| 伊宁县|