2 Replies Latest reply: Apr 8, 2013 6:06 AM by Akanksha Sheoran Kaler-Oracle RSS

    repository migration issue -- EM 11g

    463181
      OMS: 11.1.0.1
      repository: 11.2.0.1
      OS: SUSE Linux 10

      followed [1302281.1] to migrate repository to new database, everything went ok but at last step EMKEY causing following

      #################################################
      oracle@/bea/Oracle/oms11g/bin> ./emctl config oms -store_repos_details -repos_host xxxxx -repos_port 1521 -repos_sid xxxxx -repos_user sysman -repos_pwd xxxxx
      Oracle Enterprise Manager 11g Release 1 Grid Control
      Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
      Successfully stored repository details in Credential Store.

      oracle@/Oracle/oms11g/bin> ./emctl status emkey
      Oracle Enterprise Manager 11g Release 1 Grid Control
      Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
      Enter Enterprise Manager Root (SYSMAN) Password :
      The EMKey is not configured properly or is corrupted in the credential store and does not exist in the Management Repository. To correct the problem:
      1) Get the backed up emkey.ora file.
      2) Configure the emkey by running "emctl config emkey -copy_to_credstore_from_file".
      oracle@GH102:/bea/Oracle/oms11g/bin>
      #####################################


      tried different things. e.g

      oracle@/Oracle/oms11g/bin> ./emctl config emkey -copy_to_repos_from_file -repos_host xxxxxx -repos_port 1521 -repos_sid xxxxx -repos_user sysman -emkey_file /Oracle/oms11g/sysman/config/emkey.ora
      Oracle Enterprise Manager 11g Release 1 Grid Control
      Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
      Enter Admin User's Password :
      Enter Enterprise Manager Root (SYSMAN) Password :
      Error occured. Check the logs.
      oracle@/Oracle/oms11g/bin>
      ###################

      secure.log file shows
      ##########
      2011-06-20 14:34:27,891 [main] ERROR oms.EMKeyBRCmds logp.251 - Em key is invalid
      oracle.sysman.emSDK.conf.EmKeyException: Em key is invalid
      at oracle.sysman.emctl.config.oms.EMKeyCmds.copyEmKeyToRepos(EMKeyCmds.java:491)
      at oracle.sysman.emctl.config.oms.EMKeyBRCmds.processEmKeyBRCmd(EMKeyBRCmds.java:212)
      at oracle.sysman.emctl.config.oms.EMKeyBRCmds.main(EMKeyBRCmds.java:260)
      2011-06-20 14:34:53,650 [main] ERROR oms.EMKeyBRCmds logp.251 - Em key is invalid
      oracle.sysman.emSDK.conf.EmKeyException: Em key is invalid
      at oracle.sysman.emctl.config.oms.EMKeyCmds.copyEmKeyToRepos(EMKeyCmds.java:491)
      at oracle.sysman.emctl.config.oms.EMKeyBRCmds.processEmKeyBRCmd(EMKeyBRCmds.java:212)
      at oracle.sysman.emctl.config.oms.EMKeyBRCmds.main(EMKeyBRCmds.java:260)
      oracle@/gcprd_inst/em/EMGC_OMS1/sysman/log>


      any idea what I am missing???