Maclean Liu(刘相兵 发表于 2012-4-15 10:49:08

Name Service Beyond tnsnames.ora and OID

Name Service Beyond tnsnames.ora and OID

tnsnames.ora
Oracle Internet Directory
Oracle Names
Others

Naming Methods
Name service=name resolution=naming method
Naming method is simply to map connect identifiers and connect descriptors.
Connector ID => Connector Descriptor
Connector ID = Name | Connector Descriptor
The key distinction is where mapping information is stored


Host naming:  DNS, NIS, EZConnect
CONNECT username/password@[//]host[:port]
Local naming:  tnsnames.ora
Directory naming:  LDAP (OID, AD)
Oracle names
External naming:  NIS, CDS, NDS

Oracle naming method history


Oracle 8.0.5, host naming was first introduced.
Oracle 8.1.6, directory naming was introduced.  
Oracle 9i, Novell’s NDS is no longer supported.
Oracle Names was being replaced by standalone OID
Oracle 10g, Oracle Names is de-supported.
OID is bundled in Oracle Application Server,
later called Oracle Identity Manager.
EZConnect was introduced to improve host naming.
For Oracle, only OID


How about AD ?
Limitations of Directory Naming Support with Microsoft Active Directory
Oracle provides support for Microsoft Active Directory only on Windows operating systems. Therefore, client computers and the database server must also run on Windows operating systems to access or create entries in Microsoft Active directory
The following features are not supported by Microsoft Active Directory:
Multiple Oracle Contexts
Microsoft Active Directory can support only one Oracle Context. (Actually one Oracle Context per domain is supported)
Net service aliases
You cannot create net service aliases in Microsoft Active Directory. However, you can create net service names.
Automatic client discovery of directory servers for clients



What is LDAP

LDAP (Lightweight Directory Access Protocol)  is a standard, extensible directory access protocol. It is a common language that LDAP clients and servers use to communicate. Client starts an LDAP session by connecting to an LDAP server, by default on TCP port 389. It can be secured via SSL tunnel on port 636

OID (Oracle Internet Directory): Oracle’s implementation

AD (Active Directory ): Microsoft’s implementation

OracleContext:  an entry under DIT to store Oracle schema/entries
Oracle Net Configuration Assistant (NetCA)
Oracle Net Manager




Prepare AD for Name Service
Metalink Note #361192.1 “Creating an OracleContext in Microsoft Windows 2003 Active Directory”
Steps:
Prepare AD before installing OracleContext
Install Oracle 10g Client Release 1 with Patchset 2 (10.1.0.4.0) and Patch bundle 1
Use NetCA to create OracleContext
Cautions:
Extending AD schema can not be reversed easily.
Enable anonymous bind operations for 2003
Create a domain account that is granted “Full Control” under and only under OracleContext.

页: [1]
查看完整版本: Name Service Beyond tnsnames.ora and OID