{"id":2595,"date":"2017-05-25T10:59:31","date_gmt":"2017-05-25T13:59:31","guid":{"rendered":"http:\/\/www.dbarj.com.br\/?p=2595\/"},"modified":"2017-05-25T23:56:02","modified_gmt":"2017-05-26T02:56:02","slug":"oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/en\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/","title":{"rendered":"Oracle 12.1.0.2 CDB creation &#8211; catcdb.sql returning ORA-22288 or ORA-29548"},"content":{"rendered":"<p>Those days I was trying to create an Oracle Database 12.1.0.2 CDB using only sqlplus in a Oracle Linux 6.5 64 bits.<\/p>\n<p>So after issuing the <strong>CREATE DATABASE<\/strong> command, it was time to create all the dictionary:<\/p>\n<p><span style=\"font-family: 'courier new', courier, monospace;\">$ sqlplus \/ as sysdba @?\/rdbms\/admin\/catcdb.sql<\/span><\/p>\n<p>However, something was going wrong because both <strong>Oracle Java<\/strong> and <strong>Oracle Multimedia<\/strong> were having\u00a0their catalog creation scripts aborted and their status became\u00a0<span style=\"color: #800000;\"><strong>INVALID<\/strong><\/span>\u00a0on cdb_registry after the <em>catcdb.sql<\/em> execution:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">catcon: ALL catcon-related output will be written to initjvm_catcon_11063.lst\r\ncatcon: See initjvm*.log files for output generated by scripts\r\ncatcon: See initjvm_*.lst files for spool files, if any\r\nA process terminated prior to completion.\r\n    Review the initjvm*.log files to identify the failure\r\nDied at \/u01\/app\/oracle\/product\/12.1.0\/dbhome_1\/rdbms\/admin\/catcon.pm line 6149.<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">catcon: ALL catcon-related output will be written to catim_catcon_11536.lst\r\ncatcon: See catim*.log files for output generated by scripts\r\ncatcon: See catim_*.lst files for spool files, if any\r\nA process terminated prior to completion.\r\n    Review the catim*.log files to identify the failure\r\nDied at \/u01\/app\/oracle\/product\/12.1.0\/dbhome_1\/rdbms\/admin\/catcon.pm line 6149.<\/pre>\n<p>Checking the error on <em>catim0.log<\/em> file (Oracle Multimedia), it was failing because Oracle Java was not deployed correctly. So checking\u00a0<em>initvm0.log<\/em> file, the error was &#8220;<strong>ORA-22288: file or LOB operation FILEOPEN failed<\/strong>&#8220;:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">create or replace java system\r\nbegin if initjvmaux.startstep('CREATE_JAVA_SYSTEM') then\r\n*\r\nERROR at line 1:\r\nORA-22288: file or LOB operation FILEOPEN failed\r\nNo such file or directory\r\nORA-06512: at \"SYS.INITJVMAUX\", line 28\r\nORA-06512: at line 5<\/pre>\n<p>After doing some research, I&#8217;ve found a Chinese <a href=\"http:\/\/www.dbstyle.net\/%E3%80%90troubleshooting%E3%80%91resolve-error-in-installation-of-oracle-12c-on-oel-6-5.html\" target=\"_blank\" rel=\"noopener noreferrer\">post<\/a>\u00a0referencing and\u00a0Doc ID <a href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?id=143773.1\" target=\"_blank\" rel=\"noopener noreferrer\">143773.1<\/a> with a similar problem and which solution was to\u00a0create the java\u00a0<em>classes.bin<\/em>\u00a0file on\u00a0<span style=\"font-family: 'courier new', courier, monospace;\">$ORACLE_HOME\/javavm\/admin<span style=\"font-family: arial, helvetica, sans-serif;\">.<\/span><\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[oracle@localhost ~]$ cd $ORACLE_HOME\/javavm\/admin\r\n[oracle@localhost admin]$ ls\r\njdk.versions libjtcjt.so\r\n[oracle@localhost admin]$ ln -s ..\/jdk\/jdk6\/admin\/classes.bin .\r\n[oracle@localhost admin]$ ls -la\r\ntotal 220\r\ndrwxr-xr-x. 2 oracle oinstall   4096 May 24 10:42 .\r\ndrwxr-xr-x. 8 oracle oinstall   4096 May 19 15:41 ..\r\nlrwxrwxrwx. 1 oracle oinstall     29 May 23 14:42 classes.bin -&gt; ..\/jdk\/jdk6\/admin\/classes.bin\r\n-rw-r--r--. 1 oracle oinstall    723 Jul 14  2011 jdk.versions\r\n-rw-r--r--. 1 oracle oinstall 211789 Jun 30  2014 libjtcjt.so<\/pre>\n<p>After creating the file, I&#8217;ve called the <em>catcdb.sql<\/em> in a new empty container and the problem happened again, but now it changed to &#8220;<strong>ORA-29548: Java system class reported: release of classes.bin in the database<\/strong>&#8220;. Something related to the Java Version:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">create or replace java system\r\nbegin if initjvmaux.startstep('CREATE_JAVA_SYSTEM') then\r\n*\r\nERROR at line 1:\r\nORA-29548: Java system class reported: release of classes.bin in the database\r\ndoes not match that of the oracle executable\r\nORA-06512: at \"SYS.INITJVMAUX\", line 28\r\nORA-06512: at line 5<\/pre>\n<p>What happened is that unfortunately I&#8217;ve linked the\u00a0<strong>jdk6<\/strong> classes.bin file, but my database was using <strong>jdk7<\/strong> in the binaries libraries. So I had to link again the file now against the right\u00a0classes.bin file:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[oracle@localhost admin]$ rm classes.bin\r\n[oracle@localhost admin]$ ln -s ..\/jdk\/jdk7\/admin\/classes.bin .\r\n[oracle@localhost admin]$ ls -la\r\ntotal 220\r\ndrwxr-xr-x. 2 oracle oinstall   4096 May 24 10:42 .\r\ndrwxr-xr-x. 8 oracle oinstall   4096 May 19 15:41 ..\r\nlrwxrwxrwx. 1 oracle oinstall     29 May 24 10:42 classes.bin -&gt; ..\/jdk\/jdk7\/admin\/classes.bin\r\n-rw-r--r--. 1 oracle oinstall    723 Jul 14  2011 jdk.versions\r\n-rw-r--r--. 1 oracle oinstall 211789 Jun 30  2014 libjtcjt.so<\/pre>\n<p>Voil\u00e0! After calling <em>catcdb.sql<\/em>\u00a0one more time in a newly\u00a0created container, it finally run smooth and in the end I&#8217;ve got <span style=\"color: #008000;\"><strong>VALID<\/strong> <\/span>status for all registry entries in cdb_registry.<\/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-2595 jlk' href='javascript:void(0)' data-task='like' data-post_id='2595' 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-2595 lc'>+2<\/span><\/a><\/div><\/div> <div class='status-2595 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Those days I was trying to create an Oracle Database 12.1.0.2 CDB using only sqlplus in a Oracle Linux 6.5 64 bits. So after issuing the CREATE DATABASE command, it was time to create all the dictionary: $ sqlplus \/ as sysdba @?\/rdbms\/admin\/catcdb.sql However, something was going wrong because both Oracle Java and Oracle Multimedia &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/en\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/\">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-2595","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>Oracle 12.1.0.2 CDB creation - catcdb.sql returning ORA-22288 or ORA-29548 - 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\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/\" \/>\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\\\/2017\\\/05\\\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/05\\\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"Oracle 12.1.0.2 CDB creation &#8211; catcdb.sql returning ORA-22288 or ORA-29548\",\"datePublished\":\"2017-05-25T13:59:31+00:00\",\"dateModified\":\"2017-05-26T02:56:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/05\\\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\\\/\"},\"wordCount\":269,\"commentCount\":0,\"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\\\/2017\\\/05\\\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/05\\\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/05\\\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\\\/\",\"name\":\"Oracle 12.1.0.2 CDB creation - catcdb.sql returning ORA-22288 or ORA-29548 - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\"},\"datePublished\":\"2017-05-25T13:59:31+00:00\",\"dateModified\":\"2017-05-26T02:56:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/05\\\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/05\\\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/05\\\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle 12.1.0.2 CDB creation - catcdb.sql returning ORA-22288 or ORA-29548\"}]},{\"@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":"Oracle 12.1.0.2 CDB creation - catcdb.sql returning ORA-22288 or ORA-29548 - 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\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/","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\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"Oracle 12.1.0.2 CDB creation &#8211; catcdb.sql returning ORA-22288 or ORA-29548","datePublished":"2017-05-25T13:59:31+00:00","dateModified":"2017-05-26T02:56:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/"},"wordCount":269,"commentCount":0,"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\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/en\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/","url":"https:\/\/www.dbarj.com.br\/en\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/","name":"Oracle 12.1.0.2 CDB creation - catcdb.sql returning ORA-22288 or ORA-29548 - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/#website"},"datePublished":"2017-05-25T13:59:31+00:00","dateModified":"2017-05-26T02:56:02+00:00","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/en\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/en\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/en\/2017\/05\/oracle-12-1-0-2-cdb-creation-catcdb-sql-returning-ora-22288-or-ora-29548\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Oracle 12.1.0.2 CDB creation - catcdb.sql returning ORA-22288 or ORA-29548"}]},{"@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\/2595","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=2595"}],"version-history":[{"count":0,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/2595\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/media?parent=2595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/categories?post=2595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/tags?post=2595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}