ヘッダーをスキップ
JD Edwards EnterpriseOne Application Pack for Oracle Enterprise Manager Cloud Control実装ガイド
リリース9.1
B72801-01
  目次へ移動
目次

前
 
 

10 OracleデータベースおよびEMCCの削除

JD Edwards EnterpriseOneドメインのみを削除する場合は、このガイドの8.17項「JD Edwards EnterpriseOneドメインの削除」を参照してください。

JD Edwards EnterpriseOne Application Packコンポーネントをアンデプロイするには、このガイドの第9章「JDE AppPackコンポーネントのアンデプロイ」.を参照してください。

この章の内容は次のとおりです。

10.1 ライン・コマンドを使用したエージェント、OMSおよびデータベースの停止

製品を削除する前に、Enterprise Managerで使用されているEnterprise Managerエージェント、OMSおよびOracleデータベースを停止するには、次のコマンドを下記の順序で実行する必要があります。

  1. Enterprise Managerで使用されているデータベースが稼働中のマシンで、次のコマンドを使用してデータベースを停止します。

    sqlplus '/as sysdba'

    shutdown immediate

  2. Enterprise Managerで使用されているデータベースがインストールされているマシンで、lsnrctl stopコマンドを使用してデータベースおよびリスナーを停止します。このコマンドは、/oracle/home/binディレクトリから実行されます。たとえば、/oracle/home/binディレクトリおよびコマンドラインは次のようになります。

    /u01/app/oracle/home/bin/lsnrctl stop

  3. stop omsコマンドを使用してOMSを停止します(これにより、管理サーバーおよびOMSサーバーの両方が停止します)。このコマンドは、oms/binディレクトリから実行されます。たとえば、oms/binディレクトリおよびコマンドラインは次のようになります。

    /u01/app/emgc12/oms/bin/emctl stop oms

  4. stop Agentコマンドを使用してEMCCエージェントを停止します。このコマンドは、エージェントのインストール・ディレクトリのbinディレクトから実行されます。たとえば、/binディレクトリおよびコマンドラインは次のようになります。

    /u01/app/emgc12/agent/agent_inst/bin/emctl stop agent

  5. 次のコマンドを使用して、実行中の追加のOracleプロセスがないことを確認します。

    ps –r | grep oracle


    注意:

    たとえば、実行中の可能性のあるOracleプロセスの対象は、WebLogic Serverノード・マネージャです。

  6. 前述のコマンドの結果としてリストされるOracleベースのjavaプロセスを強制終了します。

10.2 OUIを使用したOracleデータベースおよびEMCCの削除

Oracle EMCCを削除するには、Oracle Universal Installer (OUI)を使用します。この項では、この章の次の章に記載されているインストール例に基づいた削除の例について説明します。

OUIを使用してOracleデータベースおよびEMCCを削除する手順:

  1. oui/binディレクトリに変更し、OUI runInstaller.shスクリプトを実行します。たとえば、oui/binおよびコマンドラインは次のようになります。

    /u01/app/oracle/home/oui/bin/runInstaller.sh

    この図については周囲のテキストで説明しています。
    図deinstall_db_welcome.gifの説明

  2. 「Oracle Universal Installer: ようこそ」で、「製品の削除」ボタンをクリックします。

    この図については周囲のテキストで説明しています。
    図deinstall_db_inventory.gifの説明

  3. 「インベントリ」で、「Oracleデータベースのホーム」のチェック・ボックスを除くすべてのチェック・ボックスを選択します。たとえば、次のチェック・ボックスは選択しないでください

    OraDB11g_home1

  4. 「削除」ボタンをクリックします。

    この図については周囲のテキストで説明しています。
    図deinstall_db_confirm.gifの説明

  5. 「確認」で、「はい」ボタンをクリックして、データベース・ホームを除くすべてのOracleコンポーネントを削除します(他のすべてのコンポーネントが最初に削除されるでは、データベース・ホームは削除できません)。

    この図については周囲のテキストで説明しています。
    図deinstall_db_remove.gifの説明

    「削除」ダイアログに、削除アクションの進行状況が表示されます。

    この図については周囲のテキストで説明しています。
    図deinstall_db_inventory_db.gifの説明

  6. 「インベントリ」で、残りのOracle製品がOracleデータベース・ホームのみであることを確認します。例:

    OraDB11g_home1

  7. 「インベントリ」で、Oracleデータベース・ホームのチェック・ボックスを選択して、「削除」ボタンをクリックします。

    この図については周囲のテキストで説明しています。
    図deinstall_db_warning.gifの説明

  8. 「警告」に次のテキストが表示されます。

    コマンド'/u01/app/oracle/home/deinstall/deinstall'を実行してこのOracleホームを削除してください。

  9. 「警告」に指示されてるように、UNIXコンソール・ウィンドウを開き、/oracle/home/deinstallディレクトリに変更して、deinstall.shスクリプトを実行します。

    この図については周囲のテキストで説明しています。
    図deinstall_db_script_ex.gifの説明

  10. deinstall.shスクリプトによって、Oracle Deinstall and Deconfigurationツールが起動し、次のコンソールが表示されます(boldedセクションはユーザー・プロンプトです)。このコンソール・リストには、この例に適用可能なユーザー・レスポンスが表示されます。コンソール・セッションにレスポンスが表示されない場合、デフォルトのアクションは、[Enter]キーを押すユーザー入力によってトリガーされるものとみなされます。Oracle OEMのドキュメントを参照して、インストールに適用可能なユーザーの責任を指定してください。

    [oracle@denlx01 deinstall]$ cd /u01/app/oracle/home/deinstall
    [oracle@denlx01 deinstall]$ ./deinstall
    Checking for required files and bootstrapping ...
    Please wait ...
    Location of logs /tmp/deinstall2011-08-09_06-54-51-PM/logs/
     
    ############ ORACLE DEINSTALL & DECONFIG TOOL START ############
     
     
    ######################## CHECK OPERATION START ########################
    Install check configuration START
     
     
    Checking for existence of the Oracle home location /u01/app/oracle/home
    Oracle Home type selected for de-install is: SIDB
    Oracle Base selected for de-install is: /u01/app/oracle
    Checking for existence of central inventory location /u01/app/oraInventory
     
    Install check configuration END
     
     
    Network Configuration check config START
     
    Network de-configuration trace file location: /tmp/deinstall2011-08-09_06-54-51-PM/logs/netdc_check6212736737944149450.log
     
    Specify all Single Instance listeners that are to be de-configured [LISTENER]:
     
    Network Configuration check config END
     
    Database Check Configuration START
     
    Database de-configuration trace file location: /tmp/deinstall2011-08-09_06-54-51-PM/logs/databasedc_check5639182693098634058.log
     
    Use comma as separator when specifying list of values as input
     
    Specify the list of database names that are configured in this Oracle home [emrep]:
     
     
    ###### For Database 'emrep' ######
     
    Single Instance Database
    The diagnostic destination location of the database: /u01/app/oracle/diag/rdbms/emrep
    Storage type used by the Database: FS
    Database file location: /u01/app/oracle/oradata/emrep,/u01/app/oracle/flash_recovery_area/emrep
    Flash recovery area location: /u01/app/oracle/flash_recovery_area/EMREP
    database spfile location: /u01/app/oracle/home/dbs/spfileemrep.ora
     
    The details of database(s) emrep have been discovered automatically. Do you still want to modify the details of emrep database(s)? [n]:
    
    Database Check Configuration END
     
    Enterprise Manager Configuration Assistant START
     
    EMCA de-configuration trace file location: /tmp/deinstall2011-08-09_06-54-51-PM/logs/emcadc_check.log
     
    Checking configuration for database emrep
    Enterprise Manager Configuration Assistant END
    Oracle Configuration Manager check START
    OCM check log file location : /tmp/deinstall2011-08-09_06-54-51-PM/logs//ocm_check1704.log
    Oracle Configuration Manager check END
     
    ######################### CHECK OPERATION END #########################
     
     
    ####################### CHECK OPERATION SUMMARY #######################
    Oracle Home selected for de-install is: /u01/app/oracle/home
    Inventory Location where the Oracle home registered is: /u01/app/oraInventory
    Following Single Instance listener(s) will be de-configured: LISTENER
    The following databases were selected for de-configuration : emrep
    Database unique name : emrep
    Storage used : FS
    No Enterprise Manager configuration to be updated for any database(s)
    No Enterprise Manager ASM targets to update
    No Enterprise Manager listener targets to migrate
    Checking the config status for CCR
    Oracle Home exists and CCR is configured
    CCR check is finished
    Do you want to continue (y - yes, n - no)? [n]: y
    A log of this session will be written to: '/tmp/deinstall2011-08-09_06-54-51-PM/logs/deinstall_deconfig2011-08-09_06-55-33-PM.out'
    Any error messages from this session will be written to: '/tmp/deinstall2011-08-09_06-54-51-PM/logs/deinstall_deconfig2011-08-09_06-55-33-PM.err'
     
    ######################## CLEAN OPERATION START ########################
     
    Enterprise Manager Configuration Assistant START
     
    EMCA de-configuration trace file location: /tmp/deinstall2011-08-09_06-54-51-PM/logs/emcadc_clean.log
     
    Updating Enterprise Manager ASM targets (if any)
    Updating Enterprise Manager listener targets (if any)
    Enterprise Manager Configuration Assistant END
    Database de-configuration trace file location: /tmp/deinstall2011-08-09_06-54-51-PM/logs/databasedc_clean4559434184925448083.log
    Database Clean Configuration START emrep
    This operation may take few minutes.
    Database Clean Configuration END emrep
     
    Network Configuration clean config START
     
    Network de-configuration trace file location: /tmp/deinstall2011-08-09_06-54-51-PM/logs/netdc_clean6305675544518456018.log
     
    De-configuring Single Instance listener(s): LISTENER
     
    De-configuring listener: LISTENER
        Stopping listener: LISTENER
        Warning: Failed to stop listener. Listener may not be running.
        Deleting listener: LISTENER
        Listener deleted successfully.
    Listener de-configured successfully.
     
    De-configuring Naming Methods configuration file...
    Naming Methods configuration file de-configured successfully.
     
    De-configuring backup files...
    Backup files de-configured successfully.
     
    The network configuration has been cleaned up successfully.
     
    Network Configuration clean config END
     
    Oracle Configuration Manager clean START
    OCM clean log file location : /tmp/deinstall2011-08-09_06-54-51-PM/logs//ocm_clean1704.log
    Oracle Configuration Manager clean END
    Oracle Universal Installer clean START
     
    Detach Oracle home '/u01/app/oracle/home' from the central inventory on the local node : Done
     
    Oracle Universal Installer clean END
     
     
    Oracle install clean START
     
    Clean install operation removing temporary directory '/tmp/install' on node 'denlx01'
     
    Oracle install clean END
     
     
    ######################### CLEAN OPERATION END #########################
     
     
    ####################### CLEAN OPERATION SUMMARY #######################
    Successfully de-configured the following database instances : emrep
    Following Single Instance listener(s) were de-configured successfully: LISTENER
    Cleaning the config for CCR
    Cleaning the CCR configuration by executing its binaries
    CCR clean is finished
    Successfully detached Oracle home '/u01/app/oracle/home' from the central inventory on the local node.
    Failed to delete directory '/u01/app/oracle/home' on the local node.
    Successfully deleted directory '/u01/app/oraInventory' on the local node.
    Failed to delete directory '/u01/app/oracle' on the local node.
    Oracle Universal Installer cleanup completed with errors.
     
    Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'denlx01' at the end of the session.
     
    Oracle install successfully cleaned up the temporary directories.
    #######################################################################
     
     
    ############# ORACLE DEINSTALL & DECONFIG TOOL END #############