{"id":10471,"date":"2017-09-23T20:03:20","date_gmt":"2017-09-23T18:03:20","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/"},"modified":"2017-09-23T20:03:20","modified_gmt":"2017-09-23T18:03:20","slug":"wrong-result-with-multitenant-dba_contraints-and-current_schema","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/","title":{"rendered":"Wrong result with multitenant, dba_contraints and current_schema"},"content":{"rendered":"<h2>By Franck Pachot<\/h2>\n<p>.<br \/>\nMultitenant architecture is not such a big change and this is why I recommend it when you start a project in 12<em>c<\/em> or if you upgrade to 12.2 &#8211; of course after thoroughly testing your application. However, there is a point where you may encounter problems on dictionary queries, because it is really a big change internally. The dictionary separation has several side effects. You should test carefully the queries you do on the dictionary views to get metadata. Here is an example of a bug I recently encountered.<\/p>\n<p>This happened with a combination of things you should not do very often, and not in a critical use case: query dictionary for constraints owned by your current schema, when different than the user you connect with.<\/p>\n<p>I create two users: USER1 and USER2<\/p>\n<pre><code>SQL&gt; connect sys\/oracle@\/\/localhost\/PDB1 as sysdba\nConnected.\nSQL&gt; grant dba to USER1 identified by USER1 container=current;\nGrant succeeded.\nSQL&gt; grant dba to USER2 identified by USER2 container=current;\nGrant succeeded.\n<\/code><\/pre>\n<p>USER1 owns a table which has a constraint:<\/p>\n<pre><code>\nSQL&gt; connect USER1\/USER1@\/\/localhost\/PDB1\nConnected.\nSQL&gt; create table DEMO(dummy constraint pk primary key) as select * from dual;\nTable DEMO created.\n<\/code><\/pre>\n<p>USER2 can access to the table either by prefixing it with USER1 or by setting the current_schema to USER1<\/p>\n<pre><code>\nSQL&gt; connect USER2\/USER2@\/\/localhost\/PDB1\nConnected.\nSQL&gt; alter session set current_schema=USER1;\nSession altered.\n<\/code><\/pre>\n<h3>Bug<\/h3>\n<p>Ok, now imagine you want to read constraint metadata for the current schema you have set:<\/p>\n<pre><code>\nSQL&gt; select sys_context('USERENV','CURRENT_SCHEMA'), a.*\n  2  from sys.dba_constraints a\n  3       where owner = sys_context('USERENV','CURRENT_SCHEMA')\n  4  \/\n&nbsp;\nno rows selected\n<\/code><\/pre>\n<p>No rows selected is a wrong result here because my current_schema is USER1 and USER1 has constraints:<\/p>\n<pre><code>\nSQL&gt; select owner,constraint_name\n  2  from sys.dba_constraints a\n  3       where owner = 'USER1'\n  4  \/\nOWNER  CONSTRAINT_NAME\n-----  ---------------\nUSER1  PK\n<\/code><\/pre>\n<p>So, where&#8217;s the problem? Let&#8217;s have a look at the execution plan:<\/p>\n<pre><code>\nSQL_ID  2fghqwz1cktyf, child number 0\n-------------------------------------\nselect sys_context('USERENV','CURRENT_SCHEMA'), a.*  from\nsys.dba_constraints a      where owner =\nsys_context('USERENV','CURRENT_SCHEMA')\n&nbsp;\nPlan hash value: 1258862619\n&nbsp;\n--------------------------------------------------------------------------------------------------------------\n| Id  | Operation                | Name                    | Starts | E-Rows | A-Rows |   A-Time   | Buffers |\n--------------------------------------------------------------------------------------------------------------\n|   0 | SELECT STATEMENT         |                         |      1 |        |      0 |00:00:00.32 |    2656 |\n|   1 |  PARTITION LIST ALL      |                         |      1 |      2 |      0 |00:00:00.32 |    2656 |\n|*  2 |   EXTENDED DATA LINK FULL| INT$INT$DBA_CONSTRAINTS |      2 |      2 |      0 |00:00:00.32 |    2656 |\n--------------------------------------------------------------------------------------------------------------\n&nbsp;\nPredicate Information (identified by operation id):\n---------------------------------------------------\n&nbsp;\n   2 - filter(((\"INT$INT$DBA_CONSTRAINTS\".\"OBJECT_TYPE#\"=4 OR\n              (\"INT$INT$DBA_CONSTRAINTS\".\"OBJECT_TYPE#\"=2 AND \"INT$INT$DBA_CONSTRAINTS\".\"ORIGIN_CON_ID\"=TO_NUMBER(SY\n              S_CONTEXT('USERENV','CON_ID')))) AND \"OWNER\"=SYS_CONTEXT('USERENV','CURRENT_SCHEMA')))\n<\/code><\/pre>\n<p>I am in 12.2 and DBA_CONSTRAINTS reads from INT$DBA_CONSTRAINTS which reads from INT$INT$DBA_CONSTRAINTS and in multitenant this view being an extended data view will read from CDB$ROOT and from the current container. This is why we see EXTENDED DATA LINK FULL in the execution plan and up to this point the predicates are correct: &#8220;OWNER&#8221;=SYS_CONTEXT(&#8216;USERENV&#8217;,&#8217;CURRENT_SCHEMA&#8217;)<\/p>\n<p>The execution through data link is run on each container with parallel processes: they switch to the container and run the underlying query on the view. But when I look at the sql trace of the parallel process running the query on my PDB I can see that the predicate on OWNER has replaced the SYS_CONTEXT(&#8216;USERENV&#8217;,&#8217;CURRENT_SCHEMA&#8217;) with the hardcoded value:<\/p>\n<pre><code>\nSELECT \/*+ NO_STATEMENT_QUEUING RESULT_CACHE (SYSOBJ=TRUE) OPT_PARAM('_ENABLE_VIEW_PDB', 'FALSE') *\/ OWNER,CONSTRAINT_NAME,CONSTRAINT_TYPE,TABLE_NAME,OBJECT_TYPE#,SEARCH_CONDITION,SEARCH_CONDITION_VC,R_OWNER,R_CONSTRAINT_NAME,DELETE_RULE,STATUS,DEFERRABLE,DEFERRED,VALIDATED,GENERATED,BAD,RELY,LAST_CHANGE,INDEX_OWNER,INDEX_NAME,INVALID,VIEW_RELATED,ORIGIN_CON_ID FROM NO_COMMON_DATA(SYS.\"INT$INT$DBA_CONSTRAINTS\") \"INT$INT$DBA_CONSTRAINTS\" WHERE (\"INT$INT$DBA_CONSTRAINTS\".\"OBJECT_TYPE#\"=4 OR \"INT$INT$DBA_CONSTRAINTS\".\"OBJECT_TYPE#\"=2 AND \"INT$INT$DBA_CONSTRAINTS\".\"ORIGIN_CON_ID\"=TO_NUMBER('3')) AND \"INT$INT$DBA_CONSTRAINTS\".\"OWNER\"=q'\"USER2\"'\n<\/code><\/pre>\n<p>And unfortunately, this value is not the right one: USER2 is my connected user, but not the CURRENT_SCHEMA that I have set. In the same trace, I can see where this value comes from:<\/p>\n<pre><code>\nselect 'q''\"' || SYS_CONTEXT('USERENV', 'CURRENT_SCHEMA') || '\"''' from sys.dual\n<\/code><\/pre>\n<p>but it seems that the current_schema was lost through the call to the parallel process and the PDB switch to my container.<\/p>\n<h3>Workaround<\/h3>\n<p>The problem is easy to workaround. This works:<\/p>\n<pre><code>\nSQL&gt; select owner,constraint_name\n  2  from sys.dba_constraints a\n  3       where owner = ( select sys_context('USERENV','CURRENT_SCHEMA') from dual )\n  4  \/\n&nbsp;\nOWNER  CONSTRAINT_NAME\n-----  ---------------\nUSER1  PK\n<\/code><\/pre>\n<p>And anyway, better to get the current schema before and pass it as a bind variable. The bind variables are passed correctly through data link queries:<\/p>\n<pre><code>\nSQL&gt; variable v varchar2(30)\nSQL&gt; exec select sys_context('USERENV','CURRENT_SCHEMA') into :v from dual;\n&nbsp;\nPL\/SQL procedure successfully completed.\n&nbsp;\nSQL&gt; select sys_context('USERENV','CURRENT_SCHEMA'), a.*\n  2  from sys.dba_constraints a\n  3       --where owner = sys_context('USERENV','CURRENT_SCHEMA')\n  4       where owner = :v\n  5  \/\n<\/code><\/pre>\n<h3>So what?<\/h3>\n<p>The multitenant architecture is a real challenge for dictionary views. The dictionary is separated: system metadata in CDB$ROOT and user metadata in PDB. But, because of compatibility with non-CDB architecture, the dictionary views must show both of them, and this is where it becomes complex: what was separated on purpose has now to be merged. And complexity is subject to bugs. If you want to get an idea, have a look at dcore.sql in ORACLE_HOME\/rdbms\/admin and compare 11<i>g<\/i> version with 12<i>c<\/i> ones, with all the evolution in 12.1.0.1, 12.1.0.2 and 12.2.0.1<\/p>\n<h3>Added OCT-17<\/h3>\n<p>I&#8217;ve opened a SR and the following bug is logged: Bug <a href=\"https:\/\/support.oracle.com\/epmos\/faces\/BugDisplay?id=26986472&amp;parent=SrDetailText&amp;sourceId=3-15800798501\" target=\"_blank\" rel=\"noopener noreferrer\">26986472<\/a> &#8211; WRONG RESULT WHILE USING SYS_CONTEXT(&#8216;USERENV&#8217;,&#8217;CURRENT_SCHEMA&#8217;) IN PDB<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Franck Pachot . Multitenant architecture is not such a big change and this is why I recommend it when you start a project in 12c or if you upgrade to 12.2 &#8211; of course after thoroughly testing your application. However, there is a point where you may encounter problems on dictionary queries, because it&hellip;&nbsp;<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[59],"tags":[220,64,209,66,223],"class_list":["post-10471","post","type-post","status-publish","format-standard","category-oracle","tag-cdb","tag-multitenant","tag-oracle-12c","tag-pdb","tag-pluggable-databases"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Wrong result with multitenant, dba_contraints and current_schema - dbi services Blog<\/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:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Wrong result with multitenant, dba_contraints and current_schema\" \/>\n<meta property=\"og:description\" content=\"By Franck Pachot . Multitenant architecture is not such a big change and this is why I recommend it when you start a project in 12c or if you upgrade to 12.2 &#8211; of course after thoroughly testing your application. However, there is a point where you may encounter problems on dictionary queries, because it&hellip;&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-23T18:03:20+00:00\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wrong-result-with-multitenant-dba_contraints-and-current_schema\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wrong-result-with-multitenant-dba_contraints-and-current_schema\\\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\"},\"headline\":\"Wrong result with multitenant, dba_contraints and current_schema\",\"datePublished\":\"2017-09-23T18:03:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wrong-result-with-multitenant-dba_contraints-and-current_schema\\\/\"},\"wordCount\":565,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"keywords\":[\"CDB\",\"Multitenant\",\"Oracle 12c\",\"PDB\",\"Pluggable Databases\"],\"articleSection\":[\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wrong-result-with-multitenant-dba_contraints-and-current_schema\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wrong-result-with-multitenant-dba_contraints-and-current_schema\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wrong-result-with-multitenant-dba_contraints-and-current_schema\\\/\",\"name\":\"Wrong result with multitenant, dba_contraints and current_schema - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2017-09-23T18:03:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wrong-result-with-multitenant-dba_contraints-and-current_schema\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wrong-result-with-multitenant-dba_contraints-and-current_schema\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wrong-result-with-multitenant-dba_contraints-and-current_schema\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Wrong result with multitenant, dba_contraints and current_schema\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"caption\":\"Oracle Team\"},\"description\":\"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/oracle-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Wrong result with multitenant, dba_contraints and current_schema - dbi services Blog","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:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/","og_locale":"en_US","og_type":"article","og_title":"Wrong result with multitenant, dba_contraints and current_schema","og_description":"By Franck Pachot . Multitenant architecture is not such a big change and this is why I recommend it when you start a project in 12c or if you upgrade to 12.2 &#8211; of course after thoroughly testing your application. However, there is a point where you may encounter problems on dictionary queries, because it&hellip;&nbsp;","og_url":"https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2017-09-23T18:03:20+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5"},"headline":"Wrong result with multitenant, dba_contraints and current_schema","datePublished":"2017-09-23T18:03:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/"},"wordCount":565,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"keywords":["CDB","Multitenant","Oracle 12c","PDB","Pluggable Databases"],"articleSection":["Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/","url":"https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/","name":"Wrong result with multitenant, dba_contraints and current_schema - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2017-09-23T18:03:20+00:00","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/wrong-result-with-multitenant-dba_contraints-and-current_schema\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Wrong result with multitenant, dba_contraints and current_schema"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","caption":"Oracle Team"},"description":"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.","url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/10471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=10471"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/10471\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=10471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=10471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=10471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}