Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Share data between Oracle RDBM and Oracle Internet Directory (LDAP)
Zixiong WANG <zxwang_at_sysium.com> wrote in message news:<41af6f20$0$26091$636a15ce_at_news.free.fr>...
>
It's not possible to query Oracle table data using LDAP unless the data is stored by following Oracle's LDAP format, e.g. by using OID tools. How the directory entries are stored can be deduced by looking at tables in the ODS schema, and by tracing SQLs when you run LDAP commands on OS. These tables are OID specific. Modifying them would be equivalent to modifying Oracle data dictionary. Your last question is the same as the first one.
Here's an example of the SQL run by Oracle when I run this OS command: C:\>ldapsearch -p <myOIDport> -h <myserver> -D "cn=orcladmin" -w <mypassword> -b "orclReferenceName=iasdb,cn=IAS Infrastructure Databases,cn=IAS,cn=Products,cn=oraclecontext" "orclresourcename=ODS" orclpasswordattribute
And the SQLs are fairly complex. (I pulled out of v$sql; you can set sql_trace=true to do the same.) They basically select attrval FROM ds_attrstore WHERE entryid IN ( SELECT entryid FROM ct_dn WHERE rdn='orclreferencename=iasdb' AND ... The other SQL is SELECT entryid FROM ct_dn WHERE entryid in ( (SELECT entryid FROM ct_orclResourceName WHERE at1.attrvalue...
If you know LDAP internals in general, it's worth the time and effort to study OID this way.
Yong Huang Received on Fri Dec 03 2004 - 08:56:26 CST
![]() |
![]() |