C Example JSON Files for the odacli create-appliance Command

Use these JSON file examples and the readme to create a JSON file that you can use to create the appliance with the command-line interface.

You must create a JSON file to use the odacli create-appliance command. You can use the example JSON files that are located here and the information located in the readme as a template to create a file for your environment. The examples on this page and the readme are also located in the /opt/oracle/dcs/sample directory.

Note:

It is important to review the readme and the examples carefully before creating your JSON file. If you do not enter your network and Oracle ILOM information correctly based on your setup, you will lose network access to both the host and Oracle ILOM.

Example C-1 JSON File to Create an Oracle Database Appliance X6-2S or X6-2M with Role Separation

The following is an example of a JSON file used to create an Oracle Database Appliance X6-2S or X6-2M. The example uses role separation.

$ cat create-appliance.json
{
  "instance" : {
    "name" : "odambox",
    "instanceBaseName" : "odambox",
    "dbEdition" : "EE",
    "timeZone" : "UTC",
    "ntpServers" : ["10.0.3.14"],
    "dnsServers" : ["10.0.4.10","10.0.4.11","10.0.4.12"],
    "domainName" : "example.com",
    "isRoleSeparated" : true,
    "osUserGroup" : {
      "groups" : [ {
        "groupId" : 1001,
        "groupName" : "oinstall",
        "groupRole" : "oinstall"
      }, {
        "groupId" : 1002,
        "groupName" : "dbaoper",
        "groupRole" : "dbaoper"
      }, {
        "groupId" : 1003,
        "groupName" : "dba",
        "groupRole" : "dba"
      }, {
        "groupId" : 1004,
        "groupName" : "asmadmin",
        "groupRole" : "asmadmin"
      }, {
        "groupId" : 1005,
        "groupName" : "asmoper",
        "groupRole" : "asmoper"
      }, {
        "groupId" : 1006,
        "groupName" : "asmdba",
        "groupRole" : "asmdba"
      } ],
      "users" : [ {
        "userId" : 1000,
        "userName" : "oracle",
        "userRole" : "oracleUser"
      }, {
        "userId" : 1001,
        "userName" : "grid",
        "userRole" : "gridUser"
      } ]
    }
  },
  "nodes" : [ {
    "nodeNumber" : "0",
    "nodeName" : "odambox",
    "network" : [ {
       "nicName" : "btbond1",
       "ipAddress" : "10.0.1.11",
       "subNetMask" : "255.255.255.0",
       "gateway" : "10.0.1.1",
       "networkType" : [ "Public" ],
       "isDefaultNetwork" : true
      },
      {
       "nicName" : "btbond2",
       "ipAddress" : "192.168.18.24",
       "subNetMask" : "255.255.255.0",
       "gateway" : "192.168.18.1",
       "networkType" : [ "Backup" ],
       "isDefaultNetwork" : false
      }
    ],
    "ilom" : {
      "ilomName":"odambox-c",
      "ipAddress":"10.0.2.10",
      "subNetMask":"255.255.255.0",
      "gateway":"10.0.2.1"
     }
  } ],
  "grid" : {
    "diskGroup" : [ {
      "diskGroupName" : "DATA",
      "redundancy" : "NORMAL",
      "diskPercentage" :70
    }, {
      "diskGroupName" : "RECO",
      "redundancy" : "NORMAL",
      "diskPercentage" :30
    } ],
    "language" : "en"
  },
  "database" : {
    "dbName" : "db1",
    "dbVersion" : "12.1.0.2",
    "instanceOnly" : false,
    "isCdb" : true,
    "pdBName" : "pdb1",
    "pdbAdminuserName" : "pdbuser",
    "adminPassword" : "welcome1",
    "dbType" : "SI",
    "dbTargetNodeNumber" : "0",
    "dbClass" : "OLTP",
    "dbShape" : "odb1",
    "dbStorage" : "ACFS",
    "dbCharacterSet" : {
      "characterSet" : "AL32UTF8",
      "nlsCharacterset" : "AL16UTF16",
      "dbTerritory" : "AMERICA",
      "dbLanguage" : "AMERICAN"
    },
    "dbConsoleEnable" : false
  },
  "asr" :{
    "userName":"john.smith@example.com",
    "password":"xxxxx",
    "proxyServerName":"www-proxy.example.com",
    "proxyPort":"80",
    "proxyUserName":"",
    "proxyPassword":"",
    "snmpVersion":"v3"
  }
}

Example C-2 JSON File to Create an Oracle Database Appliance X6–2S or X6–2M without Role Separation

The following is an example of a JSON file used to create an Oracle Database Appliance X6–2S or X6–2M without using role separation. This example creates two groups (oinstall and dba) and one user ("oracle").


  
$ cat create-appliance.json
{
  "instance" : {
    "name" : "odambox",
    "instanceBaseName" : "odambox",
    "dbEdition" : "EE",
    "timeZone" : "UTC",
    "ntpServers" : ["10.0.3.14"],
    "dnsServers" : ["10.0.4.10","10.0.4.11","10.0.4.12"],
    "domainName" : "example.com",
    "isRoleSeparated" : false,
    "osUserGroup" : {
      "groups" : [ {
        "groupId" : 1001,
        "groupName" : "oinstall",
        "groupRole" : "oinstall"
      }, {
        "groupId" : 1002,
        "groupName" : "dba",
        "groupRole" : "dba"
      } ],
     "users" : [ {
        "userId" : 1000,
        "userName" : "oracle",
        "userRole" : "oracleUser"
      } ]
    }
  },
  "nodes" : [ {
    "nodeNumber" : "0",
    "nodeName" : "odambox",
    "network" : [ {
       "nicName" : "btbond1",
       "ipAddress" : "10.0.1.11",
       "subNetMask" : "255.255.255.0",
       "gateway" : "10.0.1.1",
       "networkType" : [ "Public" ],
       "isDefaultNetwork" : true
      },
      {
       "nicName" : "btbond2",
       "ipAddress" : "192.168.18.24",
       "subNetMask" : "255.255.255.0",
       "gateway" : "192.168.18.1",
       "networkType" : [ "Backup" ],
       "isDefaultNetwork" : false
      }
    ],
    "ilom" : {
      "ilomName":"odambox-c",
      "ipAddress":"10.0.2.10",
      "subNetMask":"255.255.255.0",
      "gateway":"10.0.2.1"
     }
  } ],
  "grid" : {
    "diskGroup" : [ {
      "diskGroupName" : "DATA",
      "redundancy" : "NORMAL",
      "diskPercentage" :70
    }, {
      "diskGroupName" : "RECO",
      "redundancy" : "NORMAL",
      "diskPercentage" :30
    } ],
    "language" : "en"
  },
  "database" : {
    "dbName" : "db1",
    "dbVersion" : "12.1.0.2",
    "instanceOnly" : false,
    "isCdb" : true,
    "pdBName" : "pdb1",
    "pdbAdminuserName" : "pdbuser",
    "adminPassword" : "welcome1",
    "dbType" : "SI",
    "dbTargetNodeNumber" : "0",
    "dbClass" : "OLTP",
    "dbShape" : "odb1",
    "dbStorage" : "ACFS",
    "dbCharacterSet" : {
      "characterSet" : "AL32UTF8",
      "nlsCharacterset" : "AL16UTF16",
      "dbTerritory" : "AMERICA",
      "dbLanguage" : "AMERICAN"
    },
    "dbConsoleEnable" : false
  },
  "asr" :{
    "userName":"john.smith@example.com",
    "password":"xxxxx",
    "proxyServerName":"www-proxy.example.com",
    "proxyPort":"80",
    "proxyUserName":"",
    "proxyPassword":"",
    "snmpVersion":"v3"
  }
}