Skip to content
August 25, 2014 / doganay

OS INFO SQL

set lines 1000
set pages 1000
col stat_name format a21
col value format 99999
col comments format a60
select stat_name,value,comments from v$osstat
where stat_name in (
'NUM_CPUS',
'LOAD',
'NUM_CPU_CORES',
'NUM_CPU_SOCKETS'
)
union all
select stat_name,value/1024/1024/1024 "PHY MEM(GB)" ,comments from v$osstat
where stat_name in (
'PHYSICAL_MEMORY_BYTES'
);
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: