sql_text.sql

来自「oracle dba 常用的管理脚本, 覆盖日常的系统管理.」· SQL 代码 · 共 21 行

SQL
21
字号
--* File Name    : SQL_Text.sql
--* Author       : DR Timothy S Hall
--* Description  : Displays the SQL statement held at the specified address.
--* Comments     : The address can be found using v$session or Top_SQL.sql.
--* Requirements : Access to the V$ views.
--* Call Syntax  : @SQL_Text (address)
--* Last Modified: 15/07/2000
SET LINESIZE 500
SET PAGESIZE 1000
SET FEEDBACK OFF
SET VERIFY OFF

SELECT a.sql_text "SQL Text"
FROM   v$sqltext a
WHERE  a.address = Upper('&&1')
ORDER BY a.piece;

PROMPT
SET PAGESIZE 14
SET FEEDBACK ON

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?