{"id":211,"date":"2015-05-21T12:08:30","date_gmt":"2015-05-21T10:08:30","guid":{"rendered":"https:\/\/www.carajandb.com\/2015\/05\/21\/non-cdb-deprecated-new-en\/"},"modified":"2018-02-09T11:43:23","modified_gmt":"2018-02-09T10:43:23","slug":"non-cdb-deprecated-new-en","status":"publish","type":"post","link":"https:\/\/carajandb.com\/en\/2015\/05\/21\/non-cdb-deprecated-new-en\/","title":{"rendered":"Non-CDB Deprecated"},"content":{"rendered":"<p>Cite:<\/p>\n<blockquote><p>&#8220;The non-CDB architecture is deprecated in Oracle Database 12c, and may be desupported and unavailable in a later Oracle Database release. Oracle recommends use of the CDB architecture.&#8221; (Oracle 12c Database Upgrade Guide, Chapter 8.1.1).<\/p><\/blockquote>\n<h2>What does that mean?<\/h2>\n<p><!--more--><br \/>\nFirst we must clarify some terms:<\/p>\n<ol>\n<li>Non-CDB: non Container Database. This is the \u201cclassic\u201d database, which is usual, until version 11g inclusively.<\/li>\n<li>Multitenant Database: with a multitenant database we have a container database (CDB), to which several (max. 252) databases, the \u201cPluggable Databases\u201d, can be attached.<\/li>\n<li>Single Tenant Database: a special version of the multitenant database, at which to one container database only one additional database (and the Seed Database) can be attached.<\/li>\n<\/ol>\n<p>To illustrate the new (CDB) architecture once more:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-589\" src=\"https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1.jpg\" alt=\"1\" width=\"640\" height=\"393\" title=\"\" srcset=\"https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1.jpg 1388w, https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1-450x276.jpg 450w, https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1-768x471.jpg 768w, https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1-1024x629.jpg 1024w, https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1-300x184.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>The mentioned cite so means that in the future only this architecture will be supported.<\/p>\n<p>By that two questions are coming up:<\/p>\n<ol>\n<li>How much is that?<\/li>\n<li>How do I get there?<\/li>\n<\/ol>\n<h3>Costs<\/h3>\n<p>According to the Oracle Licensing Guide multitenant database is a charged option of the Oracle Enterprise Edition. But with the following constraints:<\/p>\n<blockquote><p>\u201eThe multitenant architecture with one user-created pluggable database (single tenant) is available in all editions\u201d Oracle Database Licensing Information 12c Release 1 (12.1) Page 1-2<\/p><\/blockquote>\n<p>In any case the concept of the multitenant database can be used without any additional costs.<\/p>\n<h3>Upgrade<\/h3>\n<p>You often read the following question:<\/p>\n<p><em>&#8220;I&#8217;ve upgraded my Oracle 11g database to Oracle 12c. How can I convert the database into a CDB?&#8221;<\/em><\/p>\n<p>The answer is simple: You just can&#8217;t!<\/p>\n<p>This is due to the phrasing of the question: No database can be converted into a CDB, but into a PDB, which can be mount to a CDB then. So the correct question had to be:<\/p>\n<p><em>&#8220;How can I convert the database into a PDB?&#8221;<\/em><\/p>\n<p>Solution:<\/p>\n<p>First you must create a CDB, if you did not do that already. This works the easiest with the Database Configuration Assistant:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-590\" src=\"https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/2.jpg\" alt=\"2\" width=\"640\" height=\"480\" title=\"\" srcset=\"https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/2.jpg 799w, https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/2-450x337.jpg 450w, https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/2-768x576.jpg 768w, https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/2-300x225.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>In this example a container database named \u201cCDBACFS\u201d with a pluggable database \u201cPLUGACFS1\u201d is created. But be aware: If you did not license any multitenant database option, the maximum number of possible PDBs is reached by this. Alternatively in the \u201cAdvanced Mode\u201d you can create a CDB without any pluggable database or you simply delete the PDB subsequently.<\/p>\n<p>By this the scene is set for mounting your existing database as a new PDB to the CDB.<\/p>\n<p>To mount an existing database to a CDB it has to have a so called \u201cmanifest\u201d. That is a XML-file, which basically contains the structures of the database. So subsequently creating this XML structure is required:<\/p>\n<pre>\r\n% sqlplus sys\/@WOLFGANG as sysdba \r\nSQL&gt; STARTUP OPEN READ ONLY \r\nSQL&gt; execute dbms_pdb.describe('\/tmp\/wolfgang.xml');\r\n<\/pre>\n<p>Of course, you can here also choose a different directory and name. Only the suffix &#8220;.xml&#8221; is mandatory.<\/p>\n<p>Now the database can be mount to the CDB.<\/p>\n<pre>\r\n% sqlplus sys\/@CDBACFS as sysdba  \r\nSQL&gt; CREATE PLUGGABLE DATABASE wolfgang USING '\/tmp\/wolfgang.xml' \r\n       NOCOPY TEMPFILE REUSE;<\/pre>\n<p>As a last step the Data Dictionary of the pluggable database must be cleaned, as many elements are not needed in the PDB anymore:<\/p>\n<pre>\r\nSQL&gt; ALTER SESSION SET CONTAINER = WOLFGANG; \r\nSQL&gt; @?\/rdbms\/admin\/noncdb_to_pdb<\/pre>\n<p>With these few steps the &#8220;old&#8221; database WOLFGANG is now available as a beautiful, new pluggable database WOLFGANG and can finally be opened.<\/p>\n<pre>\r\nSQL&gt; ALTER DATABASE OPEN READ WRITE;<\/pre>\n<h3>Hints<\/h3>\n<p>If you mount the database with \u201cNOCOPY\u201d like in this case, a few \u201cbodies\u201d are left over. Those are the control files, the redo log files and the undo tablespace of the old database, which should then finally be deleted.<\/p>\n<p>If there was not already an explicit DBA before, so not SYS or SYSTEM, you may want to create an additional DBA (role PDB_DBA) for the PDB.<\/p>\n<p>One last advice: I recommend you to start the change to a CDB architecture as soon as possible, because the challenges are lesser in the database upgrade but more in the administration of its new environment.<\/p>\n<p>That contains:<\/p>\n<ul>\n<li>Most of your SQL or SHELL scripts will probably not work anymore.<\/li>\n<li>With the often used sqlplus \/ as sysdba you can however log in to the CDB but not to the PDB.<\/li>\n<li>To get an overview of the database structure you must now use CDB_-Views instead of DBA_-Views.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Cite: &#8220;The non-CDB architecture is deprecated in Oracle Database 12c, and may be desupported and unavailable in a later Oracle Database release. Oracle recommends use of the CDB architecture.&#8221; (Oracle 12c Database Upgrade Guide, Chapter 8.1.1). What does that mean?<\/p>\n","protected":false},"author":3,"featured_media":589,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","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":"","ast-disable-related-posts":"","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-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":"","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-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":"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":""},"mobile":{"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":""}},"footnotes":""},"categories":[],"tags":[161,139,160,22,41,27,159,25],"class_list":["post-211","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cdb","tag-multitenant","tag-non-cdb","tag-oracle","tag-oracle-12c","tag-pluggable-database","tag-singletenant","tag-upgrade"],"acf":{"occupation":"Write the Occupation of the Person","person_can-be-speaker":true,"person_is-team":true,"person_related-user-account":null,"person_ordering-number":50,"publication_speakers":null,"publication_content-language":["de"],"publication_files":null,"publication_event":"","publication_date":null},"spectra_custom_meta":{"_thumbnail_id":["589"],"_fgj2wp_old_id":["211"],"_yoast_wpseo_metadesc":["Non-CDB Deprecated"],"_yoast_wpseo_metakeywords":["NON-CDB, Multitenant, Pluggable Database, Singletenant, Oracle 12c, Oracle, Upgrade"],"layout_show-author-box":["1"],"_layout_show-author-box":["field_5a64ee9cc6490"],"_edit_lock":["1518173005:3"],"_yoast_wpseo_content_score":["90"],"_edit_last":["3"],"_vc_post_settings":["a:1:{s:10:\"vc_grid_id\";a:0:{}}"],"layout_header":["light"],"_layout_header":["field_5a48111185e5f"],"layout_background":[""],"_layout_background":["field_5a481193c0995"],"layout_hide_services":["0"],"_layout_hide_services":["field_5a4811c5c0996"],"layout_show-categories-tags":["1"],"_layout_show-categories-tags":["field_5a64eee4c6491"],"blogpost_related-publications":[""],"_blogpost_related-publications":["field_5a480debdac62"],"blogpost_related-files":[""],"_blogpost_related-files":["field_5a480f377db29"],"_yoast_wpseo_primary_category":[""],"_wpml_media_duplicate":["1"],"_wp_attachment_metadata":[""],"rank_math_primary_category":[""],"rank_math_description":["Non-CDB Deprecated"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_internal_links_processed":["1"],"wpil_sync_report3":["1"],"wpil_links_inbound_internal_count":["0"],"wpil_links_inbound_internal_count_data":["eJxLtDKwqq4FAAZPAf4="],"wpil_links_outbound_internal_count":["0"],"wpil_links_outbound_internal_count_data":["eJxLtDKwqq4FAAZPAf4="],"wpil_links_outbound_external_count":["0"],"wpil_links_outbound_external_count_data":["eJxLtDKwqq4FAAZPAf4="],"wpil_sync_report2_time":["2024-08-27T11:47:29+00:00"],"astra_style_timestamp_css":["1784931279"],"copied_media_ids":["a:2:{i:0;i:7296;i:1;i:7297;}"],"referenced_media_ids":["a:1:{i:0;i:589;}"],"_uag_css_file_name":["uag-css-211.css"]},"uagb_featured_image_src":{"full":["https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1.jpg",1388,852,false],"thumbnail":["https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1-200x200.jpg",200,200,true],"medium":["https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1-450x276.jpg",450,276,true],"medium_large":["https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1-768x471.jpg",768,471,true],"large":["https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1-1024x629.jpg",1024,629,true],"1536x1536":["https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1.jpg",1388,852,false],"2048x2048":["https:\/\/carajandb.com\/wp-content\/uploads\/2015\/05\/1.jpg",1388,852,false]},"uagb_author_info":{"display_name":"Johannes Ahrends","author_link":"https:\/\/carajandb.com\/en\/author\/9aa6cdb2095bd409\/"},"uagb_comment_info":0,"uagb_excerpt":"Cite: &#8220;The non-CDB architecture is deprecated in Oracle Database 12c, and may be desupported and unavailable in a later Oracle Database release. Oracle recommends use of the CDB architecture.&#8221; (Oracle 12c Database Upgrade Guide, Chapter 8.1.1). What does that mean?","_links":{"self":[{"href":"https:\/\/carajandb.com\/en\/wp-json\/wp\/v2\/posts\/211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carajandb.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/carajandb.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/carajandb.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/carajandb.com\/en\/wp-json\/wp\/v2\/comments?post=211"}],"version-history":[{"count":0,"href":"https:\/\/carajandb.com\/en\/wp-json\/wp\/v2\/posts\/211\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/carajandb.com\/en\/wp-json\/wp\/v2\/media\/589"}],"wp:attachment":[{"href":"https:\/\/carajandb.com\/en\/wp-json\/wp\/v2\/media?parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carajandb.com\/en\/wp-json\/wp\/v2\/categories?post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carajandb.com\/en\/wp-json\/wp\/v2\/tags?post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}