{"id":2923,"date":"2013-01-11T08:02:49","date_gmt":"2013-01-11T07:02:49","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/"},"modified":"2013-01-11T08:02:49","modified_gmt":"2013-01-11T07:02:49","slug":"oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/","title":{"rendered":"Oracle Enterprise Manager 12c: creation and management of administrators through emcli"},"content":{"rendered":"<p>Cloud Control 12c (and the former Grid Control 11g) offers the possibility to create administrators and manage their privileges through the &#8220;emcli&#8221; command line utility. The main advantage of this method (based on scripts) is to be able to reproduce the creation of the users as soon as a new Cloud Control infrastructure must be built up (for instance in order to migrate Grid Control 11g on Windows to Cloud Control 12c on Linux).<\/p>\n<p>Indeed, whereas some objects like the monitoring templates can be easily exported and imported, there is no possibility to export and import the Grid\/Cloud Control users.<\/p>\n<p>Creating these users through scripts thus offers the advantage of being able to reproduce their creation on a new environment.<\/p>\n<p>To get a complete help of the &#8220;emcli create_user&#8221; command, use the following statement:<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\"># emcli help create_user\n\u00a0 emcli create_user\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 -name=\"name\"\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 -password=\"password\"\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-type=\"type of user\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-roles=\"role1;role2;...\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-email=\"email1;email2;...\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-privilege=\"name[;secure-resource-details]]\"\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-separator=privilege=\"sep_string\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-subseparator=privilege=\"subsep_string\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-profile=\"profile_name\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-desc=\"user_description\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-expired=\"true\/false\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-prevent_change_password=\"true\/false\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-department=\"department_name\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-cost_center=\"cost_center\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-line_of_business=\"line_of_business\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-contact=\"contact\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-location=\"location\"]\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [-input_file=\"arg_name:file_path\"]<\/pre>\n<p>The name and password of the user are mandatory parameters. Beside these parameters the other important settings for a Grid Control user are of course its privileges and access rights.<\/p>\n<p>Concerning the privilege management Cloud Control 12c distinguishes between three main groups of privileges:<\/p>\n<ul>\n<li>privileges concerning Jobs<\/li>\n<li>privileges concerning Targets<\/li>\n<li>System privileges<\/li>\n<\/ul>\n<p>To get details about these privileges, use the following commands (once connected to CC 12c with &#8220;emcli login -username=&#8221;):<\/p>\n<p><samp><a href=\"mailto:oracle@chhs-sora011:\/home\/oracle\">oracle@chhs-sora011:\/home\/oracle<\/a> [oms12c] emcli get_supported_privileges -type=SYSTEM<\/samp><\/p>\n<p>As an example we will create a simple user having access to a particular database (The Enterprise Manager repository database):<\/p>\n<p><samp>emcli create_user -name=&#8221;useryann&#8221; -password=&#8221;useryann&#8221; -privilege=&#8221;view_target;EMREP12_SITE1.domain.ch:oracle_database&#8221;<\/samp><samp>User &#8220;USERYANN&#8221; created successfully<\/samp><\/p>\n<p>To extend a user in order to provide aditionnal privileges, the modify_user command can be used (be careful the existing privileges must be specified during the modification, if not they will be lost):<\/p>\n<p><samp>emcli modify_user -name=&#8221;useryann&#8221; -privilege=&#8221;view_target;EMREP12_SITE1.domain.ch:oracle_database&#8221;<br \/>\n-privilege=&#8221;CONNECT_TARGET;EMREP12_SITE1.domain.ch:oracle_database&#8221;<br \/>\nUser &#8220;USERYANN&#8221; modified successfully<\/samp><\/p>\n<p>The &#8220;connect_target&#8221; privilege allows to access the performance view of the database target, supposing the user also knows a database user credential to access it.<\/p>\n<h3>Drawback of the emcli\/script-based method<\/h3>\n<p>Of course if Oracle changes\/adds\/removes some privileges in Cloud Control 12c, the script won&#8217;t be accurate anymore and must be adapted for the new releases of the Cloud Control infrastructure. This will however take less time than re-create all users through the Graphical User Interface.<\/p>\n<p>Since Cloud Control 12c , the system privileges granularity is much more dense, more than 75 system privileges are available compared to the 11 system privileges in Grid Control 11g.<\/p>\n<p>Details of the system privileges are available under:<\/p>\n<p><a href=\"http:\/\/docs.oracle.com\/cd\/E25178_01\/doc.1111\/e24473.pdf\">http:\/\/docs.oracle.com\/cd\/E25178_01\/doc.1111\/e24473.pdf<\/a><\/p>\n<p>In order to check the current privileges of a Cloud Control 12c administrator, emcli does not provide any command (or Verb), therefore the only possibility is to access the repository as Repository Owner (SYSMAN) and start the following select:<\/p>\n<p><samp>set lines 132<br \/>\nset pages 999<\/samp><\/p>\n<p>col GRANTEE format a20<br \/>\ncol PRIV_NAME format a25<br \/>\ncol TARGET_NAME format a40<br \/>\ncol TARGET_TYPE format a25<\/p>\n<p>select grantee, PRIV_NAME, TARGET_NAME, TARGET_TYPE<br \/>\nfrom MGMT_PRIV_GRANTS pg, MGMT_TARGETS mt<br \/>\nwhere pg.GUID = mt.TARGET_GUID<br \/>\nand grantee = &#8216;USERYANN&#8217;<br \/>\n\/<\/p>\n<p>Below some information about the available Cloud Control 12c privileges. List the supported privileges for Jobs management:<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\"># emcli get_supported_privileges -type=JOB\n Privilege Name\u00a0 Privilege Scope\u00a0 Security Class\u00a0 Resource Guid Column\u00a0 Resource Id Columns\n MANAGE_JOB\u00a0\u00a0\u00a0\u00a0\u00a0 Resource\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 JOB\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 JOB_ID\n GRANT_VIEW_JOB\u00a0 Resource Type\u00a0\u00a0\u00a0 JOB\n FULL_JOB\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 JOB\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 JOB_ID\n CREATE_JOB\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 JOB\n VIEW_JOB\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 JOB\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 JOB_ID<\/pre>\n<p>List of supported privileges for Targets:<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\"># emcli get_supported_privileges -type=SYSTEM\nPrivilege Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Privilege Scope\u00a0 Security Class\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Guid Column\u00a0 Resource Id Columns\n MANAGE_PRIV_ANY_PATCH_PLAN\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 PATCH\n CREATE_PLAN_TEMPLATE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 PATCH\n PATCH_SETUP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 PATCH\n CREATE_PATCH_PLAN\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 PATCH\n VIEW_ANY_PATCH_PLAN\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 PATCH\n FULL_ANY_PATCH_PLAN\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 PATCH\n CREATE_BUSINESS_RULESET\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 RULESET_SEC\n SWLIB_EXPORT\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SWLIB_ENTITY_MGMT\n SWLIB_EDIT_ANY_ENTITY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SWLIB_ENTITY_MGMT\n SWLIB_MANAGE_ANY_ENTITY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SWLIB_ENTITY_MGMT\n SWLIB_IMPORT\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SWLIB_ENTITY_MGMT\n SWLIB_CREATE_ANY_ENTITY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SWLIB_ENTITY_MGMT\n SWLIB_VIEW_ANY_ENTITY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SWLIB_ENTITY_MGMT\n SWLIB_GRANT_ANY_ENTITY_PRIV\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SWLIB_ENTITY_MGMT\n GRANT_VIEW_JOB\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 JOB\n CREATE_JOB\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 JOB\n VIEW_ANY_TC\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TEMPLATECOLLECTION\n CREATE_TC\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TEMPLATECOLLECTION\n CREATE_OBJECT\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 FMW_DIAG_SEC_CLASS\n VIEW_OBJECT\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 FMW_DIAG_SEC_CLASS\n BTM_USER\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 BTM\n BTM_ADMINISTRATOR\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 BTM\n SWLIB_STORAGE_ADMIN\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SWLIB_ADMINISTRATION\n PUBLISH_REPORT\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 REPORT_DEF\n VIEW_BA_MENU_ITEM\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 APM\n VIEW_APM_PAYLOAD\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 APM\n ACCESS_APM_SESSION_DIAG\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 APM\n ASSOCIATE_APM_ENTITIES\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 APM\n IMPORT_DP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 DP\n CREATE_DP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 DP\n GRANT_FULL_DP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 DP\n GRANT_LAUNCH_DP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 DP\n OPERATOR_ANY_TARGET\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TARGET\n PERFORM_OPERATION_ANYWHERE\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TARGET\n FULL_ANY_TARGET\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TARGET\n PUT_FILE_AS_ANY_AGENT\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TARGET\n PERFORM_OPERATION_AS_ANY_AGENT\u00a0 Resource Type\u00a0\u00a0\u00a0 TARGET\n CREATE_TARGET\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TARGET\n CONNECT_ANY_VIEW_TARGET\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TARGET\n CREATE_PROPAGATING_GROUP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TARGET\n VIEW_ANY_TARGET\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TARGET\n USE_ANY_BEACON\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TARGET\n EM_MONITOR\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TARGET\n CREATE_BACKUP_CONFIG\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SBRM_BACKUP_CONFIG\n CREATE_MEXT\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 MEXT_SECURE_CLASS\n FULL_ANY_CCS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 CCS_SECURE_CLASS\n FULL_OWNED_CCS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 CCS_SECURE_CLASS\n CREATE_CREDENTIAL\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 NAMED_CREDENTIALS\n SUPER_USER\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SYSTEM\n VIEW_ANY_TEMPLATE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 TEMPLATE\n VIEW_ANY_SELFUPDATE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SELFUPDATE_SECURE_CLASS\n SELFUPDATE_ADMINISTRATOR\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SELFUPDATE_SECURE_CLASS\n VIEW_ANY_DISC_TARGETS_ON_HOST\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 DISCOVERY\n VIEW_ANY_DISCOVERED_HOSTS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 DISCOVERY\n CAN_SCAN_NETWORK_PRIVILEGE\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 DISCOVERY\n AD4J_ADMINISTRATOR\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 AD4J\n AD4J_USER\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 AD4J\n JVMD_VIEW_LOCALS_PRIV\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 AD4J\n ACCESS_EM\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 ACCESS\n PLUGIN_AGENT_ADMINISTRATOR\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 PLUGIN\n PLUGIN_OMS_ADMINISTRATOR\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 PLUGIN\n PLUGIN_VIEW\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 PLUGIN\n ASREPLAY_VIEWER\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 ASREPLAY_ENTITY_MGMT\n ASREPLAY_OPERATOR\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 ASREPLAY_ENTITY_MGMT\n MANAGE_ANY_CHANGE_PLAN\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 CHANGE_PLAN\n VIEW_ANY_OMS_PROPERTY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 OMS_PROP_SECURE_CLASS\n MANAGE_ANY_OMS_PROPERTY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 OMS_PROP_SECURE_CLASS\n CREATE_ANY_POLICY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 CLOUDPOLICY\n VIEW_ANY_POLICY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 CLOUDPOLICY\n SVCD_CREATE_DASH\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 SVCD\n EMHA_ADMINISTRATION\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 EMHA_SECURE_CLASS\n VIEW_ANY_COMPLIANCE_FWK\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 COMPLIANCE_FWK\n CREATE_COMPLIANCE_ENTITY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 COMPLIANCE_FWK\n FULL_ANY_COMPLIANCE_ENTITY\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 COMPLIANCE_FWK\n VIEW_ANY_POLICY_GROUP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 CLOUDPOLICYGROUP\n CREATE_POLICY_GROUP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resource Type\u00a0\u00a0\u00a0 CLOUDPOLICYGROUP<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Cloud Control 12c (and the former Grid Control 11g) offers the possibility to create administrators and manage their privileges through the &#8220;emcli&#8221; command line utility. The main advantage of this method (based on scripts) is to be able to reproduce the creation of the users as soon as a new Cloud Control infrastructure must be [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[198],"tags":[215,218],"type_dbi":[],"class_list":["post-2923","post","type-post","status-publish","format-standard","hentry","category-database-management","tag-oracle-enterprise-manager","tag-oracle-enterprise-manager-cloud-12c"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Oracle Enterprise Manager 12c: creation and management of administrators through emcli - dbi Blog<\/title>\n<meta name=\"description\" content=\"Cloud Control 12c (and the former Grid Control 11g), offers the possibility to create administrators and manage their privileges through the &quot;emcli&quot; command line utility. The main advantage of this method (based on scripts) is to be able to reproduce the creation of the users as soon as a new Cloud Control infrastructure must be built up (for instance in order to migrate Grid Control 11g on Windows to Cloud Control 12c on Linux).\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oracle Enterprise Manager 12c: creation and management of administrators through emcli\" \/>\n<meta property=\"og:description\" content=\"Cloud Control 12c (and the former Grid Control 11g), offers the possibility to create administrators and manage their privileges through the &quot;emcli&quot; command line utility. The main advantage of this method (based on scripts) is to be able to reproduce the creation of the users as soon as a new Cloud Control infrastructure must be built up (for instance in order to migrate Grid Control 11g on Windows to Cloud Control 12c on Linux).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2013-01-11T07:02:49+00:00\" \/>\n<meta name=\"author\" content=\"Yann Neuhaus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yann Neuhaus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/\"},\"author\":{\"name\":\"Yann Neuhaus\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/5bfc203607127a4915b7950c4a108681\"},\"headline\":\"Oracle Enterprise Manager 12c: creation and management of administrators through emcli\",\"datePublished\":\"2013-01-11T07:02:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/\"},\"wordCount\":565,\"commentCount\":0,\"keywords\":[\"Oracle Enterprise Manager\",\"Oracle Enterprise Manager Cloud 12c\"],\"articleSection\":[\"Database management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/\",\"name\":\"Oracle Enterprise Manager 12c: creation and management of administrators through emcli - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2013-01-11T07:02:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/5bfc203607127a4915b7950c4a108681\"},\"description\":\"Cloud Control 12c (and the former Grid Control 11g), offers the possibility to create administrators and manage their privileges through the \\\"emcli\\\" command line utility. The main advantage of this method (based on scripts) is to be able to reproduce the creation of the users as soon as a new Cloud Control infrastructure must be built up (for instance in order to migrate Grid Control 11g on Windows to Cloud Control 12c on Linux).\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle Enterprise Manager 12c: creation and management of administrators through emcli\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/5bfc203607127a4915b7950c4a108681\",\"name\":\"Yann Neuhaus\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/d2729b4bbf77b0fe6f6d2b9fb1b2686404c89a16ce2701e860bfd1406212f796?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d2729b4bbf77b0fe6f6d2b9fb1b2686404c89a16ce2701e860bfd1406212f796?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d2729b4bbf77b0fe6f6d2b9fb1b2686404c89a16ce2701e860bfd1406212f796?s=96&d=mm&r=g\",\"caption\":\"Yann Neuhaus\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/yann-neuhaus\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Oracle Enterprise Manager 12c: creation and management of administrators through emcli - dbi Blog","description":"Cloud Control 12c (and the former Grid Control 11g), offers the possibility to create administrators and manage their privileges through the \"emcli\" command line utility. The main advantage of this method (based on scripts) is to be able to reproduce the creation of the users as soon as a new Cloud Control infrastructure must be built up (for instance in order to migrate Grid Control 11g on Windows to Cloud Control 12c on Linux).","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/","og_locale":"en_US","og_type":"article","og_title":"Oracle Enterprise Manager 12c: creation and management of administrators through emcli","og_description":"Cloud Control 12c (and the former Grid Control 11g), offers the possibility to create administrators and manage their privileges through the \"emcli\" command line utility. The main advantage of this method (based on scripts) is to be able to reproduce the creation of the users as soon as a new Cloud Control infrastructure must be built up (for instance in order to migrate Grid Control 11g on Windows to Cloud Control 12c on Linux).","og_url":"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/","og_site_name":"dbi Blog","article_published_time":"2013-01-11T07:02:49+00:00","author":"Yann Neuhaus","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Yann Neuhaus","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/"},"author":{"name":"Yann Neuhaus","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/5bfc203607127a4915b7950c4a108681"},"headline":"Oracle Enterprise Manager 12c: creation and management of administrators through emcli","datePublished":"2013-01-11T07:02:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/"},"wordCount":565,"commentCount":0,"keywords":["Oracle Enterprise Manager","Oracle Enterprise Manager Cloud 12c"],"articleSection":["Database management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/","url":"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/","name":"Oracle Enterprise Manager 12c: creation and management of administrators through emcli - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2013-01-11T07:02:49+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/5bfc203607127a4915b7950c4a108681"},"description":"Cloud Control 12c (and the former Grid Control 11g), offers the possibility to create administrators and manage their privileges through the \"emcli\" command line utility. The main advantage of this method (based on scripts) is to be able to reproduce the creation of the users as soon as a new Cloud Control infrastructure must be built up (for instance in order to migrate Grid Control 11g on Windows to Cloud Control 12c on Linux).","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/oracle-cloud-control-12c-creation-and-management-of-administrators-through-emcli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Oracle Enterprise Manager 12c: creation and management of administrators through emcli"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/5bfc203607127a4915b7950c4a108681","name":"Yann Neuhaus","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d2729b4bbf77b0fe6f6d2b9fb1b2686404c89a16ce2701e860bfd1406212f796?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d2729b4bbf77b0fe6f6d2b9fb1b2686404c89a16ce2701e860bfd1406212f796?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d2729b4bbf77b0fe6f6d2b9fb1b2686404c89a16ce2701e860bfd1406212f796?s=96&d=mm&r=g","caption":"Yann Neuhaus"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/yann-neuhaus\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/2923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=2923"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/2923\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=2923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=2923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=2923"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=2923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}