{
  "date": "2016-08-27T19:33:30",
  "slug": "oda-x6-command-line-and-web-console",
  "link": "https://www.dbi-services.com/blog/oda-x6-command-line-and-web-console/",
  "title": {
    "rendered": "ODA X6 command line and Web Console"
  },
  "content": {
    "rendered": "<h2>By Franck Pachot</h2>\n<p>.<br />\nThe ODA X6 comes with a new command line (odacli) which replaces oakcli, and with a small web console which can display information about the appliance, the databases and the provisioning jobs. It also has the possibility to create a database, but this is for next blog post. In this post I&#8217;ll show which information are displayed once the ODA is installed.<br />\n<!--more--><br />\nThe examples here come from ODA X6 version: 12.1.2.7.0 </p>\n<h3>Appliance</h3>\n<p>The first screen is about the appliance information, the ones that you define when installed the ODA:</p>\n<p><a href=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureODAWEB001.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureODAWEB001.png\" alt=\"CaptureODAWEB001\" width=\"1324\" height=\"1032\" class=\"alignnone size-full wp-image-10298\" /></a></p>\n<p>The same information can be displayed from command line with odacli describe-appliance:</p>\n<pre><code>[root@odax6m ~]# odacli describe-appliance\n&nbsp;\nAppliance Information\n----------------------------------------------------------------\n                     ID: bb8f0eec-0f5c-4319-bade-75770848b923\n               Platform: OdaliteM\n        Data Disk Count: 2\n         CPU Core Count: 20\n                Created: Aug 26, 2016 2:51:26 PM\n&nbsp;\nSystem Information\n----------------------------------------------------------------\n                   Name: odax6m\n            Domain Name: oracle.democenter.arrowcs.ch\n              Time Zone: Europe/Zurich\n             DB Edition: EE\n            DNS Servers: 172.22.1.9\n            NTP Servers: 172.22.1.9\n&nbsp;\nDisk Group Information\n----------------------------------------------------------------\nDG Name                   Redundancy                Percentage\n------------------------- ------------------------- ------------\nData                      Normal                    75\nReco                      Normal                    25</code></pre>\n<p>An important thing to note here is that the choice between Standard Edition and Enterprise Edition is at appliance level: you cannot mix.<br />\nThere&#8217;s also no mention of virtualization because ODA X6 2S and 2M are only bare-metal.</p>\n<p>odacli list-networks</p>\n<pre><code>[root@odax6m ~]# odacli list-networks\n&nbsp;\nID                                       Name                 NIC        IP Address         Subnet Mask        Gateway\n---------------------------------------- -------------------- ---------- ------------------ ------------------ ------------------\nffcf7d89-8074-4342-9f19-5e72ed695ce7     Private-network      priv0      192.168.16.24      255.255.255.240\n71a422bc-39d3-483c-b79b-ffe25129dfd2     Public-network       btbond1    172.22.1.23        255.255.255.224    172.22.1.2</code></pre>\n<p>I&#8217;ve no Auto Service Request configured here:</p>\n<pre><code>[root@odax6m ~]# odacli describe-asr\nAug 27, 2016 8:56:33 PM com.oracle.oda.dcscli.commands.AsrCommand$getAsr run\nSEVERE: No asr found</code></pre>\n<h3>Databases</h3>\n<p>The second screen is about the databases:</p>\n<p><a href=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureODAWEB002.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureODAWEB002.png\" alt=\"CaptureODAWEB002\" width=\"1318\" height=\"460\" class=\"alignnone size-full wp-image-10300\" /></a></p>\n<p>From command line you have information about the ORACLE_HOMEs and databases.</p>\n<pre><code>[root@odax6m ~]# odacli list-dbhomes\n&nbsp;\nID                                       Name                 DB Version Home Location\n---------------------------------------- -------------------- ---------- ---------------------------------------------\n67419075-d1f9-4c2e-85b1-c74430e35120     OraDB12102_home1     12.1.0.2   /u01/app/oracle/product/12.1.0.2/dbhome_1\ncf76a90b-f9e3-44b2-9b43-56111c1785e4     OraDB12102_home2     12.1.0.2   /u01/app/oracle/product/12.1.0.2/dbhome_2\nadcbe8bf-f26f-4ab7-98a1-0abcd4412305     OraDB11204_home1     11.2.0.4   /u01/app/oracle/product/11.2.0.4/dbhome_1</code></pre>\n<pre><code>[root@odax6m ~]# odacli list-databases\n&nbsp;\nID                                       DB Name    DB Version CDB        Class    Shape    Storage    Status\n---------------------------------------- ---------- ---------- ---------- -------- -------- ---------- ----------\n4c182ffb-3e4a-45c0-a6c6-15d5e9b7b2b9     dbee1      12.1.0.2   false      OLTP     odb4     ACFS       Configured\n5564ea51-fc93-46f2-9188-c13c23caba94     odb1s      12.1.0.2   true       OLTP     odb1s    ACFS       Configured\n26c2213d-5992-4b2b-94b0-2d0f4d0f9c2d     dbee11g1   11.2.0.4   false      OLTP     odb2     ACFS       Configured</code></pre>\n<p>You can get more detail about one database:</p>\n<p><a href=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureODAWEB0022.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureODAWEB0022.png\" alt=\"CaptureODAWEB0022\" width=\"1314\" height=\"661\" class=\"alignnone size-full wp-image-10303\" /></a></p>\n<pre><code>[root@odax6m ~]# odacli describe-dbhome -i 67419075-d1f9-4c2e-85b1-c74430e35120\n&nbsp;\nDB Home details\n----------------------------------------------------------------\n                     ID: 67419075-d1f9-4c2e-85b1-c74430e35120\n                   Name: OraDB12102_home1\n                Version: 12.1.0.2\n          Home Location: /u01/app/oracle/product/12.1.0.2/dbhome_1\n                Created: Aug 26, 2016 2:51:26 PM</code></pre>\n<pre><code>[root@odax6m ~]# odacli describe-database -i 4c182ffb-3e4a-45c0-a6c6-15d5e9b7b2b9\n&nbsp;\nDatabase details\n----------------------------------------------------------------\n                     ID: 4c182ffb-3e4a-45c0-a6c6-15d5e9b7b2b9\n            Description: dbee1\n                DB Name: dbee1\n             DB Version: 12.1.0.2\n                   DBID: 2933563624\n                    CDB: false\n               PDB Name:\n    PDB Admin User Name:\n                  Class: OLTP\n                  Shape: odb4\n                Storage: ACFS\n           CharacterSet: DbCharacterSet(characterSet=AL32UTF8, nlsCharacterset=AL16UTF16, dbTerritory=AMERICA, dbLanguage=AMERICAN)\n                Home ID: 67419075-d1f9-4c2e-85b1-c74430e35120\n        Console Enabled: false\n                Created: Aug 26, 2016 2:51:26 PM</code></pre>\n<h3>Activity</h3>\n<p>Here is the log of what has been done on the ODA:</p>\n<p><a href=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureODAWEB003.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureODAWEB003.png\" alt=\"CaptureODAWEB003\" width=\"1340\" height=\"368\" class=\"alignnone size-full wp-image-10302\" /></a></p>\n<pre><code>[root@odax6m ~]# odacli list-jobs\n&nbsp;\nID                                       Description                    Created                   Status\n---------------------------------------- ------------------------------ ------------------------- ----------\n1b99d278-6ab4-4ead-a5f8-f112c74a8f97     Provisioning service creation  Aug 26, 2016 2:51:26 PM   Success\nf0ac9a2c-ba37-412c-8a81-9cc7cb301417     Database service creation with db name: odb1s Aug 26, 2016 4:03:39 PM   Success\ndec37817-feb7-46e5-b991-b23362268cb1     Database service creation with db name: dbee11g1 Aug 26, 2016 5:09:33 PM   Success</code></pre>\n<p>And we have more info about the steps executed for one job:</p>\n<p><a href=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureODAWEB004.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureODAWEB004.png\" alt=\"CaptureODAWEB004\" width=\"1328\" height=\"1032\" class=\"alignnone size-full wp-image-10305\" /></a></p>\n<p>Same in command line:</p>\n<pre><code>[root@odax6m ~]# odacli describe-job -i 1b99d278-6ab4-4ead-a5f8-f112c74a8f97\n&nbsp;\nJob details\n----------------------------------------------------------------\n                     ID:  1b99d278-6ab4-4ead-a5f8-f112c74a8f97\n            Description:  Provisioning service creation\n                 Status:  Success\n                Created:  26.08.2016 14:51:26\n                Message:\n&nbsp;\nTask Name                                Start Time                End Time                  Status\n---------------------------------------- ------------------------- ------------------------- ----------\nSetting up Network                       Aug 26, 2016 2:51:27 PM   Aug 26, 2016 2:51:27 PM   Success\nCreating group :asmdba                   Aug 26, 2016 2:51:38 PM   Aug 26, 2016 2:51:38 PM   Success\nCreating group :asmoper                  Aug 26, 2016 2:51:38 PM   Aug 26, 2016 2:51:38 PM   Success\nCreating group :asmadmin                 Aug 26, 2016 2:51:38 PM   Aug 26, 2016 2:51:38 PM   Success\nCreating group :dba                      Aug 26, 2016 2:51:38 PM   Aug 26, 2016 2:51:38 PM   Success\nCreating group :dbaoper                  Aug 26, 2016 2:51:38 PM   Aug 26, 2016 2:51:38 PM   Success\nCreating group :oinstall                 Aug 26, 2016 2:51:38 PM   Aug 26, 2016 2:51:38 PM   Success\nCreating user :grid                      Aug 26, 2016 2:51:38 PM   Aug 26, 2016 2:51:38 PM   Success\nCreating user :oracle                    Aug 26, 2016 2:51:38 PM   Aug 26, 2016 2:51:38 PM   Success\nSetting up ssh equivalance               Aug 26, 2016 2:51:39 PM   Aug 26, 2016 2:51:39 PM   Success\nGi Home creation                         Aug 26, 2016 2:54:49 PM   Aug 26, 2016 2:57:54 PM   Success\nCreating GI home directories             Aug 26, 2016 2:54:49 PM   Aug 26, 2016 2:54:49 PM   Success\nCloning Gi home                          Aug 26, 2016 2:54:49 PM   Aug 26, 2016 2:57:54 PM   Success\nGI stack creation                        Aug 26, 2016 2:57:54 PM   Aug 26, 2016 3:08:44 PM   Success\nConfiguring GI                           Aug 26, 2016 2:57:54 PM   Aug 26, 2016 2:58:21 PM   Success\nRunning GI root scripts                  Aug 26, 2016 2:58:21 PM   Aug 26, 2016 3:05:03 PM   Success\nRunning GI config assistants             Aug 26, 2016 3:05:03 PM   Aug 26, 2016 3:05:34 PM   Success\nCreating RECO disk group                 Aug 26, 2016 3:10:02 PM   Aug 26, 2016 3:10:16 PM   Success\nCreating volume reco                     Aug 26, 2016 3:10:16 PM   Aug 26, 2016 3:10:26 PM   Success\nCreating volume datdbee1                 Aug 26, 2016 3:10:26 PM   Aug 26, 2016 3:10:35 PM   Success\nCreating ACFS filesystem for RECO        Aug 26, 2016 3:10:35 PM   Aug 26, 2016 3:10:42 PM   Success\nCreating ACFS filesystem for DATA        Aug 26, 2016 3:10:42 PM   Aug 26, 2016 3:10:49 PM   Success\nDb Home creation                         Aug 26, 2016 3:10:49 PM   Aug 26, 2016 3:13:40 PM   Success\nCreating DbHome Directory                Aug 26, 2016 3:10:49 PM   Aug 26, 2016 3:10:49 PM   Success\nExtract DB clones                        Aug 26, 2016 3:10:49 PM   Aug 26, 2016 3:12:29 PM   Success\nEnable DB options                        Aug 26, 2016 3:12:29 PM   Aug 26, 2016 3:12:38 PM   Success\nClone Db home                            Aug 26, 2016 3:12:38 PM   Aug 26, 2016 3:13:37 PM   Success\nRun Root DB scripts                      Aug 26, 2016 3:13:37 PM   Aug 26, 2016 3:13:37 PM   Success\nDatabase Service creation                Aug 26, 2016 3:13:40 PM   Aug 26, 2016 3:19:43 PM   Success\nDatabase Creation                        Aug 26, 2016 3:13:40 PM   Aug 26, 2016 3:17:58 PM   Success\nRunning DataPatch                        Aug 26, 2016 3:18:33 PM   Aug 26, 2016 3:19:43 PM   Success\ncreate Users tablespace                  Aug 26, 2016 3:19:43 PM   Aug 26, 2016 3:19:46 PM   Success</code></pre>\n<p>Yes, this is the ODA installation. Half an hour to setup the OS, install Grid Infrastructure, setup the storage and create a first database.</p>\n<h3>Refresh</h3>\n<p>Those that all the screens are not refreshed automatically even when you navigate through them. Don&#8217;t forget the &#8216;Refresh&#8217; button (circular arrow) on top-right.</p>\n<h3>JSON</h3>\n<p>You can also build your own interface from the JSON format:</p>\n<pre><code>[root@odax6m ~]# odacli list-jobs -j\n[ {\n  \"jobId\" : \"1b99d278-6ab4-4ead-a5f8-f112c74a8f97\",\n  \"status\" : \"Success\",\n  \"message\" : null,\n  \"createTimestamp\" : 1472215886601,\n  \"description\" : \"Provisioning service creation\"\n}, {\n  \"jobId\" : \"f0ac9a2c-ba37-412c-8a81-9cc7cb301417\",\n  \"status\" : \"Success\",\n  \"message\" : null,\n  \"createTimestamp\" : 1472220219016,\n  \"description\" : \"Database service creation with db name: odb1s\"\n}, {\n  \"jobId\" : \"dec37817-feb7-46e5-b991-b23362268cb1\",\n  \"status\" : \"Success\",\n  \"message\" : null,\n  \"createTimestamp\" : 1472224173747,\n  \"description\" : \"Database service creation with db name: dbee11g1\"\n} ]</code></pre>\n<h3>So what?</h3>\n<p>ODA is for easy and fast provisioning and the GUI that was missing is finally there. Of course, it looks very simple, but that&#8217;s the goal of the appliance: setup quickly a standardized environment. ODA X6-2S is cheap and has good performance for small databases. You may find equivalent hardware, but can you build and install a stable hardware, OS and database in 30 minutes?</p>\n",
    "protected": false
  }
}
