각 DB VM에서 DB 홈을 하나 이상 만듭니다. 각각 Oracle 데이터베이스의 특정 버전을 가지는 DB 홈을 여러 개 만들 수 있습니다.
이 명령은 설치하려는 Oracle 데이터베이스의 버전을 선택할 수 있도록 해주며 지정된 DB 홈 디렉토리에 DB 소프트웨어를 설치합니다. 각 DB VM에 홈이 만들어집니다.
각 프롬프트에 응답합니다.
% 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 . <some 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.
예를 들어, 처음에 Oracle Database 12c를 /u01/app/oracle/product/12.1.0/dbhome_12c에 설치한 경우 다른 홈(예: /u01/app/oracle/product/12.1.0/dbhome_11g)에 Oracle Database 11g를 설치할 수 있습니다.
이 예에서는 2개의 DB 홈이 각 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
DB 인스턴스 만들기(CLI)로 이동합니다.