您的位置:首页 > 理论基础 > 计算机网络

XDB: Utility package to change the HTTP and FTP ports used by XML DB

2008-11-20 07:33 567 查看
Subject: How to Add LOCAL_LISTENER or REMOTE_LISTENER Entry to OID
Doc ID: Note:602322.1Type: HOWTO
Last Revision Date: 03-NOV-2008Status: PUBLISHED
In this Document
Goal
Solution






Applies to:

Oracle Net Services - Version: 9.2.0.1.0 to 11.1.0.6.0
Information in this document applies to any platform.

Goal

How to add LOCAL_LISTENER or REMOTE_LISTENER net service names into OID for LDAP Naming resolution.

Solution

Valid LOCAL_LISTENER or REMOTE_LISTENER entries in TNSNAMES.ORA file like following :

LOCAL_LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = SAMPLE.COM)(PORT = 1525))
)

Can not be seen via in Net Manager GUI tool, so can not be added to OID for LDAP naming, via the wizard.One solution is to add a ldif file

dn: cn=LOCAL_LISTENER,cn=OracleContext,dc=sample,dc=com
objectclass: top
objectclass: orclNetService
cn:LOCAL_LISTENER
orclNetDescString: (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = SAMPLE.COM)(PORT =1525))))

And add to OID via ldapadd command

ldapadd -D "cn=orcladmin" -w <Password> -h <OID server> -p <Port#> -v -f <ldif file>

Example

C:/>ldapadd -D "cn=orcladmin" -w welcome1 -h sflood-uk2 -p 389 -v -f test.ldif
add objectclass:
top
orclNetService
add cn:
LOCAL_LISTENER
add orclNetDescString:
(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = SAMPLE.COM
)(PORT =1525))))
adding new entry cn=LOCAL_LISTENER,cn=OracleContext,dc=sample,dc=com
modify complete


At this point, a simple tnsping of the entry should yield OK:

tnsping LOCAL_LISTENER should return:

Used LDAP adapter to resolve the alias.

Then OK

Keywords

LDAP ; REMOTE_LISTENER ; LOCAL_LISTENER ;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐