Search notes:

Oracle: DBMS_PRIVILEGE_CAPTURE

Procedures

capture_dependency_privs
create_capture
delete_run
disable_capture
drop_capture
enable_capture
generate_result

Simple example

Create and enable a capture…
begin
   dbms_privilege_capture.create_capture(
       name          => 'priv_capture_test',
       description   => 'Captures my_app_developer role use'
--     type          =>  dbms_privilege_capture.g_role,
--     roles         =>  role_name_list('…')
   );
   dbms_privilege_capture.enable_capture('priv_capture_test');
end;
/
Let some time pass nad users do their work…
Disable the capture and generate the result:
begin
   dbms_privilege_capture.disable_capture('priv_capture_test');
   dbms_privilege_capture.generate_result('priv_capture_test');
end;
/
Query the result:
select
   upr.*
from
   dba_used_privs upr
where
   upr.capture  ='priv_capture_test' and
   upr.username = user;
Drop the capture:
begin
   dbms_privilege_capture.drop_capture('priv_capture_test');
end;
/

See also

Oracle DBMS PL/SQL packages

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...', 1758200621, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/installed/packages/dbms/privilege_capture/index(91): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78