How to find a tablespace of growth on a daily basis

Hi team,

How can we find a tablespace of growth on a daily basis for a 11.2.0.2 database?

OPERATING SYSTEM: AIX 6.1

###########################
!!! Tablespace growth
###########################

Change your name of the Tablespace TBS1.

SELECT TO_CHAR (sp.begin_interval_time,'YYYY-MM-DD') days
, ts.tsname
, max(round((tsu.tablespace_size* dt.block_size )/(1024*1024),2) ) cur_size_MB
, max(round((tsu.tablespace_usedsize* dt.block_size )/(1024*1024),2)) usedsize_MB
FROM DBA_HIST_TBSPC_SPACE_USAGE tsu
, DBA_HIST_TABLESPACE_STAT ts
, DBA_HIST_SNAPSHOT sp
, DBA_TABLESPACES dt
WHERE tsu.tablespace_id= ts.ts#
AND tsu.snap_id = sp.snap_id
AND ts.tsname = dt.tablespace_name
AND ts.tsname IN ('TBS1')
GROUP BY TO_CHAR (sp.begin_interval_time,'YYYY-MM-DD'), ts.tsname
ORDER BY ts.tsname, days;

Please keep forum clean marking your Post as answer or relatively useful if your question is answered.

Thank you best regards &,.
SID

(StepIntoOracleDBA)

E-mail: [email protected]

http://stepintooracledba.blogspot.in/

http://www.stepintooracledba.com/

Tags: Database

Similar Questions

  • How to find the tablespace

    Hello
    in 10g R2, DB is mounted and I get ORA-01177: data file is not dictionary - probably old incarnation
    ORA-01110: data file 123: ' D:\BASE\TEST\DATA\MYFILE. DBF'

    In what display find the tablespace of MYFILE. DBF?

    I want to drop this file to OPEN DATABASE RESETLOGS.

    Do you have another solution?

    Thank you.

    Check the TS # used for this data file from v$ datafile

    and from there, you can search for the name in the table space V$ for this data file.

  • How to find the tablespace that has maxsize UNLIMITED?

    Oracle 9.2
    I'm looking for tablespaces that maxsize UNLIMITED in the dictionary dba_xxxx from view. I want to use SQL to find storage space is not UNLIMTED file. I can't find which table dictionary or what column to indicate what storage space isn't UNLIMITED file?

    Please throw some lights.
    Thank you
    S.

    See Note 468096.1 How to check the CanGrow data files the Maxsize unlimited value.
    Oracle limit the number of blocks in a file of data to approximately * 4 million blocks *, so you can run:
    Select file_name in dba_data_files where maxblocks = 4194302;

    HTH

    Enrique

    Published by: Enrique Orbegozo on October 13, 2008 12:10

  • How to find the history of Tablespace in Oracle database?

    Hello

    I need to find which data was inserted on the weekly basis in the particular tablespace.

    Because we need to find which tables update very frequently, and also we didn't have plenty of space in the server.

    If we can find it, it would be useful for us to communicate with the developers.

    Thank you

    Shiv.

    For tablespace growth

    ==================

    Select

    TO_CHAR (sp.begin_interval_time,'dd-mm-yyyy "") days.

    TS.tsname,

    Max (round ((tsu.tablespace_size* dt.block_size) /(1024*1024), 2)) cur_size_mb,.

    Max (round ((tsu.tablespace_usedsize* dt.block_size) /(1024*1024), 2)) usedsize_mb

    Of

    dba_hist_tbspc_space_usage tsu,

    dba_hist_tablespace_stat ts,

    dba_hist_snapshot sp,

    dba_tablespaces dt

    where

    Tsu.tablespace_id = ts.ts #.

    and

    Tsu.snap_id = sp.snap_id

    and

    TS.tsname = dt.tablespace_name

    and

    TS.tsname not in ('SYSAUX', 'SYSTEM')

    Group

    TO_CHAR (sp.begin_interval_time,'dd-mm-yyyy ""), ts.tsname

    order of ts.tsname, days;

    To check the tablespace free sapce

    ================

    Select nom_tablespace, sum (bytes) /(1024*1024*1024) from dba_free_space where nom_tablespace = group 'LARGE_DATA' order by 2 desc nom_tablespace

    To check the size of tables

    =================

    Select sum (bytes) in dba_segments where nom_segment = "XYZ";

    Thank you

    Harman

  • How to find duplicate keys found when error ORA-01452: cannot CREATE a UNIQUE INDEX.

    Hi gurus,

    I fall for this stupid error

    "cannot CREATE a UNIQUE INDEX; duplicate keys found.


    It is that the Unique Index key is composed of multiple columns

    CREATE A UNIQUE KEY001AUTORISATIONS_APPORT ON TFT_AUTORISATIONS_APPORT INDEX

    (AUT_APPORTEUR, AUT_AGENCE, AUT_PRODUIT, AUT_OPTION, AUT_TARIF, AUT_DATE_AUTORISATION)

    TABLESPACE KEYS_TFT NOPARALLEL NOLOGGING

    Now,.

    My question is, how to find duplicates keys blocking Index creation?

    Thanks if you can help

    Run this query to display the list of the duplicates already existing.

    Select AUT_APPORTEUR, AUT_AGENCE, AUT_PRODUIT, AUT_OPTION, AUT_TARIF, AUT_DATE_AUTORISATION, count (1) as cnt

    of TFT_AUTORISATIONS_APPORT

    Group

    AUT_APPORTEUR, AUT_AGENCE, AUT_PRODUIT, AUT_OPTION, AUT_TARIF, AUT_DATE_AUTORISATION

    view count (1) > 1

    Concerning

    NJ

  • Not able to find any tablespace under menu "Storage" in Oracle 12 c

    Hello

    I installed oracle 12 c... fine pls below details of the version:

    Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production

    PL/SQL Release 12.1.0.2.0 - Production

    CORE Production 12.1.0.2.0

    AMT for 64-bit Windows: Version 12.1.0.2.0 - Production

    NLSRTL Version 12.1.0.2.0 - Production

    EM Express ( SEM Express 12 c of the database), I'm not able to find the tablespace option in the menu of 'Storage'.

    Please find the attached screenshot.

    Thank you

    Concerning

    Gowtham

    ... or how do I logon in a snap-in database in the Express database?

    It is documented - Getting Started with Database Administration

  • How to find a specific record in what data file?

    Hi all

    The basic version: 11 GR 2

    I am inserting a table a record called "xx". and the table is in a tablespace that has lets say 10 files of data. How to find the data file which stores this record "xx".

    Thank you
    Arun

    Arun wrote:
    Yes... I get file_id for three data files... How to find the exact?

    If the tablespace contains multiple data files and data in the table can be in the data files.

    And to find the ID of the particular LINE belongs to the data file, you must play with package
    SQL > select dbms_rowid.rowid_to_absolute_fno (rowid, 'SCHEMANAME', 'TABLENAME') of tablename;

  • How to find db_block_size in Oracle 8?

    How to find db_block_size in Oracle 8?

    In Oracle 9.2, db_block_size is in dba_tablespace.

    Thank you
    Hello

    In any version, the database block size comes from V$ PARAMETER

    SELECT value
      FROM v$parameter
     WHERE name = 'db_block_size';
    

    Oracle 9i allows the tablespaces for default block sizes (specified by the parameter BLOCK_SIZE in DBA_TABLESPACES) in order to allow the tablespaces be transported between databases with different blocks. It is normally not wise to use different block sizes for purposes other than transportable tablespaces.

    Justin

  • What is an xml file and how to find a missing one?

    What is an xml file? How to find one that is missing?

    In short, an XML file is a file structured data - in other words, it stores the data in a way that is easy for a computer scan and read, but it is also easy(-ish) for a human to read, too.

    Generally, XML can be used for configuration or preference data, or for the exchange of data between applications, but there are a multitude of possibilities.

    This means that, with regard to the resolution of your problem is concerned, that was no help. The whole point of XML is that it is easy for any application store some data he needs, so you need to be more specific on what application you are using and what XML file it is looking for. Only then can someone (possibly) steer you in the right direction.

  • IOS 10 - new map app - how to find written directions

    IOS 10 - new map app - how to find guidelines for travel written car =

    Hello jsalm,

    Thank you for reaching out to the Community Support from Apple. I would be happy to help you find the instructions written in the Maps app.  Once you enter your destination and started browsing, slide up from the bottom of the screen and select "Details". You will find a list of indications turn-by-turn for your itinerary.

    If you have problems, let the community know. We are all here to help.

    Best regards

  • says that there is an update of firmware available for my 3 t time capsule. I get "an error occurred when downloading". How to find the problem?

    I said that there is an update of the firmware available for my 3 t time capsule. I get the message "an error occurred when downloading". How to find the problem? I have elcapitan 10.11.6 and capsule version 7.7.3

    Try temporarily, connect your MacBook Pro to your Time Capsule using an Ethernet connection... If not already, then try downloading the firmware again.

  • How I find myself with two passwords to iCloud for the same account?

    How I find myself with two passwords to iCloud for the same account?

    For security reasons, I only use iCloud for Contacts and "find my iPhone".

    Several months ago Apple forced me to change my password to iCloud.  So I did this.   In the last months, I used successfully the new password to 10 or 12 times when asked without problem.

    However, I received a notification of a software update for my Apple Watch. I did the update without problem. However, after completing the update my iPhone asked me to connect to my iCloud account. When I did this, she rejected my password. I made 4 attempts typing very slowly and with care for you sure I did it right.

    Then, operating under a hunch, I decided to enter my old password to iCloud. It worked?  I'm confused about this, any ideas would be appreciated.

    I had a similar problem last year. I had to call Apple. Contact is a bottom of this page.

  • How to find the logo photo folder are to be deleted in my iPhone 6

    I remove my iPhone pictures folder 6, now I take the new photo also cannot find the image. How to find my photo gallery? Thanks your useful.

    Backup - restore your device from an iCloud or iTunes backup

  • How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you

    How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you

    As far as I KNOW, the serial number of the MacBook does not have the serial number of the processor.

  • IPhone 6: how to find if the call is completed?

    Greetings,

    I often participate in the telephone conference call bridge company. When the Conference ends, I have a problem to find my phone if he "hung his handset. A few times already, I found that the connection has changed its status to "pending" instead of the end. The IPhone has allowed me to launch another appeal; incoming calls received the signal "busy", and the telecommunications operator received their money for a very long connection. I was unable to find any icon on the screen warning me that there is a call in progress. How to find the phone that there any telephone connection active or not? IPhone 6 s, software 9.3.2

    Thanks, Marek

    If you are on an active call, the bar at the top of the phone screen will be green if you are on the home screen or most other applications. Click on this green bar takes back you to the Dialer screen.

    If you have some kind of difficulty to end the call by pressing the button on the screen, try pressing the power button. Which will also end the call.

Maybe you are looking for