Welcome 微信登录

首页 / 数据库 / MySQL / RAC环境处理undo表空间过大的问题

RAC环境处理undo表空间过大的问题:
  1. SQL> conn /as sysdba  
  2. Connected.  
  3. SQL> select instance_number,instance_name from gv$instance;  
  4.   
  5. INSTANCE_NUMBER INSTANCE_NAME  
  6. --------------- ----------------   
  7.               1 unipsms1  
  8.               2 unipsms2  
  9.   
  10. SQL> select instance_number,instance_name from v$instance;  
  11.   
  12. INSTANCE_NUMBER INSTANCE_NAME  
  13. --------------- ----------------   
  14.               2 unipsms2  
  15.   
  16. SQL> show parameter undo_tablespace  
  17.   
  18. NAME                                 TYPE        VALUE  
  19. ------------------------------------ ----------- ------------------------------   
  20. undo_tablespace                      string      UNDOTBS2  
  21. SQL> select ts#,name from v$tablespace where name = "UNDOTBS2";  
  22.   
  23.        TS# NAME  
  24. ---------- ------------------------------   
  25.          4 UNDOTBS2  
  26. SQL> select ts#,name,BYTES/1024/1024/1024,CREATE_BYTES/1024/1024/1024 from V$DATAFILE where ts# = 4;  
  27.   
  28.        TS# NAME                                                         BYTES/1024/1024/1024 CREATE_BYTES/1024/1024/1024  
  29. ---------- ------------------------------------------------------------ -------------------- ---------------------------   
  30.          4 +DG01R10/unipsms/datafile/undotbs2.267.746473789                        7887.5791                           4  
  31. SQL> create bigfile undo tablespace UNDOTBS3 datafile "+DG01R10" size 500g autoextend on next 1g maxsize unlimited;  
  32.     
  33. 表空间已创建。  
  34. SQL> alter system set undo_tablespace=UNDOTBS3 scope=both sid="unipsms2";  
  35.     
  36. 系统已更改。  
  37. SQL> show parameter undo_tablespace;  
  38.   
  39. NAME                                 TYPE        VALUE  
  40. ------------------------------------ ----------- ------------------------------   
  41. undo_tablespace                      string      UNDOTBS3  
  42. SQL> select SEGMENT_NAME,TABLESPACE_NAME,STATUS from dba_rollback_segs where TABLESPACE_NAME = "UNDOTBS2" and status = "ONLINE";  
  43.   
  44. no rows selected  
  45. SQL> select ts#,name from v$tablespace where name = "UNDOTBS2";  
  46.   
  47.        TS# NAME  
  48. ---------- ------------------------------------------------------------   
  49.          4 UNDOTBS2  
  50.   
  51. SQL> select ts#,name,BYTES/1024/1024/1024,CREATE_BYTES/1024/1024/1024 from V$DATAFILE where ts# = 4;  
  52.   
  53.        TS# NAME                                                         BYTES/1024/1024/1024 CREATE_BYTES/1024/1024/1024  
  54. ---------- ------------------------------------------------------------ -------------------- ---------------------------   
  55.          4 +DG01R10/unipsms/datafile/undotbs2.267.746473789                        7887.5791                           4  
  56.   
  57. SQL> drop tablespace UNDOTBS2 including contents and datafiles;  
  58.   
  59. Tablespace dropped.  
  60.   
  61. SQL> select ts#,name from v$tablespace where name = "UNDOTBS2";  
  62.   
  63. no rows selected  
  64.   
  65. SQL> select ts#,name,BYTES/1024/1024/1024,CREATE_BYTES/1024/1024/1024 from V$DATAFILE where ts# = 4;  
  66.   
  67. no rows selected  
Oracle 11g 中 Kill session 心得Oracle logminer 使用总结相关资讯      oracle数据库教程 
  • Oracle raw数据类型介绍  (01/29/2013 10:05:53)
  • 监听器注册与ORA-12514 错误分析  (11/13/2012 14:30:08)
  • Oracle SQL的cursor理解  (11/13/2012 14:16:17)
  • Oracle 如何强制刷新Buffer Cache  (01/29/2013 10:02:46)
  • dblink致Oracle库的SCN变成两库的  (11/13/2012 14:24:41)
  • Linux操作系统下完全删除Oracle数  (11/13/2012 08:25:52)
本文评论 查看全部评论 (0)
表情: 姓名: 字数