Check the number of CPU & cores with SQL statement 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

Related posts

How to deal with ORA-00020: maximum number of processes (%s) exceeded

How to resolve ORA-01111 ORA-01110 ORA-01157 in a physical standby database 

Công cụ tự động khai báo datafile – Oracle