11.11.1 Oracle Grid Infrastructure 12cリリース1 (12.1)へのダウングレード

Oracle Grid Infrastructure 12cリリース1 (12.1)にダウングレードする場合は、この手順を使用します。

  1. オプション: Oracle Grid Infrastructure 12cリリース2 (12.2) Management Databaseを削除します。
    dbca -silent -deleteDatabase -sourceDB -MGMTDB
  2. コマンド構文rootcrs.bat -downgradeを使用して、すべてのノードのOracle Grid Infrastructureを任意の順序でダウングレードします。

    次に例を示します。

    C:\app\12.2.0\grid\crs\install\rootcrs.bat -downgrade
    

    Oracle Grid Infrastructureのインストール・ユーザーに対して書込み権限のあるディレクトリから、このコマンドを実行します。1つを除くすべてのクラスタ・ノード上で、ダウングレード・スクリプトを並行して実行できます。

  3. その他すべてのノードをダウングレードしてから、最後のノードをダウングレードします。
    C:\app\12.2.0\grid\crs\install\rootcrs.bat -downgrade
  4. Oracle Grid Infrastructure 12cリリース2 (12.2)のGridホームを、アクティブなOracle Clusterwareホームとして次のように削除します。
    1. rootcrs.bat -downgradeコマンドが正常に実行されたクラスタ・メンバー・ノードのいずれかで、Oracle Grid Infrastructureインストール所有者としてログインします。
    2. 次のコマンドを使用して、インストーラを開始します。C:\app\12.2.0\gridは、新しい(アップグレードされた) Gridホームの場所です。
      cd C:\app\12.2.0\grid\oui\bin
      setup.exe -nowait -waitforcompletion -ignoreSysPrereqs -updateNodeList -silent CRS=false 
      ORACLE_HOME=C:\app\12.2.0\grid "CLUSTER_NODES=node1,node2,node3" LOCAL_NODE=local_node_running_the_command
      -doNotUpdateNodeList

      Gridホームが共有ホームの場合は、フラグ-cfsを追加します。

  5. Oracle Grid Infrastructure 12cリリース1 (12.1)のGridホームをアクティブなOracle Clusterwareホームとして次のように設定します。
    1. rootcrs.bat -downgradeコマンドが正常に実行されたクラスタ・メンバー・ノードのいずれかで、Oracle Grid Infrastructureインストール所有者としてログインします。
    2. 次のコマンドを使用して、インストーラを開始します。ORACLE_HOMEに指定するパスは、以前のOracle Clusterwareインストールのホーム・ディレクトリの場所です。
      cd C:\app\12.1.0\grid\oui\bin
      setup.exe -nowait -waitforcompletion -ignoreSysPrereqs -updateNodeList -silent CRS=true 
      ORACLE_HOME=C:\app\12.1.0\grid "CLUSTER_NODES=node1,node2,node3" -doNotUpdateNodeList
  6. 各ノードの古いGridホームからOracle Grid Infrastructure 12cリリース1 (12.1)のクラスタウェア・スタックを起動して、ダウングレードを完了します。
    crsctl start crs
  7. 各ノードで、次のようにしてMGMTDBリソースを削除します。
    121_Grid_home\bin\srvctl remove mgmtdb
  8. Oracle Grid Infrastructure 12cリリース1 (12.1.0.2)にダウングレードする場合は、次のコマンドを実行してGrid Infrastructure Management Databaseを構成します。
    1. 次のように、Oracle Database 12cリリース1 (12.1.0.2)のホームからサイレント・モードでDBCAを実行し、Management Databaseコンテナ・データベース(CDB)を作成します。
      12102_Grid_home\bin\dbca -silent -createDatabase -createAsContainerDatabase true 
      -templateName MGMTSeed_Database.dbc -sid -MGMTDB -gdbName _mgmtdb 
      -storageType ASM -diskGroupName ASM_DG_NAME
      -datafileJarLocation 12102_grid_home\assistants\dbca\templates
      -characterset AL32UTF8 -autoGeneratePasswords -skipUserTemplateCheck
    2. 次のように、Oracle Database 12cリリース1 (12.1.0.2)のホームからサイレント・モードでDBCAを実行し、Management Databaseプラガブル・データベース(PDB)を作成します。
      12102_Grid_home\bin\dbca -silent -createPluggableDatabase -sourceDB -MGMTDB
      -pdbName cluster_name -createPDBFrom RMANBACKUP 
      -PDBBackUpfile 12102_Grid_home\assistants\dbca\templates\mgmtseed_pdb.dfb 
      -PDBMetadataFile 12102_Grid_home\assistants\dbca\templates\mgmtseed_pdb.xml 
      -createAsClone true -internalSkipGIHomeCheck
  9. Oracle Grid Infrastructure 12cリリース1 (12.1.0.1)にダウングレードする場合は、次のように、Oracle Database 12cリリース1 (12.1.0.1)のホームからサイレント・モードでDBCAを実行し、Management Databaseを作成します。
    12101_Grid_home\bin\dbca -silent -createDatabase 
    -templateName MGMTSeen_Database.dbc -sid -MGMTDB -gdbName _mgmtdb
    -storageType ASM -diskGroupName ASM_DG_NAME
    -datafileJarLocation 12101_Grid_home\assistants\dbca\templates
    -characterset AL32UTF8 -autoGeneratePasswords
  10. 121_Grid_home\bin\mgmtcaからConfiguration Assistantを実行し、Management Databaseを構成します。