Performance problem - Tablespace Free Space

Hi,
Version 10204
I am running the following statment in order to monitor tablespace free space.
There are some tablespaces that i am not interesting to monitor , and i also whant to be alert
only when less than 4 GB left in the tablespace.
I build the following statment.
Using the hint : /*+ NO_CPU_COSTING */ gave me the best performance but there are alot of time
that its took to this statment few minute to run befor it finished.
Could one help to improve its performance ?
Please note that it performe even less good when i used the RULE hint or not using hint at all.
SELECT  /*+ gather_plan_statistics */  'tablespace_free_space;'||to_char(pct_used,'999.99')||','||TBSNAME
FROM( SELECT *
      FROM( SELECT NVL(b.tablespace_name, NVL(a.tablespace_name,'UNKOWN')) TBSNAME,
                   MBytes_alloc,
                       maxbytes,
                       MBytes_max,
                   ROUND(MBytes_alloc-NVL(MBytes_free,0),2) used,
                   ROUND(NVL(MBytes_free,0),2) free,
                   MBytes_free,
                   ROUND(DECODE( MBytes_max, 0,((MBytes_alloc-NVL(MBytes_free,0))/MBytes_alloc)*100,100*(MBytes_alloc) / maxbytes),2)PCT_USED
            FROM ( SELECT /*+ NO_CPU_COSTING */  SUM(bytes)/1024/1024 MBytes_free,
                          MAX(bytes)/1024/1024 largest,
                          tablespace_name
                   FROM   sys.DBA_FREE_SPACE
                   WHERE  TABLESPACE_NAME NOT IN
                          ('Q405_CALLS_TS','Q405_ICALLS_TS',
                           'Q305_CALLS_TS','Q305_ICALLS_TS',
                           'Q205_ICALLS_TS','Q306_CALLS_TS',
                           'Q406_CALLS_TS','Q206_CALLS_TS',
                           'Q205_CALLS_TS','Q105_CALLS_TS',
                           'Q105_ICALLS_TS','Q206_CALLS_TS','Q106_CALLS_TS',
                           'Q306_ICALLS_TS','Q107_ICALLS_TS','Q406_ICALLS_TS',
                           'Q206_ICALLS_TS','UNLMT_INTERNET_CALLS_2006_TS',
                           'UNLMT_INTERNET_CALLS_2007_TS',
                           'UNLMT_INTERNET_CALLS_2008_TS',
                           'Q107_ICALLS_TBS','Q107_CALLS_TBS',
                           'Q207_ICALLS_TBS','Q207_CALLS_TBS',
                           'Q307_ICALLS_TBS','Q307_CALLS_TBS',
                           'Q407_ICALLS_TBS','Q407_CALLS_TBS',
                           'Q408_ICALLS_TS','Q408_CALLS_TS',
                           'Q308_ICALLS_TS','Q308_CALLS_TS',
                           'Q208_ICALLS_TS','Q208_CALLS_TS',
                           'Q108_ICALLS_TS','Q108_CALLS_TS',
                           'Q109_ICALLS_TS','Q109_CALLS_TS',
                           'UNLMT_INT_CALLS_Q308_TS',
                           'UNLMT_INT_ICALLS_Q308_TS',
                           'UNLMT_INT_CALLS_Q408_TS',
                           'UNLMT_INT_ICALLS_Q408_TS'
                   GROUP BY tablespace_name ) a,
                 ( SELECT  SUM(bytes)/1024/1024 MBytes_alloc,
                          SUM(maxbytes)/1024/1024 MBytes_max,
                          SUM(DECODE (autoextensible,'YES',maxbytes/1024/1024,'NO', BYTES/1024/1024 )) maxbytes,
                          tablespace_name
                   FROM   DBA_DATA_FILES
                   WHERE  TABLESPACE_NAME NOT IN
                          ('Q405_CALLS_TS','Q405_ICALLS_TS',
                           'Q305_CALLS_TS','Q305_ICALLS_TS',
                           'Q205_ICALLS_TS','Q306_CALLS_TS',
                           'Q406_CALLS_TS','Q206_CALLS_TS',
                           'Q205_CALLS_TS','Q105_CALLS_TS',
                           'Q105_ICALLS_TS','Q206_CALLS_TS',
                           'Q106_CALLS_TS','Q306_ICALLS_TS',
                           'Q107_ICALLS_TS','Q406_ICALLS_TS',
                           'Q206_ICALLS_TS','UNLMT_INTERNET_CALLS_2006_TS',
                           'UNLMT_INTERNET_CALLS_2007_TS',
                           'UNLMT_INTERNET_CALLS_2008_TS',
                           'Q107_ICALLS_TBS','Q107_CALLS_TBS',
                           'Q207_ICALLS_TBS','Q207_CALLS_TBS',
                           'Q307_ICALLS_TBS','Q307_CALLS_TBS',
                           'Q407_ICALLS_TBS','Q407_CALLS_TBS',
                           'Q408_ICALLS_TS','Q408_CALLS_TS',
                           'Q308_ICALLS_TS','Q308_CALLS_TS',
                           'Q208_ICALLS_TS','Q208_CALLS_TS',
                           'Q108_ICALLS_TS','Q108_CALLS_TS',
                           'Q109_ICALLS_TS','Q109_CALLS_TS',
                           'UNLMT_INT_CALLS_Q308_TS',
                           'UNLMT_INT_ICALLS_Q308_TS',
                           'UNLMT_INT_CALLS_Q408_TS',
                           'UNLMT_INT_ICALLS_Q408_TS'
                   GROUP BY tablespace_name) b
            WHERE a.tablespace_name (+) = b.tablespace_name
            AND (a.MBytes_free<4000 or a.MBytes_free is null)
         ORDER BY PCT_USED DESC
WHERE TBSNAME not in (select tablespace_name from dba_tablespaces where contents in ('UNDO'))
and ROWNUM =1;
select * from table(dbms_xplan.display_cursor('42hppgtx2h1gb',0,'ALLSTATS LAST'));
Plan hash value: 2979461796
PLAN_TABLE_OUTPUT
| Id  | Operation                               | Name             | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |  OMem |  1Mem | Used-Mem |
|*  1 |  COUNT STOPKEY                          |                  |      1 |        |      1 |00:00:15.52 |     146K|   8927 |       |       |      |
|*  2 |   FILTER                                |                  |      1 |        |      1 |00:00:15.52 |     146K|   8927 |       |       |      |
|   3 |    VIEW                                 |                  |      1 |      3 |      1 |00:00:15.52 |     146K|   8927 |       |       |      |
|   4 |     SORT ORDER BY                       |                  |      1 |      3 |      1 |00:00:15.52 |     146K|   8927 |  2048 |  2048 | 2048  (0)|
|*  5 |      FILTER                             |                  |      1 |        |     16 |00:00:15.52 |     146K|   8927 |       |       |      |
|*  6 |       HASH JOIN OUTER                   |                  |      1 |      3 |     25 |00:00:15.52 |     146K|   8927 |   561K|   561K|  982K (0)|
|   7 |        VIEW                             |                  |      1 |      2 |     25 |00:00:02.95 |     105K|      0 |       |       |      |
|   8 |         HASH GROUP BY                   |                  |      1 |      2 |     25 |00:00:02.95 |     105K|      0 |   447K|   447K|  977K (0)|
|   9 |          VIEW                           | DBA_DATA_FILES   |      1 |      2 |    217 |00:00:03.25 |     105K|      0 |       |       |      |
|  10 |           UNION-ALL                     |                  |      1 |        |    217 |00:00:03.25 |     105K|      0 |       |       |      |
|  11 |            NESTED LOOPS                 |                  |      1 |      1 |      0 |00:00:00.67 |     219 |      0 |       |       |      |
|  12 |             NESTED LOOPS                |                  |      1 |      1 |      0 |00:00:00.67 |     219 |      0 |       |       |      |
|  13 |              MERGE JOIN CARTESIAN       |                  |      1 |      1 |  52297 |00:00:00.22 |       0 |      0 |       |       |      |
|* 14 |               FIXED TABLE FULL          | X$KCCFN          |      1 |      1 |    217 |00:00:00.01 |       0 |      0 |       |       |      |
|  15 |               BUFFER SORT               |                  |    217 |    100 |  52297 |00:00:00.06 |       0 |      0 | 11264 | 11264 |10240  (0)|
|  16 |                FIXED TABLE FULL         | X$KCCFE          |      1 |    100 |    241 |00:00:00.01 |       0 |      0 |       |       |      |
|* 17 |              TABLE ACCESS BY INDEX ROWID| FILE$            |  52297 |      1 |      0 |00:00:00.52 |     219 |      0 |       |       |      |
|* 18 |               INDEX UNIQUE SCAN         | I_FILE1          |  52297 |      1 |    217 |00:00:00.24 |       2 |      0 |       |       |      |
|* 19 |             TABLE ACCESS CLUSTER        | TS$              |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
|* 20 |              INDEX UNIQUE SCAN          | I_TS#            |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
|  21 |            NESTED LOOPS                 |                  |      1 |      1 |    217 |00:00:02.58 |     105K|      0 |       |       |      |
|  22 |             NESTED LOOPS                |                  |      1 |      1 |  52297 |00:00:01.89 |     104K|      0 |       |       |      |
|  23 |              MERGE JOIN CARTESIAN       |                  |      1 |      1 |  52297 |00:00:00.22 |     217 |      0 |       |       |      |
|  24 |               NESTED LOOPS              |                  |      1 |      1 |    217 |00:00:00.02 |     217 |      0 |       |       |      |
|* 25 |                FIXED TABLE FULL         | X$KCCFN          |      1 |      1 |    217 |00:00:00.01 |       0 |      0 |       |       |      |
|* 26 |                FIXED TABLE FIXED INDEX  | X$KTFBHC (ind:1) |    217 |      1 |    217 |00:00:00.01 |     217 |      0 |       |       |      |
|  27 |               BUFFER SORT               |                  |    217 |    100 |  52297 |00:00:00.11 |       0 |      0 | 11264 | 11264 |10240  (0)|
|  28 |                FIXED TABLE FULL         | X$KCCFE          |      1 |    100 |    241 |00:00:00.01 |       0 |      0 |       |       |      |
|* 29 |              TABLE ACCESS CLUSTER       | TS$              |  52297 |      1 |  52297 |00:00:01.41 |     104K|      0 |       |       |      |
|* 30 |               INDEX UNIQUE SCAN         | I_TS#            |  52297 |      1 |  52297 |00:00:00.37 |       2 |      0 |       |       |      |
|* 31 |             TABLE ACCESS BY INDEX ROWID | FILE$            |  52297 |      1 |    217 |00:00:00.57 |     219 |      0 |       |       |      |
|* 32 |              INDEX UNIQUE SCAN          | I_FILE1          |  52297 |      1 |    217 |00:00:00.28 |       2 |      0 |       |       |      |
|  33 |        VIEW                             |                  |      1 |   1401 |     25 |00:00:12.56 |   40846 |   8927 |       |       |      |
|  34 |         HASH GROUP BY                   |                  |      1 |   1401 |     25 |00:00:12.56 |   40846 |   8927 |   465K|   465K|  982K (0)|
|  35 |          VIEW                           | DBA_FREE_SPACE   |      1 |   1401 |  73133 |00:00:14.19 |   40846 |   8927 |       |       |      |
|  36 |           UNION-ALL                     |                  |      1 |        |  73133 |00:00:14.04 |   40846 |   8927 |       |       |      |
|  37 |            NESTED LOOPS                 |                  |      1 |      1 |      0 |00:00:00.01 |      45 |      0 |       |       |      |
|  38 |             NESTED LOOPS                |                  |      1 |      1 |      0 |00:00:00.01 |      45 |      0 |       |       |      |
|  39 |              TABLE ACCESS FULL          | FET$             |      1 |      1 |      0 |00:00:00.01 |      45 |      0 |       |       |      |
|* 40 |              INDEX UNIQUE SCAN          | I_FILE2          |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
|* 41 |             TABLE ACCESS CLUSTER        | TS$              |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
|  42 |            NESTED LOOPS                 |                  |      1 |      5 |   7271 |00:00:00.20 |    1156 |      0 |       |       |      |
|  43 |             NESTED LOOPS                |                  |      1 |      6 |   7271 |00:00:00.14 |    1154 |      0 |       |       |      |
|* 44 |              TABLE ACCESS FULL          | TS$              |      1 |      2 |     25 |00:00:00.01 |      45 |      0 |       |       |      |
|* 45 |              FIXED TABLE FIXED INDEX    | X$KTFBFE (ind:1) |     25 |      3 |   7271 |00:00:00.11 |    1109 |      0 |       |       |      |
|* 46 |             INDEX UNIQUE SCAN           | I_FILE2          |   7271 |      1 |   7271 |00:00:00.04 |       2 |      0 |       |       |      |
|  47 |            NESTED LOOPS                 |                  |      1 |   1394 |  65862 |00:00:17.73 |   39476 |   8927 |       |       |      |
|  48 |             NESTED LOOPS                |                  |      1 |  30528 |  65862 |00:00:16.94 |   39474 |   8927 |       |       |      |
|* 49 |              HASH JOIN                  |                  |      1 |   2540 |   8927 |00:00:00.03 |      90 |      0 |   811K|   811K| 1397K (0)|
|  50 |               TABLE ACCESS FULL         | RECYCLEBIN$      |      1 |   8319 |   8935 |00:00:00.01 |      45 |      0 |       |       |      |
|* 51 |               TABLE ACCESS FULL         | TS$              |      1 |      2 |     25 |00:00:00.01 |      45 |      0 |       |       |      |
|* 52 |              FIXED TABLE FIXED INDEX    | X$KTFBUE (ind:1) |   8927 |     12 |  65862 |00:00:11.66 |   39384 |   8927 |       |       |      |
|* 53 |             INDEX UNIQUE SCAN           | I_FILE2          |  65862 |      1 |  65862 |00:00:00.45 |       2 |      0 |       |       |      |
|* 54 |            TABLE ACCESS BY INDEX ROWID  | RECYCLEBIN$      |      1 |      1 |      0 |00:00:00.01 |     169 |      0 |       |       |      |
|  55 |             NESTED LOOPS                |                  |      1 |      1 |      1 |00:00:00.01 |     169 |      0 |       |       |      |
|  56 |              NESTED LOOPS               |                  |      1 |      1 |      0 |00:00:00.01 |     169 |      0 |       |       |      |
|  57 |               NESTED LOOPS              |                  |      1 |      1 |      0 |00:00:00.01 |     169 |      0 |       |       |      |
|  58 |                TABLE ACCESS FULL        | UET$             |      1 |      1 |      0 |00:00:00.01 |     169 |      0 |       |       |      |
|* 59 |                INDEX UNIQUE SCAN        | I_FILE2          |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
|* 60 |               TABLE ACCESS CLUSTER      | TS$              |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
|* 61 |                INDEX UNIQUE SCAN        | I_TS#            |      0 |      1 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
|* 62 |              INDEX RANGE SCAN           | RECYCLEBIN$_TS   |      0 |   1188 |      0 |00:00:00.01 |       0 |      0 |       |       |      |
|* 63 |    TABLE ACCESS FULL                    | TS$              |      1 |      1 |      0 |00:00:00.01 |      45 |      0 |       |       |      |
Predicate Information (identified by operation id):
   1 - filter(ROWNUM=1)
   2 - filter( IS NULL)
   5 - filter(("A"."MBYTES_FREE"<4000 OR "A"."MBYTES_FREE" IS NULL))
   6 - access("A"."TABLESPACE_NAME"="B"."TABLESPACE_NAME")
  14 - filter(("INST_ID"=USERENV('INSTANCE') AND "FNNAM" IS NOT NULL AND BITAND("FNFLG",4)<>4 AND "FNTYP"=4))
PLAN_TABLE_OUTPUT
  17 - filter(("F"."SPARE1" IS NULL AND "F"."TS#" IS NOT NULL))
  18 - access("FE"."FENUM"="F"."FILE#")
       filter("FNFNO"="F"."FILE#")
  19 - filter(("TS"."NAME"<>'Q405_CALLS_TS' AND "TS"."NAME"<>'Q405_ICALLS_TS' ... AND "TS"."NAME"<>'UNLMT_INT_ICALLS_Q408_TS'))
  20 - access("F"."TS#"="TS"."TS#")
  25 - filter(("INST_ID"=USERENV('INSTANCE') AND "FNNAM" IS NOT NULL AND BITAND("FNFLG",4)<>4 AND "FNTYP"=4))
  26 - filter("FNFNO"="HC"."KTFBHCAFNO")
  29 - filter(("TS"."NAME"<>'Q405_CALLS_TS' AND "TS"."NAME"<>'Q405_ICALLS_TS' AND ... AND "TS"."NAME"<>'UNLMT_INT_ICALLS_Q408_TS'))
  30 - access("HC"."KTFBHCTSN"="TS"."TS#")
  31 - filter("F"."SPARE1" IS NOT NULL)
  32 - access("FE"."FENUM"="F"."FILE#")
       filter("FNFNO"="F"."FILE#")
  40 - access("F"."TS#"="FI"."TS#" AND "F"."FILE#"="FI"."RELFILE#")
PLAN_TABLE_OUTPUT
       filter(("FI"."TS#" IS NOT NULL AND "FI"."RELFILE#" IS NOT NULL))
  41 - filter(("TS"."TS#"="F"."TS#" AND "TS"."BITMAPPED"=0 AND "TS"."NAME"<>'Q405_CALLS_TS' AND "TS"."NAME"<>'Q405_ICALLS_TS' AND
              "TS"."NAME"<>'Q305_CALLS_TS' AND "TS"."NAME"<>'Q305_ICALLS_TS' AND ... "TS"."NAME"<>'UNLMT_INT_ICALLS_Q408_TS'))
  44 - filter(("TS"."BITMAPPED"<>0 AND INTERNAL_FUNCTION("TS"."ONLINE$") AND .... "TS"."NAME"<>'UNLMT_INT_ICALLS_Q408_TS'))
  45 - filter("TS"."TS#"="F"."KTFBFETSN")
  46 - access("F"."KTFBFETSN"="FI"."TS#" AND "F"."KTFBFEFNO"="FI"."RELFILE#")
       filter(("FI"."TS#" IS NOT NULL AND "FI"."RELFILE#" IS NOT NULL))
  49 - access("TS"."TS#"="RB"."TS#")
  51 - filter(("TS"."BITMAPPED"<>0 AND INTERNAL_FUNCTION("TS"."ONLINE$") AND...."TS"."NAME"<>'UNLMT_INT_ICALLS_Q408_TS'))
  52 - filter(("U"."KTFBUESEGTSN"="RB"."TS#" AND "U"."KTFBUESEGFNO"="RB"."FILE#" AND "U"."KTFBUESEGBNO"="RB"."BLOCK#"))
  53 - access("RB"."TS#"="FI"."TS#" AND "U"."KTFBUEFNO"="FI"."RELFILE#")
       filter(("FI"."TS#" IS NOT NULL AND "FI"."RELFILE#" IS NOT NULL))
PLAN_TABLE_OUTPUT
  54 - filter(("U"."SEGFILE#"="RB"."FILE#" AND "U"."SEGBLOCK#"="RB"."BLOCK#"))
  59 - access("U"."TS#"="FI"."TS#" AND "U"."SEGFILE#"="FI"."RELFILE#")
       filter(("FI"."TS#" IS NOT NULL AND "FI"."RELFILE#" IS NOT NULL))
  60 - filter(("TS"."BITMAPPED"=0 AND "TS"."NAME"<>'Q405_CALLS_TS' AND .... AND "TS"."NAME"<>'UNLMT_INT_CALLS_Q408_TS' AND
              "TS"."NAME"<>'UNLMT_INT_ICALLS_Q408_TS'))
  61 - access("TS"."TS#"="U"."TS#")
  62 - access("U"."TS#"="RB"."TS#")
  63 - filter((DECODE("TS"."CONTENTS$",0,DECODE(BITAND("TS"."FLAGS",16),16,'UNDO','PERMANENT'),1,'TEMPORARY')='UNDO' AND "TS"."ONLINE$"<>3 AND
              BITAND("FLAGS",2048)<>2048 AND LNNVL("TS"."NAME"<>:B1)))
Note
PLAN_TABLE_OUTPUT
   - cpu costing is off (consider enabling it)

Version 10204
I am running the following statment in order to monitor tablespace free space.
There are some tablespaces that i am not interesting to monitor , and i also whant to be alert
only when less than 4 GB left in the tablespace.
And just adding to Dan's reply, if you are on 10g as you mentioned, why not to use the built in Alert mechanism to monitor and get alerts about the tablespace usage using the GC or Database Console than creating a home grown solution like the one you have posted?
Aman....

Similar Messages

  • Performance problem on free chacteristics

    Hi Friends,
    We are getting performance problem with some of our BW Reports.
    When we run BW web reports. Intial Screen of the report is OK.
    when we do filtering on some free characteristics, It is taking ages to filter.
    this is only for some Free characteristics.
    These free characteristics are ok few days back and now we are facing this problems since 10 days.
    Please help us in by providing your valuable solutions.
    Thanks
    Tony

    Hi Oliver,
    Let me explain in detail.
    When we do drill down all Free chacteristics(Characteristics, Nav Attributes) - This is Fine
    When we press filter option in order to filter (Nav Attributes) - This is Fine
    When we press filter option in order to filter (Characteristics) - This is fine for some characteristics and some other are taking ages. These Guilty Chacteristics are SAP defined characteristics like 0Material, 0Plant, 0Sold_To.
    Data loading is same since somany days.
    Please advice how to proceed
    Thanks.
    Tony
    Message was edited by:
            tony

  • Set tablespace free space (mb) for a single large tablespace?

    It seems that in EM, setting the free space (mb) for locally managed tablespaces affects all of my locally managed tablespaces in the database and not just one.
    I clicked on Tablespace, Edit (button), Thresholds and set the Free Space (MB) Warning and Critical. I thought I was setting it for a particular tablespace (because I chose Edit on a single tablespace). But then I got alerts from much smaller tablespaces because those tablespaces had much smaller MB than the thresholds that I just set.
    Using EM GC, is there a way to set the free space (mb) to alert for a single large tablespace where defining a critical free space mb is better than setting a free space percent?

    ok, go to the database you want to manage.
    Then click on Metric and Policy Settings (link at the very bottom).
    Scroll down to the 'Tablespace Space Used (%)' metric, and click on the edit button
    Now, click on the 'add' button to setup settings for individual tablespaces.
    Bazza

  • Problem with free space on itnernal hdd on mac book pro!

    On the about this mac menu i storage i get 512 gb of backups and if you add all the numbers given for the internal hd the total is 837.88 gb on a 750 gb hd! When i go to finder my macbook pro and get info on the macintosh hd ->get info i get 582 bg free! i have repaird the disk permitions and repaird the disk! but it doesnt seen to work!

    what i want to say is that there is a problem with reading the actual free space from the hard drive....i had 259gb free space and after deleting 100gb + and restarting i had only 100 gb free indicated...!
    these are the values i take at the same time!! they are obviusly both wrong!!

  • How does repeated snapshot import impact tablespace free space?

    Hello,
    Our client is doing DEC-2014 reconciliation in FCM. Every time he changes profile mappings he has to do snapshot import again. So far he did at least ten times snapshot import for DEC-2014 period. In our FCM database Tablespace FCM_TX_TS_DATA free space is reduced 7 GB for this period already by querrying dba_free_space table.
    By my understanding during the repeated snapshot import for the same period, the previous load data is deleted and the current load data is inserted. After data delete the table space will not be set free, and high water mark will not be reset.
    During snapshot import will the deleted blocks from the previous load be reclaimed when new load data is inserted in the table? If not, what is the best way to reclaim the free space in FCM_TX_TS_DATA tablespace?
    Thanks,
    Hongfei Liu (AT&T)

    Przemek P wrote:
    Hallo. I need to replace all schemas from one server to another. I want to know how much free space will be left on /data after this kind of refresh. Both servers are Oracle 9 so I will use exp/imp. Here is how I do it. Could you check if I think good? On target server there is 72 GB free space on /data.
    Filesystem Size Used Avail Capacity Mounted
    /dev/vgsmxdata/lvsmxcopy 194.74G 122.56G 72.18G 63% /data
    Overall size of schemas to be exported from SOURCE_DB is 150 GB. The same schemas on TARGET_DB takes 90GB. So difference is 60GB. Free space in datafiles in TARGET_DB is 30GB. Does it mean that in first place the free space in datafiles will be filled and after that datafiles would be extended? That would mean that a database would extend to 150GB and free space on /data would be 40 GB after refresh. Am I right?
    yes

  • Help! iMac performing in erase free space for over 14 hours!

    How long should 7-pass 'erase free space' of 69.9 GB take?
    I'm giving my old iMac G4 to a young relative. After completing 'erase and install' of OS 10.4, to be sure data would not be easily accessible, I read a few threads in the Installation and Setup forum and decided to do a 7-pass erase of free space.
    The message in the Disk Utility window counted down from 8 hours and then switched to "secure erasing file". The blue progress bar doesn't appear to be progressing but is stuck about 1/2 cm from the end.
    It's now been going for 14 hours. This seems an extra-ordinarily long time, 'though, for all I know, zero-ing out could take 2 hours. Thinking back, I clicked on 7-pass twice, once via 'security options' then via 'erase free space'. Was that a major mistake?
    Is 14 hours too long? And, if so, is it too late to click on 'skip'?

    Well, I pressed 'skip' and little changed except that it reported "skipping", whatever that means. So I took courage in both hands, as it were: one to press 'quit' and the other to press 'continue' and ignore the warning that quitting could cause irreparable damage to the HD.
    As far I can see, no problem but I'm going to run Drive 10 before I erase-and-install OS X again just so that I can command-Q setup assistant and leave my young relative to set it up for herself.
    Many thanks for your help, both Toms too. I guess this question can be logged a 'solved'.
    Anne

  • Disk Utility Problems - Erase Free Space

    Today I decided to use disk utility to "Erase free space " on my MacbookPro. During the process it said it was creating a temporary file!
    This took about 2 hours then the application stopped responding, so I clicked skip and ended up doing a force quit!
    Unfortunately, this task did not complete but it seems to have added over 10GB to my hard drive.
    Any ideas how I can find the file and delete it or should I consider restoring my Mac to yesterday using my Time machine backups.
    Thanks
    Keith

    However, does anyone have any advice on how to use the "Erase Free Space " Utility
    This option should only be used when you've insecurely deleted a file you meant to securely delete, and should not be used on a FAT32 drive with 4GB or more free space.
    (57218)

  • Tablespace - free space - threshold

    Friends,
    I have some tablespaces that are full, and I need to investigate what is the threshold set for monitoring.
    The Tablespace was at 98%, and the monitoring should be set for 95% full.
    How can I check this on OS level, Oracle or better, in SAP ?
    Is it possible to check the thereshold for a tablespace ?
    Thanks in advance,
    Daniel,

    DatabaseSAP wrote:
    Daniel_Bul wrote:
    >
    > > So I can do this from SOLMAN CCMS ? I will check it, thank you.
    >
    Yes.
    Thanks
    Ähm , ... No.
    Solman receives (or fetches) alerts from the other systems.
    The thresholds need to be set in every system individually (in RZ20 / RZ21).
    Because system A might be happy with 95% freespace, but system B requires 87% to survive a weekend.
    So it is system individually.
    If you configured trusted access, you can crossjump from solman,
    but you will do the change in the satelite system.
    Volker

  • What table holds the underlying metric data for Tablespace Free Space (MB)?

    10.2.0.4; Windows 64bit
    I'm assuming it's in the SYSMAN schema? I can view it in DBConsole, and can see the Avergae, Low & High values for the last 31days - but want to query the raw data itself.
    Cheers
    Gary

    Check out the Reference Manual: DBA_HIST_TBSPC_SPACE_USAGE
    I suspect the averages and such are derived values in Oracle's queries.
    Edited by: Centinul on Jul 12, 2012 11:08 AM

  • Tablespace used and free space size in 9i

    Hi,
    How to find the tablespace used space and tablespace free space in 9i.
    Normally i uses below query in 10g and 11g, but this query not working in 9i. Please help the query for 9i....
    SELECT /* + RULE */ df.tablespace_name "Tablespace",
    df.bytes / (1024 * 1024) "Size (MB)",
    SUM(fs.bytes) / (1024 * 1024) "Free (MB)",
    Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free",
    Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used"
    FROM dba_free_space fs,
    (SELECT tablespace_name,SUM(bytes) bytes
    FROM dba_data_files
    GROUP BY tablespace_name) df
    WHERE fs.tablespace_name (+) = df.tablespace_name
    GROUP BY df.tablespace_name,df.bytes
    UNION ALL
    SELECT /* + RULE */ df.tablespace_name tspace,
    fs.bytes / (1024 * 1024),
    SUM(df.bytes_free) / (1024 * 1024),
    Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1),
    Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes)
    FROM dba_temp_files fs,
    (SELECT tablespace_name,bytes_free,bytes_used
    FROM v$temp_space_header
    GROUP BY tablespace_name,bytes_free,bytes_used) df
    WHERE fs.tablespace_name (+) = df.tablespace_name
    GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
    ORDER BY 4 DESC;
    Regards,
    Pravin

    hi,
    try this
    /* TOTAL, FREE AND USED SPACE IN TABLESPACES */ SET LINESIZE 100 COLUMN TABLESPACE FORMAT A15 select t.tablespace, t.totalspace as " Totalspace(MB)", round((t.totalspace-fs.freespace),2) as "Used Space(MB)", fs.freespace as "Freespace(MB)", round(((t.totalspace-fs.freespace)/t.totalspace)*100,2) as "% Used", round((fs.freespace/t.totalspace)*100,2) as "% Free" from (select round(sum(d.bytes)/(1024*1024)) as totalspace, d.tablespace_name tablespace from dba_data_files d group by d.tablespace_name) t, (select round(sum(f.bytes)/(1024*1024)) as freespace, f.tablespace_name tablespace from dba_free_space f group by f.tablespace_name) fs where t.tablespace=fs.tablespace order by t.tablespace;
    and you can have a look this thred. it will be hellp you
    query to check tablespace size and freespace
    regards,

  • Failed Erase Free Space NOW missing all free space

    I just recently performed an Erase Free Space from the Disk Utilities application. It failed and now I am missing all my free space. Can someone please help me correct this problem.
    I did post this same question in another Forum. I wanted to make sure I posted it in the correct place.
    Thank you,
    Shannon

    I think that a file is created that is the size of the free space, and then written over several times and then deleted. There may be a very large file lurking somewhere on your hard drive. You might want to try using a free utility like Whatsize to look for a large mysterious file, and if you find one then just delete it. Good luck.

  • "Erase Free Space" work-around for non-apple ssd

    for those of you attempting to "Erase Free Space" per knowledge base article:
    "OS X Lion v10.7.3: User account passwords appear in log files for Legacy FileVault, and/or network home directories"
    quote:
    "6. Open Disk Utility.
    7. Select your OS X Lion volume on the left.
    8. Click "Erase Free Space…".
    9. Select the Erase Free Space Option you want and click "Erase Free Space". Enter admin name and password if prompted."
    but instead seeing a grayed out "Erase Free Space" in Disk Utility?
    you can perform an "Erase Free Space" by using WipeFS app by Jonathan Clark which can successfully perform a DoD (Department of Defense) wipe for digital media, apple's Disk Utility doesn't do this anymore with non-apple solid state drives (ssd)
    references:
    https://support.apple.com/kb/TS4272
    http://itunes.apple.com/hr/app/wipefs/id484887048?mt=12

    ...but instead seeing a grayed out "Erase Free Space" in Disk Utility?
    See,
    Mac OS X: About Disk Utility's erase free space feature
    which says,
    Note: With OS X Lion and an SSD drive, Secure Erase and Erasing Free Space are not available in Disk Utility. These options are not needed for an SSD drive because a standard erase makes it difficult to recover data from an SSD. For more security, consider turning on FileVault 2 encryption when you start using the SSD drive.
    Also google "erasing space on ssd".
    Bottom line, it is not something you want to do to a ssd. 

  • Automatically erase free space

    Hi,
    I know how to use the disk utility to erase the free space on my drive.  I was wondering if there was a way to have OSX perform the erase free space operation automatically once a month or once a week.  Thanks for your help.

    Run as a launcd (set to run once a week or month):
    If you need info on launchd, in Terminal, man launchd, man launchd.plist
    For a GUI launcd editor, see Lingon 3
    To run secure erase from Terminal, See: Securely erase free space from Terminal 
    ("Or you’re really paranoid, and would like to schedule a task (using cron or launchd) that regularly erases the free space on your drive.")
    ("Warning! It’s critically important that you include the freespace portion of that command. If you don’t, diskutil will happily start securely erasing the entire disk, instead of just the free space! Yes, that’s a Really Bad Thing, especially because it will be securely erased, meaning there’s no chance you’ll be able to recover the data. “With great power comes great responsibility.”)

  • Is ther a way to speed up a Mac? Mine has gotten slower and slower over time.  When memory comes close to full would that have an effect on performance? Is there a way to determine unused programs/software to remove and free space?

    Is there a way to speed up a Mac (similar to de-fragging on a PC)? Mine has gotten slower and slower over time. 
    When memory/disc comes close to full would that have an effect on performance? How should I determine what programs/software to remove and free space?

    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with visits to:     OS X Maintenance - MacAttorney;
                                      The X Lab: The X-FAQs;
                                      The Safe Mac » Mac Performance Guide;
                                      The Safe Mac » The myth of the dirty Mac;
                                      Mac maintenance Quick Assist.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    Repair the Hard Drive - Lion/Mountain Lion/Mavericks
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilites Menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD disk icon and click on the arrow button below.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    Note: Alsoft ships DW on a bootable DVD that will startup Macs running Snow Leopard or earlier. It cannot start Macs that came with Lion or later pre-installed, however, DW will work on those models.
    Suggestions for OS X Maintenance
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or later and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive.
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection I recommend using VirusBarrier Express 1.1.6 or Dr.Web Light both from the App Store. They're both free, and since they're from the App Store, they won't destabilize the system. (Thank you to Thomas Reed for these recommendations.)
    Troubleshooting Applications
    I recommend downloading a utility such as TinkerTool System, OnyX, Mavericks Cache Cleaner, or Cocktail that you can use for removing old log files and archives, clearing caches, etc. Corrupted cache, log, or temporary files can cause application or OS X crashes as well as kernel panics.
    If you have Snow Leopard or Leopard, then for similar repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. Applejack does not work with Lion and later.
    Basic Backup
    For some people Time Machine will be more than adequate. Time Machine is part of OS X. There are two components:
    1. A Time Machine preferences panel as part of System Preferences;
    2. A Time Machine application located in the Applications folder. It is
        used to manage backups and to restore backups. Time Machine
        requires a backup drive that is at least twice the capacity of the
        drive being backed up.
    Alternatively, get an external drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Get Backup
      3. Deja Vu
      4. SuperDuper!
      5. Synk Pro
      6. Tri-Backup
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files. For help with using Time Machine visit Pondini's Time Machine FAQ for help with all things Time Machine.
    Referenced software can be found at MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Pre-Mavericks
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Mavericks and later
    Open Activity Monitor in the Utilities folder.  Select All Processes from the View menu.  Click on the CPU tab in the toolbar. Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • Problem with ytdump-200.6.1.1-1377716466. It is a, "Yahoo crash log", uses up all free space on C: drive

    Your Question:
    Ever since my firefox was updated to be more compatible with Yahoo I have a terrible problem with ytdump-200.6.1.1-1377716466. It is a, "Yahoo crash log dump", that fills up all the free space on my C: drive drive, no matter when and how many times I erase it, and no matter what I remove from the C: drive.

    What was involved in making Firefox more compatible with Yahoo? Assuming that the "yt" part stands for Yahoo Toolbar, you could disable that temporarily to see whether that resolves the issue.
    Try here:
    orange Firefox button (or Tools menu) > Add-ons > Extensions category
    Disable the Yahoo toolbar(s) and if a link appears to restart Firefox, click that as the last step.
    Note: if you have any unsubmitted forms you are working on, it's probably best to finish your work before restarting Firefox.

Maybe you are looking for

  • IPod touch isn't showing up on My Computer

    I'm trying to move my pictures off of my iPod and onto my laptop, but when I go to My Computer, my iPod doesn't show up. Forums and discussions said that if it's not updated, it needs to be, so I did, but it's still not showing up.

  • US Withholding tax report for 1099M missing amount

    HI all,   When i run the 1099M Listing using S_ALR_87012143 for year 2009 with clearing date of 1/1/09 to 12/31/09 for one vendor, it shows the cleared and open items TOTAL correctly.  This includes one document with posting date of 12/31/2008 and th

  • How to show/hide a form field?

    Hi all, Is it possible to programaticlly show/hide a from input field at runtime? best

  • Toll Free termination issues

    Over the past several days I've had issues with calling several toll free numbers which end up in the Cincinnati area.  Called the toll free provider and they don't see an issue but said they look like dropped calls coming into their network from an

  • Sort the values in Bex query variable screen

    Dear Experts, Is it possible to sort the values of a dropdown list for variables on BEX variable selection screen ?  For example, For calender month selection, the values are by default sorted by ascending order. Is it possible to sort by descending