Wednesday, March 09, 2011

OEM agent Installation using agentDownload script


Method  - agentDownload script

Summary
1. login as oracle
2. download agentDownload
3. change the permissions on the file
4. Install
5. run root.sh
6. update /etc/oratab
7. check agent status
8. configure databases, ASM using OEM Grid

Tuesday, March 08, 2011

OEM GRID 10.2.0.5 - false alarm - CPU 100% Utilization on OMS server


As per Metalink note 566711.1, this is bug and fixed by
applying Patch 6455908.




Monday, March 07, 2011

FLASHBACK QUERY




# flashback query as of timestamp
# flashback query as of scn


FLASHBACK TABLE


# flashback to SCN
# flashback table to timestamp
# flashback to restore point

Tuesday, February 22, 2011

dba_role_privs dba_tab_privs dba_sys_privs

List user Priviliges

set echo off
set verify off
set pages 200
col granted_role form a20
col owner form a12
col table_name form a27
col privilege form a27

ACCEPT username  prompt 'Enter Username : '

spool quser_privs.log

PROMPT Roles granted to user

SELECT granted_role,admin_option,default_role
FROM dba_role_privs
WHERE grantee=UPPER('&username');

PROMPT Table Privileges granted to a user through roles

SELECT granted_role, owner, table_name, privilege
FROM ( SELECT granted_role
     FROM dba_role_privs WHERE grantee=UPPER('&username')
       UNION
       SELECT granted_role
     FROM role_role_privs
     WHERE role in (SELECT granted_role
                FROM dba_role_privs WHERE grantee=UPPER('&username')
               )
    ) roles, dba_tab_privs
WHERE granted_role=grantee;

PROMPT System Privileges assigned to a user through roles

SELECT granted_role, privilege
FROM ( SELECT granted_role
     FROM dba_role_privs WHERE grantee=UPPER('&username')
       UNION
       SELECT granted_role
     FROM role_role_privs
     WHERE role in (SELECT granted_role
                FROM dba_role_privs WHERE grantee=UPPER('&username')
               )
    ) roles, dba_sys_privs
WHERE granted_role=grantee;

PROMPT Table privileges assigned directly to a user

SELECT owner, table_name, privilege
FROM dba_tab_privs
WHERE grantee=UPPER('&username');

PROMPT System privileges assigned directly to a user
SELECT privilege, admin_option
FROM  dba_sys_privs
WHERE grantee=UPPER('&username');

spool off



Hope this Helps! Rupam