Oracle Current User SQL

Source: Internet
Author: User

Select Sesion.sid,
sesion.serial#,
Sesion.username,
SESION.SQL_ID,
Sesion.sql_child_number,
Optimizer_mode,
Hash_value,
Address
Sql_text
From V$sqlarea Sqlarea, v$session sesion
where Sesion.sql_hash_value = Sqlarea.hash_value
and sesion.sql_address = sqlarea.address
And sesion.username is not null;

Print SQL HTML

Set Linesize 1000
Set Trimspool on
Set term off verify off feedback off pagesize 999
Set markup HTML on ENTMAP in spool on
Set echo off
spool/tmp/html1.html Replace
SELECT * FROM table;
Spool off
Set markup HTML off
Set echo on

-------------------

avast:c63088777h1200a0413-azhfez79

Oracle Current User SQL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.