{"id":371,"date":"2013-07-03T16:55:27","date_gmt":"2013-07-03T14:55:27","guid":{"rendered":"http:\/\/www.ludovicocaldara.net\/dba\/?p=371"},"modified":"2020-08-18T16:56:20","modified_gmt":"2020-08-18T14:56:20","slug":"oracle-database-12c-an-overview-of-the-standard-edition-rac","status":"publish","type":"post","link":"https:\/\/www.ludovicocaldara.net\/dba\/oracle-database-12c-an-overview-of-the-standard-edition-rac\/","title":{"rendered":"Oracle Database 12c: Multitenant, Services and Standard Edition RAC"},"content":{"rendered":"<p>The installation process of a typical Standard Edition RAC does not differ from the Enterprise Edition. To achieve a successful installation refer to <a title=\"Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0\" href=\"http:\/\/www.slideshare.net\/yvelikanov\/oracle-12c-rac-on-your-laptop-step-by-step-implementation-guide-10-23587496\" target=\"_blank\" rel=\"noopener noreferrer\">the nice quick guide made by Yury Velikanov<\/a>\u00a0and change accordingly the Edition when installing the DB software.<\/p>\n<p><strong>Standard Edition and Feature availability<\/strong><\/p>\n<p>The first thing that impressed me, is that you&#8217;re still able to choose to enable pluggable databases in DBCA even if Multitenant option is not available for the SE.<\/p>\n<p>So I decided to create a container database CDB01 using template files, so all options of EE are normally cabled into the new DB. The Pluggable Database name is PDB01.<\/p>\n<pre class=\"toolbar-overlay:false lang:default decode:true\">[oracle@se12c01 ~]$ sqlplus\r\n\r\nSQL*Plus: Release 12.1.0.1.0 Production on Wed Jul 3 14:21:47 2013\r\n\r\nCopyright (c) 1982, 2013, Oracle. All rights reserved.\r\n\r\nEnter user-name: \/ as sysdba\r\n\r\nConnected to:\r\nOracle Database 12c Release 12.1.0.1.0 - 64bit Production\r\nWith the Real Application Clusters and Automatic Storage Management options<\/pre>\n<p>As you can see, \u00a0the initial banner contains &#8220;<strong>Real Application Clusters and Automatic Storage Management options<\/strong>&#8220;.<\/p>\n<p>Multitenant option is not avilable. How SE reacts to its usage?<\/p>\n<p>First, on the ROOT db, dba_feature_usage_statistics is empty.<\/p>\n<pre class=\"toolbar-overlay:false lang:default decode:true\">SQL&gt; alter session set container=CDB$ROOT;\r\n\r\nSession altered.\r\n\r\nSQL&gt; select * from dba_feature_usage_statistics;\r\n\r\nno rows selected\r\n\r\nSQL&gt;<\/pre>\n<p>This is interesting, because all features are in (remember it&#8217;s created from the generic template) , so the feature check is moved from the ROOT to the pluggable databases.<\/p>\n<p>On the local PDB I have:<\/p>\n<pre class=\"lang:default decode:true\">SQL&gt; alter session set container=PDB01;\r\n\r\nSession altered.\r\n\r\nSQL&gt; select * from dba_feature_usage_statistics where lower(name) like '%multitenant%';\r\n\r\nNAME               VERSION    DETECTED_USAGES   TOTAL_SAMPLES   CURRE\r\n----------------------------- ----------------- --------------- -----\r\nOracle Multitenant 12.1.0.1.0                 0               0 FALSE<\/pre>\n<p>Having ONE PDB is not triggering the usage of Multitenant (as I was expecting).<\/p>\n<p>How if I try to create a new pluggable database?<\/p>\n<pre class=\"toolbar-overlay:false lang:default decode:true\">SQL&gt; alter session set container=CDB$ROOT;\r\n\r\nSession altered.\r\n\r\nSQL&gt; create pluggable database PDB02 admin user pdb02admin identified by pdb02admin;\r\ncreate pluggable database PDB02 admin user pdb02admin identified by pdb02admin\r\n*\r\nERROR at line 1:\r\nORA-65010: maximum number of pluggable databases created\r\n\r\nSQL&gt;<\/pre>\n<p>A-AH!! Correctly, I can have a maximum of ONE pluggable database in my container.<\/p>\n<p>This allows however:<\/p>\n<ul>\n<li><span style=\"line-height: 15px;\">Smooth migration from SE to a Multitenant Architecture<\/span><\/li>\n<li>Quick upgrade from one release to another<\/li>\n<\/ul>\n<p>To be sure that I can plug\/unplug, I&#8217;ve tried it:<\/p>\n<pre class=\"lang:default decode:true\">SQL&gt; alter pluggable database pdb01 close immediate;\r\n\r\nPluggable database altered.\r\n\r\nSQL&gt; alter pluggable database pdb01 unplug into '\/u01\/app\/oracle\/unplugged\/pdb01\/pdb01.xml';\r\n\r\nPluggable database altered.\r\n\r\nSQL&gt; drop pluggable database pdb01 keep datafiles;\r\n\r\nPluggable database dropped.\r\n\r\nSQL&gt; create pluggable database PDB02 admin user pdb02admin identified by pdb02admin;\r\n\r\nPluggable database created.\r\n\r\nSQL&gt; alter pluggable database pdb02 open;\r\n\r\nPluggable database altered.\r\n\r\nSQL&gt; select * from dba_feature_usage_statistics where name like '%Multite%';\r\n\r\nNAME               VERSION    DETECTED_USAGES   TOTAL_SAMPLES   CURRE\r\n----------------------------- ----------------- --------------- -----\r\nOracle Multitenant 12.1.0.1.0                 0               0 FALSE<\/pre>\n<p><strong>Other features of Enterprise off course don&#8217;t work<\/strong><\/p>\n<pre class=\"toolbar-overlay:false lang:default decode:true\">SQL&gt; alter index SYS_C009851 rebuild online tablespace users;\r\nalter index SYS_C009851 rebuild online tablespace users\r\n*\r\nERROR at line 1:\r\nORA-00439: feature not enabled: Online Index Build\r\n\r\nSQL&gt; alter database move datafile 'DATA\/CDB01\/E09CA0E26A726D60E043A138A8C0E475\/DATAFILE\/users.284.819821651';\r\nalter database move datafile 'DATA\/CDB01\/E09CA0E26A726D60E043A138A8C0E475\/DATAFILE\/users.284.819821651'\r\n*\r\nERROR at line 1:\r\nORA-00439: feature not enabled: online move datafile<\/pre>\n<p><strong>Create a Service on the RAC Standard Edition (just to check if it works)<\/strong><\/p>\n<p>I&#8217;ve just followed the steps to do it on an EE. Keep in mind that I&#8217;m using admin managed DB (something will come about policy managed DBs, stay tuned).<\/p>\n<p>As you can see it works pretty well. Comparing to 11g you have to specify the -pdb parameter:<\/p>\n<pre class=\"toolbar-overlay:false lang:default decode:true\">[oracle@se12c01 admin]$ srvctl add service -db CDB01 -service testpdb02 -preferred CDB012 -pdb PDB02\r\n[oracle@se12c01 admin]$ srvctl start service -db cdb01 -s testpdb02\r\n\r\n[oracle@se12c01 admin]$ crsctl stat res -t\r\n--------------------------------------------------------------------------------\r\nName           Target  State        Server                   State details\r\n--------------------------------------------------------------------------------\r\nLocal Resources\r\n--------------------------------------------------------------------------------\r\nora.DATA.dg\r\n               ONLINE  ONLINE       se12c01                  STABLE\r\n               ONLINE  ONLINE       se12c02                  STABLE\r\nora.LISTENER.lsnr\r\n               ONLINE  ONLINE       se12c01                  STABLE\r\n               ONLINE  ONLINE       se12c02                  STABLE\r\nora.asm\r\n               ONLINE  ONLINE       se12c01                  Started,STABLE\r\n               ONLINE  ONLINE       se12c02                  Started,STABLE\r\nora.net1.network\r\n               ONLINE  ONLINE       se12c01                  STABLE\r\n               ONLINE  ONLINE       se12c02                  STABLE\r\nora.ons\r\n               ONLINE  ONLINE       se12c01                  STABLE\r\n               ONLINE  ONLINE       se12c02                  STABLE\r\n--------------------------------------------------------------------------------\r\nCluster Resources\r\n--------------------------------------------------------------------------------\r\nora.LISTENER_SCAN1.lsnr\r\n      1        ONLINE  ONLINE       se12c01                  STABLE\r\nora.LISTENER_SCAN2.lsnr\r\n      1        ONLINE  ONLINE       se12c02                  STABLE\r\nora.LISTENER_SCAN3.lsnr\r\n      1        ONLINE  ONLINE       se12c02                  STABLE\r\nora.cdb01.db\r\n      1        ONLINE  ONLINE       se12c01                  Open,STABLE\r\n      2        ONLINE  ONLINE       se12c02                  Open,STABLE\r\nora.cdb01.testpdb02.svc  &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;\r\n      1        ONLINE  ONLINE       se12c02                  STABLE\r\nora.cvu\r\n      1        ONLINE  ONLINE       se12c02                  STABLE\r\nora.oc4j\r\n      1        OFFLINE OFFLINE                               STABLE\r\nora.scan1.vip\r\n      1        ONLINE  ONLINE       se12c01                  STABLE\r\nora.scan2.vip\r\n      1        ONLINE  ONLINE       se12c02                  STABLE\r\nora.scan3.vip\r\n      1        ONLINE  ONLINE       se12c02                  STABLE\r\nora.se12c01.vip\r\n      1        ONLINE  ONLINE       se12c01                  STABLE\r\nora.se12c02.vip\r\n      1        ONLINE  ONLINE       se12c02                  STABLE\r\n--------------------------------------------------------------------------------<\/pre>\n<p>Then I can access my DB (and preferred instance) using the service_name I specified.<\/p>\n<pre class=\"toolbar-overlay:false lang:default decode:true\">[oracle@se12c02 admin]$ $ORACLE_HOME\/bin\/sqlplus pdb02admin\/pdb02admin@testpdb02\r\n\r\nSQL*Plus: Release 12.1.0.1.0 Production on Wed Jul 3 16:46:06 2013\r\n\r\nCopyright (c) 1982, 2013, Oracle. All rights reserved.\r\n\r\nLast Successful login time: Wed Jul 03 2013 16:46:01 +02:00\r\n\r\nConnected to:\r\nOracle Database 12c Release 12.1.0.1.0 - 64bit Production\r\nWith the Real Application Clusters and Automatic Storage Management options\r\n\r\nSQL&gt; show con_name\r\n\r\nCON_NAME\r\n------------------------------\r\nPDB02\r\nSQL&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>Let me know what do you think about SE RAC on 12c. It is valuable for you?<\/p>\n<p>I&#8217;m also on twitter: @ludovicocaldara<\/p>\n<p>Cheers<\/p>\n<p>&#8212;<\/p>\n<p>Ludo<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The installation process of a typical Standard Edition RAC does not differ from the Enterprise Edition. To achieve a successful installation refer to the nice quick guide made by Yury Velikanov\u00a0and change accordingly the Edition when installing the DB software. &hellip; <a href=\"https:\/\/www.ludovicocaldara.net\/dba\/oracle-database-12c-an-overview-of-the-standard-edition-rac\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[327,326,3,52,328,149,132,1],"tags":[22,75,95,96],"class_list":["post-371","post","type-post","status-publish","format-standard","hentry","category-oracle-maa","category-oracle","category-oracledb","category-12c","category-oracle-mt","category-oracle-rac","category-triblog","category-uncategorized","tag-oracle-database","tag-oracle-database-12c","tag-oracle-rac","tag-real-application-cluster"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/comments?post=371"}],"version-history":[{"count":8,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/371\/revisions"}],"predecessor-version":[{"id":1984,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/371\/revisions\/1984"}],"wp:attachment":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/media?parent=371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/categories?post=371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/tags?post=371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}