|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
根据Ambrose所说,Sakila来自一种叫SiSwati的斯威士兰方言,也是在Ambrose的家乡乌干达附近的坦桑尼亚的Arusha的一个小镇的名字。
HowtodepolytheenvironmentofCExternalOracleProcdureonOracleServer?
1.Deploy
Therearetwofilesneedtofocuson:atORACLE_HOME
etworkadminListener.oraandtnsnames.ora
TheListener.oramustbelikethis:
#====================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))#MaptotheADDRESSintnsnames.ora
)
)
)
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=PLSExtProc)#MaptotheSIDintnsnames.ora
(ORACLE_HOME=E:oracleora90)
(PROGRAM=extproc)
)
(SID_DESC=
(GLOBAL_DBNAME=lbs)
(ORACLE_HOME=E:oracleora90)
(SID_NAME=lbs)
)
)
#===================End============================
Andthetnsnames.oramustbelikethis:
#===================Begin===========================
EXTPROC_CONNECTION_DATA.CASWSOFT.CASW.COM=
(DESCRIPTION=
(ADDRESS_LIST=#MaptotheADDRESS_LISTintheListener.ora
(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))#MustmatchtheKEYofADDRESS_LISTintheListener.ora
)
(CONNECT_DATA=(SID=PLSExtProc)(PRESENTATION=RO))#SIDmustequalstotheSID_NAMEintheListener.ora
)
#===================End==============================
2.Validate
a.ValidatetheprogramofExternalProcedure
ExecuteORACLE_HOMEinextproc.exe,ifdisplaythoseinformation
#==================================
OracleCorporation---礼拜三11月03200421:02:58.931
HeterogeneousAgentRelease9.0.1.1.1
#======================================
,itisOK!
b.Validatethedatabaseenvironment
ComparetheListener.oraandtnsnames.orafilestrictlyfollowingtothesamplelistedontheheadofthisfile.
c.ValidatetheListener
ConfirmtheListener.orafileiscorrectfirstly.
Thenwithcommand:tnspintextproc_connect_data.DEFAULT_DOMAIN(inthiscaseisextproc_connect_data.caswsoft.casw.com),ifthetipinformationis:
#================================================
已利用的参数文件:
E:oracleora90
etworkADMINqlnet.ora
E:oracleora90
etworkADMIN nsnames.ora
已利用TNSNAMES适配器来剖析别号
Attemptingtocontact(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)
(KEY=EXTPROC)))(CONNECT_DATA=(SID=PLSExtProc)(PRESENTATION=RO)))
OK(20毫秒)
#============================================
itisOk.
Now,Congratulation,youExternalProcedureenvironmentisOK!
对于insert和delete,event中包含了插入/删除的记录的所有字段的值(太爽了。。) |
|