Search notes:

Oracle SQL function: SCN_TO_TIMESTAMP

scn_to_timestamp(v_scn) returns the timestamp, with a resolution of three seconds, at which the System Commit Number v_scn as generated.
The following query selects all timestamps of the past period and counts how often they occurred. It shows that the granularity of scn_to_timestamp is indeed three seconds:
with x(scn, ts) as (
   select
      dbms_flashback.get_system_change_number                   scn,
      scn_to_timestamp(dbms_flashback.get_system_change_number) ts
   from
      dual
               union all
   select
      x.scn -1,
      scn_to_timestamp(x.scn-1)
   from
      x
   where
      scn_to_timestamp(x.scn-1) > sysdate - 1/24/60
)
select
   count(*),
   ts
from
   x
group by
   ts
order by
   ts desc;

See also

The ora_rowscn pseudo column.
ORA-01405: fetched column value is NULL

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...', 1758199199, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/functions/scn/scn_to_timestamp(66): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78