Alert, if the tablespace size reached 80%

Hi friends,
Can i get the alert, if the tablespace used size reached to 80%.
Because i handles 25 Databases, going to each databases and checking the tablespace size is really painfull.
Is there any third party free tool available to check the tablespace size OR can we do it in database itself...pls help
Rgds,
Pravin...

>
Can i get the alert, if the tablespace used size reached to 80%.
Because i handles 25 Databases, going to each databases and checking the tablespace size is really painfull.
Is there any third party free tool available to check the tablespace size OR can we do it in database itself...pls help
>
1 Best option is using Grid Control. It may cost.
2 Another option is to write a check space procedure on your favorite language - PL/SQL, Java, Perl .... that will send an alert to you.
3 Another option is to use some generic monitoring framework like Sysmon.
If you do not already have one, and you do not have money for #1 and #3, and time for #2 you can use a free monitoring framework like Nagios.
There are couple of Oracle plugins for Nagios that you can download for free from Internet. They check not only tablespace free space, but also other important Oracle metrics and alert log. Also you can write your own checker on any language and plug it into Nagios.

Similar Messages

  • How to see the tablespace size

    hi
    how to get the tablespace size??
    thx

    Hello,
    select SUM(bytes)/1024/1024 MB from dba_data_files
    where tablespace_name = 'xxxxxx';
    works fine.
    I am trying to build a function for that:
    select SUM(bytes)/1024/1024 MB
    from dba_data_files
    where tablespace_name=upper('&user')
    However, I need to make some enhancements:
    1. how to make comments in sql files?Refer to the REM statement in the sqlplus reference manual
    2. a lot of outputs are generated:
    SQL> @get_size
    Enter value for user: tts1
    old 3: where tablespace_name=upper('&user')
    new 3: where tablespace_name=upper('tts1')
    MB
    2048
    how to avoid that so that only the size is
    displayed.
    for example:
    SQL> @get_size
    Enter value for user: tts1
    MB
    2048
    Refer to set verify off in the sqlplus reference manual.
    >
    3. how to let the function accept a parameter such
    as:
    SQL> @get_size tts1
    Refer to the define command in the sqlplus reference manual.
    >
    4. how to include a usage (help) to that function
    such as:
    SQL> @get_size
    usage: get_size <tablespace name>
    Many thanksRefer to the prompt statement in the sqlplus reference manual.
    Sybrand Bakker
    Senior Oracle DBA

  • How to query the tablespace size increment speed?

    Hello,
    Do you have any directions or ideas on how to know the tablespace size increments history. or how to know the frequency of tablespace size increment.
    when I went into new database, I never managed this database before, i want to know the tabelspace size increments speed for do the reasonable space extend.
    so could you please give us a guide thanks!

    RLUO wrote:
    Hello,
    Do you have any directions or ideas on how to know the tablespace size increments history. or how to know the frequency of tablespace size increment.
    when I went into new database, I never managed this database before, i want to know the tabelspace size increments speed for do the reasonable space extend.
    so could you please give us a guide thanks!Hi, there good way is using DBMS_SPACE.OBJECT_GROWTH_TREND as Rajesh mentioned that.But also you can use some AWR views to getting this information.Seee below link.
    tablespaces' growth trend

  • Estimate the tablespace size

    Hi,
    I am expected to insert around 10580000 rows in a table. Based on this number will I be able to calculate the tablespace size.
    Thanks
    SC

    Hello,
    Simple math; excluding any overhead
    db_block_size/avg_row_len = approx number of rows per block
    Total no of rows / approx number rows per block = Approx number of blocks
    Approx number of blocks * db_block_size = Approx number of bytes
    Approx number of bytes / (1024*1024) = Size in MB
      8192 = db_block_size
      173  = avg_row_len
       select 8192/173 from dual;
       select ( (10580000/47)*8192) / ( 1024 *1024) from dual;
      Regards

  • Reduce the tablespace size

    Hi,
    In my database, one tablespace used 5% and it's size is 8GB when i try to shrink the tablespace it gives the error that you can not shrink the tablespace.
    So can you please tell me that how can i reduce the size of that tablespace.
    Thanks in advance.

    1) Export the tables of that tablepsace
    2) Create a new tablespace and dump those tables into new tablespace
    3) Drop the 8GB tablespace.
    OR
    1) Move online the tables of 8 GB tablespace into another tablespace. Rebuild the indexes.

  • Reclaim the tablespace size...

    Hi Friends,
    Now i have joined as DBA in new company. After ananyzing my database i came to know my databases system tablespace had lot of user objects that around 9GB. I moved all the tables to another one tablespace now i want to reclaim that 9GB of space from my system tablespace. Bacause due to space constraint my company is not allowing me to keep that 9GB of space wastly. can you please any one let me know any effective procedure for reclaim that 9GB from my system tablespace?
    Data base Relaease : 9.2.0.4.0
    OS release: Suse linux 2.4.21-198-smp
    Thanks for your effort and help
    Regards,
    Karthik

    Hi Karthik
    Looking at the situation which you have mentioned, the only solution which looks feasible to me is :
    1. Export the entire user data.
    2. Drop the database
    3. Create and new database
    4. Import the user data
    Note : Keep in mind that the database shouldn't be of production.
    Please keep in mind the following:
    1. In NON SYSTEM tablespaces, usually the content of the entire TABLESPACE concerned is exported, then the tablespace is dropped including content and datafiles, the tablespace is newly created and data is imported back.
    2. We have an option of resizing the database using alter system .. command but it usually works only if the datafile has not been used after increasing its size or if it has been added recently.
    3. Do not create user data in SYSTEM tablespace. Use separate tablespace for users. SYSTEM tablespaces are used for data-dictionary data.

  • Reducing the tablespace size

    Hi,
    My database size has been grown upto 20GB. So we thought of dropping the users after taking the backup. The problem is even after dropping the user, the size has not been decreased. But when i see the datafile, there it is showing that the percentage of memory occupied is reduced from 99% to 10%.
    How can i free up the space.
    Regards,
    Alok Dubey

    This is not the correct forum to deal with your question. This forum deal with the languages SQL and PL/SQL. You have a general database (use & administration) question.
    Please ask this question in the [url http://forums.oracle.com/forums/forum.jspa?forumID=61]Database - General forum.
    Simple answer to your question. Dropping a user/schema/table/index frees up space in the tablespace (depending on the size of that being dropped).
    It does not decrease the size of the tablespace. (and a tablespace occupies disk space and not memory).
    Reducing the size of a tablespace is not a trivial task as it cannot be simply shrunk as there can be data blocks in use at the high-end of the tablespace. Thus the answer to your question is also not trivial and more than one approach can be considered.. which is why you would be best served asking this in the proper forum.

  • HOW to find out the tablespace space utilized by a patch after applying the

    someone has already applied the patch in test env before recording the tablespace size , so I cannot find out the figure in test env.
    So is there any general practice or general guidelines on it?
    hOW to find out the tablespace space utilized by a patch after applying the patch?
    Thanks & Regards,
    Sree.
    Edited by: 846579 on Mar 22, 2011 10:50 PM

    I think there is no direct way to determine what tablespace is utilized by a patch from the README file. You could check the content of the patch file and see what modules are affected (assuming there are changes and the database level), then query DBA_USERS (DEFAULT_TABLESPACE column) for those schemas which are updated by a patch. Or, you could check the size of the tablespaces before and after applying the patch and you will determine what tablespaces have been utilized (provided that the application services are down, and none of the application users is connected to the application).
    Thanks,
    Hussein

  • Updates/Inserts to the Tablespace

    We have this centralized database called CONSOLE running in Oracle Database 10.2.0.5. We have site databases (150 small database from different towns). All of these inserts data into the CONSOLE database every 4 hours. I was tasked to monitor the console database. Part of my plan is to make sure that no tablespaces will be full and I need to address this issue before it occurs. The problem is we only have limited storage in the CONSOLE database and the upgrade in storage is scheduled in the 3rd week of June.
    Is there a way to find out when was a tablespace (datafile) was last written to? (And from which table this data (row) belongs?)
    The concept that I would like to find out is the same in the dba_tables view where you can check when was the table last analyzed.

    With this script you can monitor the tablespace size and take action:
    ==========================================
    set linesize 150
    column tablespace_name format a20 heading 'Tablespace'
    column sumb format 999,999,999
    column extents format 9999
    column bytes format 999,999,999,999
    column largest format 999,999,999,999
    column Tot_Size format 999,999 Heading 'Total| Size(Mb)'
    column Tot_Free format 999,999,999 heading 'Total Free(MB)'
    column Pct_Free format 999.99 heading '% Free'
    column Chunks_Free format 9999 heading 'No Of Ext.'
    column Max_Free format 999,999,999 heading 'Max Free(Kb)'
    set echo off
    PROMPT FREE SPACE AVAILABLE IN TABLESPACES
    select a.tablespace_name,sum(a.tots/1048576) Tot_Size,
    sum(a.sumb/1048576) Tot_Free,
    sum(a.sumb)*100/sum(a.tots) Pct_Free,
    sum(a.largest/1024) Max_Free,sum(a.chunks) Chunks_Free
    from
    select tablespace_name,0 tots,sum(bytes) sumb,
    max(bytes) largest,count(*) chunks
    from dba_free_space a
    group by tablespace_name
    union
    select tablespace_name,sum(bytes) tots,0,0,0 from
    dba_data_files
    group by tablespace_name) a
    group by a.tablespace_name
    order by pct_free;
    =========
    regards
    Shanoj

  • How to see tablespace size in data dictionary

    How can I see the tablespace size, and used tablespace size in data dictionary view?
    it is not in dba_tablespaces, and v$tablespace
    Thanks.

    I like this little piece of code of mine:
    SQL> SELECT
      2          TABLESPACE_NAME,
      3          RPAD(RPAD('|',100-PCT_FREE,'X'),100) || '|' USED
      4  FROM (SELECT TABLESPACE_NAME,
      5    100 -
      6      ROUND(100 -(SUM(BYTES)/1024/1024/1024)*100/
      7                  (SELECT SUM(BYTES)/1024/1024/1024
      8                   FROM DBA_DATA_FILES DF
      9                   WHERE DF.TABLESPACE_NAME=FS.TABLESPACE_NAME),2
    10            ) PCT_FREE,
    11    ROUND(SUM(BYTES)/1024/1024/1024,2) GIBFREE
    12  FROM DBA_FREE_SPACE FS
    13  GROUP BY TABLESPACE_NAME) TABLESPACE_SPACE
    14* ORDER BY TABLESPACE_NAME;
    TABLESPACE_NAME                USED
    ARCHDATA                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX      |
    DATBIGGX                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                  |
    DATGX                          |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                                      |
    DATLOWGX                       |XXXXXXXXXXXXXXXXXXXXXX                                                                             |
    IDXBIGGX                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                 |
    IDXLGX                         |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                |
    IDXGX                          |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX          |
    LOGMNRTS                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                           |
    SYSTEM                         |XXXXXXXXXXXXXXXX                                                                                   |
    TOOLS                          |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                                   |
    UNDOGX                         |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                         |Yoann.

  • Re-claim tablespace size?

    Dear all,
    I am purging the old data, after that the tablespace seems to not re-claim the tablespace size (remain the same) ?
    Please advice,
    Amy

    Leave tablespace alone & find something better to worry about.
    Never confuse movement with progress.
    Going around in circles is movement but very few folks would consider it to be progress.
    "Compressing" tablespace is same as going around in circles.
    If you insist in proceeding
    1) create new tablespace
    2) move all objects out of old tablespace into new tablespace
    3) drop old tablespace
    4) create old tablespace
    5) move all objects out of new tablespace into old tablespace
    6) drop new tablespace

  • Should We consider Temp Data Files While Estimating The Database Size

    Hi,
    The Database Size is sum of physical files like
    Control file
    redo log file
    datafiles
    temp files
    so i want to know why are we considering the temp files..Because it's temporary. At one stage of database, temp size it could me more and at one stage it could be less.
    So why consider the temp file???
    Please share your views on it..
    Thanks
    Umesh

    So, in essence the size of your datafiles is the size of your tablespaces?No. The size of the tablespace is the sum of the sizes of the datafiles in the tablespace --- i.e. the datafiles determine the tablespace size, not the other way round.
    (Although when you CREATE or ALTER TABLESPACE, you specify the sizes of the datafiles that you want to belong to the tablespace).
    the temporary tablespace has space allocated to it regardless of whether there are temporary tables in that tablespace or not.Two points here :
    1. On most OSs the temporary tablespace tempfile is created as a "sparse" file. So, if you issue a CREATE TEMPORARY TABLESPACE TEMP TEMPFILE 'xyz.dbf' SIZE 1000M; and then did an "ls -l" at the OS level, "xyz.dbf' would appear to be only a few tens of KBs in size. The OS "grows" the file to 1000M as necessary.
    When talking to your OS administrator ensure that you get 1000M (or the AUTOEXTEND MAXSIZE !!) space allocated even though he might "see" only a few 10s of KBs used on the first day.
    2. The temporary tablespace does not have objects (other than "global temporary tables" that overflow from memory to disk). It is really temporary space for joins, sorts, order bys etc.
    So, your datafile size is not affected regardless of your temporary tables coming and going.Yes, your datafile sizes and tempfile sizes are independent. Yet, when "sizing" disk space for the database you must include the tempfile size. However, when reporting to IT Management with a statement "our database size is ".. you might want to break it up into components like Data Dictionary, Tables, Indexes, TemporarySpace, RedoLogs and ArchiveLogs. You could also differentiate between OS-allocated space (sizes of datafiles) and Oracle-allocated space (sizes of segments) and actual used space (which you'd have to compute !) .
    Hemant K Chitale
    Edited by: Hemant K Chitale on Feb 17, 2011 10:42 PM
    Added (Although ....) paragraph to first point.

  • Impdp operation taking more tablespace size in compare to expdp...

    Hi All,
    I have one issue with impdp operation. I am using 11gR2 database and schema's dmpfile size is 5G. When I start loading data through impdp schema's tablespace size grow more than 5G. I have to stop the impdp operation because of growing tablespace size. There is no compress parameter passed during expdp. Lastly I given tablespace maxsize= unlimited but seems like it still not sufficient and have to add one more dbf. so the tablespace size as of now is 60G and impdp operation is still running.
    Can anyone guide me if dmp file size is 5G then how could be the tablespace size more than 5G? I have an assumption that if my dmpfile size is 5G then the tablespace size in which I loaded my data (using impdp)should not more than 5G.
    Thanks in advance.

    I was facing the same problem. After giving parameter TRANSFORM=SEGMENT_ATTRIBUTES:n, the problem has been resolved.
    TRANSFORM = transform_name:value[:object_type]
    The transform_name specifies the name of the transform. Some of possible options are as follows:
    SEGMENT_ATTRIBUTES - If the value is specified as y, then segment attributes (physical attributes, storage attributes, tablespaces, and logging) are included, with appropriate DDL. The default is y. ====> IF THIS IS 'N' PHYSICAL STORAGE ATTRIBUTES ARE NOT INCLUDED.
    STORAGE - If the value is specified as y, the storage clauses are included, with appropriate DDL. The default is y. This parameter is ignored if SEGMENT_ATTRIBUTES=n.
    Although thread a quite old, but just updating this in case someone needs to refer in future. My system parameter deferred_segment_creation is set to TRUE.
    Here is the complete syntax, I have used
    impdp vygrdba/******* dumpfile=VYGRVS6I5_25DEC12.dmp logfile=VYGR_PT_09Jan13.log remap_schema= VYGRVS6I5:VYGR_PT TRANSFORM=SEGMENT_ATTRIBUTES:n
    Edited by: 980762 on 9 Jan, 2013 3:58 AM

  • Problem in tablespaces size

    hi gurus
    i installed ecc 6.0 with oracle 10g after installation i checked tablespaces but these are like this
    psapsr3 -80%(used)
    psapsr3700-99%(used)
    system-97%(used)
    sysaux-93%
    but according to threshold values max allowed upto 80% why it is showing above 95%
    what can i do for this. is there any problem in feature for this tablespaces.

    vasu,
    Have you run SGEN after installation? as it compile and regenerates all the screens & programs and occupies the most of the tablespace size.
    Your tablespace size is normal, just add datafiles.
    Regards,
    Rajesh

  • Need help to change the size of the Tablespaces.

    Hi DBA's
    Kindly help me on bellow tablespaces, which are the tablespaces need to increase the size in my R12.1.1 Instance? what size should i increase?
    TABLESPACE_NAME SIZEMB FREEMB
    APPS_TS_QUEUES 1000 894.88
    CTXD 19 1.79
    OWAPUB 10 9.92
    APPS_UNDOTS1 1802 4
    APPS_TS_NOLOGGING 64 25.63
    APPS_TS_ARCHIVE 866 367.25
    APPS_TS_TOOLS 500 499.88
    APPS_TS_TX_IDX 7736.75 722.63
    XXKGI 100 99
    APPS_TS_SEED 2982 388.5
    SYSTEM 12012.1328 1169.96
    APPS_TS_INTERFACE 1041 253.63
    ODM 11 1.44
    PORTAL 100 99.53
    APPS_TS_TX_DATA 5680.125 512.63
    OLAP 17.2421875 1.75
    APPS_TS_SUMMARY 1146 253.25
    APPS_TS_MEDIA 1446 276.88
    SYSAUX 472.6875
    Regards,
    SG

    SG,
    Kindly help me on bellow tablespaces, which are the tablespaces need to increase the size in my R12.1.1 Instance? what size should i increase?You are the best one to tell which tablespaces need to be increased (based on your monitoring to the datafile growth). I always keep 30%-40% free space in the tablespaces and get an alert when the used space go beyond that limit.
    Another option is to enable AUTOEXTEND so you do not have to worry (assuming you have enough space at the OS level).
    How To Check For Autoextensible Datafiles Set To Maxsize Unlimited [ID 468096.1]
    How to Determine if a Datafile has AUTOEXTEND ENABLED [ID 1023280.6]
    Thanks,
    Hussein

Maybe you are looking for