Search notes:

Joining DBA_HIST_ACTIVE_SESS_HISTORY with DBA_USERS

select
   count(*),
   ses.user_id,
   usr.username
from
   dba_hist_active_sess_history  ses                              left join
   dba_users                     usr on ses.user_id = usr.user_id
where
   usr.oracle_maintained = 'N'
group by
   ses.user_id,
   usr.username
order by  
   usr.username;

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759612411, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/installed/data-dictionary/hist/active_sess_history/join-dba_users(43): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78