Database Administration (MOSC)

MOSC Banner

Listing database users details

edited May 7, 2021 10:28AM in Database Administration (MOSC) 3 commentsAnswered

Hi team,

I have audit task, i need to list all database users/schemas and provide certain details like Account Name / User’s Name / Email ID / Employee ID / Role, Profile, Access assigned to account /User Account Status (active/inactive) /Date Created /Date Modified /Date of Last Login. Database version is 12.1.

Since now i have only this :

select username, profile, decode(account_status,'OPEN','ACTIVE','INACTIVE') "ACCOUNT STATUS", created, last_login from dba_users;

I assume that i can query for email and employee id for personal accounts by looking HRMS tables like per_all_people_f or similar?

I have doubts regarding role as well, so i assume it would be good to put in list every role granted to user.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center