William Robertson
Member³
I can't work out what the pattern is, but I've just defined the following as a new tab in my Session browser window (Sessions > Define Session Queries > Details tab):
When I view the tab in the session window the first column is not displayed. I tried using various different names, changing the column order and adding dummy columns around it, but nothing works. Can anyone else reproduce this or is it just me?
Another example:
This seems to be the only way to display sql_fulltext as "SQL text". Without the dummy column it displays nothing, and "SELECT *" skips the column contents and shifts all of the headings by one place.
(PL/SQL Developer 8.0.3.1510, Oracle 10.2.0.4 via 11g client, XP Pro 5.1 SP3).
Code:
SELECT ash.started
, ash.elapsed
, s.sql_fulltext
, ash.sql_id
, ash.sql_child_number
, ash.sql_plan_hash_value
FROM ( SELECT MIN(sample_time) AS started
, CAST
( MAX(sample_time) - MIN(sample_time)
AS INTERVAL DAY(0) TO SECOND(0) ) AS elapsed
, sql_id
, sql_child_number
, sql_plan_hash_value
FROM v$active_session_history
WHERE session_id = :sid
AND session_serial# = :serial#
GROUP BY sql_id, sql_child_number, sql_plan_hash_value ) ash
JOIN v$sqlstats s
ON s.sql_id = ash.sql_id AND s.plan_hash_value = ash.sql_plan_hash_value
ORDER BY 1 DESC
When I view the tab in the session window the first column is not displayed. I tried using various different names, changing the column order and adding dummy columns around it, but nothing works. Can anyone else reproduce this or is it just me?
Another example:
Code:
SELECT sql_fulltext
, 'there seems to be a bug here' AS "SQL text"
FROM v$sqlstats s
WHERE s.sql_id = :sql_id
This seems to be the only way to display sql_fulltext as "SQL text". Without the dummy column it displays nothing, and "SELECT *" skips the column contents and shifts all of the headings by one place.
(PL/SQL Developer 8.0.3.1510, Oracle 10.2.0.4 via 11g client, XP Pro 5.1 SP3).