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 CommunicationWhen 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為調用外部程序默認配置的監(jiān)聽,它的名字(也就是SID)通常是ExtProc或
PLSExtProc。
但一般不會使用它,可以直接從listener.ora中將這項移除,因為對ExtProc已經(jīng)有多種攻擊手段了,在不使用外部程序時,Oracle也是建議刪除的。
extproc的作用就是在pl/sql中調用
外部語句,如c,java寫的過程。
現(xiàn)在,Oracle已經(jīng)全面支持JAVA了,這東西也就過時了,之所以繼續(xù)保留是考慮到兼容以前老版本的數(shù)據(jù)庫實例。
[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 閱讀(652)
評論(0) 編輯 收藏 所屬分類:
Database