Go to main content
Oracle MiniCluster S7-2 管理ガイド

印刷ビューの終了

更新: 2016 年 10 月
 
 

DB ホームを作成する (CLI)

各 DB VM で少なくとも 1 つの DB ホームを作成します。複数の DB ホームを (特定のバージョンの Oracle データベースごとに) 作成できます。

  1. 配備されている各 DB VM で DB ホームのインストールを作成します。

    このコマンドでは、インストールする Oracle Database のバージョンを選択してから、指定した 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.
  2. (必要に応じて) Step 1 を繰り返して、DB VM で別のバージョンの Oracle Database をインストールします。

    たとえば、最初に Oracle Database 12c を /u01/app/oracle/product/12.1.0/dbhome_12c にインストールした場合は、/u01/app/oracle/product/12.1.0/dbhome_11g などの別のホームに Oracle Database 11g をインストールできます。

  3. DB ホームのステータスを一覧表示します。

    この例では、各 VM で 2 つの DB ホームがアクティブになっています。

    % 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
    
  4. DB インスタンスを作成します。

    DB インスタンスを作成する (CLI)に進みます。