Deploy Environment of ExtProc on Serve.
2024-07-21 02:06:38
供稿:网友
,欢迎访问网页设计爱好者web开发。
how to depoly the environment of c external oracle procdure on oracle server?
1. deploy
there are two files need to focus on: at oracle_home/network/admin/listener.ora and tnsnames.ora
the listener.ora must be like this:
#====================begin=========================
listener =
(description_list =
(description =
(address_list =
(address = (protocol = tcp)(host = 192.168.16.27)(port = 1521))
)
(address_list =
(address = (protocol = ipc)(host = 192.168.16.27)(key = extproc))#map to the address in tnsnames.ora
)
)
)
sid_list_listener =
(sid_list =
(sid_desc =
(sid_name = plsextproc)#map to the sid in tnsnames.ora
(oracle_home = e:/oracle/ora90)
(program = extproc)
)
(sid_desc =
(global_dbname = lbs)
(oracle_home = e:/oracle/ora90)
(sid_name = lbs)
)
)
#===================end============================
and the tnsnames.ora must be like this:
#===================begin===========================
extproc_connection_data.caswsoft.casw.com =
(description =
(address_list = #map to the address_list in the listener.ora
(address = (protocol = ipc)(key = extproc)) #must match the key of address_list in the listener.ora
)
(connect_data = (sid = plsextproc)(presentation = ro))#sid must equals to the sid_name in the listener.ora
)
#===================end==============================
2. validate
a. validate the program of external procedure
execute oracle_home/bin/extproc.exe, if display those information
#==================================
oracle corporation --- 星期三 11月 03 2004 21:02:58.931
heterogeneous agent release 9.0.1.1.1
#======================================
,it is ok!
b. validate the database environment
compare the listener.ora and tnsnames.ora file strictly following to the sample listed on the head of this file.
c. validate the listener
confirm the listener.ora file is correct firstly.
then with command: tnspint extproc_connect_data.default_domain(in this case is extproc_connect_data.caswsoft.casw.com), if the tip information is:
#================================================
已使用的参数文件:
e:/oracle/ora90/network/admin qlnet.ora
e:/oracle/ora90/network/admin/tnsnames.ora
已使用 tnsnames 适配器来解析别名
attempting to contact (description = (address_list = (address = (protocol = ipc)
(key = extproc))) (connect_data = (sid = plsextproc)(presentation = ro)))
ok(20毫秒)
#============================================
it is ok.
now, congratulation, you external procedure environment is ok!