Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle cpu per session

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 :: xampp mysql database not starting 
Sql :: mysql created at yesterdau 
Sql :: Unit mysql.service could not be found. 
Sql :: concat first name and last name in mysql 
Sql :: how to add auto increment primary key 
Sql :: sql decrement value by 1 if not null or zero 
Sql :: count mysql server db tables 
Sql :: mysql dump mysql db cli 
Sql :: oracle detect invalid password 
Sql :: oracle user tables 
Sql :: set statiscis on in sql server 
Sql :: invalid reference to FROM-clause entry for table "unidades 
Sql :: fill a column in database with a value 
Sql :: installing mysql on fedora 
Sql :: mysql bidirectional composite primary key 
Sql :: oracle export trigger ddl 
Sql :: mysql remove definers 
Sql :: how to check nls timestamp format in oracle 
Sql :: update substring in mysql 
Sql :: sql server list user permissions 
Sql :: oracle list dates between 
Sql :: search query in mysql 
Sql :: list columns in table postgres 
Sql :: the package java.sql is not accessible 
Sql :: mysql select utc time in eastern time 
Sql :: sqlite version check 
Sql :: oracle create program if no exists 
Sql :: oracle sql timestamp 
Sql :: mysql connection string 
Sql :: mysql remove user privileges 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =