Create at least one DB home in each DB VM. You can create multiple DB homes, each with specific version of the Oracle Database.
This command enables you to select the version of the Oracle Database that you want installed, then installs the DB software in the DB home directory that you specify. Homes are created in each DB VM.
Respond to each prompt:
% mcmu tenant -H -c [INFO ] Log file path : /var/opt/oracle.minicluster/setup/logs/tenant_cli_082316_184339.log Database Home Profile Description Listing DB VM Group Profile.. Status : Active EditStatus : Description : DB MVM Group 1 - NORMAL - SHARED - CIS deletable : True progress : False VMgroupName : dbgp1 editable : True VMgroupID : 1 Select Database VMgroupID [1] (1): 1 Select Database Version [11.2.0.4/12.1.0.2] (12.1.0.2): 12.1.0.2 INFO Cannot find any database home under given zone. Will return default recommended name. INFO:MCMU.controllers.dbzonegroup.update.update:Cannot find any database home under given zone. Will return default recommended name. Enter Oracle Home Directory Name (dbhome_1): dbhome_12c Select Database Home Patch Level [12.1.0.2.160419] (12.1.0.2.160419): 12.1.0.2.160419 List of Inputs for DB Home Creation: Database VM Group: dbgp1 (ID: 1) Database Version: 12.1.0.2 Database Patch Level: 12.1.0.2.160419 Oracle Home Path: /u01/app/oracle/product/12.1.0/dbhome_12c Do you want to change the inputs? Enter Y/N (N): N Creating DB Home... INFO Initializing Database Home Management Utility. . <output omitted> . INFO Database home on node: dbgp1-vm1-mc3-n1 with home path of /u01/app/oracle/product/12.1.0/dbhome_12c has been saved to MCMU database. INFO:MCMU.controllers.dbzonegroup.update.database.database_home:Database home on node: dbgp1-vm1-mc3-n1 with home path of /u01/app/oracle/product/12.1.0/dbhome_12c has been saved to MCMU database. INFO Database home on node: dbgp1-vm2-mc3-n1 with home path of /u01/app/oracle/product/12.1.0/dbhome_12c has been saved to MCMU database. INFO:MCMU.controllers.dbzonegroup.update.database.database_home:Database home on node: dbgp1-vm2-mc3-n1 with home path of /u01/app/oracle/product/12.1.0/dbhome_12c has been saved to MCMU database. INFO Database home on node: dbgp1-vm1-mc3-n2 with home path of /u01/app/oracle/product/12.1.0/dbhome_12c has been saved to MCMU database. INFO:MCMU.controllers.dbzonegroup.update.database.database_home:Database home on node: dbgp1-vm1-mc3-n2 with home path of /u01/app/oracle/product/12.1.0/dbhome_12c has been saved to MCMU database. INFO Database home on node: dbgp1-vm2-mc3-n2 with home path of /u01/app/oracle/product/12.1.0/dbhome_12c has been saved to MCMU database. INFO:MCMU.controllers.dbzonegroup.update.database.database_home:Database home on node: dbgp1-vm2-mc3-n2 with home path of /u01/app/oracle/product/12.1.0/dbhome_12c has been saved to MCMU database. INFO Add database home information to MCMU database successfully. INFO:MCMU.controllers.dbzonegroup.update.database.database_home:Add database home information to MCMU database successfully. updated message, old: Start adding database home information to MCMU database. with Database home on node: dbgp1-vm2-mc3-n2 with home path of /u01/app/oracle/product/12.1.0/dbhome_12c has been saved to MCMU database. updated operation, old: Create DB Home with Create DB Home status: 0 message: Database home installation succeeded.
For example, if you originally installed Oracle Database 12c in /u01/app/oracle/product/12.1.0/dbhome_12c, you can then install Oracle Database 11g in another home, such as /u01/app/oracle/product/12.1.0/dbhome_11g.
Caution - Wait until you see the message Database home installation succeeded before you repeat Step 1. Do not repeat Step 1 to install another version of the Oracle Database in the DB VMs until the process completes for the previous installation. |
In this example, two DB homes are active in each VM.
% mcmu tenant -H -l 1 [INFO ] Log file path : /var/opt/oracle.minicluster/setup/logs/tenant_cli_082316_203949.log LIST OF DB HOMES IN DB VM GROUP 1 ID: 1, VM_ID: 1, TYPE: RAC, STATUS: Active ID: 5, VM_ID: 1, TYPE: RAC, STATUS: Active ID: 2, VM_ID: 2, TYPE: RAC, STATUS: Active ID: 6, VM_ID: 2, TYPE: RAC, STATUS: Active ID: 3, VM_ID: 3, TYPE: RAC, STATUS: Active ID: 7, VM_ID: 3, TYPE: RAC, STATUS: Active ID: 4, VM_ID: 4, TYPE: RAC, STATUS: Active ID: 8, VM_ID: 4, TYPE: RAC, STATUS: Active
Go to Create DB Instances (CLI).