Check the number of CPU & cores with SQL statement in Oracle

Check the count of CPU / Cores / Sockets with SQL query in Oracle

Check the count of CPU count with SQL in Oracle

SQL> SELECT value CPU_COUNT FROM v$system_parameter2 WHERE LOWER(name) = 'cpu_count';

CPU_COUNT
------------
8

Check the count of CPU present with SQL in Oracle

SQL> SELECT TO_CHAR(value) num_cpus FROM v$osstat WHERE stat_name = 'NUM_CPUS';

NUM_CPUS
----------
8

Check the count of Cores with SQL in Oracle

SQL> SELECT TO_CHAR(value) num_cores FROM v$osstat WHERE stat_name = 'NUM_CPU_CORES';

NUM_CORES
----------
4

Check the count of Sockets with SQL query in Oracle

SQL> SELECT TO_CHAR(value) num_sockets FROM v$osstat WHERE stat_name = 'NUM_CPU_SOCKETS';

NUM_SOCKET
----------
1

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.