How to check the growth of the database for a database on ASM?

Hello

I have been using the following script to check the growth of the database (for DBs on file system):
SELECT b.tsname tablespace_name ,
  MAX(b.used_size_mb) cur_used_size_mb ,
  ROUND(AVG(inc_used_size_mb),2)avg_increas_mb
FROM
  (SELECT a.days,
    a.tsname ,
    used_size_mb ,
    used_size_mb - LAG (used_size_mb,1) OVER ( PARTITION BY a.tsname ORDER BY a.tsname,a.days) inc_used_size_mb
  FROM
    (SELECT TO_CHAR(sp.begin_interval_time,'MM-DD-YYYY') days ,
      ts.tsname ,
      MAX(ROUND((tsu.tablespace_usedsize* dt.block_size )/(1024*1024),2)) used_size_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 sp.begin_interval_time > sysdate-7
    GROUP BY TO_CHAR(sp.begin_interval_time,'MM-DD-YYYY'),
      ts.tsname
    ORDER BY ts.tsname,
      days
    ) a
  ) b
GROUP BY b.tsname
ORDER BY b.tsname;
And I think that he always gave me good results until I ran this script on a database (10.2.0.5) on ASM.

Is it because the databases on the ASM are maintaied differently, OR do most proabbly there was no activity on this database in the last 7 days? I even ran this query for last 90/180 / day and it is me again after results:
TABLESPACE_NAME                CUR_USED_SIZE_MB AVG_INCREAS_MB
------------------------------ ---------------- --------------
SYSAUX                                   574.38            .36
SYSTEM                                   514.69              0
DATA                                    1593.25              0
IDX                                         .06              0
UNDOTBS1                                  69.06          -3.84
USERS                                     96.13              0
Thanks in advance!

I have no reason to believe tablespaces under ASM are maintained differently, so the most likely explanation is the change in the activity of the DB.

What is your AWR retention? The default value is 7 days, so if yours is set to the default value, and then by running the query for 90/180 days you would not give more information.

If you want to get the output of your scripts, you may need to adjust the AWR retention and your tablespace SYSAUX respectively.

If the DB is managed by Oracle Enterprise Manager (OEM), you can make tablespace forecast based on the measurements taken by the OEM. I did a presentation on this (NYOUG, VirtaThon) just now:
http://iiotzov.files.WordPress.com/2011/08/iotzov_oem_repository.PDF
http://iiotzov.files.WordPress.com/2012/05/OEM-repository-a-second-look.doc

Lordane Iotzov

Tags: Database

Similar Questions

  • How to check the file for the virtual machine size Esxi shell

    Anyone who can tell me how to check the file for the virtual machine size Esxi Shell. I tried this command-h ls but does not work.

    Have you checked "ls-lh', it will provide information as the attached screenshot." "

  • How to check the database is created in the database of node 2 RAC

    Hi all

    Please allow questions maybe too obvious. I'm not familiar with RAC and ASM.
    virtual box (Windows 7)

    2 built nodes on Linux 6.1 Windows 64-bit virtual machine.
    11.2.0.3 software grid & database.
    One of DB name is demo
    Node1 (demo1)
    Node2 (demo2)


    1. I installed the 11.2.0.3 grid software and set up ASM with her. The installation seems to succeed.

    I am able to use view state using crsctl (see the log)

    2. I installed the database software and you want to create a database (demo) by default. the software from 95%, but not able to realized the dbca.

    I see that the asm_pmon is running, but not able to see the process of demo db. I think at this point, I don't have my demo of database has been created yet.

    Yes, question
    1: is the database created?
    2. I try to use dbca to create my demo db, but at the stage of creation of the 'copy of the database files' - she complaint ORA-03114: not connected to ORACLE
    ???? What? What oracle server trying to connect?
    3. If the database is created, how to start the database, in particular it has 2 instances (demo1 and demo2)?

    Please advise!

    Thank you very much!




    [grid@demo1 ~] $ crsctl stat res t
    --------------------------------------------------------------------------------
    TARGET STATE SERVER STATE_DETAILS NAME
    --------------------------------------------------------------------------------
    Local resources
    --------------------------------------------------------------------------------
    ORA. DATA.dg
    Demo1 ONLINE
    Demo2 online
    ORA. LISTENER.lsnr
    Demo1 ONLINE
    Demo2 online
    ORA.asm
    Demo1 Started online
    Demo2 Started ONLINE
    ORA. GSD
    In offline mode offline demo1
    Demo2 offline offline
    ORA.net1.Network
    Demo1 ONLINE
    Demo2 online
    ORA.ons
    Demo1 ONLINE
    Demo2 online
    --------------------------------------------------------------------------------
    Cluster resources
    --------------------------------------------------------------------------------
    ORA. LISTENER_SCAN1. LSNR
    1 demo1 ONLINE
    ORA.demo1.VIP
    1 demo1 ONLINE
    ORA.demo2.VIP
    1 demo2 online
    ORA. CVU
    1 demo1 ONLINE
    ORA. OC4J
    1 demo1 ONLINE
    ORA.scan1.VIP
    1 demo1 ONLINE

    Published by: 969880 on November 13, 2012 14:18

    1. What is sure, is that your database is not registered in OCR because there are missing elements in crsctl stat res t exit for database instances.
    2. default DBCA trying to restore an RMAN backup to create a database. DBCA probably also try to connect to the new instance of the database to run scripts.
    3. you must use:

    srvctl start database -d demo
    

    This should start all database instances.

    But first try to check the DBCA logs that should be under $ORACLE_HOME/cfgtoollogs/dbca and to correct related errors.

  • How to check the database pending?

    Hello

    How to check if standby DB is used in Oracle 8.1.7.2.0? I just want to know the initialization parameters that must be defined for the destinations journal archive.

    OS - AIX 3 4

    Cordially,

    Bala

    Don't know if you are interested, but this seems to be the list:

    http://docs.Oracle.com/CD/A87860_01/doc/server.817/a76995/standby.htm#31537

    Best regards

    mseberg

  • How to check the event for any activity view?

    My PC wakes up in the middle of the night recently, and I would like to know what to check the event viewer and see what type of program wakes up my PC for the Hibernate.

    Does anyone have any suggestions?
    Thanks in advance for your suggestions

    I would look at the branches and Application System.

  • How to check the ESXi for all VMhost root password in the VCenter?

    Hello

    Can anyone please he share way or any script to check the credentials of the VMware root?

    rather than trying to connect each VMhost ESX(I) with vsphere client is too much of a work

    The reason for which the supplied LucD script does not work is because you have to change $_ to $esx (see below). You use the $_ when your piping output of one command to another. Given that we use, we use a loop Foreach access us the individual elements of the command Get-VMHost through the defined variable (the $esx in the 3rd line)

    SE connect-VIServer-Server $esx - user $user-password $pswd - ErrorAction Stop | Out-Null

  • How to check the expense for assets posted account

    Dear,

    can someone explain how to verify the account of capital Asset Workbench?

    You can see the expense in financial investigation 11i account, but you can see in R12 to the account of expenses in respect of assignments.

  • How to check the proxy for android settings

    Hello... When I try to go on youtube in mozilla android, it will not at all and it gives me a message to check my proxy settings... I tried as I can... could not find or know what proxy change... see no network as my "Windows computers" option... I put for 'no proxy'... too bad... I added a lot of features to firefox and cannot go on youtube and a few other too.*john sites

    Hey John,
    I'm sorry to hear that on mobile Firefox for Android requires to verify the proxy server. This happens on several networks?

    If there is a proxy must be included in all: networking. That plug your url and see if there is a proxy listed.

    There is also a nice add on Mobile Proxy that might be able to list them.

  • How to check the amount/number of issued on the database DDL operations

    Hello

    Can someone please clear some doubts.

    1. How can we check the number of DDL operations on the database

    2. how we check the amount of growth in the size of the database.

    3. How can we check the growth of a single table.

    Concerning
    Amith

    Select startup_time "Startup."
    MySQL 'Transactions. "
    /Decode (value) sum (Sum (trunc(sysdate-STARTUP_TIME)), 0.1, Sum (trunc(sysdate-STARTUP_TIME))) "Avg per day."
    /Decode (value) sum (Sum (trunc(sysdate-STARTUP_TIME)), 0.1, Sum (trunc(sysdate-STARTUP_TIME))) / 24 ' Avg / hour. "
    /Decode (value) sum (Sum (trunc(sysdate-STARTUP_TIME)), 0.1, Sum (trunc(sysdate-STARTUP_TIME))) / 1440 "Avg / min.
    v $ sysstat, instance $v
    WHERE name in (a "user is committed," restores user)
    Startup_time group;

  • How to check the CPU usage in the database

    How to check the CPU usage?

    in Linux and database level

    Hello

    under Linux, you can use mpstat command, for example:

    [oracle@vSLLGM132 ~] $ mpstat Pei ALL 2 10
    Linux 2.6.32 - 300.10.1.el5uek (vSLLGM132) 23.11.2014

    14:27:08 CPU user nice sys % iowait % irq % sweet % fly % idle intr/s
    14:27:10 all 1.00 8.50 9.00 0.00 0.00 0.50 0.00 1423,50 81.00
    14:27:10 0 1.00 8.50 9.00 0.00 0.00 0.50 0.00 81.00 26.50

    CPU utilization tracking can be done with the command SAR u.
    .

    At the database level: data dictionary views: v$ sysstat, v$ iostat, V$ SYSMETRIC_HISTORY.

    Read the MOS Notes:

    Diagnose hardware base caused by Performance issues (Doc ID 148176.1)

    Troubleshooting: The use of high processor (Doc ID 164768.1)

    Concerning

    Borys

  • How to check the locks in the database

    Hello

    oracleDatabase version: 11 GR 2
    OS: Solaris

    How to check the locks on database objects .it can be any lock?
    None Select sql query to check the levlel of objects of database locks? what basis locks occur?

    Please explain on the locks or share notes MOS?

    Rgds,
    Sam.

    Check below sql.

    Select s1.username. '@' || S1.machine
    || ' (SID =' | s1.sid | block him ') '
    || S2. UserName | '@' || S2.machine | ' (SID =' | s2.sid |) ') ' AS blocking_status
    v $ lock l1, v$ session s1, v$ lock l2, s2 of v$ session
    where s1.sid = l1.sid and s2.sid = l2.sid
    and l1. BLOCK = 1 and l2.request > 0
    and l1.id1 = l2.id1
    and l2.id2 = l2.id2;

    http://psoug.org/snippet/locks-view-locked-Objects_866.htm
    http://www.DBA-Oracle.com/t_locked_rows_user_locks.htm

  • How to activate the database from Enterprise Manager Grid 12 c EBS 12.2.5

    Hello

    I have a question how do I activate the enterprise Grid Control on the 12 c database manager.

    Now, I was demanding to activate the database of EM 12 c on EBS 12.2.5 grid control. Already tried to emca, but showed nothing to configure?

    Please help me how to activate this feature?

    Thank you

    Andreas Kuncoro

    Hi Christophe,

    Thanks for your info. I already activate.

    Thank you.

    for retail, the step:

    Enable Enterprise Manager on Oracle E-Business Suite with database 12.1.0.2

    Concern about the listener and the database only.

    1. check the listener

    $ cd $ORACLE_HOME/network/admin/VIS2_miiexa01 /.

    $ more tnsnames.ora

    ###############################################################

    #

    # Do not change the settings in this file manually. They are managed

    # automatically and will be overwritten when executing automatic configuration.

    # For more information about automatic configuration, see the Oracle

    # E Business Suite Installation Guide.

    #

    $Header #: NetServiceHandler.java 120.28.12020000.6 2014-05-14 07:55:23 mmanku ship $

    #

    ###############################################################

    VIS2 =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = tcp (PORT = 1529))(HOST=miiexa01.vision.co.id))

    (CONNECT_DATA =

    (SERVICE_NAME = VIS2)

    (INSTANCE_NAME = VIS2)

    )

    )

    VIS2_FO =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = tcp (PORT = 1529))(HOST=miiexa01.vision.co.id))

    (CONNECT_DATA =

    (SERVICE_NAME = VIS2)

    (INSTANCE_NAME = VIS2)

    )

    )

    VIS2_LOCAL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = tcp (PORT = 1529))(HOST=miiexa01.vision.co.id))

    )

    VIS2_BALANCE =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (LOAD_BALANCE = YES)

    (FAILOVER = YES)

    (ADDRESS = (PROTOCOL = tcp (PORT = 1529))(HOST=miiexa01.vision.co.id))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = VIS2)

    )

    )

    VIS2_REMOTE =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = tcp (PORT = 1529))(HOST=miiexa01.vision.co.id))

    )

    )

    VIS2XDB =

    (DESCRIPTION =

    (ADDRESS =

    (PROTOCOL = tcp)

    (HOST = miiexa01.vision.co.id)

    (PORT = 1529)

    )

    (CONNECT_DATA =

    (SERVICE_NAME = orcl12XDB)

    )

    )

    extproc_connection_data =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROCVIS2))

    )

    (CONNECT_DATA =

    (SID = PLSExtProc)

    (PRESENTATION = RO)

    ) )

    IFile=/Home/VIS2/12.1.0/Network/admin/VIS2_miiexa01/VIS2_miiexa01_ifile.ora

    2. check the database

    $ sqlplus / as sysdba

    check port https already set to EM

    SQL > SELECT 'https://'|| SYS_CONTEXT ('USERENV', 'SERVER_HOST') |'. ' || SYS_CONTEXT ('USERENV', 'DB_DOMAIN') |': ' | dbms_xdb_config.gethttpsport () | "/em/' double.

    SQL > SELECT 'https://'|| SYS_CONTEXT ('USERENV', 'SERVER_HOST') |': ' | dbms_xdb_config.gethttpsport () | "/em/' double.

    using the https protocol to open a session on EM

    SQL > exec dbms_xdb_config.sethttpsport (5500);

    Changeinit .ora

    $ viinit .ora

    Add the new line oninit .ora

    Dispatchers = "(Protocol=TCP) (SERVICE =XDB)" "

    Restart the database for changes in the init.ora file take effect.

    SQL > show the extreme setting

    VALUE OF TYPE NAME

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

    chain of dispatchers (PROTOCOL = TCP)(SERVICE=VIS2XDB)

    whole MAX_DISPATCHERS

    SQL > exit

    Thank you

    Andreas Kuncoro

  • How to check the arhice mode is on or not according to the pl/sql procedure

    Hello

    I'm trying to figure out how to check the mode archive inside begin end block. Basically, I'm developing a procedure that returns in mode archive.

    I know that the following command returns the status of fashion archive but I can't do the job inside the begin end block.

    "list of archive logs.

    I'll be appricated if you show me how to call the above command inside begin end block.

    Kind regards.

    Hello

    If you want to see archive log mode is activated, you can simply check V$ database.

    select log_mode from v$database
    

    That is what you want, or is there something more, you need?

    David

  • How to check the status of the import in Windows?

    Hello

    Import runs in my box of Wndows. The log file is not updated since long. How to check the status of the import job? FYI its oracle 10g.

    And I checked the database which.

    FYI
    ===
    Select * from DBA_DATAPUMP_SESSIONS;

    no selected line.

    Select * from DBA_JOBS_RUNNING;

    no selected line


    Select the username, machine, module, sid, State, event, seq #, session seconds_in_wait $ v where type <>'IMPORT' and username = "AUTOTIME";

    no selected line



    Please let me know.

    You actually look at the session of $ v and check the status of the session that is created by the import job.

    Sometimes the underlying tablespace is full, so import session just hangs, it must increase the size of the storage space.

    You should also look at alert.log file and see if there is any error message like "cannot extend table space '.

  • How to check the status of the statistics on a table?

    Hello
    I started the statistics collection on a few large tables in my database.
    How to check the status of statistics about a table? Are there views of data dictionary or tables to monitor the progress of the collection of statistics.


    Regds,
    Malika

    Hi all

    You can check with this little script.
    It lists details of sid for long as running session
    When he started
    What last update
    How long still to the left
    "ACTIVE/INACTIVE" session state etc.

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    -Author: James Syed_
    -Script_name: sid_long_ops.sql
    -Description: list details of sid for long running the session as when it began when the last update how long still to the left.

    fixed lines 200
    Neck LESS to a25

    Select
    a.SID,
    a.Serial #.
    b.Status,
    a.opname,
    TO_CHAR (a.START_TIME,' DD-me-AAAA HH24:mi:ss) START_TIME,
    TO_CHAR (a.LAST_UPDATE_TIME,' DD-me-AAAA HH24:mi:ss) LAST_UPDATE_TIME,.
    a.time_remaining as 'time remaining dry. "
    a.time_remaining/60 as "Min remaining time."
    a.time_remaining/60/60 as 'remaining time in HR.
    V $ session_longops a, v$ session b
    where = select a.sid
    a.sid = & sid
    And time_remaining > 0;

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

    The sample output:
    --------------------

    SQL > @sid_long_ops
    Enter the SID value: 474
    13 old: a.sid = & sid
    13 News: and a.sid = 474

    SID, SERIAL # STATUS START_TIME LAST_UPDATE_TIME remaining time LESS dry time remaining minutes remaining HR time
    --------------------------------
    474 2033 ACTIVE collection schema statistics June 6, 2012 20:10:49 June 7, 2012 01:35:24 572 9.53333333.158888889

    Thank you & best regards

    Syed James.
    Oracle Apps DBA
    Mobile: + 91 9966270072
    E-mail: [email protected]

  • How to check the status of FNDSM

    Hello

    How to check the TM FNDSMListenerStatus, I know that we can use the APPS_sid is the MT listener, y at - it another way to check the status of the FNDSM listener,.

    Thank you

    Hello

    OS, you can use tnsping to check the status of auditor of th.

    Of the database, run the following query and make sure that it returns something:

    SQL> select CONCURRENT_QUEUE_NAME
    from FND_CONCURRENT_QUEUES
    where CONCURRENT_QUEUE_NAME like 'FNDSM%';
    

    You can also check:

    Note: 735148.1 - Troubleshooting problem competitor Manager Start Up associated with Service Manager
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=735148.1

    Kind regards
    Hussein

Maybe you are looking for