Search
 
SCRIPT & CODE EXAMPLE
 

SQL

show last sql executed in oracle

  SELECT DISTINCT
         vs.sql_text,
         vs.sharable_mem,
         vs.persistent_mem,
         vs.runtime_mem,
         vs.sorts,
         vs.executions,
         vs.parse_calls,
         vs.module,
         vs.buffer_gets,
         vs.disk_reads,
         vs.version_count,
         vs.users_opening,
         vs.loads,
         TO_CHAR (TO_DATE (vs.first_load_time, 'YYYY-MM-DD/HH24:MI:SS'),
                  'MM/DD  HH24:MI:SS')    first_load_time,
         RAWTOHEX (vs.address)            address,
         vs.hash_value                    hash_value,
         rows_processed,
         vs.command_type,
         vs.parsing_user_id,
         OPTIMIZER_MODE,
         au.USERNAME                      parseuser
    FROM v$sqlarea vs, all_users au
   WHERE     (parsing_user_id != 0)
         AND (au.user_id(+) = vs.parsing_user_id)
         AND (executions >= 1)
ORDER BY buffer_gets / executions DESC
Comment

PREVIOUS NEXT
Code Example
Sql :: drop table oracle 
Sql :: windows could not start the sql server on local computer 
Sql :: sql server get number of working days in a month 
Sql :: mysql multiply 
Sql :: mariadb check constraint example? 
Sql :: database passwords from dbeaver 
Sql :: PG::ForeignKeyViolation: ERROR: update or delete on table violates foreign key constraint 
Sql :: mysql shell set time_zone 
Sql :: HAS VALUE CHECK IN SQL 
Sql :: Write an SQL query to determine the 5th highest salary without using TOP or limit method. 
Sql :: group by 
Sql :: last mysql 
Sql :: how to output a different column name in mysql 
Sql :: how to insert multiple rows in mysql using laravel 
Sql :: sql output parameters 
Sql :: CREATE table schema using select 
Sql :: postgres where 
Sql :: merge in sql 
Sql :: oracle alter table 
Sql :: is not null sql 
Sql :: sql query to linq converter online 
Sql :: install mysql ubuntu 20.10 
Sql :: how to use 3 fields as primary key in sql tables? 
Sql :: how to select only first 3 characters in sql 
Sql :: show blank in column if condition not matches in join mysql 
Sql :: consulta alias con inner join 
Sql :: mysql find char in string 
Sql :: trigger value from maltiple table to single table mysql 
Sql :: what is the use of @JoinColumn(name="ID", referencedColumnName = "ID") 
Sql :: Search In the Data using ObjectName 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =