In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
| SELECT 'USERNAME:' | s.username | | chr (10) | | 'SCHEMA:' | | s.schemaname | | chr (10) | |' OSUSER:' | | s.osuser | | chr (10) | | 'SPID:' | | p.spid | | chr (10) | | SID:' | s.sid | | chr (10) | |' SERIAL#:' | s.serial# | | chr (10) | | 'KILL STRING:' | |'| | s.sid |'| '| | s.serial# | |' | | chr (10) | | 'MACHINE:' | | s.machine | | chr (10) | | 'TYPE:' | | s.type | | chr (10) | |' SQL_ID:' | | q.sql_id | | chr (10) | | 'SQL_TEXT:' | | q.sql_text FROM v$session 's, v$process p | V$sql Q WHERE s.paddr = p.addr AND p.spid ='& PID_FROM_OS' AND s.sql_id = q.sql_id (+) 'USERNAME:' | | S.USERNAME | | CHR (10) | |' SCHEMA:' | | S.SCHEMANAME | | CHR (10) | | 'OSUSER:' | | Smuri- -- USERNAME: RPTSCHEMA:RPTOSUSER:zedSPID:54657092SID:1854SERIAL#:35907KILL STRING: '1854 camera 35907 machine: aixTYPE:USERSQL_ID:4wv8ms79s6m37SQL_TEXT: SELECT' 073000' AS TIMEKEY FROM DUAL'USERNAME:' | | S.USERNAME | | CHR (10) | | 'SCHEMA:' | | S.SCHEMANAME | | CHR (10) | |' OSUSER:' | | S |
SQL > select * from table (dbms_xplan.display_cursor (('& sql_id')
Enter value for sql_id: 4wv8ms79s6m37
Old 1: select * from table (dbms_xplan.display_cursor (('& sql_id')
New 1: select * from table (dbms_xplan.display_cursor (('4wv8ms79s6m37')
PLAN_TABLE_OUTPUT
SQL_ID 4wv8ms79s6m37, child number 0
-
SELECT '073000' AS TIMEKEY FROM DUAL
Plan hash value: 1546270724
-
| | Id | Operation | Name | Rows | Cost (% CPU) | Time |
-
| | 0 | SELECT STATEMENT | 2 (100) | |
| | 1 | FAST DUAL | | 1 | 2 (0) | 00:00:01 |
PLAN_TABLE_OUTPUT
13 rows selected.
It can also be done in another way
SQL > conn / as sysdba
Connected.
SQL > oradebug setospid 54657092
Oracle pid: 45, Unix process pid: 54657092, p_w_picpath: oracle@aix (TNS V1-V3)
SQL > oradebug current_sql
SELECT '235959' AS TIMEKEY FROM DUAL
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.