My Oracle Support Banner

HOWTO : Use TimesTen Plugin "run as" Privilege Delegation When Setting Targe Credentials With Oracle Enterprise Manager 12c (Doc ID 1416813.1)

Last updated on APRIL 06, 2018

Applies to:

Enterprise Manager for Miscellaneous Plug-ins - Version to [Release 10.2 to 12.1]
Oracle TimesTen In-Memory Database - Version and later
Information in this document applies to any platform.


For purposes of security auditing, software is installed and run by a system account in this particular example below that
system account was 'oracle', but user's access or use software by logging in as themselves (e.g. if the user's user name
was joe smith, that is who he logged in as) and then running software as the superuser'ed system account:

[oracle@timesten-poc-01 bin]$ ./emctl status agent
Oracle Enterprise Manager 10g Release 5 Grid Control
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
Agent Version :
OMS Version :
Protocol Version :
Agent Home : /oracle/product/emagent
Agent binaries : /oracle/product/emagent
Agent Process ID : 16819
Parent Process ID : 16785
Started at : 2012-01-25 10:45:55
Started by user : oracle
Last Reload : 2012-01-25 10:45:55
Last successful upload : 2012-01-26 15:27:08
Total Megabytes of XML files uploaded so far : 13.72
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 98.96%
Last successful heartbeat to OMS : 2012-01-26 15:30:14
Agent is Running and Ready

User attempted to configure the Enterprise Manager using host credentials that don't match the user that Enterprise Manager
was installed by.  When attempting to deploy the TimesTen OEM plugin by setting different combinations of user's and system
user's name and password in OEM->Agent Preferred Credentials->Target Credentials, they would see one of 3 errors which can
be seen in the trace file, emoms.trc:

Error 1:
2012-01-25 13:09:56,806 [ManagementPluginWorker(timesten_imdb2:2.2,] ERROR em.emx runOperation.308 - Operation failed on the agent with status 1 : Invalid credentials at -e line 3.

at oracle.sysman.emx.AgentFileHandler.runRemoteCommand(
at oracle.sysman.emx.AgentFileHandler.undeployFiles(
at oracle.sysman.emx.AgentFileHandler.runOperation(
at oracle.sysman.emx.AgentFileHandler.undeploy(
at oracle.sysman.emx.MPHandler.runOperation(
at oracle.sysman.emx.MPHandler.undeploy(
at oracle.sysman.emx.AgentUndeployWorker.undeployFromAgent(
2012-01-25 13:09:56,820 [ManagementPluginWorker(timesten_imdb2:2.2,] ERROR threadPoolManager.WorkerThread run.283 - Exception message: null
2012-01-25 13:09:56,820 [Thread-76] ERROR em.emx workerDied.250 - java.lang.Error

Error 2:
2012-01-26 17:54:31,728 [EMUI_17_54_31_/console/emx/deploy] ERROR ui.DeployController handleEvent.283 - oracle.sysman.emx.InvalidCredentialException: Preferred credentials are not set for target of type oracle_emd
oracle.sysman.emx.InvalidCredentialException: Preferred credentials are not set for target of type oracle_emd
at oracle.sysman.emx.Util.getPreferredCredentials(
at oracle.sysman.emx.AgentDestination.getAgentDestinations(
at oracle.sysman.emx.AgentDestination.getAgentDestinations(
at oracle.sysman.emx.ui.DeployVerificationBean.getAgentDestinations(
at oracle.sysman.emx.ui.DeployVerificationBean.validateMP(
at oracle.sysman.emx.ui.DeployVerificationBean.populateTargets(
at oracle.sysman.emx.ui.DeployController.handleEvent(
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(
at oracle.sysman.emSDK.svlt.EMServlet.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at com.evermind.server.http.ResourceFilterChain.doFilter(
at com.evermind.server.http.EvermindFilterChain.doFilter(
at com.evermind.server.http.EvermindFilterChain.doFilter(
at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(
at com.evermind.server.http.EvermindFilterChain.doFilter(
at com.evermind.server.http.ServletRequestDispatcher.invoke(
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(
at com.evermind.server.http.HttpRequestHandler.processRequest(
at com.evermind.util.ReleasableResourcePooledExecutor$
Caused by: oracle.sysman.emx.StatusError: Severity: 0
Message bundle: oracle.sysman.emx.EmxMsg

Error 3:
2012-02-02 15:21:26,262 [Shutdown] DEBUG jdbc.leak checkLeakedConnections.214 -
java.lang.Exception: Connection Leak Exception
at oracle.sysman.util.jdbc.DefaultConnectionListener.connectionOpened(
at oracle.sysman.util.jdbc.ConnectionListenerManagerImpl.processConnectionEvent(
at oracle.sysman.util.jdbc.ConnectionCache.processConnectionEvent(
at oracle.sysman.util.jdbc.ConnectionWrapper._fireOpenedEvent(
at oracle.sysman.util.jdbc.ConnectionWrapper.<init>(
at oracle.sysman.emSDK.svc.conn.FGAConnection.<init>(
at oracle.sysman.emSDK.svc.conn.FGAConnectionCache.getFGAConnection(
at oracle.sysman.emSDK.svc.conn.ConnectionService.getSystemConnection(
at oracle.sysman.emdrep.dbjava.loader.XMLLoaderContext.getConnection(
at oracle.sysman.emdrep.dbjava.loader.XMLLoaderContext.initLoaderParameters(
2012-02-02 15:21:26,262 [Shutdown] INFO svc.ServiceUtil cleanupServices.214 - Destroying oracle.sysman.emSDK.license.LicenseManager
2012-02-02 15:21:26,262 [Shutdown] INFO svc.ServiceUtil cleanupServices.214 - Destroying oracle.sysman.emSDK.svc.houseKeeping.HouseKeepingService
2012-02-02 15:21:26,262 [Shutdown] INFO svc.ServiceUtil cleanupServices.214 - Destroying oracle.sysman.emSDK.topo.TopoManager
2012-02-02 15:21:26,263 [Shutdown] INFO svc.ServiceUtil cleanupServices.214 - Destroying oracle.sysman.emSDK.intg.IntegrationManager
2012-02-02 15:21:26,263 [Shutdown] INFO svc.ServiceUtil cleanupServices.214 - Destroying
2012-02-02 15:21:26,263 [Shutdown] INFO svc.ServiceUtil cleanupServices.214 - Destroying oracle.sysman.emSDK.conf.ConfigManager
2012-02-02 15:21:26,263 [Shutdown] INFO svc.ServiceUtil cleanupServices.229 - Done with service cleanup!
2012-02-02 15:21:26,263 [Shutdown] DEBUG cache.CacheManager sessionDestroyed.99 - Session :24748589 destroyed
2012-02-02 15:21:26,264 [Shutdown] DEBUG audit.AuditCacheManager logp.251 - AuditCacheManager.getAuditSwitch() returns false
2012-02-02 15:22:09,090 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.460 - Integration Class not found: oracle.sysman.pp.virtualization.ui.provision.ovm.VirtualizationProvIntegration
2012-02-02 15:22:13,235 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.453 - Integration Class not found: oracle.sysman.test.pp.common.intg.ProvTestIntg
2012-02-02 15:22:18,532 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.453 - Integration Class not found: oracle.sysman.pp.paf.sample.ui.intg.PAFDemoIntegration


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.