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