{"id":14903,"date":"2022-10-27T10:43:30","date_gmt":"2022-10-27T13:43:30","guid":{"rendered":"https:\/\/www.dbarj.com.br\/?p=14903"},"modified":"2022-10-27T10:43:30","modified_gmt":"2022-10-27T13:43:30","slug":"ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/","title":{"rendered":"ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema"},"content":{"rendered":"<p>Today, I was trying to apply the database 12.1.0.2 BP 221018 (October 2022). As usual, for all bundle patches, I have to call datapatch utility twice due to some strange errors during the first execution.<\/p>\n<p>However, this time the patch apply process was giving me this strange ORA-20000 error: <span style=\"font-family: courier new, courier, monospace;\">ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">SQL Patching tool version 12.1.0.2.0 Production on Wed Oct 26 19:32:33 2022\r\nCopyright (c) 2012, 2017, Oracle.  All rights reserved.\r\n\r\nLog file for this invocation: \/u01\/app\/oracle\/cfgtoollogs\/sqlpatch\/sqlpatch_7269_2022_10_26_19_32_33\/sqlpatch_invocation.log\r\n\r\nConnecting to database...OK\r\nNote:  Datapatch will only apply or rollback SQL fixes for PDBs\r\n       that are in an open state, no patches will be applied to closed PDBs.\r\n       Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation\r\n       (Doc ID 1585822.1)\r\nBootstrapping registry and package to current versions...done\r\nDetermining current state...done\r\n\r\nCurrent state of SQL patches:\r\nBundle series DBBP:\r\n  ID 221018 in the binary registry and ID 221018 in PDB CDB$ROOT, ID 221018 with errors in PDB PDB$SEED, ID 221018 with errors in PDB PDB01\r\n\r\nAdding patches to installation queue and performing prereq checks...\r\nInstallation queue:\r\n  For the following PDBs: CDB$ROOT\r\n    Nothing to roll back\r\n    Nothing to apply\r\n  For the following PDBs: PDB$SEED PDB01\r\n    Nothing to roll back\r\n    The following patches will be applied:\r\n      34386250 (DATABASE BUNDLE PATCH 12.1.0.2.221018)\r\n\r\nInstalling patches...\r\nPatch installation complete.  Total patches installed: 2\r\n\r\nValidating logfiles...\r\nPatch 34386250 apply (pdb PDB$SEED): WITH ERRORS\r\n  logfile: \/u01\/app\/oracle\/cfgtoollogs\/sqlpatch\/34386250\/24939610\/34386250_apply_ORCL_PDBSEED_2022Oct26_19_33_03.log (errors)\r\n    Error at line 8178: ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema\r\nPatch 34386250 apply (pdb PDB01): WITH ERRORS\r\n  logfile: \/u01\/app\/oracle\/cfgtoollogs\/sqlpatch\/34386250\/24939610\/34386250_apply_ORCL_PDB01_2022Oct26_19_33_03.log (errors)\r\n    Error at line 8178: ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema\r\n\r\nPlease refer to MOS Note 1609718.1 and\/or the invocation log\r\n\/u01\/app\/oracle\/cfgtoollogs\/sqlpatch\/sqlpatch_7269_2022_10_26_19_32_33\/sqlpatch_invocation.log\r\nfor information on how to resolve the above errors.\r\n\r\nSQL Patching tool complete on Wed Oct 26 19:35:42 2022<\/pre>\n<p>Note the error was only happening on the PDBs, not on the CDB.<\/p>\n<p>Checking the datapatch PDB log file contents, I could find this entry:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">SQL&gt;\r\nSQL&gt; BEGIN\r\n  2    dbms_registry.loaded('OLS', dbms_registry.release_version,\r\n  3              'Oracle Label Security Release ' ||\r\n  4              dbms_registry.release_version    ||\r\n  5              ' - ' || dbms_registry.release_status);\r\n  6    SYS.validate_ols;\r\n  7  END;\r\n  8  \/\r\nBEGIN\r\n*\r\nERROR at line 1:\r\nORA-20000: Insufficient privileges to analyze an object in Dictionary Schema\r\nORA-06512: at \"SYS.DBMS_STATS\", line 40552\r\nORA-06512: at \"SYS.DBMS_REGISTRY_SYS\", line 1412\r\nORA-06512: at \"SYS.DBMS_REGISTRY\", line 708\r\nORA-06512: at line 2<\/pre>\n<p>It was something related to dbms_registry.loaded.<\/p>\n<p>After doing some MOS research, I found a similar know issue in this note: <strong>Oracle Database Proactive Patch 12.1.0.2.190716 Known Issues (Doc ID 2534844.1)<\/strong>, which is for an older release.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">In certain situations the Post-install actions (datapatch -verbose) may fail for DBBP 12.1.0.2.190716:\r\n\r\n    ...\r\n    Error at line 33699: ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema\r\n\r\nWhen this occurs, it is simply a consequence of the order that certain actions are performed within the \"datapatch\" process. The workaround is simply to run 'datapatch \u2013verbose' a second time.\r\n\r\nA fix for this will be included into a future quarterly DBBP.<\/pre>\n<p>So after executing the datapatch for the 3rd time, finally I got no errors.<\/p>\n<p>Conclusion: call datapatch 3x to apply 12.1.0.2 BP 221018.<\/p>\n<b>Have you enjoyed? Please leave a comment or give a \ud83d\udc4d!<\/b>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style2 like-14903 jlk' href='javascript:void(0)' data-task='like' data-post_id='14903' data-nonce='de4404f630' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.dbarj.com.br\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-14903 lc'>0<\/span><\/a><\/div><\/div> <div class='status-14903 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Today, I was trying to apply the database 12.1.0.2 BP 221018 (October 2022). As usual, for all bundle patches, I have to call datapatch utility twice due to some strange errors during the first execution. However, this time the patch apply process was giving me this strange ORA-20000 error: ORA-20000: Insufficient privileges to analyze an &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-14903","post","type-post","status-publish","format-standard","hentry","category-database-en","item-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema - DBA - Rodrigo Jorge - Oracle Tips and Guides<\/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.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DBA RJ\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/10\\\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/10\\\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema\",\"datePublished\":\"2022-10-27T13:43:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/10\\\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\\\/\"},\"wordCount\":152,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"articleSection\":[\"Oracle Database General\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/10\\\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/10\\\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/10\\\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\\\/\",\"name\":\"ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\"},\"datePublished\":\"2022-10-27T13:43:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/10\\\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/10\\\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/10\\\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\",\"name\":\"DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"description\":\"Blog about Databases, Security and High Availability\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\",\"name\":\"DBA RJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"width\":712,\"height\":712,\"caption\":\"DBA RJ\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema - DBA - Rodrigo Jorge - Oracle Tips and Guides","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.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/","twitter_misc":{"Written by":"DBA RJ","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema","datePublished":"2022-10-27T13:43:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/"},"wordCount":152,"commentCount":1,"publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"articleSection":["Oracle Database General"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/","url":"https:\/\/www.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/","name":"ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/#website"},"datePublished":"2022-10-27T13:43:30+00:00","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/en\/2022\/10\/ora-20000-insufficient-privileges-to-analyze-an-object-in-dictionary-schema\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"ORA-20000: Insufficient privileges to analyze an object in Dictionary Schema"}]},{"@type":"WebSite","@id":"https:\/\/www.dbarj.com.br\/en\/#website","url":"https:\/\/www.dbarj.com.br\/en\/","name":"DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Blog about Databases, Security and High Availability","publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbarj.com.br\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9","name":"DBA RJ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","width":712,"height":712,"caption":"DBA RJ"},"logo":{"@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png"}}]}},"_links":{"self":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/14903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/comments?post=14903"}],"version-history":[{"count":3,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/14903\/revisions"}],"predecessor-version":[{"id":14906,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/14903\/revisions\/14906"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/media?parent=14903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/categories?post=14903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/tags?post=14903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}