Search notes:

Oracle: UTL_IDENT

utl_ident can be used for conditional compilation of PL/SQL packages that are shared between Oracle, TimeTen, Oracle Forms and possibly others.

Show some constants

The following script shows the values of the three constants is_oracle_server, is_oracle_client and is_timesten.
declare

  function b2v(b boolean) return varchar2 is -- {
  begin
    if b then return 'true'; end if;
    return 'false';
  end b2v; -- }

begin

  dbms_output.put_line('is_oracle_server: ' || b2v(utl_ident.is_oracle_server));
  dbms_output.put_line('is_oracle_client: ' || b2v(utl_ident.is_oracle_client));
  dbms_output.put_line('is_timesten:      ' || b2v(utl_ident.is_timesten     ));

end;
/
Github repository oracle-patterns, path: /Installed/utl/ident/schow_constants.sql

Typical usage

In Oracle supplied source code ($ORACLE_HOME/rdbms/admin), this package is typically in a variation of:
$if utl_ident.is_oracle_server $then
  code supported for Oracle Database
$elsif utl_ident.is_timesten $then
  code supported for TimesTen Database
$end

See also

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