update undo
This commit is contained in:
@@ -15,29 +15,4 @@ JOIN
|
|||||||
FROM dba_free_space
|
FROM dba_free_space
|
||||||
GROUP BY file_id) b
|
GROUP BY file_id) b
|
||||||
ON a.file_id = b.file_id
|
ON a.file_id = b.file_id
|
||||||
WHERE a.tablespace_name like 'UNDO%'; -- ou le nom réel de ton UNDO
|
WHERE a.tablespace_name like 'UNDO%';
|
||||||
|
|
||||||
prompt <h3>Durée de rétention UNDO : </h3>
|
|
||||||
SELECT
|
|
||||||
retention,
|
|
||||||
tuned_undoretention,
|
|
||||||
undoblks,
|
|
||||||
expiredblks,
|
|
||||||
unexpiredblks,
|
|
||||||
tuned_undoretention
|
|
||||||
FROM
|
|
||||||
v$undostat
|
|
||||||
ORDER BY
|
|
||||||
begin_time DESC FETCH FIRST 10 ROWS ONLY;
|
|
||||||
|
|
||||||
prompt <h3>Occupation de l’espace dans le UNDO par session : </h3>
|
|
||||||
SELECT
|
|
||||||
s.sid,
|
|
||||||
s.serial#,
|
|
||||||
u.name AS username,
|
|
||||||
t.used_urec,
|
|
||||||
t.used_ublk
|
|
||||||
FROM
|
|
||||||
v$transaction t
|
|
||||||
JOIN v$session s ON t.ses_addr = s.saddr
|
|
||||||
JOIN all_users u ON s.user# = u.user_id;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user