Tablespace resize

Using a Bigfile tablespace (maxsize 250G) in Oracle 10g on Solaris.
In bigfile tablespace I cannot add a second datafile like normal tablespace.
Want to know when the tablespace reaches the maxsize 250G, what options do I have?
Can I increase the maxsize ?
If I re-size the datafile will it tamper the data in any way?
Sid
Edited by: [email protected] on Sep 4, 2010 7:59 PM

[email protected] wrote:
Hi Teymur,
You mean to say that I have only the option to resize everytime the tablespace reaches the upper boundary.
Its a index tablespace, does resizing tamper in any way the index structure or data ?
Why isn't the maxsize pushed up when I resize the datafile ?Pls, see:
SQL> create bigfile tablespace big_ts datafile '/oradata/db1/big_ts_1.dbf' size 10 m autoextend on next 1m maxsize 20m;
Tablespace created.
SQL> create table big_ts_obj tablespace big_ts as select * from dba_objects;
Table created.
SQL> insert into big_ts_obj select * from big_ts_obj;
69489 rows created.
SQL> /
insert into big_ts_obj select * from big_ts_obj
ERROR at line 1:
ORA-01653: unable to extend table SYS.BIG_TS_OBJ by 128 in tablespace BIG_TS
SQL> alter database datafile '/oradata/db1/big_ts_1.dbf' autoextend on next 1m maxsize unlimited
  2  /
Database altered.
SQL> insert into big_ts_obj select * from big_ts_obj;
138978 rows created.
SQL> /
277956 rows created.
SQL> If you do not want to change MAXSIE everytime, then set it to UNLIMITED.
There is no any relationship between size of datafiles (or resizing datafiles) and INDEX structure.

Similar Messages

  • Tablespace resizing taking too much time

    This is my database setup:
    3 node rac on 32 bit linux (rh 4)
    2 SANs (3gb + 2 gb)
    current datafiles: 3.2T out of 5.0T (autoextend on)
    before adding the second SAN, the resizing tablespace isn't bad (13s/gb)
    now it is taking way too long:
    this is how I do to resize the tablespace manually to test how long it takes:
    alter tablespace my_tbs resize 3173562M; //from 3172538M (adding another 1gb)
    And it took 33 minutes to complete.
    Could someone tell me what is wrong? is it because the new SAN i put in or it is because now the tablespace is too big?
    ps:: when i check the instance performing, the "SMON" user is like 97% of db activities
    Thanks,
    Chau
    Message was edited by:
    user626162
    Message was edited by:
    user626162

    when you set the tablespace to (autoextend on), what exactly oracle does in the background when it needs to extend the tablespace? does it do the "alter tablespace tbs_name resize"?
    Thanks,
    Chau

  • Temporary tablespace resizing in physical standby

    Hi all,
    We have a oracle 9.2.0.6 on Sun soalris.IN Our standby db we are facing one problem is related to temporary tablespaces.
    ORA-1652: unable to extend temp segment by 128 in tablespace TEMPso how to resize the datafile we are already having a two dafiles realted to temp tablespaces
    Edited by: user00726 on Jun 2, 2009 10:25 PM

    Hi Kamran and Anand,
    Both the command s are working
    ALTER DATABASE ADD TEMPFILE 'tempfile_name.dbf' SIZE 5GByesterday only i have added one of the datafile on the same standby database
    Wed Jun  3 01:33:53 2009
    ORA-1652: unable to extend temp segment by 128 in tablespace                 TEM
    P
    Wed Jun  3 01:33:54 2009
    ORA-1652: unable to extend temp segment by 128 in tablespace                 TEM
    P
    Wed Jun  3 11:23:15 2009
    ALTER DATABASE TEMPFILE '/bkp/oradata1/temp02.dbf' resize 4024 M
    Wed Jun  3 11:24:00 2009
    Completed: ALTER DATABASE TEMPFILE '/bkp/oradata1/temp02.dbf'
    Wed Jun  3 12:53:26 2009
    ORA-1652: unable to extend temp segment by 128 in tablespace                 TEM
    P
    Wed Jun  3 12:53:26 2009
    ORA-1652: unable to extend temp segment by 128 in tablespace                 TEMand
    today also i have resized the temp files
    ALTER DATABASE TEMPFILE 'tempfile_name.dbf' RESIZE 5GB

  • Tablespace resize Error

    Hi all
    when i am trying to increase my undo tablespace Size
    i go the Following Error?
    i am doing this operation from Toad.
    Having Enough Size on Disk,
    this is the Problem on Production Database Server,
    using Oracle 10g Rel 1002000100 on HP-Unix
    SQL> ALTER DATABASE DATAFILE '/app/oracle/product/oradata/prod/undotbs02.dbf'
    RESIZE 20480M
    ALTER DATABASE DATAFILE '/app/oracle/product/oradata/prod/undotbs02.dbf'
    RESIZE 20480M
    Error at line 2
    ORA-01237: cannot extend datafile 12
    ORA-01110: data file 12: '/app/oracle/product/oradata/prod/undotbs02.dbf'
    ORA-19502: write error on file "/app/oracle/product/oradata/prod/undotbs02.dbf", blockno 2534784 (blocksize=8192)
    ORA-27072: File I/O error
    Additional information: 4
    Additional information: 2534784
    Additional information: 655360
    is this Serious Problem?
    is the Error Related to os or Database
    please Help me out
    Many thanks

    yeah,
    they manged Some Space by Deleteing Few Spaces
    Can We create the tablespaces in other Mount points
    like in /backup where good space is remained
    i wanted to create the Undo table space in /backup
    and Space issue came coz the Undo is reaching highly,so far my Undo reached 19GB,
    even after the Immediate Shutdown & Startup the Size is not Relased in Undo,
    it is Remain 19GB,
    many thanks for ur Kind information
    oracle@prod: /app/oracle # df -k
    /app (/dev/vg01/lvapp ) : 62309972 total allocated K
    7816220 free allocated Kb
    54493752 used allocated Kb
    87 % allocation used
    /backup (/dev/vgbackup/lvbackup) : 8748714 total allocated K
    5296424 free allocated Kb
    3452290 used allocated Kb
    39 % allocation used
    /home (/dev/vg00/lvol5 ) : 24576 total allocated K
    16576 free allocated Kb
    8000 used allocated Kb
    32 % allocation used
    /opt (/dev/vg00/lvol6 ) : 1717640 total allocated K
    344208 free allocated Kb
    1373432 used allocated Kb
    79 % allocation used
    /tmp (/dev/vg00/lvol4 ) : 814256 total allocated K
    730424 free allocated Kb
    83832 used allocated Kb
    10 % allocation used
    /usr (/dev/vg00/lvol7 ) : 2906912 total allocated K
    1200720 free allocated Kb
    1706192 used allocated Kb
    58 % allocation used
    /var (/dev/vg00/lvol8 ) : 4681752 total allocated K
    3655096 free allocated Kb
    1026656 used allocated Kb
    21 % allocation used
    /stand (/dev/vg00/lvol1 ) : 269032 total allocated K
    189472 free allocated Kb
    79560 used allocated Kb
    29 % allocation used
    / (/dev/vg00/lvol3 ) : 204560 total allocated K
    43824 free allocated Kb
    160736 used allocated Kb
    78 % allocation used
    oracle@prod: /app/oracle #
    thanks alot

  • Undo tablespace resize error

    Total space occupied by UNDO tablespace is : 3G and used space for UNDO tablespace is only 512M , so approx 2.5G space is free. But when i tried to resize the undo tablespace to 1G then its showing the below error :
    ORA-03297: file contains used data beyond requested RESIZE value
    but the used data size is 512M only.
    Kindly help me to resize the undo tablespace to 1G.
    Database : Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bi
    Kindly suggest.
    Advance thanks !!

    you can't resize undo tablespace. If you are trying to reduce the size.
    then add a unod tablespace may like undotbs2 then set undotbs2 as default to your database. then drop the prvious undo tablespace
    Anil Malkai

  • SYSAUX tablespace resize/shrink

    Hi All,
    I'm using 11g SE on Linux, and SYSAUX tablespace has grown too large (32Gb). I've reclaimed a space and the question is Is there any chance to resize this tablespace back to small size (let's say to 5Gb)?
    I'll appreciate any help.
    Thank you.

    Hi,
    Here it is an output. I've removed some stuff to fit the message limit.
    ~~~~~~~~~~~~~~~
    AWR INFO Report
    ~~~~~~~~~~~~~~~
    Report generated at 10:36:09 on May 29, 2013 ( Wednesday ) in Timezone +01:00                                
    Warning: Non Default AWR Setting!                                                                            
    Snapshot interval is 60 minutes and Retention is 8 days                                                      
           DB_ID DB_NAME   HOST_PLATFORM                             INST STARTUP_TIME      LAST_ASH_SID PAR     
    * 182010396  PROD      db01p2.db.mydomain.com - Linux x86 6     2 14:54:16 (03/26)             0 YES     
                           4-bit                                                                                 
    (I) AWR Snapshots Information
    (1a) SYSAUX usage - Schema breakdown (dba_segments)
    |                                                                                                            
    | Total SYSAUX size                      1,790.6 MB ( 5% of 32,768.0 MB MAX with AUTOEXTEND ON )             
    |                                                                                                            
    | Schema  SYS          occupies          1,245.0 MB (  69.5% )                                               
    | Schema  XDB          occupies            157.6 MB (   8.8% )                                               
    | Schema  PERFSTAT     occupies            151.8 MB (   8.5% )                                               
    | Schema  APEX_030200  occupies             77.4 MB (   4.3% )                                               
    | Schema  MDSYS        occupies             65.8 MB (   3.7% )                                               
    | Schema  SYSMAN       occupies             45.3 MB (   2.5% )                                               
    | Schema  SYSTEM       occupies             13.7 MB (   0.8% )                                               
    | Schema  ORDDATA      occupies             13.6 MB (   0.8% )                                               
    | Schema  OLAPSYS      occupies              5.1 MB (   0.3% )                                               
    | Schema  DBSNMP       occupies              4.1 MB (   0.2% )                                               
    | Schema  EXFSYS       occupies              3.6 MB (   0.2% )                                               
    | Schema  CTXSYS       occupies              3.6 MB (   0.2% )                                               
    | Schema  WMSYS        occupies              3.5 MB (   0.2% )                                               
    | Schema  ORDSYS       occupies              0.4 MB (   0.0% )                                               
    |                                                                                                            
    (1b) SYSAUX occupants space usage (v$sysaux_occupants)                                                       
    |                                                                                                            
    | Occupant Name        Schema Name               Space Usage                                                 
    | -------------------- -------------------- ----------------                                                 
    | SM/AWR               SYS                          888.0 MB                                                 
    | SM/OPTSTAT           SYS                          266.6 MB                                                 
    | XDB                  XDB                          157.6 MB                                                 
    | STATSPACK            PERFSTAT                     151.8 MB                                                 
    | SDO                  MDSYS                         65.8 MB                                                 
    | EM                   SYSMAN                        45.3 MB                                                 
    | AO                   SYS                           36.3 MB                                                 
    | XSOQHIST             SYS                           36.3 MB                                                 
    | ORDIM/ORDDATA        ORDDATA                       13.6 MB                                                 
    | LOGMNR               SYSTEM                        12.3 MB                                                 
    | SM/ADVISOR           SYS                           11.3 MB                                                 
    | JOB_SCHEDULER        SYS                            9.9 MB                                                 
    | SM/OTHER             SYS                            7.1 MB                                                 
    | XSAMD                OLAPSYS                        5.1 MB                                                 
    | EM_MONITORING_USER   DBSNMP                         4.1 MB                                                 
    | EXPRESSION_FILTER    EXFSYS                         3.6 MB                                                 
    | TEXT                 CTXSYS                         3.6 MB                                                 
    | WM                   WMSYS                          3.5 MB                                                 
    | SMON_SCN_TIME        SYS                            3.3 MB                                                 
    | SQL_MANAGEMENT_BASE  SYS                            1.7 MB                                                 
    | PL/SCOPE             SYS                            1.6 MB                                                 
    | LOGSTDBY             SYSTEM                         1.4 MB                                                 
    | STREAMS              SYS                            1.0 MB                                                 
    | ORDIM                ORDSYS                         0.4 MB                                                 
    | AUTO_TASK            SYS                            0.3 MB                                                 
    | AUDIT_TABLES         SYS                            0.0 MB                                                 
    | ORDIM/ORDPLUGINS     ORDPLUGINS                     0.0 MB                                                 
    | ORDIM/SI_INFORMTN_SC SI_INFORMTN_SCHEMA             0.0 MB                                                 
    | TSM                  TSMSYS                         0.0 MB                                                 
    | ULTRASEARCH          WKSYS                          0.0 MB                                                 
    | ULTRASEARCH_DEMO_USE WK_TEST                        0.0 MB                                                 
    |                                                                                                            
    | Others (Unaccounted space)                         59.4 MB                                                 
    |                                                                                                            
    (1c) SYSAUX usage - Unregistered Schemas
    | This section displays schemas that are not registered                                                      
    | in V$SYSAUX_OCCUPANTS                                                                                      
    |                                                                                                            
    | Schema  APEX_030200  occupies             77.4 MB                                                          
    |                                                                                                            
    | Total space                               77.4 MB                                                          
    |                                                                                                            
    (1d) SYSAUX usage - Unaccounted space in registered schemas
    |
    | This section displays unaccounted space in the registered
    | schemas of V$SYSAUX_OCCUPANTS.
    |                                                                                                            
    | Unaccounted space in SYS/SYSTEM          -18.1 MB                                                          
    |                                                                                                            
    | Total space                              -18.1 MB                                                          
    |                                                                                                            
    (2) Size estimates for AWR snapshots                                                                         
    |                                                                                                            
    | Estimates based on 60 mins snapshot INTERVAL:                                                              
    |    AWR size/day                           53.0 MB (2,262 K/snap * 24 snaps/day)                            
    |    AWR size/wk                           371.1 MB (size_per_day * 7) per instance                          
    |    AWR size/wk                         1,484.4 MB (size_per_day * 7) per database                          
    |                                                                                                            
    | Estimates based on 12 snaps in past 24 hours:                                                              
    |    AWR size/day                           26.5 MB (2,262 K/snap and 12 snaps in past 24 hours)             
    |    AWR size/wk                           185.6 MB (size_per_day * 7) per instance                          
    |    AWR size/wk                           742.2 MB (size_per_day * 7) per database                          
    |                                                                                                            
    (3a) Space usage by AWR components (per database)
    COMPONENT        MB  % AWR  KB_PER_SNAP MB_PER_DAY MB_PER_WEEK TABLE% : INDEX%                               
    FIXED         860.8   96.9        2,193       25.7       179.9    55% : 45%                                  
    SPACE          18.1    2.0           46        0.5         3.8    59% : 41%                                  
    EVENTS          3.5    0.4            9        0.1         0.7    50% : 50%                                  
    SQL             2.9    0.3            7        0.1         0.6    37% : 63%                                  
    ASH             1.5    0.2            4        0.0         0.3    50% : 50%                                  
    RAC             0.6    0.1            2        0.0         0.1    50% : 50%                                  
    SQLTEXT         0.1    0.0            0        0.0         0.0    50% : 50%                                  
    SQLPLAN         0.1    0.0            0        0.0         0.0    50% : 50%                                  
    SQLBIND         0.1    0.0            0        0.0         0.0    50% : 50%                                  
    (3b) Space usage within AWR Components (> 500K)
    COMPONENT        MB SEGMENT_NAME - % SPACE_USED                                           SEGMENT_TYPE       
    FIXED         336.0 WRH$_SYSMETRIC_HISTORY                                        -  12%  TABLE              
    FIXED         296.0 WRH$_SYSMETRIC_HISTORY_INDEX                                  -  18%  INDEX              
    FIXED          88.0 WRH$_SYSMETRIC_SUMMARY                                        -  10%  TABLE              
    FIXED          42.0 WRH$_SYSMETRIC_SUMMARY_INDEX                                  -  18%  INDEX              
    FIXED          24.0 WRH$_WAITCLASSMETRIC_HISTORY                                  -  21%  TABLE              
    FIXED          21.0 WRH$_WAITCLASSMETRIC_HIST_IND                                 -  17%  INDEX              
    FIXED          16.0 WRM$_SNAPSHOT_DETAILS_INDEX                                   -  80%  INDEX              
    FIXED          10.0 WRM$_SNAPSHOT_DETAILS                                         -  92%  TABLE              
    SPACE           0.9 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12506                     -  82%  TABLE PARTITION    
    SPACE           0.9 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12530                     -  84%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12458                     -  89%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12650                     -  88%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12626                     -  87%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12602                     -  86%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12578                     -  87%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12482                     -  89%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12554                     -  89%  TABLE PARTITION    
    SPACE           0.7 WRH$_SEG_STAT_OBJ                                             -  46%  TABLE              
    SPACE           0.6 WRH$_SEG_STAT_OBJ_INDEX                                       -  22%  INDEX              
    SPACE           0.6 WRH$_SEG_STAT_OBJ_PK                                          -  26%  INDEX              
    SPACE           0.5 WRH$_SEG_STAT_PK.WRH$_SEG_ST_182010396_12554                  -  63%  INDEX PARTITION    
    SPACE           0.5 WRH$_SEG_STAT_PK.WRH$_SEG_ST_182010396_12626                  -  51%  INDEX PARTITION    
    (4) Space usage by non-AWR components (> 500K)
    COMPONENT        MB SEGMENT_NAME                                                          SEGMENT_TYPE       
    NON_AWR       104.0 SYS.I_WRI$_OPTSTAT_H_OBJ#_ICOL#_ST                                    INDEX              
    NON_AWR        80.0 SYS.WRI$_OPTSTAT_HISTGRM_HISTORY                                      TABLE              
    NON_AWR        53.2 XDB.SYS_LOB0000057465C00025$$                                         LOBSEGMENT         
    NON_AWR        50.0 SYS.I_WRI$_OPTSTAT_H_ST                                               INDEX              
    NON_AWR        18.0 MDSYS.SYS_LOB0000064008C00006$$                                       LOBSEGMENT         
    NON_AWR        16.1 SYS.SYS_LOB0000065858C00004$$                                         LOBSEGMENT         
    NON_AWR        13.0 SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY                                     TABLE              
    NON_AWR         9.0 SYS.I_WRI$_OPTSTAT_HH_OBJ_ICOL_ST                                     INDEX              
    NON_AWR         8.0 XDB.XDB$RESOURCE                                                      TABLE              
    NON_AWR         7.2 SYS.SYS_LOB0000065843C00004$$                                         LOBSEGMENT         
    NON_AWR         7.0 MDSYS.SDO_CS_SRS                                                      TABLE              
    NON_AWR         5.0 SYS.SCHEDULER$_EVENT_LOG                                              TABLE              
    NON_AWR         5.0 APEX_030200.WWV_FLOW_DICTIONARY$CAPED                                 INDEX              
    NON_AWR         5.0 PERFSTAT.STATS$SQL_PLAN                                               TABLE              
    NON_AWR         5.0 PERFSTAT.STATS$SQL_PLAN_USAGE                                         TABLE              
    NON_AWR         5.0 PERFSTAT.STATS$SQLTEXT                                                TABLE              
    NON_AWR         5.0 APEX_030200.WWV_FLOW_PAGE_PLUGS                                       TABLE              
    NON_AWR         5.0 APEX_030200.WWV_FLOW_STEP_ITEMS                                       TABLE              
    NON_AWR         4.2 SYS.SYS_LOB0000065848C00004$$                                         LOBSEGMENT         
    NON_AWR         4.0 APEX_030200.WWV_FLOW_DICTIONARY$                                      TABLE              
    NON_AWR         4.0 SYSTEM.SYS_LOB0000001147C00009$$                                      LOBSEGMENT         
    NON_AWR         4.0 SYS.SCHEDULER$_INSTANCE_PK                                            INDEX              
    NON_AWR         4.0 SYS.I_WRI$_OPTSTAT_HH_ST                                              INDEX              
    NON_AWR         3.2 SYS.SYS_LOB0000065838C00004$$                                         LOBSEGMENT         
    NON_AWR         3.0 XDB.XDB$H_INDEX                                                       TABLE              
    (5a) AWR snapshots - last 50
    Total snapshots in DB 182010396 Instance 3 = 201                                                             
    Total snapshots in DB 182010396 Instance 2 = 201                                                             
          DBID    SNAP_ID  INST FLUSH_ELAPSED        ENDTM             STARTUP_TIME      STATUS ERRCNT           
    182010396      12678     2 +00000 00:00:00.1    08:00:41 (05/29)  14:54:16 (03/26)       0      0           
    182010396      12678     3 +00000 00:00:00.5    08:00:41 (05/29)  14:56:33 (03/26)       0      0           
    182010396      12679     2 +00000 00:00:00.1    09:00:59 (05/29)  14:54:16 (03/26)       0      0           
    182010396      12679     3 +00000 00:00:00.1    09:00:59 (05/29)  14:56:33 (03/26)       0      0           
    182010396      12680     2 +00000 00:00:00.9    10:00:10 (05/29)  14:54:16 (03/26)       0      0           
    182010396      12680     3 +00000 00:00:00.1    10:00:10 (05/29)  14:56:33 (03/26)       0      0           
    (5b) AWR snapshots with errors or invalid
    no rows selected
    (5c) AWR snapshots -- OLDEST Non-Baselined snapshots
          DBID  INST    SNAP_ID ENDTM             STATUS ERROR_COUNT                                             
    182010396     2      12480 02:00:25 (05/21)       0           0                                             
    (6) AWR Control Settings - interval, retention
           DBID  LSNAPID LSPLITID LSNAPTIME      LPURGETIME      FLAG INTERVAL          RETENTION         VRSN   
      182010396    12680    12671 05/29 10:00:11 05/29 01:13:59     2 +00000 01:00:00.0 +00008 00:00:00.0    5   
    (7a) AWR Contents - row counts for each snapshots
       SNAP_ID  INST        ASH        SQL      SQBND      FILES      SEGST     SYSEVT                           
         12656     2          0          0          0          0        104          0                           
         12679     2          0          0          0          0        107          0                           
       SNAP_ID  INST        ASH        SQL      SQBND      FILES      SEGST     SYSEVT                           
         12679     3          0          0          0          0        113          0                           
         12680     2          0          0          0          0        110          0                           
         12680     3          0          0          0          0        109          0                           
    (7b) AWR Contents - average row counts per snapshot
    SNAP_COUNT  INST        ASH    SQLSTAT    SQLBIND      FILES    SEGSTAT   SYSEVENT                           
           201     3          0          0          0          0     108.27          0                           
           201     2          0          0          0          0     109.23          0                           
    (7c) AWR total item counts - names, text, plans
       SQLTEXT    SQLPLAN   SQLBMETA     SEGOBJ   DATAFILE   TEMPFILE                                            
             0          0          0       2784          0          0                                            
    (II) Advisor Framework Info
    (1) Advisor Tasks - Last 50
    OWNER/ADVISOR  TASK_ID/NAME                     CREATED          EXE_DURATN EXE_CREATN HOW_C STATUS          
    SYS/SQL Tuning 1/SYS_AUTO_SQL_TUNING_TASK       09:52:13 (09/17)                       AUTO  INITIAL         
    SYS/Segment Ad 10161/SYS_AUTO_SPCADV_5215001005 00:15:52 (05/10)      2,925      2,925 CMD   COMPLETED       
                   2013                                                                                          
    SYS/Segment Ad 10162/SYS_AUTO_SPCADV_3804011005 01:04:38 (05/10)         50         50 CMD   COMPLETED       
    (2) Advisor Task - Oldest 5
    OWNER/ADVISOR  TASK_ID/NAME                     CREATED          EXE_DURATN EXE_CREATN HOW_C STATUS          
    SYS/Segment Ad 9980/SYS_AUTO_SPCADV_04002329042 23:00:04 (04/29)        426        427 CMD   COMPLETED       
                   013                                                                                           
    SYS/Segment Ad 9990/SYS_AUTO_SPCADV_16002330042 23:00:16 (04/30)      5,519      5,519 CMD   COMPLETED       
                   013                                                                                           
    SYS/Segment Ad 9991/SYS_AUTO_SPCADV_16320001052 00:32:17 (05/01)      2,831      2,831 CMD   COMPLETED       
                   013                                                                                           
    SYS/Segment Ad 9992/SYS_AUTO_SPCADV_29190101052 01:19:29 (05/01)         80         80 CMD   COMPLETED       
                   013                                                                                           
    SYS/Segment Ad 10000/SYS_AUTO_SPCADV_1300230105 23:00:13 (05/01)        445        445 CMD   COMPLETED       
                   2013                                                                                          
    (3) Advisor Tasks With Errors - Last 50
    OWNER/ADVISOR  TASK_ID/NAME                     CREATED          EXE_DURATN EXE_CREATN HOW_C STATUS          
    TASK_DESC                                                                                                    
    ERROR_MSG                                                                                                    
    SYS/SQL Tuning 1/SYS_AUTO_SQL_TUNING_TASK       09:52:13 (09/17)                       AUTO  INITIAL         
    Description: Automatic SQL Tuning Task                                                                       
    Error Msg  :                                                                                                 
    (III) ASH Usage Info
    (1a) ASH histogram (past 3 days)
    (1b) ASH histogram (past 1 day)
    (2a) ASH details (past 3 days)
    (2b) ASH details (past 1 day)
    (2c) ASH sessions (Fg Vs Bg) (past 1 day across all instances in RAC)
    Foreground %                                                                                                 
    Background %                                                                                                 
    MMNL %                                                                                                       
    End of Report

  • System Tablespace Resize --Crusial thing happened

    Hi
    When I disconnected permission on a temporary tablespace
    to a user, I forget his permission on the system tablespace.
    One of his query consumed more than 1 gb size in system
    tablespace.
    Now I am getting ORA-03297 When tried to resize.
    Suggestions are highly appriciated.
    Thanks
    giri

    Narayanan V giri , this script is going to help you
    for checking locks in the database and its sessions.
    Try to kill them before resize.
    col object_name format a20
    col username format a10
    col oracle_username format a10
    col process format a15
    col owner format a10
    prompt ****************************************************************
    prompt *** Object Lock Contention ***
    prompt ****************************************************************
    set pages 0
    set linesize 150
    select 'Date : '||to_char(sysdate,'DD/MM/YYYY')||' Time : '||to_char(sysdate,'HH:MI:SS') from dual;
    select 'Database Name : '||name from sys.v_$database;
    set pages 1000
    SELECT DISTINCT
    O.OBJECT_NAME,
    SH.USERNAME,
    SH.SID,
    SW.USERNAME,
    SW.SID,
    DECODE(LH.LMODE,
    1, 'null',
    2, 'row share',
    3, 'row exclusive',
    4, 'share',
    5, 'share row exclusive',
    6, 'exclusive')
    FROM DBA_OBJECTS O,
    V$SESSION SW,
    V$LOCK LW,
    V$SESSION SH,
    V$LOCK LH
    WHERE LH.ID1 = O.OBJECT_ID
    AND LH.ID1 = LW.ID1
    AND SH.SID = LH.SID
    AND SW.SID = LW.SID
    AND SH.LOCKWAIT IS NULL
    AND SW.LOCKWAIT IS NOT NULL
    AND LH.TYPE = 'TM'
    AND LW.TYPE = 'TM'
    prompt Press Enter to continue ...
    pause
    prompt ************************************************************
    prompt *** Object Lock Information ***
    prompt ************************************************************
    SELECT
    A.OBJECT_NAME,
    A.OWNER,
    C.SERIAL#,
    B.OBJECT_ID,
    B.SESSION_ID,
    B.ORACLE_USERNAME,
    B.OS_USER_NAME,
    B.PROCESS,
    DECODE(B.LOCKED_MODE,
         0,'None',
    1,'Null',
         2,'Row-S (SS)',
         3,'Row-X (SX)',
         4,'Share',
         5,'S/Row-X (SSX)',
         6,'Exclusive') LMODE
    FROM DBA_OBJECTS A, V$LOCKED_OBJECT B, V$SESSION C
    WHERE A.OBJECT_ID = B.OBJECT_ID AND C.SID = B.SESSION_ID
    ORDER BY A.OWNER, A.OBJECT_NAME, C.SERIAL#
    Joel P�rez

  • TEMP tablespace resize

    A mistaken sort has caused the temp tablespace to grow to big and I need to reclaim the space. We are running Oracle 9.2 on windows 2000. I tried:
    alter database tempfile 'filename' resize 4m and got file contains user data beyond requested resize value. How can I reclaim this space?
    Thanks,
    Felicia

    You could add another tempfile to your temp tablespace, setting a max size if you don't want it to grow beyond a certain limit, then drop the overgrown tempfile. For ex.:
    1. alter tablespace temp add tempfile '...' size 500M reuse autoextend on next ... maxsize 3000M;
    2. alter database tempfile '...' drop;
    I don't think you can rename tempfiles, so if you must reclaim the old file name you'd have to reverse the order above. I'd do it during off peak hrs :)

  • Tablespace resize problem?

    Hi Oracle Experts.
    I need to know about two questions.
    1) I m using 10g Rel2 on Windows 2000 server platform. One of my tablespace was of 10Gb, I moved some large objects from this tablespace to another and tablespace used size reduced to 2 Gb, Now when i try to shrink the tablespace size from 10Gb to 4Gb, oracle could not able to reduce it and alerting me that the space above 4GB is used. Kindly suggest me what should i do to resize this tablespace.
    2) My second question is regarding Undo Management, I have setted undo retention to 20 Mins, now if i modify any record but not commit it for 40 mins, meanwhile the old image is overwritten in the undo. I know the other users start getting message 'Snap shot too old' but my question is, can i still commit that perticular transaction? if yes then how?
    I shall be greatful for your replys
    Thanks and regards
    Nadeem

    1) I m using 10g Rel2 on Windows 2000 server platform. One of my tablespace was of
    10Gb, I moved some large objects from this tablespace to another and tablespace used
    size reduced to 2 Gb, Now when i try to shrink the tablespace size from 10Gb to 4Gb,
    oracle could not able to reduce it and alerting me that the space above 4GB is used.
    Kindly suggest me what should i do to resize this tablespace.You can create a new tablespace with the size as well, 4Gb. Move all object from the first to this new.
    Then drop your old tablespace, and because you're in 10g, you can rename your new tablespace as per your old drooped tablespace.
    Don't forget to rebuild indexes of all moved tables.
    Nicolas.

  • UNDO tablespace resize/shrink.

    Hi All ,
    is it possible to shrink/resize undo tablespace.

    Hi Shobhit!
    I is correct that you're unable to set this parameter with ALTER SYSTEM. Please never use this parameter unless you are told to do so from oracle support. Maybe you're playing with your support if you set it by your self. To tune the size of your undo tablespace set the parameter undo_retention. Whit this parameter you tell your DB in seconds how long undo records should be kept within your undo tablespace. Automatic undotuning will be automatically activated if this parameter has a value greater than 0. To determine the correct size you need for your undotablespace use the following example:
    Size of UNDO needed = UNDO_RETENTION x [UNDO block Generation per sec x DB_BLOCK_SIZE] + Overhead(30xDB_BLOCK_SIZE)
    Out of these we know UNDO_RETENTION and DB_BLOCK_SIZE
    All we need is to find out “UNDO Blocks per second”
    Which can be easily fetched from v$undostat
    SQL> SELECT (SUM(undoblks))/ SUM ((end_time - begin_time) * 24*60*60) "UPS"
    2 FROM v$undostat;
    UPS
    8.11985583
    V$undostat
    stores data for every 10 mins and begin/end times are start/end time of
    those intervals. We multiplied it with 24*60*60 because the difference
    between two dates will be in days and to get to seconds, we need it to
    multiply with 24hrs*60mins*60secs
    So now we have all the values needed.
    Undo size needed = [8.12 x 2000 x 8192] + [30 x 8192] = 133283840 bytes = 127.11 MB
    Hope this helps!
    yours sincerely

  • Tablespace resizing

    HI respectable forum members
    i have a tablespace APR_DATA4 on WUDOWS server 2003 oracle 9i release 2.
    this tablespace has following datafiles with their sizes
    E:\ORACLE\ORADATA\APR1\APR_DATA4 1632mb
    E:\ORACLE\ORADATA\APR1\APR_DATA4_A.DBF 1869 mb          
    E:\ORACLE\ORADATA\APR1\APR_DATA4_B.DBF 1809 MB
    E:\ORACLE\ORADATA\APR1\APR_DATA4_C.DBF 1024 MB
    this tablespace is approximately full.
    Is it any way that i can make 2 tablespaces and convert this data in those 2 tablespaces.
    Is there any solution like this
    plz reply
    regards rehan

    Is it any way that i can make 2 tablespaces and convert this data in those 2 tablespaces.
    Is there any solution like thisCreate the tablespaces in new partition.
    Use alter table move and move objects to newly create tablespace.
    Rebuild the indexes
    drop the the old tablespaces and reclaim space.
    select 'alter table '||table_name||' MOVE TABLESPACE ;' from user_tables where tablespace_name='APR_DATA4';
    select 'alter table '||table_name||' MOVE TABLESPACE ;' from user_tables;
    [http://www.myoracleguide.com/s/Move_Table.htm]
    relocating objects into new tablespace?
    Or
    shutdown the database
    copy the data files to the new parition.
    startup mount the database.
    use
    alter database datafile '<old location of the data file>' to '<new location of the datafile';
    alter database open;

  • SQL error in ALV_GRID

    Hi friends,
    When i use
      DATA:  GRID TYPE REF TO CL_GUI_ALV_GRID.
    i  m getting the error like following
    " SQL error 1654 occurred when accessing program "Z1V10007 " part "LREF". "
    How to resolve this probelm ???
    Thanks in advance
    Ajay kumar

    Hi Ajay,
    Check the free space available in the tablespace..
    2. Check when the indexes in ur database ( all indexes.. not just that one)
    are rebuilt last time. Rebuilding the indexes at regular intervals is
    required as it may contain deleted entries. try a rebuild ( may be later )
    3. Add more space to the tablespace ( add a datafile ) or if you have
    another tablespace designated for Indexes and it has sapce in it, the
    rebuild ur index in the second tablespace
    Also,
    Be that your tablespace has reached its max ext.
    Check the properties of the table space and make sure your ext value is not
    set too low.
    If the tablespace reaches it max it wont matter what is set at the table
    level.
    Or
    other wise the datafile file size would have got exhausted. in that case
    either add a new datafile to your tablespace or resize the existing
    datafile.
    Try to perform this,
    Maybe you can try the following:
    - Rebuild the index
    - Rebuilt the index in a different tablespace
    - Resize the datafile of the tablespace that stores the index
    - Add a new datafile to the tablespace that stores the index
    also, Alter index <index name> allocate extent;
    Mohinder

  • Shrinking client DB Size

    Hello All,
    Thanks for excellent posts and useful answers.
    The problem which we are facing is shrinking client database after sync.
    We taking backup on 256MB SD Card, everytime case is over it removes from device but doesn't releases space on SD Card and in the end after few weeks 256Mb space has been fully utilize and then it takes nearly 20 minutes to take backup and finally it fails due to space problem.
    Any expert solution for this problem.
    (DB Version Olite 10gR2)
    Cheers,
    Nirms

    Hi,
    just follow the standard recipe for resizing:
    - defrag tablespaces you want to shrink: either by exp/imp or move the objects online to a temporary tablespace and then restore to the original tablespace
    - resize the datafiles
    works every time...

  • Reduce High Water Mark

    Oracle 9.2.0.1
    Windows 2000 Prof
    I have truncated all perfstat tables (tablepspace file: from 7gb to less that 200mb), but then cannot reduce the size of the file afterwards.
    The error syasy that cannot shrink lower than actual size. I can see that in the tablespace only about 200 mb is occupied. Then why is it giving error?
    Is there someway to bring dowm HWM manually?

    Even if you remove data from the tables, it may happen that the data in the file is spread in such a way that you won't be able to reduce the file size. E.g. if the filesize is 1 GB and if that file containts tables having just 10 MB of data, but one block of this data is at say block_id number 50000 then you won't be table to reduce the file size below 390 MB (50000*8192/1024/1024 - assuming that the block size is 8192)
    You need to check what is the last used block in the file. You should be able to reduce the filesize to the last used block
    select file_id, max(block_id)
    from dba_extents
    where file_id = <file id>
    select ((block_id + blocks) * <tablespace_block_size>) / 1024 / 1024 "MB"
    from dba_extents
    where file_id = <file id>
    and block_id = <max block id from above query>
    If the output of above query is say 500 MB then you should be able to reduce the filesize upto 500 MB.
    The other way would be to create a tablespace, move all the objects of original tablespace to another tablespace, resize the original tablespace and move all the objects back to it.
    Hope this helps,
    Ashish

  • Resizing tablespace is taking too much time and freezing the database

    This is my database setup:
    3 node rac on 32 bit linux (rh 4)
    2 SANs (3gb + 2 gb)
    asm config: everything is default from installation
    current datafiles: 3.2T out of 5.0T (autoextend on)
    this is how I do to resize the tablespace manually to test how long it takes:
    alter tablespace my_tbs resize 3173562M; //from 3172538M (adding another 1gb)
    And it took 33 minutes to complete.
    Could someone tell me what is wrong?
    ps:: when i check the instance performing, the "SMON" user is like 97% of db activities. And while the resizing is running, the database seem to freeze.
    Thanks,
    Chau
    Message was edited by:
    user626162

    sorry, it is 5 Tera bytes total.
    there are 2 sans, one is 1.7T (one partition). the other san has 3 partitions with 1.1T each. I have only 1 datagroup
    I used big file so there is only one big file for this tablespace. the size of the tablespace is 3.2T used with autoextend on (increment size is 1G)
    this is the command I used to manually resize the tablespace:
    alter tablespace my_table_space resize <3229923M>; //current size + 1G
    Thanks,
    Chau

Maybe you are looking for

  • Problem with layout and changing content

    Hi, I`m new to Swing and I have a problem with layout. I want to make a menu using JButtons so that depending on which button you click you`ll get different content in the window. And first of all I don`t know how to center the buttons. I have a JFra

  • MacMini 2012  External Thunderbolt boxes for FCPX

    This was discussd here and there last year but here we are again.  We left this subject with the following collective thoughts with some varations and name callings : - MacMini is OK to run FCPX when maxed out with RAM and editing are done in Proxy.

  • Height of the richtexteditor dialog

    Can we set the height of the richtext editor dialog? Is it possible to show more than 8 lines in the Rich Text component? When formatting multiple lines of text, it is easier to have more lines visible in the component dialog, having more room to wor

  • How to find the request id for these suspect dead concurrent request

    Dear All, Good afternoon. Below are the CMCICU (Updated Standard Cost) concurrent request which we can not find in the front-end of Oralce EBS. We want to verify the concurrent request id for these. How can we do it? myermt01@oracle:/home/oracle> ps

  • SCOM reporting issue

    Hi all, We have SCOM 2012 SP1 with two Management server ( MS1 and MS2) and one SQL server . While install Reporting server role in SQL server we gave MS1 name in Specify a Management server option. After installation report works fine in SCOM Report