Search
 
SCRIPT & CODE EXAMPLE
 

SQL

query to check cpu utilization in oracle database

SELECT ss.USERNAME, se.SID, se.VALUE / 100 CPU_USAGE_SECONDS
FROM V$SESSION ss, V$SESSTAT se, V$STATNAME sn
WHERE se.STATISTIC# = sn.STATISTIC#
  AND NAME LIKE '%CPU used by this session%'
  AND se.SID = ss.SID
  AND ss.STATUS = 'ACTIVE'
  AND ss.USERNAME IS NOT NULL
ORDER BY VALUE DESC;
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql select table names 
Sql :: mysql date greater than 30 days 
Sql :: pyodbc connect to sql server 
Sql :: timestamp in sqlite 
Sql :: String concatenation in PostgreSQL 
Sql :: How to fetch data in between startfromdate to starenddate in sql 
Sql :: extract month from date sql two digits 
Sql :: node and mysql like 
Sql :: hibernate dialect property xml for mysql 8 
Sql :: oracle list tables 
Sql :: psql restore from tar 
Sql :: import local sql into remote mysql 
Sql :: ordering by issue with 4 digit numbers in sql 
Sql :: drop procedure sql 
Sql :: query any digits record 
Sql :: oracle show trigger code 
Sql :: oracle check numeric 
Sql :: oracle nls parameters 
Sql :: sql output inserted id 
Sql :: sql server roles and users 
Sql :: postgresql transaction discard all 
Sql :: sql order by timestamp 
Sql :: helptext in sql 
Sql :: oracle sql day of month from date 
Sql :: woocommerce mysql price table 
Sql :: postgresql get year 
Sql :: varchar plsql 
Sql :: mysql round 
Sql :: date 3 months from today sql 
Sql :: oracle create as select 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =