Determine the space allocated to the tablespace on disk and the database free summer

Hello

Using oracle 11.2.0.3 and want to determine that some new storage space will be large enough to hold the data that we intend to move in them these is large enough.

When watching in Oracle enterprise manager see tablespaces but all look to have a default value 1024 MB and when run query below don't even see the tablespaces.

Another team created these and advised 4 GB but want to verify this.

How can we be sure that 4 GB was allotted to each of the tablespaces concerned before moving data.

Select df.tablespace_name "Tablespace"

totalusedspace 'Used MB',

(df.totalspace - tu.totalusedspace) "MB free.

DF. TotalSpace 'Total MB. "

round (100 * ((df.totalspace-tu.totalusedspace) / df.totalspace))

"PCT free."

Of

(select nom_tablespace,

Round (Sum (bytes) / 1048576) TotalSpace

from dba_data_files

Group by tablespace_name) df,.

(select round (sum (bytes) /(1024*1024)) totalusedspace, nom_tablespace)

from dba_segments

where nom_tablespace like '% % refund '.

you group by tablespace_name)

where df.tablespace_name = tu.tablespace_name

order by 1

Thank you

Hello

Use this query and display the results:

CLEAR COLUMNS
SET LINES 200
COLUMN "Tablespace"  FORMAT A34 TRUNC
COLUMN "AllocSize (M)"    FORMAT 999,990
COLUMN "AllocFree (M)"    FORMAT 999,990
COLUMN "AllocUsed (%)"    FORMAT A16
COLUMN "MaxSize (M)"  FORMAT 999,990
COLUMN "MaxFree (M)"  FORMAT 999,990
COLUMN "MaxUsed (%)"  FORMAT A16

SELECT /*+choose*/    CASE f.status
              WHEN 'ONLINE'
                  THEN '+'
              WHEN 'OFFLINE'
                  THEN '-'
              ELSE '='
            END
        || '|'
        || SUBSTR (f.CONTENTS, 1, 1)
        || '|'
        || f.tablespace_name "Tablespace",
        f.nallocsize "AllocSize (M)", f.free "AllocFree (M)",
            '['
        || RPAD (NVL (RPAD ('#', ROUND (f.nusedpct / 10), '#'), '_'), 10,
                  '_')
        || ']'
        || LPAD (TO_CHAR (f.nusedpct), 3, ' ')
        || '%' "AllocUsed (%)",
        f.nmaxsize "MaxSize (M)",
        (f.free + f.nmaxsize - f.nallocsize) "MaxFree (M)",
            '['
        || RPAD (NVL (RPAD ('#', ROUND (f.nmaxusedpct / 10), '#'), '_'),
                  10,
                  '_'
                )
        || ']'
        || LPAD (TO_CHAR (f.nmaxusedpct), 3, ' ')
        || '%' "MaxUsed (%)"
    FROM (SELECT e.status, e.tablespace_name, e.CONTENTS, e.nallocsize,
                e.free, e.nmaxsize,
                (CASE nallocsize
                    WHEN 0
                        THEN 0
                    ELSE ROUND ((100 - (e.free / e.nallocsize * 100)))
                  END
                ) nusedpct,
                (CASE nmaxsize
                    WHEN 0
                        THEN 0
                    ELSE ROUND (  100
                                -  (e.free + e.nmaxsize - e.nallocsize)
                                  / e.nmaxsize
                                  * 100
                                )
                  END
                ) nmaxusedpct
            FROM (SELECT d.status, d.tablespace_name, d.CONTENTS,
                        ROUND (a.BYTES / (1024 * 1024)) nallocsize,
                        ROUND (NVL (s.BYTES, 0) / (1024 * 1024)) free,
                        (CASE
                            WHEN NVL (a.maxbytes, 0) < a.BYTES
                                THEN ROUND (a.BYTES / (1024 * 1024))
                            ELSE ROUND (NVL (a.maxbytes, 0) / (1024 * 1024))
                          END
                        ) nmaxsize
                    FROM (SELECT status, tablespace_name, CONTENTS
                            FROM dba_tablespaces
                          WHERE CONTENTS != 'TEMPORARY') d,
                        (SELECT  tablespace_name, SUM (NVL (BYTES, 0))
                                                                        BYTES,
                                  SUM
                                      (CASE
                                          WHEN NVL (maxbytes, 0) <
                                                                NVL (BYTES, 0)
                                            THEN NVL (BYTES, 0)
                                          ELSE NVL (maxbytes, 0)
                                      END
                                      ) maxbytes
                              FROM dba_data_files
                          GROUP BY tablespace_name) a,
                        (SELECT  tablespace_name, SUM (BYTES) BYTES
                              FROM (SELECT  tablespace_name,
                                            SUM (BYTES) BYTES
                                        FROM dba_free_space
                                    GROUP BY tablespace_name
                                    )
                          GROUP BY tablespace_name) s
                  WHERE d.tablespace_name = a.tablespace_name
                    AND d.tablespace_name = s.tablespace_name(+)
                  UNION ALL
                  SELECT d.status, d.tablespace_name, d.CONTENTS,
                        ROUND (a.BYTES / (1024 * 1024)) nallocsize,
                        ROUND (NVL (s.BYTES, 0) / (1024 * 1024)) free,
                        (CASE
                            WHEN NVL (a.maxbytes, 0) < a.BYTES
                                THEN ROUND (a.BYTES / (1024 * 1024))
                            ELSE ROUND (NVL (a.maxbytes, 0) / (1024 * 1024))
                          END
                        ) nmaxsize
                    FROM (SELECT status, tablespace_name, CONTENTS
                            FROM dba_tablespaces
                          WHERE CONTENTS = 'TEMPORARY') d,
                        (SELECT  tablespace_name, NVL (SUM (BYTES),
                                                        0) BYTES,
                                  NVL (SUM (maxbytes), 0) maxbytes
                              FROM dba_temp_files
                          GROUP BY tablespace_name) a,
                        (SELECT  h.tablespace_name,
                                  SUM (  (h.bytes_free + h.bytes_used)
                                        - NVL (p.bytes_used, 0)
                                      ) BYTES
                              FROM v$temp_space_header h,
                                  v$temp_extent_pool p,
                                  dba_temp_files f
                            WHERE p.file_id(+) = h.file_id
                              AND p.tablespace_name(+) = h.tablespace_name
                              AND f.file_id = h.file_id
                              AND f.tablespace_name = h.tablespace_name
                          GROUP BY h.tablespace_name) s
                  WHERE  d.tablespace_name = a.tablespace_name
                    AND d.tablespace_name = s.tablespace_name(+)) e) f
where f.tablespace_name like '%RTRN%'
;

PROMPT (+) = ONLINE      (P) = PERMANENT
PROMPT (=) = READ ONLY    (U) = UNDO
PROMPT (-) = OFFLINE      (T) = TEMPORARY
PROMPT

Edit:

Example of output:

Tablespace AllocSize (M) AllocFree (M) AllocUsed (%) MaxSize (M) MaxFree (M) MaxUsed (%)

---------------------------------- ------------- ------------- ---------------- ----------- ----------- ----------------

+| P | XDB 1 374 0 [#] 100% 8 192 6 818 [# _] 17%

If the column "MaxFree (M)" you show no space required, then your data files are not configured well. Your DBA must configure the parameters 'CanGrow' and 'maxsize' adequate level data file in each tablespace.

Kind regards

Juan M

Tags: Database

Similar Questions

  • DBUA could not determine the database version. Upgrade from 10.2 to 11.2

    I am trying to improve my database of version 10.2 to 11R2. I have already installed the software in a new Oracle home directory, and now I use the upgrade database wizard according to the instructions. In the section select your database, when I hit the next button after selecting my database I get the error "DBUA could not determine database version. Make sure that the version of the database is supported for upgrade". I have already confirmed that the upgrade from 10.2 to 11R2 database is supported. Does anyone know how to fix this?

    Thank you

    Apply the 4547817 hotfix that upgrades your database to 10.2.0.2 and then you can directly go to 11.2.0.2

  • Determine the database / DB Link Connectivity

    I have 2 databases access, via a DB_LINK I created. Before I run a procedure in a work, I want to check this db_link database is running and I have connectivity to it.

    I tried the following:

    DECLARE

    DUMB_NUMB NUMBER (1.0);
    NUMBER OF VAL_CONN;

    BEGIN
    VAL_CONN: = 0;

    BEGIN
    SELECT COUNT (*)
    IN DUMB_NUMB
    OF TABLE@DB_LINK_TEST
    WHERE COMPANY_ID = '002';

    EXCEPTION
    WHEN TIMEOUT_ON_RESOURCE THEN
    VAL_CONN: = 1;
    END;

    IF VAL_CONN > 0 THEN
    DBMS_OUTPUT. PUT_LINE ('NO NO CONNECTION!');
    ON THE OTHER
    DBMS_OUTPUT. PUT_LINE ("CONNECTION ESTABLISHED!'");
    END IF;
    END;

    This annonymous block is just for proofing.

    I was wondering if maybe I can throw something like a TNSPING in PL/SQL or if there is an Oracle Exception with no link established a database link!

    You get this error at compile time? Or at run time?

    I guess that's a compilation error, in which case a run time of the Manager of exceptions would not be called. If you can not solve the object at the time that the block is compiled, you cannot encode an exception for this handler.

    Justin

  • Backup on USB fails for lack of space; but it's a blank disk and there is no files on it!

    I have improved my NV + v1 (4.1.14) with 4 x 2 TB drives and I met the 4 k block size problem. So I'll try my backup device so that I can factory reset it.

    The current size of the volume is 1.3 to, so I took on one of the 2 TB drives to use as a backup via USB. 1.3 TB should fit easily in 2 TB, right?

    I added the 2 TB drive to the front USB port and formatted in ext3, it shows very well in stocks and a space free expected.

    So I made a backup and the source = task share / dest = USB/Sharename/and he ran.

    It works for a few minutes and stops with this error:

    Encountered error copying data from the source ==> /USB_HDD_4_1 path / / bla due to lack of disk space. [Job 003]

    I look at the USB and it is FULL. Zero byte available. He made a few records, but they are all empty.

    What is going on?

    Are there hidden files (.appledouble, etc.)? I ran BlueHarvest on the volume before the backup, and he deleted a bunch of them. But not 2 value of TB.

    I use this volume mainly with my Mac... am I missing?

    Any help is appreciated! Thank you

    OK, I got the multiple partition problem.

    When partitioning a disk with Mac disk utility, it creates a partition from FAT32 MASK called EFI which is used for Intel to start. The EFI partition is confusing RAIDiator and leading them to try to use the small EFI partition instead of the large main.

    Since I am not start this drive (it's only for backup), it is safe to remove it. You must enable a debug option to see the partition in disk utility. Google search for "EFI Partition delete on mac" to see how to do it.

    Also, I used EXTfs for mac by Paragon Software that allows you to create and mount ext3 on your mac partitions. http://www.Paragon-drivers.com/ExtFS-Mac/

    Backup operation runs now... If all goes well, it ends with success!

  • Use the Space Allocation can be resumed

    Hi all
    Use Resumable Space Allocation
    Resumable space allocation provides a way to suspend and later resume database
    operations if there are space allocation failures. The affected operation is suspended
    instead of the database returning an error. No processes need to be restarted. When the
    space problem is resolved, the suspended operation is automatically resumed.
    Set the RESUMABLE_TIMEOUT initialization parameter to the number of seconds of the
    retry time.
    instead of the database returns an error
    How do you know that your system is saturated if there is no error is displayed?

    Thank you

    Resumable Space allocation will help out when you try to insert/upload data in your oracle database and there are problems of space due to a physical, logical limit and space on tablespace quota so that this download process will not restore process will suspend and wait by default 7200 seconds (2 hours) if solve you the problem of the space of 2 hours your insertion or download will start from the point where she get suspended.

  • problem in the recovery of the database!

    Hi all

    I created a new database and wanted to restore the backup to a different database in it, I created the required tablespaces and began the restoration of RMAN backup by

    Run {}
    allocate channel 'dev_0' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, OB2APPNAME = orcl OB2BARLIST = DAILY_HISDBS01_ORACLE-DB_ONLINE_5W, OB2BARHOSTNAME = hisdbs01.kfmc.med)';
    Restore controlfile from "c-1179279249-20090511-02';
    change the editing of the database;
    free the channel "dev_0;
    }

    The obtained controlfile restored successfully, then I tried to restore and recover the database

    Run {}
    allocate channel 'dev_0' type 'sbt_tape '.
    parms 'ENV = (OB2BARTYPE = Oracle8, central = OB2APPNAME, OB2BARLIST = DAILY_HISDBS01_ORACLE-DB_ONLINE_5W, OB2BARHOSTNAME = hisdbs01.kfmc.med)';
    restore the database;
    recover the database;
    free the channel "dev_0;
    }

    The restoration was successful, but when I tried to open the database with the resetlogs option

    SQL > alter database open resetlogs;
    ALTER database open resetlogs
    *
    ERROR on line 1:
    ORA-01194: file 1 needs a recovery more match
    ORA-01110: data file 1: '+ DATADG/orcl/datafile/system.295.686609187 '.
    SQL > restore database using backup controlfile until cancel;

    ORA-00279: change 1136286903 September at 2009-05-11 02:08:22 for thread1
    ORA-00289: suggestion: */arch/archivelog/1_8493_651861624.dbf*
    ORA-00280: change 1136286903 thread 1 is in sequence #8493

    Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
    Cancel
    ORA-01547: WARNING: RECOVER succeeded but OPEN RESETLOGS would get below error
    ORA-01194: file 1 needs a recovery more match
    ORA-01110: data file 1: '+ DATADG/orcl/datafile/system.295.686609187 '.
    ORA-01112: media recovery not started

    The recovery process is looking for */arch/archivelog/1_8493_651861624.dbf* this archivelog, but this archivelog file is not present at this location, the restore process should have restored all archivelogs as well, in fact any archivelogs didn't get restored, how can I recover the database without newspapers archivelog? It is not possible at all.

    Please tell me how can I do the database work?

    Have you tried to restore the Archivelogs through RMAN manually, using "RESTORE ARCHIVELOG FROM TIME ="datestring "?

    See if RMAN can detect the ArchiveLogs tape.

  • System tablespace allocation how oracle determines the size of the measure

    Hello

    It may be a silly question, but the I must request and obtain a few knowdge

    Assume that the allocation_type tablespace is system so how oracle determines the initial measurement and size max measure?

    Osama has provided useful links to the information you need. I'll just add with locally managed tablespace that the maximum number of spans is always unlimited even if you specify a value in the storage of declaration of establishment clause. Oracle does not take into account the value you provide and will with unlimited. I consider this unfortunate since in most cases, I know how large tables can reach and if the table extends beyond that point a developer made a mistake.

    HTH - Mark D Powell.

  • determine the storage space for the upgrade of the APEX

    I put on my 11.2.0.3.12 level APEX APEX to APEX 4.2.4.00.08 version 3.2.1.00.12 version database.  I understand that I must perform the full upgrade, I am moving from version 3.2.x to 4.2.x.

    According to the APEX 4.2 Installation Guide for the full development environment, I have to spend in the following arguments:

    @apexins.sql tablespace_apex tablespace_files tablespace_temp images

    Where:

    • tablespace_apexis the name of the storage space for the user of the Oracle Application Express application.
    • tablespace_filesis the name of the storage space for the user to Oracle Application Express files.
    • tablespace_tempis the name of the temporary tablespace and tablespace group.
    • imagesis the virtual directory for the images of Oracle Application Express. To support future upgrades Oracle Application Express, set the directory of the virtual image that /i/ .


    How can I determine which user is the " " " User of the oracle Application Express application" and which the user is the user Oracle Application Express 'files' (if I can then watch their default storage spaces)?



    Hi Mimi Miami,

    Mimi Miami wrote:

    I put on my 11.2.0.3.12 level APEX APEX to APEX 4.2.4.00.08 version 3.2.1.00.12 version database.  I understand that I must perform the full upgrade, I am moving from version 3.2.x to 4.2.x.

    According to the APEX 4.2 Installation Guide for the full development environment, I have to spend in the following arguments:

    @apexins.sql tablespace_apex tablespace_files tablespace_temp images

    Where:

    • tablespace_apexis the name of the storage space for the user of the Oracle Application Express application.
    • tablespace_filesis the name of the storage space for the user to Oracle Application Express files.
    • tablespace_tempis the name of the temporary tablespace and tablespace group.
    • imagesis the virtual directory for the images of Oracle Application Express. To support future upgrades Oracle Application Express, set the directory of the virtual image that /i/ .

    How can I determine which user is the user Oracle Application Express 'application' and that the user is the user Oracle Application Express 'files' (so I can then look at their default storage spaces)?

    APEX 3.2.x installation that follows is users:

    • Oracle Application Express Application user: APEX_030200
    • Oracle Application Express user files: FLOW_FILES

    So to determine the tablespace_apex and the tablespace_files you must connect with the user sys with sysdba privilege and run the following query:

    SELECT USERNAME
         , DEFAULT_TABLESPACE
      FROM DBA_USERS
     WHERE USERNAME IN ('FLOWS_FILES','APEX_030200')
    

    Then use the APEX_030200 user as tablespace_apex tablespace and a tablespace of the FLOW_FILES user as tablespace_files.

    I hope this helps!

    Kind regards

    Kiran

  • The unit of Allocation ASM vs Tablespace uniform extended

    Hi all

    I do proof of concept on the migration of our file system based in ASM and RAC databases. The current database has tablespaces with a uniform management of measure of sizes of measure 10 M, 100 M and 512 M.

    ASM, I see Oracle documentation that allocates the ASM extended based on the AU from 1 MB. After the sunset of the 20,000 first to what extent, the size of the measure becomes 8 * for then 20000 sets of measure. The increment for a measure of ASM is 64 * AU.
    [http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asmcon.htm#BABCGDBF]

    So my question is that how can I have some tablespaces with uniform measurement volume of say 100 M on ASM? If so, will be a more detailed breakdown ASM sizes measure to its default size of AU?

    Appreciate the answers on this one!

    Kind regards
    Naren

    Hello
    Please don't mix as oracle with the concepts of data scopes used here, see http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/ostmg_gloss.htm#BABFCABI

    I guess you know about the concepts of the tablespace extents (you can have one size car or also different size). Here are the intra-space management tablespace. For extensions of data described here, you can compare it with BONE block in normal filesystem, and each award using the ASM consists of one or more data extensions (not extensions of tablespace).

    So my question is that how can I have some tablespaces with uniform measurement volume of say 100 M on ASM? If so, will be a more detailed breakdown ASM sizes measure to its default size of AU?

    IKE just as you can use the same size of extents for tablespace of 100 MB on a filesystem regular of the BONE 512 bytes block or 2 k or 4 k (or other). In this case, your database will want to write to allocate an extent of 100 MB and then ASM will take over the responsibility than the way in which it will physically store this measure 100 MB on disk group by spreading the Allocation unit. If your this measure when this group of disks, 100 MB is required to be distributed among a number of (set of data extensions) measure 20001 and your ASM allocation unit size is 1 MB, it will allocate extent file ASM 8 * 1 size and total about 13 degrees (13 * 8 = 104 MB) so that your measure of tablespace 100 MB can be stored.

    Salman

    Published by: Salman Qureshi Sep 20, 2010 11:45

    Published by: Salman Qureshi Sep 20, 2010 11:52

  • Shorten the space allocated to the url container

    Despite the addition of icons by "customize toolbars", that show, during the customization, several of the addition of icons disappear when 'done '. I removed the container from the research, but it made no difference. I changed the length of the container url (which extends to the space reserved for the two containers when you remove the container of research) by adding a line in the userChrome.css file. The url container was resized to the 600px I put but the space previously allocated for the two containers (url and search) remained unchanged, pushing the addition of icons on the screen and leaving a large empty space to the right of the container url. Anyone know how to reduce the space allocated for containers of url and search which allows visualization of the addition of icons?

    Have solved! Or, at least, the problem. Whenever the bookmark icon is included it seems to affect the behavior of other icons as well as do not display itself (the bookmark icon). By not including not not the bookmark icon all right.

    I tried the 10px width max and min of hand and side of a median, but reset if max and min are the same value. Performed as expected in both cases. Besides the values min made no difference. Activate the 8 modules and plug-ins 19. All work normally.

    Back to normal by using the Favorites menu when I want to bookmark a page.

    Thanks for the comments.

  • Determine the unused space in the virtual hard drives

    I will determine the unused space in my virtual hard drives.  I want to:

    • Select a virtual machine
    • the first vmdk disk is always the OS disk in this environment.  How much space was put in service, and how much is actually used?

    • The other disks are data application.  What is the total space on these non-OS disks, and how much of this space is actually used?

    Thank you!

    You then get the results when you run this adapted version?

    Get - VM |

    Select Name,

    @{N = "Capacity of the system disk"; E = {}

    $_. Hard drives | Where {$_.} Name - eq 'Disk 1'} |

    Select CapacityGB - ExpandProperty

    }},

    @{N = 'Disk system used'; E = {}

    $hdC = get-VMGuest - VM $_. %{$_. Guest.Disks} | Where {$_.} Path - eq "C:\". »}

    [math]: round (($hdC.CapacityGB-$hdC.FreeSpaceGB), 1).

    }},

    @{N = "Another capacity of disks"; E = {}

    $_. Hard drives | Where {$_.} Name - not "disk 1"} |

    Measure-object-property CapacityGB-sum |

    Select sum - ExpandProperty

    }},

    @{N = 'other disks used'; E = {}

    [math]: Round ((Get-VMGuest-VM $_ | % {$_.)) Guest.Disks} | Where {$_.} Path - not "C:\". »} | %{

    $_. CapacityGB - $_. FreeSpaceGB

    } | Measure-object-sum |

    Select - ExpandProperty Sum), 1).

    }}

  • How to set the storage space allocated to the restoration of the system to 200 MB?

    Could you tell me how to set the maximum storage limit to 200 MB?

    Whenever I have delete system restore points, my hard disk free space increases about 10%.  About a week or so later, it's back to where it was before I deleted the restore points.

    It is very important for me because I am sure that storage space is set too high.

    Hello

    See the "BOLD" marked links with more information to help.

    Phantom memory also holds your restore VSSadmin points it defines parameters.

    How to create a Vista System Restore Point
    http://www.Vistax64.com/tutorials/76332-system-restore-point-create.html

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html
    How to turn System Restore on or off in Vista
    http://www.Vistax64.com/tutorials/66971-system-restore.html

    Adjustment of the amount of disk space, System Restore uses for restore points
    http://bertk.MVPs.org/html/diskspacev.html

    How to change how much Space System Restore can use
    http://www.Vistax64.com/tutorials/76227-system-restore-disk-space.html
    http://www.Petri.co.il/change_amount_of_disk_space_used_by_system_restore_in_vista.htm

    ShadowStorage vssadmin commands
    http://TechNet.Microsoft.com/en-us/library/cc755866 (WS.10) .aspx
    http://technet2.Microsoft.com/WindowsServer/en/library/89d2e411-6977-4808-9AD5-476c9eaecaa51033.mspx?mfr=true

    Guide to Windows Vista system restore
    http://www.bleepingcomputer.com/tutorials/tutorial143.html

    Expiration errors occur in Volume Shadow Copy service writers, and shadow copies are lost during
    backup and at the time when there are high levels of input/output
    http://support.Microsoft.com/?ID=826936

    A good utility:

    Explorer of the shadow - free
    http://www.ShadowExplorer.com/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Calculate the space used in the database!

    Hi all

    I can calculate the space used by using one of the following ways:

    1. determine the size allocated by issuing

    SELECT SUM(d.bytes/1024/1024/1024)
    FROM dba_data_files;

    2 calculate the free space by issuing

    SELECT SUM(bytes/1024/1024/1024)
    from dba_free_space;

    Space used will be the value of the first statement - value of the second statement. This is manually!

    Is it possible to combine these two queries?

    Thank you!

    Dan.

    You can certainly combine queries

    SELECT (allocated.bytes - free.bytes )/1024/1024/1024 used_gb
      FROM (select sum(bytes) bytes from dba_data_files) allocated,
          (select sum(bytes) bytes from dba_free_space) free
    

    Normally, you could group tablespace as well.

    But if you want just the amount of space used, it is probably easier to just

    SELECT sum(bytes)/1024/1024/1024 used_gb
      FROM dba_segments
    

    Justin

  • Determine the use of the instance

    We have a replicated environment up and running, was designed to provide a location for performing low priority queries in order to discharge this load on one server other than the database of production.

    I am asked to determine how often and to what extent, this database is used. Essentially, if it is grossly underutilized, we seek to get rid of it, or find another solution. Is there a common approach for the collection of these types of settings? Should I be poking around in OEM for that? Or, should I be building something that periodically seizes the usage information and stores it in an array?

    Thank you
    -= Chuck

    I could something put in place with the triggers of opening and closing of session and eventually connected the track time and gets consistent from closing session or something.

    You can do it.

    I was wondering if there was something that we already had.

    StatsPack
    schedule a task to run every hour.
    create tablespace with couple of GB size because it fills the space quickly.

  • Recovery of space allocated to a table (tablespace)

    One of the tables in the database to prod had some app config related issue and started to gobble up the space like a T - Rex hungry!

    App support team have finally identified the problem and the abnormal growth is over. Now the task I have to do is reclaim the space that has been allocated to the tablespace, so that it can be used properly for the future growth of the database.

    Can you please advice on the best approach to the problem. One that I can think of is,
    1. ask downtime,
    2 export the tables in the tablespace.
    3 truncate all tables (so that HWM is reset)
    4 only import the back tables in the tablespace.

    Is there another way in 10g that will allow me to do it with little or no downtime?

    Reduction of table operation is an online order. Users can use the table while that shrinkage is held well less DML activity on the fastest table, that the command can deal with.

    HTH - Mark D Powell.

Maybe you are looking for