{"id":2133,"date":"2010-09-28T05:55:10","date_gmt":"2010-09-28T09:55:10","guid":{"rendered":"http:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/"},"modified":"2010-09-28T05:55:10","modified_gmt":"2010-09-28T09:55:10","slug":"oiddirectory-services-11g-schema-object-class-attributes","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/","title":{"rendered":"OID\/Directory Services 11g &#8211; Schema, Object Class, Attributes"},"content":{"rendered":"<p><a href=\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2010\/09\/oid_schema_1.gif\"><img decoding=\"async\" src=\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2010\/09\/oid_schema_1.gif\" \/><\/a><\/p>\n<p>This post covers overview of <strong>Schema<\/strong>, <strong>Object Class<\/strong> and <strong>Attributes<\/strong>in OID. Schema Extension (creating object class, adding attribute) is <strong>NOT<\/strong> a regular task for OID administrators but one should know basics and tool\/steps to modify\/extend OID Schema.<\/p>\n<p><strong>Schema<\/strong> : contains rules about kinds of objects you can store in OID. As shown in figure above schema definition is stored in <strong>cn=subSchemaSubentry<\/strong> under Root DSE .\u00a0 Use <strong>ldapadd<\/strong> or <strong>ODSM<\/strong>to add subSchemaSubentry entry (<font color=\"#ff0000\">You cannot use bulkload to add subSchemaSubentry<\/font>).<\/p>\n<p><strong>Attribute <\/strong>: is item\/property attached to an entity\/entry in OID. firstname, lastname, address are example of attributes for entity\/entry <strong>user<\/strong>. Attribute can be <strong>Application Attributes<\/strong>(example firstname, lastname, photo)\u00a0or <strong>System Configuration Attribute<\/strong>(example createTimestamp, createdBy, modifiedBy). Attribute can hold <strong>single value<\/strong> or <strong>multiple value<\/strong>.<\/p>\n<p><strong>Object Class<\/strong> : group of <strong>attribute<\/strong> that define structure of entry\/entity is called Object Class (for example <strong>user<\/strong>, <strong>person<\/strong>, <strong>OrganizationalPerson <\/strong>are Object Class). ObjectClass contains <strong>mandatory<\/strong> and <strong>optional <\/strong>attribute (For example for object class <strong>Person,<\/strong> <strong>cn<\/strong> &amp; <strong>sn<\/strong> attribute are mandatory attribute where as <strong>address<\/strong>is optional attribute). You assign objectClass to an entity\/entry. There are three type of Object Class<\/p>\n<p><strong>a) Structural <\/strong>: Structural object classes describe the basic aspects of an object. example, people, person, printer ..<br \/>\n<strong><br \/>\nb) Auxiliary <\/strong>: Auxiliary object classes are groupings of <strong>optional attributes<\/strong> that expand the existing list of attributes in an entry. Unlike structural object classes, they do not place restrictions on where an entry may be stored, and you can attach them to any entry regardless of that entry&#8217;s location in the DIT.<\/p>\n<p><strong>c) Abstract<\/strong> : An abstract object class is a virtual object class. It is used only for convenience when specifying the highest levels of the object class hierarchy. It cannot be the only object class for an entry. For example, the object class <strong>top<\/strong>is an abstract object class. It is required as a superclass for all structural object classes, but it cannot be used alone.<\/p>\n<p>.<br \/>\n<strong>How to Add\/Modify\/Delete Object Class ?<\/strong><\/p>\n<p>You can use <strong>a)<\/strong>\u00a0<strong>Oracle Directory Services Manager<\/strong> (More on ODSM <a target=\"_blank\" href=\"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/30\/oid-11g-oracle-directory-services-manager-odsm\/\">here<\/a>) or<strong> b)<\/strong> <strong>command line tool <\/strong>(<strong>ldapXXXX<\/strong>)\u00a0to add\/modify\/delete Object Class.<\/p>\n<p><strong><u>To Manage\/Create Object Class using ODSM<\/u><\/strong>: Login to ODSM (<strong>http:\/\/host:7005\/odsm<\/strong>) -&gt; Schema -&gt; Object Classes -&gt; Add\/Modify\u00a0<\/p>\n<p><a href=\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2010\/09\/oid_schema_2.gif\"><img decoding=\"async\" src=\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2010\/09\/oid_schema_2.gif\" \/><\/a><\/p>\n<p>.<\/p>\n<p><strong><u>To add\/modify\/delete Object Class using Command Line<\/u><\/strong>: Use ldap commands like <strong>ldapsearch<\/strong>, <strong>ldapmodify .<\/strong><\/p>\n<p>.<\/p>\n<p>\u00a0\u00a0<\/p>\n<p><strong><u>Things good to know\u00a0about managing OID Schema<\/u><\/strong><br \/>\n<strong>1.<\/strong> Every structural object class must have <strong>top<\/strong>as a superclass (<font color=\"#ff0000\">top is name of object class<\/font>)<br \/>\n<strong>2.<\/strong> The <strong>name<\/strong> and the <strong>object identifier<\/strong> of an object class must be unique across all the schema components (<font color=\"#ff0000\">Object Identifier is string of decimal numbers, which uniquely identifies an Object<\/font>)<br \/>\n<strong>3.<\/strong> The Object Identifier must begin with the unique identifier 2.16.840.1.113894 followed by either the Oracle-supplied prefix.9999 or a site-specific prefix.<br \/>\n<strong>4.<\/strong> It is possible to redefine <strong>mandatory attributes<\/strong>in a superclass into <strong>optional attributes<\/strong> in the new object class. Conversely, <strong>optional attributes<\/strong>in a superclass can be redefined into <strong>mandatory attributes<\/strong> in the new object class.<br \/>\n<strong>5.<\/strong> You cannot modify an object class that is part of the standard LDAP schema. You can, however, modify user-defined object classes.<br \/>\n<strong>6.<\/strong> If existing object classes do not have the attributes you need, you can create an <strong>auxiliary object class<\/strong> and associate the needed attributes with that object class.<br \/>\n<strong>7.<\/strong> You <strong>cannot<\/strong> add additional mandatory attributes to an existing object class (<font color=\"#ff0000\">Use auxiliary class to include existing objectclass as superclass and add additional attributes in auxiliary class<\/font>).<br \/>\n<strong>8.<\/strong> You <strong>cannot<\/strong>remove attributes or super-classes from an existing object class.<br \/>\n<strong>9.<\/strong> You <strong>cannot<\/strong> convert <strong>structural object classes<\/strong> to other object class types (like structural or abstract).<br \/>\n<strong>10.<\/strong> You should not modify an object class if there are entries already associated with it.<br \/>\n<strong>11<\/strong>. You <strong>cannot<\/strong> delete object classes from the base schema.<br \/>\n<strong>12<\/strong>. You can delete object classes that are not in the base schema if they are not directly or indirectly referenced by other schema components.<\/p>\n<p>.<\/p>\n<p><strong><u>References\/Related<\/u><\/strong><\/p>\n<ul>\n<li><a target=\"_blank\" href=\"http:\/\/download.oracle.com\/docs\/cd\/E14571_01\/oid.1111\/e10029\/schema.htm#i596945\">Managing Directory Schema<\/a><\/li>\n<li><a target=\"_blank\" href=\"http:\/\/download.oracle.com\/docs\/cd\/E14571_01\/oid.1111\/e10029\/concepts.htm#i1031358\">Attribute , Schema Concept<\/a><\/li>\n<li><a target=\"_blank\" href=\"http:\/\/download.oracle.com\/docs\/cd\/E14571_01\/oid.1111\/e10035\/schema_objclass.htm#OIMUR0703\">OID 11g Object Class Reference<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This post covers overview of Schema, Object Class and Attributesin OID. Schema Extension (creating object class, adding attribute) is NOT [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2133","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OID\/Directory Services 11g - Schema, Object Class, Attributes -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OID\/Directory Services 11g - Schema, Object Class, Attributes -\" \/>\n<meta property=\"og:description\" content=\"This post covers overview of Schema, Object Class and Attributesin OID. Schema Extension (creating object class, adding attribute) is NOT [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/\" \/>\n<meta property=\"article:published_time\" content=\"2010-09-28T09:55:10+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2010\/09\/oid_schema_1.gif\" \/>\n<meta name=\"author\" content=\"Masroof Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Masroof Ahmad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/\",\"name\":\"OID\/Directory Services 11g - Schema, Object Class, Attributes -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2010\/09\/oid_schema_1.gif\",\"datePublished\":\"2010-09-28T09:55:10+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/#primaryimage\",\"url\":\"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2010\/09\/oid_schema_1.gif\",\"contentUrl\":\"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2010\/09\/oid_schema_1.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OID\/Directory Services 11g &#8211; Schema, Object Class, Attributes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineappsdba.com\/#website\",\"url\":\"https:\/\/onlineappsdba.com\/\",\"name\":\"\",\"description\":\"Oracle Implementation &amp; Training Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineappsdba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\",\"name\":\"Masroof Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"caption\":\"Masroof Ahmad\"},\"url\":\"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OID\/Directory Services 11g - Schema, Object Class, Attributes -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/","og_locale":"en_US","og_type":"article","og_title":"OID\/Directory Services 11g - Schema, Object Class, Attributes -","og_description":"This post covers overview of Schema, Object Class and Attributesin OID. Schema Extension (creating object class, adding attribute) is NOT [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/","article_published_time":"2010-09-28T09:55:10+00:00","og_image":[{"url":"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2010\/09\/oid_schema_1.gif","type":"","width":"","height":""}],"author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/","url":"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/","name":"OID\/Directory Services 11g - Schema, Object Class, Attributes -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/#primaryimage"},"image":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/#primaryimage"},"thumbnailUrl":"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2010\/09\/oid_schema_1.gif","datePublished":"2010-09-28T09:55:10+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/#primaryimage","url":"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2010\/09\/oid_schema_1.gif","contentUrl":"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2010\/09\/oid_schema_1.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2010\/09\/28\/oiddirectory-services-11g-schema-object-class-attributes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"OID\/Directory Services 11g &#8211; Schema, Object Class, Attributes"}]},{"@type":"WebSite","@id":"https:\/\/onlineappsdba.com\/#website","url":"https:\/\/onlineappsdba.com\/","name":"","description":"Oracle Implementation &amp; Training Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineappsdba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb","name":"Masroof Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","caption":"Masroof Ahmad"},"url":"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/2133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/comments?post=2133"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/2133\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=2133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=2133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=2133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}