This discussion is archived
1 Reply Latest reply: May 24, 2013 5:21 AM by user1607597 RSS

How to recover file emctl from OMS_HOME

Pavel Explorer
Currently Being Moderated
Hello!

file emctl in Middleware HOME directory was erroneously truncated , is it possible somehow to restore them from distr without reinstall OMS ?
I'm usung Oracle Enterprise Manager Cloud Control 12c Release 2

Thanks and regards,
Pavel

Edited by: Pavel on Dec 5, 2012 11:11 PM
  • 1. Re: How to recover file emctl from OMS_HOME
    user1607597 Newbie
    Currently Being Moderated
    EM 12c: Recreating the emctl Script for the Enterprise Manager Cloud Control 12.1.0.1 OMS [ID 1404623.1]     To Bottom     
    Modified:May 17, 2013Type:HOWTOStatus:PUBLISHEDPriority:3     
    Comments (0)                    

    In this Document
    Goal
    Solution

    Applies to:

    Enterprise Manager Base Platform - Version 12.1.0.1.0 to 12.1.0.1.0 [Release 12.1]
    Information in this document applies to any platform.
    Goal


    This note describes how to recreate the .../oms/bin/emctl file from .../oms/bin/emctl.template file in case it is missing or corrupt.



    Solution

    1. Take a backup of emctl.template under .../oms/bin

    2. Copy the file
    cp emctl.template emctl
    3. Open the emctl file and modify below lines

    ORACLE_HOME=#ORACLE_HOME#
    to
    ORACLE_HOME=<OMSHome>

    EMDROOT=#EMDROOT#
    to
    EMDROOT=<OMSHOME>

    CONSOLE_CFG=#CONSOLE_CFG#
    to
    CONSOLE_CFG=central

    4. Use the emctl for OMS control and management as usual.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points