Created
April 9, 2014 14:45
-
-
Save fljdin/fb67cb9834f23b96040b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alter system set undo_tablespace = 'UNDOTBS2' scope=both; | |
drop tablespace undotbs1 including contents and datafiles; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create undo tablespace UNDOTBS2 datafile | |
'+FLASH' size 5G autoextend on, '+FLASH' size 5G autoextend on, | |
'+FLASH' size 5G autoextend on, '+FLASH' size 5G autoextend on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.name,b.status , d.username , d.sid , d.serial# | |
FROM v$rollname a,v$rollstat b, v$transaction c , v$session d | |
WHERE a.usn = b.usn | |
AND a.usn = c.xidusn | |
AND c.ses_addr = d.saddr | |
AND a.name IN ( | |
SELECT segment_name | |
FROM dba_segments | |
WHERE tablespace_name = 'UNDOTBS1' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment