To resolve CREATING_OHS_COMP_FAILED during the creation of additional OMS service, it may be necessary to cleanup the repository from legacy or OMS association that resulted into error.
To view these association
$ export WLST_PROPERTIES="-Dweblogic.security.TrustKeyStore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true"
$ORACLE_HOME/oracle_common/common/bin/wlst.sh
wls:/offline> connect('weblogic','welcome1','t3s://emdev13c01:7102')
Connecting to t3s://emdev13c01:7102 with userid weblogic …
Successfully connected to Admin Server "EMGC_ADMINSERVER" that belongs to domain "GCDomain".
wls:/GCDomain/serverConfig/> svc = getOpssService('KeyStoreService')
wls:/GCDomain/serverConfig/> svc.listKeyStores(appStripe='*')
Location changed to domainRuntime tree. This is a read-only tree
with DomainMBean as the root MBean.
For more help, use help('domainRuntime')
system/trust
system/demoidentity
system/castore
system/publiccacerts
opss/trustservice_ts
opss/trustservice_ks
OHS/ohs2_default
OHS/ohs1_default
OHS/ohs3_default
wls:/GCDomain/domainRuntime/>
To cleanup one of these:
wls:/GCDomain/domainRuntime/> svc.deleteKeyStore(appStripe='OHS',name='ohs2_default',password='welcome1')
Already in Domain Runtime Tree
Keystore deleted
wls:/GCDomain/domainRuntime/> svc.deleteKeyStore(appStripe='OHS',name='ohs3_default',password='welcome1')
Already in Domain Runtime Tree
Keystore deleted
To check
svc.listKeyStores(appStripe='*')