Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle get running queries

SELECT s.SID,
       s.USERNAME,
       sql.OPTIMIZER_MODE,
       sql.CPU_TIME,
       sql.ELAPSED_TIME,
       sql.SQL_TEXT,
       s.SERIAL#
FROM V$SQLAREA sql,
     V$SESSION s
WHERE s.SQL_HASH_VALUE = sql.HASH_VALUE
  AND s.SQL_ADDRESS = sql.ADDRESS
  AND s.USERNAME IS NOT NULL;
Comment

PREVIOUS NEXT
Code Example
Sql :: how to generate a unique random number in mysql 
Sql :: convert varchar column to int in sql server 
Sql :: postgresql connection string c# 
Sql :: mysql show schema 
Sql :: connect mysql command line 
Sql :: alter table name sql 
Sql :: ValueError: A string literal cannot contain NUL (0x00) characters. 
Sql :: select random sql 
Sql :: install mysql on ubuntu 
Sql :: sql convert float to string 
Sql :: How can I tell how many Cores SQL Server is actually using? 
Sql :: sqlite save db 
Sql :: getdate function in postgresql 
Sql :: mysql if null 
Sql :: mysql update column to be nullable 
Sql :: return result of function in postgresql 
Sql :: how to enable mysql 5.7 root user password on linux 
Sql :: mysql collation for all languages 
Sql :: sql distinct only one column 
Sql :: sql inner join with where clause 
Sql :: declare varchar sql server 
Sql :: what is the difference between clustered and non-clustered index in sql server 
Sql :: SQL Less Than or Equal to Operator 
Sql :: oracle list proxy users 
Sql :: lack create session privilege oracle 
Sql :: q operator in oracle 
Sql :: sql with example 
Sql :: recursion in sql 
Sql :: Syntax error or access violation: 1701 Cannot truncate a table referenced in a foreign key constraint 
Sql :: postgresql procedure example 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =