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 閱讀(655) 評論(0)  編輯  收藏 所屬分類: Database
          主站蜘蛛池模板: 藁城市| 阳高县| 尉氏县| 东山县| 大港区| 含山县| 钟山县| 博爱县| 大宁县| 博野县| 房产| 博客| 宝丰县| 彩票| 开封县| 庆安县| 清新县| 石楼县| 陵水| 金寨县| 华宁县| 河间市| 策勒县| 浙江省| 凤庆县| 奇台县| 法库县| 五华县| 甘泉县| 两当县| 交口县| 德化县| 灵川县| 定陶县| 咸宁市| 淄博市| 凌海市| 黄大仙区| 商南县| 封开县| 虹口区|