Oracle Enterprise Manager 12c Cloud Control – Managing EM User Security (Part Two)

One key area of concern when it comes to our IT infrastructure, continues to be security, in particular user security.  In the Oracle world, this concern exists at all levels from the front-end applications, to the middle tier level we use for deployment, to the back end tier or database layer,  to the tools that we use to manage the entire infrastructure.  To this end, in Cloud Control, Oracle has introduced some new features, and strengthened some of their existing functionality to help us ensure the security of Oracle’s primary IT infrastructure DBA management toolset.

In my last article, we took a look at two of the key security areas in EM12c, namely Cloud Control Authentication and Cloud Control Authorization.  There are two additional sets of features that relate to User Security in Cloud Control, which are Credential Management and Target Authentication.  These are the topics of my second article on Managing EM User Security.

Credential Management

Credentials are used to access most of the targets managed in EM12c. In many cases the credentials are a combination of username and password and are encrypted and stored in Enterprise Manager. Starting in 12c the credential system can use basic username/password and also strong authentication methods such as PKI, SSH keys and Kerberos. Additionally, SSH key based host level authentication can also be used for jobs, deployment procedures and in other areas.

Besides connecting to targets such as hosts, application servers and databases, credentials in EM12c can be used to do activities such as metric collection, run jobs, do target management activities (such as starting and stopping), end even connect to My Oracle Support.

The five categories of credentials in 12c Cloud are Named Credentials, Job Credentials, Monitoring Credentials, Collection Credentials and Preferred Credentials.

Named Credentials

Named credentials are stored as their own independent objects in EM. Administrators can define and store a credential with an object name and that specific name can then be used to do activities against a target. What is extremely powerful about named credentials is the fact that the user who is accessing a target or running a job using a named credential in EM12c, never actually sees the username and password associated with the named credential.

Setting up named credentials allows an EM user to do a task, without compromising the details behind the named credential they are using. This is one of the strongest features of the new named credential feature in EM12c.

Named credentials are divided into two categories, global and target and they are created by going to the Setup Menu, and then selecting Named Credential.

Global named credentials are not specifically associated with any one EM target. They contain an authentication scheme and the authentication parameters. They can be associated with objects in EM as needed.

Target named credentials are associated with a specific target only, however, they do also consist of the authentication scheme along with the parameters for that target.

There are several rules in EM12c around access for named credentials

  1. Only the owner of a named credential can grant access to that named credential to other users
  2. EM Super Administrators cannot get privileges on a new named credential until they are explicitly granted privileges on the named credential
  3. EM Administrators can’t see the sensitive data in a named credential (such as passwords) from the user interface regardless of their privilege levels
  4. Credentials cannot be assigned to roles
  5. An EM Administrator cannot view other administrator credentials unless they have been explicitly granted access to it
  6. An EM Administrator can create their own named credentials and always have full privileges on the named credentials they own

Named credentials can be granted to other administrators as they are being created or by editing them after they are created.

Also, it must be noted that if an administrator’s account is deleted from EM, all of their named credentials will also be removed. Also, an EM Super Administrator cannot simply re-assign the credentials to another administrator. That is because they are not automatically granted access to any named credentials.

There are several levels of privilege that can be granted on a named credential.


An administrator with view privileges can see the structure of a named credential, but no sensitive information can be seen. The administrator can use the named credential to run jobs, do patching and other activities within EM12c.


An administrator with edit privileges can change sensitive information (such as a password or public/private key pair). They cannot change the Authentication Scheme and they cannot change the user name.


Allows an administrator to change all components of the named credential and also they can delete the named credential.

Job Credentials

In EM12c, the job system uses the credential subsystem to get the appropriate information to submit a job to the target. When submitting a job, the administrator can configure the job to use preferred credentials, use named credentials or use new credentials set up for the job.

If a job is set up to use preferred credentials and there are none set up, the job will use the default credentials for that target. If there are also no default credentials or preferred credentials and this choice was selected, the job cannot be submitted.

Monitoring Credentials

The monitoring credentials are used by Management Agents on certain targets. The most common example would be database targets. In order to monitor a database there has to be a connection to that database that includes a username, password and generally a role.

Monitoring credentials stored in EM12c can also be used by other applications to connect to the target from the OMS.

Monitoring credentials are also configured via Setup and then Monitoring Credentials.

Collection Credentials

These are the credentials associated with metric extensions and their precursors, user defined metrics. For many metrics to be collected, analyzed and tested, a connection to the target via credentials is required.

Preferred Credentials

Preferred credentials are used to simplify access to the targets by storing the login credentials for a target in EM. Users can use the preferred credentials to connect to a target without being prompted to log into the target each time they try to access that object. Preferred credentials are set on a per user basis.

There are two kinds of preferred credentials, default and target.

Default credentials are set for a particular target type rather than on a specific target. They are available for all targets of that particular type and will be overridden by any specific target credentials that are created.

Target credentials are the preferred credentials for a specific target. They can be used by the jobs system, notifications, regular connections etc.

Target Authentication

For certain targets, in particular hosts, the functionality to do authentication using methods besides username and password has been added to EM12c.

EM12c supports the use of SSH-Key based host authentication as a means of setting up a secure channel between two different systems. This is primarily intended for Linux/Unix based hosts.

Configuring EM to use SSH based authentication when doing management actions allows administrators to leverage all of the security features of SSH in conjunction with all of the functionality of EM. When using SSH, the agent acts as a Java SSH client and uses the username/password as stored in the credentials.

EM stores a private/public key pair for the administrators and lets them view and install the public key on the host targets. After that, jobs can be submitted to the host by submitting them with the stored credential that has the private/public key information. OMS passes the keys to the agent with the job parameters. The agent then calls the Java SSH client and tries to connect to the host. The host OS then authenticates the Java SSH client and the agent can then submit the required actions on the host.

Securing EM User access can even go beyond what’s been discussed here to include Pluggable Authentication Modules to take advantage of tools such as Kerberos, Radius and LDAP.

In conclusion, Administrator authentication and user security is an area in Oracle Enterprise Manager 12c Cloud Control that has been greatly enhanced and provides tools and techniques that can ensure that EM administrators can do their jobs without compromising security.

See all articles by Karen Reliford

Karen Reliford
Karen Reliford
Karen Reliford is an IT professional who has been in the industry for over 25 years. Karen's experience ranges from programming, to database administration, to Information Systems Auditing, to consulting and now primarily to sharing her knowledge as an Oracle Certified Instructor in the Oracle University Partner Network. Karen currently works for TransAmerica Training Management, one of the foremost Oracle Authorized Education Centers (OAEC) in the Oracle University North America region. TransAmerica Training Management offers official Oracle and Peoplesoft Training in Coral Gables FL, Fayetteville AR, Albuquerque NM, Providence RI and San Juan PR. Karen has now been teaching Oracle for Oracle University for more than 15 years. Karen has attained her Certified Technical Trainer designation along with several Oracle certifications including OCP-DBA, OCP-Internet Developer, Oracle Expert - Oracle 10g RAC and Oracle Expert - Oracle Application Express (3.2). Additionally, Karen achieved her Oracle 10g Oracle Certified Master (OCM) in 2008. Karen was raised in Canada, and in November 2009 became a US Citizen. Karen resides in Columbus OH with her husband, Ron along with their 20 pets, affectionately referred to as the "Reliford Zoo".

Latest Articles