Daafiles used and free space

hii everybody,
i want to check the used and free space of all datafiles of my database(10.2.0.3),platform redhat 5.7 .
your help is highly appreciated thanks.
Edited by: 938946 on Dec 31, 2012 4:38 AM

938946 wrote:
can you please tell me why temp tablespace's %used is showing in negative.
(tablespace name)TEMP (size in MB)1100221 (Free in MB)48.375 (%Free)94 (%Used)-1913Without seeing what you actually have, I can only guess, but as I said, you have the aggregations messed up in both halves of your query.
The second half of your original query (below the UNION ALL) is the bit that calculates the space for the temp tablespace. It looks to me as if you have multiple files in your temp tablespace and that the files actually have at least two different sizes. This is from one of my databases the has that situation, and builds up to the query that you are using to get the temporary tablespace information.
The basic dba_temp_files query:
SQL> select tablespace_name, bytes
  2  from dba_temp_files;
TABLESPACE_NAME                     BYTES
TMP                            2146500608
TMP                            2146500608
TMP                            1072758784The basic v$temp_space_header query:
SQL> SELECT tablespace_name,bytes_free,bytes_used
  2  FROM v$temp_space_header;
TABLESPACE_NAME                BYTES_FREE BYTES_USED
TMP                                     0 2146500608
TMP                                     0 1072758784
TMP                                     0 2146500608Your query against v$temp_space_header
SQL> SELECT tablespace_name,bytes_free,bytes_used
  2  FROM v$temp_space_header
  3  GROUP BY tablespace_name,bytes_free,bytes_used;
TABLESPACE_NAME                BYTES_FREE BYTES_USED
TMP                                     0 1072758784
TMP                                     0 2146500608The basic join of your two queries without the aggregation. I added the file_id and bytes columns from dba_temp_files and the bytes_free and bytes_used columns from v$temp_space_header to make what is happening clearer.
SQL> SELECT df.tablespace_name tspace, fs.file_id, fs.bytes, df.bytes_free,
  2         df.bytes_used, fs.bytes / (1024 * 1024) bytes_mb,
  3         df.bytes_free / (1024 * 1024) bytes_free_mb,
  4         ((fs.bytes - df.bytes_used) * 100) / fs.bytes bytes_minus_used,
  5         ((fs.bytes - df.bytes_free) * 100) / fs.bytes bytes_minus_free
  6  FROM dba_temp_files fs,
  7       (SELECT tablespace_name,bytes_free,bytes_used
  8        FROM v$temp_space_header
  9        GROUP BY tablespace_name,bytes_free,bytes_used) df
10  WHERE fs.tablespace_name  = df.tablespace_name
11  ORDER BY 1, 3, 4, 5;
TSPACE        FILE_ID      BYTES BYTES_FREE BYTES_USED   BYTES_MB BYTES_FREE_MB BYTES_MINUS_USED BYTES_MINUS_FREE
TMP                 3 1072758784          0 1072758784  1023.0625             0                0              100  -- Group 1
TMP                 3 1072758784          0 2146500608  1023.0625             0       -100.09164              100  -- Group 2
TMP                 1 2146500608          0 1072758784  2047.0625             0       50.0228987              100  -- Group 3
TMP                 2 2146500608          0 1072758784  2047.0625             0       50.0228987              100  -- Group 3
TMP                 1 2146500608          0 2146500608  2047.0625             0                0              100  -- Group 4
TMP                 2 2146500608          0 2146500608  2047.0625             0                0              100  -- Group 4The comments at the end show which group the rows will fall into when they are aggregated. Now, if we do the math manually based on your query we get:
Group 1
   Bytes_mb = 1072758784/1024/1024 = 1023.0625
   Bytes_free_mb = 0/1024/1024 = 0
   pct_free = ((1072758784 - 1072758784)*100)/1072758784 = 0
   pct_used = ((1072758784 - 0)*100/100 = 100
Group 2
   Bytes_mb = 1072758784/1024/1024 = 1023.0625
   Bytes_free_mb = 0/1024/1024 = 0
   pct_free = (1072758784 - 2146500608)/1024/1024 = -100
   pct_used = (1072758784 - 0)/1024/1024 = 100
Group 3
   Bytes_mb = 2146500608/1024/1024 = 2047.0625
   Bytes_free_mb = SUM(0+0)/1024/1024 = 0
   pct_free = ((SUM(2146500608+2146500608) - 1072758784)*100)/2146500608 = 150
   pct_used = ((SUM(2146500608+2146500608) - 0)*100)/2146500608 = 200
Group 3
   Bytes_mb = 2146500608/1024/1024 = 2047.0625
   Bytes_free_mb = SUM(0+0)/1024/1024 = 0
   pct_free = ((SUM(2146500608+2146500608) - 2146500608)*100)/2146500608 = 100
   pct_used = ((SUM(2146500608+2146500608) - 0)*100)/2146500608 = 200and actually running the query:
SQL> SELECT df.tablespace_name tspace,
  2         fs.bytes / (1024 * 1024) bytes,
  3         SUM(df.bytes_free) / (1024 * 1024) bytes_free,
  4         Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1) pct_free,
  5         Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes) pct_used
  6  FROM dba_temp_files fs,
  7       (SELECT tablespace_name,bytes_free,bytes_used
  8        FROM v$temp_space_header
  9        GROUP BY tablespace_name,bytes_free,bytes_used) df
10  WHERE fs.tablespace_name  = df.tablespace_name
11  GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
12  ORDER BY 4 DESC;
TSPACE          BYTES BYTES_FREE   PCT_FREE   PCT_USED
TMP         2047.0625          0        150        200  -- Group 3
TMP         2047.0625          0        100        200  -- Group 4
TMP         1023.0625          0          0        100  -- Group 1
TMP         1023.0625          0       -100        100  -- Group 2John

Similar Messages

  • Determining the used and free space on the database

    Hi,
    I am trying to analyse the total used and free space on all the tablespaces in a database. The query which I am using is as below:
    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;
    Is this query alright? Or are any changes required in it?
    Thanks in advance.

    SET LINESIZE 85
    SET PAGESIZE 200
    column tablespace_name format a18
    column file_name format a25
    column Allocated_kb format 999,999,999
    column free_kb format 999,999,999
    column Percent_Free format 999
    SELECT
    df.tablespace_name,
    df.file_name,
    df.bytes/1024 Allocated_kb,
    free.free_kb,
    Round(free.free_kb/(df.bytes/1024)*100) Percent_Free
    FROM
    dba_data_files df,
    (SELECT file_id, SUM(bytes)/1024 free_kb
    FROM dba_free_space GROUP BY file_id) free
    WHERE
    df.file_id=free.file_id
    ORDER BY
    Percent_Free;

  • How to find used and free space

    Hi all,
    How to find the used and free space of a particular user (schema) in a Database.
    I need the sql query .
    PLz urgent..
    Thanks
    Gobi

    SYS@db102 SQL> select file_name, file_id, bytes
      2  from dba_temp_files
      3  where tablespace_name = 'TEMP';
    FILE_NAME                                        FILE_ID           BYTES
    /home/ora102/oradata/db102/temp01.dbf                  1        52428800
    SYS@db102 SQL> alter database tempfile '/home/ora102/oradata/db102/temp01.dbf'
      2  resize 70M;
    Database altered.
    SYS@db102 SQL> select file_name, file_id, bytes
      2  from dba_temp_files
      3  where tablespace_name = 'TEMP';
    FILE_NAME                                        FILE_ID           BYTES
    /home/ora102/oradata/db102/temp01.dbf                  1        73400320
    SYS@db102 SQL>                                                                   

  • 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,

  • 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.

  • How can validate the ASM size and free space correctly?

    Dears ,,
    I faced problem in ASM size as it appeared in alert file as below
    ORA-19504: failed to create file "+DG_DATA"
    ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
    ORA-15041: diskgroup space exhausted
    So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
    It seems that the shown free space is not real.
    How can validate the ASM size and free space correctly?
    Thanks & Regards,,

    *Oracle DBA* wrote:
    Dears ,,
    I faced problem in ASM size as it appeared in alert file as below
    ORA-19504: failed to create file "+DG_DATA"
    ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
    ORA-15041: diskgroup space exhausted
    So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
    It seems that the shown free space is not real.
    How can validate the ASM size and free space correctly?
    Thanks & Regards,,
    I was having this problem. Im my case i couldn add datafiles to a tablespace despite the fact that i was having a lot of space in the asm. Try rebalancing. It might help. In my case rebalancing also didn work because it seems that there need to be a threshold space in all the disks for the rebalancing to happen which was not in my case, so i had to shrink some unused space in the tablespace and then after gaining the required space I rebalanced the disk and then the disks got rebalanced, also i was able to use the free space that was showing .

  • After using "erase free space," hard drive has almost no available capacity

    I decided to clean all the files off my iMac as I wasn't using it as my primary computer anymore. After deleting the files, I used Disk Utility and used "erase free space" with the 7x option. I also emptied the Trash folder.
    When I checked the HD, I found:
    Capacity: 297.77 GB
    Available: 4.68 GB
    Used: 293.09 GB
    This makes no sense to me, since there is very little on the computer (some applications). Also, before I started, I know there was about 260 GB available.
    I'd appreciate some advice on how to "free up" the available space that I know must be there.
    Thanks!

    Hi, sounds like the secure erase didn't finish maybe & left a big invisible file on there.
    How much free space is on the HD, where has all the space gone?
    OmniDiskSweeper is likely the easiest/best, and is now free...
    http://www.omnigroup.com/applications/omnidisksweeper/download/

  • Help using "erase free space" feature in Disk Utility

    If I try to "erase free space" on my hard drive, the task never completes, and a temporary file is created, which can be deleted upon restart. If I start up from the Tiger Install DVD to wipe the free hard drive space, will I still have this problem or will it work properly?
    G5 Dual 2.3 GHz   Mac OS X (10.4.6)  

    So how much "free space" for a Temp file do you need to even use "Erase Free Space"? I have 111G available (120G drive), and I have 50G "free space", and it uses up all my space for a Temp File, then won't proceed unless I "clear more room on your startup drive". I need over HALF the drive empty to even use "Erase Free Space"? It would be nice if Apple told us before we started the long process.

  • Command of database used and free size

    Good Day for all of you .
    i need command to check whole database used and free size and table spaces , datafile used and free size.
    your help and cooperation highly appreciated.

    Query 1:
    select case grouping(Tablespace_Name)
    when 0 then Tablespace_Name when 1 then '======> TOTAL <======' end Tablespace_Name,
    autoextensible AutExt,trunc((sum(Bytes)/1024/1024),2)MB_SPC_OCCUP,
    trunc((decode(sum(MaxBytes),0,sum(bytes),sum(MaxBytes))/1024/1024),2) MB_TOT_AVAIL,
    trunc((decode(sum(MaxBytes),0,0,sum(MaxBytes)-sum(Bytes))/1024/1024),2) MB_Free_Spc,
    trunc(decode(sum(MaxBytes),0,0,
    (sum(MaxBytes)- sum(Bytes))/sum(MaxBytes)*100),2)Pct_Free_Spc,
    status from dba_data_files group by cube(Tablespace_Name), Autoextensible, status
    order by status,autoextensible,Tablespace_Name desc;
    Query 2:
    select (select decode(extent_management,'LOCAL','*',' ') from dba_tablespaces where tablespace_name
    = b.tablespace_name)
    || nvl(b.tablespace_name, nvl(a.tablespace_name,'UNKOWN')) name,
    kbytes_alloc kbytes,
    kbytes_alloc-nvl(kbytes_free,0) used,
    nvl(kbytes_free,0) free,
    ((kbytes_alloc-nvl(kbytes_free,0))/kbytes_alloc)*100 pct_used,
    nvl(largest,0) largest,
    nvl(kbytes_max,kbytes_alloc) Max_Size,
    decode(kbytes_max, 0, 0, (kbytes_alloc/kbytes_max)*100) pct_max_used
    from ( select sum(bytes)/1024 Kbytes_free,
    max(bytes)/1024 largest,
    tablespace_name
    from sys.dba_free_space
    group by tablespace_name ) a,
    ( select sum(bytes)/1024 Kbytes_alloc,
    sum(maxbytes)/1024 Kbytes_max,
    tablespace_name
    from sys.dba_data_files
    group by tablespace_name
    union all
    select sum(bytes)/1024 Kbytes_alloc,
    sum(maxbytes)/1024 Kbytes_max,
    tablespace_name
    from sys.dba_temp_files
    group by tablespace_name )b
    where a.tablespace_name (+) = b.tablespace_name
    Query 3:
    select b.tablespace_name, tbs_size SizeMb, a.free_space FreeMb
    from
    (select tablespace_name, round(sum(bytes)/1024/1024 ,2) as free_space
    from dba_free_space group by tablespace_name) a,
    (select tablespace_name, sum(bytes)/1024/1024 as tbs_size
    from dba_data_files group by tablespace_name
    UNION
    select tablespace_name, sum(bytes)/1024/1024 tbs_size
    from dba_temp_files
    group by tablespace_name ) b
    where a.tablespace_name(+)=b.tablespace_name
    Query 4:
    col "Tablespace" for a22
    col "Used MB" for 99,999,999
    col "Free MB" for 99,999,999
    col "Total MB" for 99,999,999
    select df.tablespace_name "Tablespace",
    totalusedspace "Used MB",
    (df.totalspace - tu.totalusedspace) "Free MB",
    df.totalspace "Total MB",
    round(100 * ( (df.totalspace - tu.totalusedspace)/ df.totalspace))
    "Pct. Free"
    from
    (select tablespace_name,
    round(sum(bytes) / 1048576) TotalSpace
    from dba_data_files
    group by tablespace_name) df,
    (select round(sum(bytes)/(1024*1024)) totalusedspace, tablespace_name
    from dba_segments
    group by tablespace_name) tu
    where df.tablespace_name = tu.tablespace_name ;
    Query 5:
    select t1.tablespace_name,
    sum(decode(t1.autoextensible, 'NO', t1.bytes, 'YES', t1.maxbytes))/1024 max_size,
    sum(nvl(t2.free, 0) + decode(t1.autoextensible, 'NO', 0 , 'YES', t1.maxbytes -
    t1.bytes))/1024 max_free,
    sum(t1.bytes)/1024 current_size,
    sum(nvl(t2.free, 0))/1024 current_free
    from (select file_id, file_name, tablespace_name, bytes, maxbytes, autoextensible from
    dba_data_files) t1
    left outer join
    (select file_id, sum(bytes) free from dba_free_space group by file_id) t2
    on t1.file_id = t2.file_id
    group by tablespace_name
    You can choose from any one or more as your requirement / choice.
    Regards
    Girish

  • How to find out the used space and free space in the DB for attachments

    Hi,
    In CRM 5.2 web UI, we can save a transaction by saving attachments like work documents or text files.
    Could someone help me find out the used space, free space, maximum capacity on the CRM DB for these attachments.
    Thanks & Best Regards,
    Ramesh.

    Hi,
    check with  below table
    TNAPR   ---  Processing programs for output
    and NACE Transaction code
    NACE  --  out types
    Regards,
    Madhu

  • I cant open Itunes 12.1.2 and use "erase free space"

    Hi guys, after updating the new Apple update (10.10.3 and iTunes 12.1.2, I have so many problem to my macbook pro 2014 version. It takes a lot longer to start the computer which is incredibly fast before updating. Plus, I also cant open the iTunes and use the "erase my free space" in Disk Utility due to "cant create temporary file" even when i have like 150 Gbs left. Any helps?

    Hey SteelyDanO78249
    My iTunes 12.1.2.27 becomes unresponsive on Windows 7 (64bit) whilst just browsing through the software, as I get a message come up saying “iTunes has stopped working” and then closes itself.  I personally think that the software is full of errors which need fixing by Apple especially as they still have not grasped the motto “If it aint broke don’t fix it”.  Especially as I have done everything like you have done to try to make the faulty software work.
    It will be interesting to find out if someone out there has found a fix, but I doubt they have.
    All the best, Jolly_Oli

  • Problem with game and free space

    I just installed a game, The Sims 2 and everytime I try and play it it says that I need to "free up some space on your local disk and relaunch the Sims 2". However I have 50G free space and sometimes it will load. Does anyone know what I should do?

    Hi sarah, welcome to macbook forum,
    uninstall your sims2, repair permission and optimize your HD using ONYX or machelpmate.
    reinstall your sims2, repair permission.
    Good Luck.

  • How to create a partition using the free space of an existing[SOLVED]

    Hi Guys,
    Since I could not install fifa 09 using wine on linux, I need to create a partition where I can install windows first in order to install fifa 09 on it. How can I create a partition using the rest free space of my , for example, /home partition?How can I do it in a secure way (meaning without doing something to my existing archlinux installation files and system files) ?
    Thanks.
    Please see this post:
    https://bbs.archlinux.org/viewtopic.php?id=109402
    Last edited by Archie_Enthusiasm (2010-12-08 19:23:46)

    Use Parted Magic. But you *should* backup any important files just in case, regardless of method you use. You never know. Someone could unplug your computer, a power surge might happen, etc. A cousin of mine actually did something similar while I was gaming, the extension cord has a red button which he "accidentally" pressed. I would've cracked his skull had he done it while resizing a partition.
    Anyway, the partitioning scheme should be the first thing you do when you decide go this route (dual booting). I remember about a year ago I forced myself to use Linux by formatting the entire drive to ext4, except for the 2 GB + 20 GB ntfs partitions. It was what kick-started me on this path. Here's my partitioning scheme for both computers, maybe you'll get an idea and do something similar:
    Older computer:
    2 GB ntfs - MicroXP
    8 GB ext4 - Arch Linux + Home dir (to keep the dot files organized in one place)
    20 GB ntfs - games partition
    Rest is for media, formatted as ext3 with inode 128 (so it can be loaded as Read-Only in Windows too via Ext2fsd so they won't be affected in case of a virus infection)
    New computer:
    20 GB Windows 7
    10 GB Arch Linux + home dir
    50 GB games partition
    Rest of the space is ext4 mounted to /media
    Note that they're all primary partitions for remembering easier (sda1, sda2, sda3, sda4) instead of a combination of primary and extended which would probably look like sda1, sda5, sda6, sda7, etc.
    Last edited by DSpider (2010-12-03 13:02:26)

  • Re-use of free space

    Hi,
    after a large client delete or after important data archiving, does Oracle re-use new freed space into datafile ? ... we need to delete a large client and then copy e new mid-size client but we haven't a lot of free space in dev system.
    Regards.
    Ganimede Dignan.

    Hello Ganimede,
    >> after a large client delete or after important data archiving, does Oracle re-use new freed space into datafile ?
    Oracle reuses the freed space inside the same segment. For example if you have freed space in table MSEG, you can reuse the allocated space only for table MSEG (=same segment).
    For indexes its a little bit "special", because the freed space (in blocks) can only be reused if they are completely empty, because of the index must be sorted.
    You can take a look at the ALL_TABLES on column AVG_SPACE to estimate the freed size in the tables (but take care, the values are only updated on statistic gathering):
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2105.htm#i1592091
    Regards
    Stefan

  • How can I use the free space of my Time Capsule as wireless HD ?

    Hi,
    Just set up a 2T Time Capsule and use it as Time Machine for my IMac and my MacBook.
    How can I use the 1 Tb free space to ave data available from all my devices ?
    Tks

    thierry118 wrote:
    Just set up a 2T Time Capsule and use it as Time Machine for my IMac and my MacBook.
    How can I use the 1 Tb free space to ave data available from all my devices ?
    Although it seems like you have a lot of extra space, Time Machine keeps versions, and if you want to take full advantage of the version history you should not worry about "extra space" because it will get used to provide safer coverage for the two Macs. If you had a Time Machine disk that fit your two Macs' hard drives perfectly, you would have no room for the version history, only room for the one most recent copy of each file. This can be a problem if you discover corruption that happened a while ago and cannot go back far enough in time to find an uncorrupted file.
    Therefore it's better to not try and use up the "extra space" and let it be used for a longer, safer version history for your backups.
    But like you, I want to use my Time Machine for additional network storage. So I plugged a cheap, compact hard drive into the Time Capsule USB port, and that shows up in File Sharing too. There is no need to buy anything fancier since it will be limited by both network speed and USB 2.0 anyway.

Maybe you are looking for