Administer datafiles, tablespaces and free space

Hi all,
Firstly i want to apologize if my English is not very good, and secondly for if there is such topic already. I tried the "search" but didn't find something that suits my requirements...
We are using Oracle9i.
Here is the (potential) problem:
I noticed that the some of the filesystems soon will run out of space.
Example:
/dev/vg07/lv_data7 71671808 68657701 2825782 96% /var/application/oracle/data07
/dev/vg07/lv_data6 71671808 58102994 12720766 82% /var/application/oracle/data06
/dev/vg07/lv_data5 71671808 69448894 2084034 97% /var/application/oracle/data05
/dev/vg07/lv_data4 71671808 67765635 3662100 95% /var/application/oracle/data04
/dev/vg06/lv_data3 71675904 65840498 5470722 92% /var/application/oracle/data03
/dev/vg05/lv_data2 71675904 65730929 5573472 92% /var/application/oracle/data02
/dev/vg03/lv_data1 70656000 65924095 4436216 94% /var/application/oracle/data01
/dev/vg10/lv_data10 292929536 7301210 267776605 3% /var/application/oracle/data10
/dev/vg10/lv_data11 292929536 0 292929536     0% /var/application/oracle/data11
Lets for example take a look at data05:
/var/application/oracle/data05 > ls -l
There are many tablespaces and some of their datafiles there.
-rw-r----- 1 oracle dba 367005696 Jul 21 13:19 e1_data_d_d_11.dbf
-rw-r----- 1 oracle dba 209719296 Jul 21 13:20 e1_data_d_d_12.dbf
-rw-r----- 1 oracle dba 1022365696 Jul 21 13:19 m_data_d_07.dbf
-rw-r----- 1 oracle dba 812650496 Jul 21 13:19 m_data_d_08.dbf
-rw-r----- 1 oracle dba 707792896 Jul 21 13:19 m_data_d_09.dbf
-rw-r----- 1 oracle dba 2097156096 Jul 21 13:19 e_data_d_30.dbf
-rw-r----- 1 oracle dba 734007296 Jul 21 13:20 e_data_d_38.dbf
-rw-r----- 1 oracle dba 629149696 Jul 21 13:20 e_data_d_39.dbf
-rw-r----- 1 oracle dba 419434496 Jul 21 13:20 e_data_d_40.dbf
-rw-r----- 1 oracle dba 812650496 Jul 21 13:25 m1_data_d_03.dbf
-rw-r----- 1 oracle dba 393220096 Jul 21 13:27 m1_data_d_04.dbf
-rw-r----- 1 oracle dba 209719296 Jul 21 13:20 m1_data_d_05.dbf
-rw-r----- 1 oracle dba 2097160192 Jul 21 13:19 m1_data__03.dbf
-rw-r----- 1 oracle dba 2097160192 Jul 21 13:39 m1_data__04.dbf
-rw-r----- 1 oracle dba 2097160192 Jul 21 13:19 m1_data__05.dbf
-rw-r----- 1 oracle dba 2097160192 Jul 21 13:39 m1_data__06.dbf
-rw-r----- 1 oracle dba 2097160192 Jul 21 13:19 m3_data_d_d_03.dbf
-rw-r----- 1 oracle dba 2097160192 Jul 21 13:42 m3_data_d_d_04.dbf
-rw-r----- 1 oracle dba 1572872192 Jul 21 13:20 m3_data_d_d_05.dbf
drwxr-xr-x 2 root root 96 Nov 21 2006 lost+found
-rw-r----- 1 oracle dba 942678016 Jul 21 13:19 system02.dbf
-rw-r----- 1 oracle dba 72359936 Jul 21 13:20 system04.dbf
The situation is similar in the other filesystems - various tablespaces and a lot of datafiles.
Perhaps you've noticed that /data10 and /data11 are empty.
What is the best approach in this situation so that we start using those two filesystems .
Is moving datafiles from heavily used filesystems to the empty ones there is a good solution?
My idea is to make Oracle to automatically extend the tabespaces over the empty volumes and start creating the new datafiles there, but i am not sure how exactly to do that.
Any help will be appreciated.
Regards.
/R
Message was edited by:
user648100

Thanks for the quick reply.
MYH,
Yes, the tablespaces are autoextend on. Here is the information about one of them from the GridControl:
Name e1_data_d_d
Status ReadWrite
Type Permanent
Extent Management local
Storage
Allocation Type Automatic
Segment Space Management Automatic
Enable logging Yes
Block Size (B) 4096
I did not understand the second question - about partition a datafile?!? I can move datafiles but i'm still learning... never heard of partitioning a file, sorry.
Yas, i think the datafiles are Oracle Managed and oracle, after filling up a file, creates the new datafile automatically. I can create new file within the empty filesystems, but isn't it dangerous.
And with regards to same question - if i create a new datafiles, or move old datafiles - will Oracle start to use the new filesystems automatically?

Similar Messages

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

  • 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

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

  • Doubt in considering temp tablespace's free space

    Hi All,
    Database: oracle 11.2
    Operating System: AIX
    I want to know how much free space available in my temp tablespace
    I ran below scripts
    select sum((bytes_free)/1024/1024/1024) GB from v$temp_space_header
    +52.904296875+
    select (tablespace_size)/1024/1024/1024 tablespace_size_in_gb,
    +(allocated_space)/1024/1024/1024 allocated_space_in_gb,+
    +(free_space)/1024/1024/1024 free_space_in_gb+
    from dba_temp_free_space
    tablespace_size_in_gb: 98.9990234375
    allocated_space_in_gb: 46.0947265625
    free_space_in_gb:151.81640625
    So my doubt is which one from above two script gives actual free space information ?
    Also in dba_temp_free_space view why free space size > tablespace size ?

    v$temp_space_header shows you how big the temp tablespace has got since the database was restarted. It doesn't give you the current free/used space.
    See the link for dba_temp_free_space, but I think it may be the way it reports free space which is why you're seeing it as more than the actual tablespace. As you can see form the description "space that is currently allocated and available for resuse" is calculated for both allocated space and free space.
    http://docs.oracle.com/cd/B28359_01/server.111/b28320/statviews_5056.htm
    >
    ALLOCATED_SPACE = space that is currently allocated and used + space that is currently allocated and available for reuse
    FREE_SPACE = space that is currently allocated and available for reuse + space that is currently unallocated>
    I use the below script which I've plagiarised from somewhere ages ago to get the used/free temp space.
    SELECT   A.tablespace_name tablespace, D.mb_total,
             SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_used,
             D.mb_total - SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_free
    FROM     v$sort_segment A,
             SELECT   B.name, C.block_size, SUM (C.bytes) / 1024 / 1024 mb_total
             FROM     v$tablespace B, v$tempfile C
             WHERE    B.ts#= C.ts#
             GROUP BY B.name, C.block_size
             ) D
    WHERE    A.tablespace_name = D.name
    GROUP by A.tablespace_name, D.mb_total;

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

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

  • Imac purchased 6/07, when trying to upgrade says model not supported? have plenty of ram and free space? so what is not compatible in the model i have?

    i purchased my imac 6/07 ... model 6,1    it has 4 gb ram and plenty of free space, also connected to time machine for backup. currently have latest lion os 10.7.4.
    when i went to upgrade i get a model not supported message?  what spec or device integral to my model is holding this back?  can i get around this or am i just at a brick wall?  would like to upgrade if possible? have a 2.33 ghz intel core duo processor, 4 GB 667 Mhz DDR2 SDRAM
    anyone know what is going on with apple and this model, wife has last years mac mini and it's upgrade went off without a hitch
    thanks !

    Apple has tightened its requirements for this OS upgrade, and some older Macs— even ones that qualified for Lion — won't make the cut for Mountain Lion.
    The general system requirements are straightforward:
    OS X v10.6.8 or later
    2GB of memory
    8GB of available space
    Apple also lists which models support Mountain Lion:
    iMac (Mid 2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    Xserve (Early 2009)
    MacBook Air (Late 2008 or newer)
    Mac mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    From what i've read elsewhere, your older model of iMac has a CPU and logic board that partially runs in 32 bit mode at times.  Mountain Lion requires that they run Exclusively in pure 64 bit mode.  Yours cannot be made to do that.
    Hope this helps

  • Saves and free space

    Every time i attempt to play madden it constantly pops up that i have no free space and cannot save.. and that i need to clear up 2.13 MB in system storage to save.. then it gives me tips like delete themes, gallary items etc... But I still have 332.1 GB left of free space.. so why is asking me to do this and how can i either have it stop popping up or get rid of the message altogetether?

    First off delete the game data and re-install it, if the game save is no big deal delete that too If that doesn't work, then start the PS4 in safe mode and rebuild database, see if that works

  • 5G nano free space on iPod and free space in iTunes do not match, help...

    Greetings. My 5G nano shows 118MB free in the preview panel when I highlight 'settings' - however when connected in iTunes, when I select the name of my iPod nano, it shows 68.4MB free. Why is this? Thank you.

    Well, I reset the nano by holding the menu and center buttons, twice. I dont know what that was supposed to do but nothing changed, not the menu or the amounts of free space. Im going to try a restore now...which I dread because filling an iPod from a library larger than the capacity of the iPod is a pain.

  • Podcast and free space

    I deleted Podcast app (1.7 gb) from my iPhone 4 with iOS 7.1.2 but from Settings-General-About-Available the free space is always the same as before the deleting.
    It is like i did not delete anything.

    rose12345 wrote:
    and unchecked many songs but it will not sync in order to make more space.
    Unchecking songs on iTunes does not create more space on your iPod.  You must delete the songs from iTunes "Devices/Music" to make more space on your iPod.
    Syncing Music to iPod
    iPod nano Troubleshooting Assistant
    Adding and Deleting Songs and playlists from your iPod
    iPod Nano 5th Gen. User Manual

  • Uninstalled Bootcamp left with Macintosh HD and Free Space

    Uninstalled Bootcamp and left with this! Anyone know how to fix without erasing and backing up Thanks!

    I agree with the above comment.
    Also, I think you can't change a partition that's at the beginning. The steps to rearrange the partition without reinstalling will be time consuming than backing up and reinstalling. But if you want to try it (highly recommend backing up the data first)
    format the free space as it's partitioned (partition 1)
    clone the data to the new partition (partition 1) created in step 1 (you can use carboncopycloner to clone)
    after confirming the data is fully cloned to partition 1, format and merge the remaining partition
    I've done it before multiple times with success, but always backup your data if you are unsure.

Maybe you are looking for

  • What are the best practices to connect 30-40 iPads to Wi-Fi in a single room?

    What are the best practices to connect 30-40 iPads to Wi-Fi in a single room?

  • Is it possible to link to a specific page in an embedded Tumblr blog

    Hello. I have an embedded Tumblr blog on a customers Muse site. Is it possible for them to link to a specific page in the Tumblr Iframe, and have it wrapped in there website? I appreceiate all of the help.

  • HP 4420s - How to enable mouse pad ?

    Hi all,  I have a user that has somehow disabled the mouse pad on this unit (HP 4420s laptop). I don't have a unit on had to test what he's relaying to me. He says there is a yellow light now near the touch pad that illuminates when he is logged into

  • Zen Micro: how many are working proper

    I bought a Zen Micro for my daughter for Christmas and finally sent it back because it was having the docking problems. I have reguarly read the messages in this forum since then, waiting for an indication that the problem has been fixed. I have read

  • New Report Option in OBIEE 11.1.1.7

    Hello All, I just started creating a New Report for the first time, for that i have created one Data Model using Essbase Datasource. After New -> Report  -- It is asking to select Use DataModel (or) Use SpreadSheet (or) Use Subject Area. Then i selec