Wednesday, February 16, 2011

Steps to create Readonly/View Only User in OEM

To create a new account with View Only privileges:

1. Logon to Grid Control as a super admin user (SYSMAN or equivalent)











2. Click on the links: Setup -> Administrators -> Click on Create


























3. Remove the 'PUBLIC ROLE' that is listed by default










4. Under Create Administrator: System Privileges select 'VIEW ANY TARGET'.









5. Under Create Administrator: Targets, choose all the targets this new admin should be able to view

















6. Under Create Administrator: Target Privileges , BATCH ASSIGN Choose 'View'











7. Click Apply














Reference - How To Create Administrator Accounts (Super Admin, Admin, View Only, etc) In Grid Control [ID 377310.1]

Steps to Remove/De-register Agent from OEM:

1. Stop the Agent on the target machine:

cd /bin
emctl stop agent

2. Login to the Repository Ddatabase (via sqlplus) as user SYSMAN and execute the following command:
SQL> exec mgmt_admin.cleanup_agent(':');

For example:

SQL> exec mgmt_admin.cleanup_agent('ebsqa-mt.oracle_mt.com:3872');

PL/SQL procedure successfully completed.



3. De-install the Agent on the target machine.


Reference: Metalink Note - 438158.1 -- How to Cleanly De-Install the EM 10g Agent on Windows and Unix