Oracle Host Environment
Version 18.3.0.1

General Information
Library Note Morgan's Library Page Header
For how many years have you been working with physical servers that are starving your database of the memory necessary to deploy important new performance features such as the Result Cache, Memoptimize Pool, In-Memory Aggregation, In-Memory Column Store, and Full Database Caching? Too long? Contact me to learn how to improve all queries ... not just some queries.
Purpose The entries on this page demonstrate ways, from within the Oracle database, to access information about the host hardware and operating system. There are ways to do it in the operating system shell environment but what is important, most often, is to see what the database has access to and what Oracle will be watching for licensing purposes.
 
Demos
Number of CPUs col value format 99999

SELECT inst_id, value
FROM gv$osstat
WHERE stat_name = 'NUM_CPUS';
Amount of Physical Memory col value format 999999999999

SELECT inst_id, value
FROM gv$osstat
WHERE stat_name = 'PHYSICAL_MEMORY_BYTES';
Operating System Endian Value SELECT dbms_utility.get_endianness
FROM dual;

GET_ENDIANNESS
--------------
             2
Operating System Environment Variables set serveroutput on

DECLARE
 RetVal VARCHAR2(30);
BEGIN
  dbms_system.get_env('ORACLE_SID', RetVal);
  dbms_output.put_line(RetVal);
END;
/
orabase18

DECLARE
 RetVal VARCHAR2(100);
BEGIN
  dbms_system.get_env('ORACLE_HOME', RetVal);
  dbms_output.put_line(RetVal);
END;
/
/u01/app18

DECLARE
 RetVal VARCHAR2(100);
BEGIN
  dbms_system.get_env('TEMP', RetVal);
  dbms_output.put_line(RetVal);
END;
/
C:\Users\ORA18U~1\AppData\Local\Temp

Related Topics
Built-in Functions
Built-in Packages
DBMS_SYSTEM
DBMS_UTILITY
Dynamic Performance Views
Unix and vi
What's New In 12cR2
What's New In 18cR3

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2019 Daniel A. Morgan All Rights Reserved