SQL about usage size

Dear All
I am beginner to use Oracle 11g.
I want to create an SQL check the usage size of Exadata.
· Instance name (v $ instance)
・Usage Size (of the total Exadata, what percentage do you use).
Similarly, the percent you want to create an SQL check tablespace for each instance used.
· Instance name (v $ instance)
· Tablespace name
・ Size of usage Tablespace (one instance of, or use a percentage)
For these two SQL,I will grad to send coomment.
Thanks you.

select d.status,
       db.name dbname,
       d.tablespace_name tsname,
       d.extent_management,
       d.allocation_type,
       to_char(nvl(d.min_extlen / 1024, 0),
       '99G999G990D90', 'NLS_NUMERIC_CHARACTERS = '',.'' ')
       "ALLOC_SIZE (K)",
       d.contents "Type",
case
when(d.contents = 'TEMPORARY') then
       to_char(nvl(a.bytes / 1024 / 1024, 0),
       '99G999G990D90', 'NLS_NUMERIC_CHARACTERS = '',.'' ')
else
       to_char(nvl(t.bytes / 1024 / 1024, 0),
       '99G999G990D90', 'NLS_NUMERIC_CHARACTERS = '',.'' ')
end as "Size (M)",
       to_char(nvl((a.bytes - nvl(f.bytes, 0)) / 1024 / 1024,   0),
       '99G999G990D90', 'NLS_NUMERIC_CHARACTERS = '',.'' ')
       "Used (M)",
       to_char(nvl((a.bytes - nvl(f.bytes, 0)) / a.bytes * 100,   0),
       '990D90', 'NLS_NUMERIC_CHARACTERS = '',.'' ')
       "Used (%)"
from sys.dba_tablespaces d,
      (select tablespace_name,
         sum(bytes) bytes
        from dba_data_files
   group by tablespace_name)
a,
    (select tablespace_name,
        sum(bytes) bytes
       from dba_temp_files
      group by tablespace_name)
t,
    (select tablespace_name,
       sum(bytes) bytes
      from dba_free_space
     group by tablespace_name)
f,
  v$database db
     where d.tablespace_name = a.tablespace_name(+)
       and d.tablespace_name = f.tablespace_name(+)
       and d.tablespace_name = t.tablespace_name(+)
     order by 10 desc

Similar Messages

  • Deleting old data won't reduce Windows Azure SQL Database usage

    My Windows Azure SQL Database usage keeps increasing. Deleting old data didn't help much. I was wondering how to figure out the distribution of the usage. All tables in my DB should not occupy more than 5GB and now it is most 12GB. Please help!
    http://yanflex.com

    Hello,
    The database fee is amortized over the month and charged daily. The daily fee depends on the peak size that each database reached that day and the maximum number of databases you use. So, if the peak size of database is 12 GB  and then you delete data
    to reduce the size, it still charge based on 12GB this day.
    You can use the following statement to get the database size:
    SELECT SUM(reserved_page_count)*8.0/1024 as DBsizeinMB
    FROM sys.dm_db_partition_stats;
    Reference:Accounts and Billing in Windows Azure SQL Database
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here.
    Fanny Liu
    TechNet Community Support

  • SQL LOG FILE SIZE INCREASING

    Hi DBA's
    SQL Log file size occupies more disk space on the server, the overall database size is 8GB
    How to decrease the SQL LDF file size on the server, please explain the suitable steps to perform
    Thanks
    DBA

    use master
    go
    dump transaction <YourDBName>
    with no_log
    go
    use <YourDBName>
    go
    DBCC SHRINKFILE (<YourDBNameLogFileName>,
    100) -- where 100 is the size you may want to shrink it to in MB, change it to your needs
    go
    -- then you can call to check that all went fine
    dbcc checkdb(<YourDBName>)
    Andy ,
    what point in asking user to use No_log and you did not even motioned about what this eveil command will do. Actually its
    seriously not required reason being initial size of log file set to 8 G.
    Plus what is point in running checkdb ?
    I don't agree to any part you pointed
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Logical SQL about Expression Builder

    Dear all
    I am Michel.
    When I was always trouble,
    everyone will go to support this Forum, I am glad.
    I want to fix Logical SQL about Expression Builder of Oracle BI 11.1.1.3.
    In detail, Business each year, fiscal year you want to make is to display
    the beginning of the fiscal year of April 1, always, the data,
    "OUTPUT_DATE" from April until March the following year.
    Currently being output error is as follows.
    :[nQSError: 22020] Function Subtring ( argument 1) does not support non-text types. (HY000)
    I want to fix logical SQL is as follows.
    case when substring("app_support"."TABLE_NAME"."OUTPUT_DATE" from 4 for 5)
    in ('04','05','06','07','08','09','10','11','12')
    then Cast
         Concat
    Substring(
                   Cast(
                        "app_support"."TABLE_NAME"."OUTPUT_DATE" AS char
              FROM 4 for 8
         '04-01'
    AS DATE
    when substring("app_support"."TABLE_NAME"."OUTPUT_DATE" from 4 for 5)
    in ('01','02','03')
    then timestampadd(SQL_TSI_YEAR,-1,
         Cast
         Concat
              Substring(
                   Cast(
                       "app_support"."TABLE_NAME"."OUTPUT_DATE" AS char
                   FROM 4 for 8
              '04-01'
    AS DATE
    For reference, logical SQL follows,
    there is no error, and it is operating normally.
    Cast
         Concat(
              Substring(
                   Cast(
                        "app_support"."TABLE_NAME"."OUTPUT_DATE" AS char
              FROM 0 for 5
         '-01')
    AS DATE
    I will grad to reply message.
    Thanks and regards.

    Dear Fame and all
    Hello.Thanks you for reply.
    Hi,
    You Missed END key word in the statement.Sorry,I mistake copy & paste only.
    So,The problem is still not resolved.
    The following shows, that the error has been corrected in the first message.
    Dear all
    I am Michel.
    When I was always trouble,
    everyone will go to support this Forum, I am glad.
    I want to fix Logical SQL about Expression Builder of Oracle BI 11.1.1.3.
    In detail, Business each year, fiscal year you want to make is to display
    the beginning of the fiscal year of April 1, always, the data,
    "OUTPUT_DATE" from April until March the following year.
    Currently being output error is as follows.
    :[nQSError: 22020] Function Subtring ( argument 1) does not support non-text types. (HY000)
    I want to fix logical SQL is as follows.
    case when substring("app_support"."TABLE_NAME"."OUTPUT_DATE" from 4 for 5)
    in ('04','05','06','07','08','09','10','11','12')
    then Cast
    Concat
    Substring(
    Cast(
    "app_support"."TABLE_NAME"."OUTPUT_DATE" AS char
    FROM 4 for 8
    '04-01'
    AS DATE
    when substring("app_support"."TABLE_NAME"."OUTPUT_DATE" from 4 for 5)
    in ('01','02','03')
    then timestampadd(SQL_TSI_YEAR,-1,
    Cast
    Concat
    Substring(
    Cast(
        "app_support"."TABLE_NAME"."OUTPUT_DATE" AS char
    FROM 4 for 8
    '04-01'
    AS DATE
    end
    For reference, logical SQL follows,
    there is no error, and it is operating normally.
    Cast
    Concat(
    Substring(
    Cast(
    "app_support"."TABLE_NAME"."OUTPUT_DATE" AS char
    FROM 0 for 5
    '-01')
    AS DATE
    I will grad to reply message.
    Thanks and regards.

  • My iPhone 5 has a grey-ish blue splodge on the screen. What is it and how can I get rid of it? The place that has the spot is about the size is about 2cm,it still works where the spot is. I haven't sat on my phone or hit it to hard, not that I remember.

    The place that has the spot is about the size is about 2cm,it still works where the spot is. I haven't sat on my phone or hit it too hard, not that I remember.  I  noticed a while ago. Will it disappear? I can see the things that should be where the spot is eg it's on the keyboard and I can see the keys. Will this spread to the whole screen? How can u get rid of this?

    If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service fee listed below.
    iPhone model
    Out-of-Warranty Service
    iPhone 5s, iPhone 5c,
    iPhone 5
    $269
    iPhone 4s
    $199
    iPhone 4, iPhone 3GS,
    iPhone 3G, Original iPhone
    $149
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in U.S. dollars and are subject to local tax.

  • Inform about the Size of the files stored in DMS as warning message

    hi DMS Gurus,
    We have a critical requirement of informing the users about the size of the file getting stored in SAP DMS, we need to inform the users the size of the file getting stored as this has a implication on flowing the documents in to remote Mobile device, and the concern is, any document above 2 MB would take much longer time or may not flow at all,
    so we need this information available in DIR, so the user can have a choice to choose the file before sending it to Mobile device,
    can i know if this file size is logged in SAP System anywhere?
    Any suggestion is welcome
    Thanks and regards,
    Kumar

    Hi Kumar,
    normally the file size could be found in table DMS_PHF_CD1. You should be able to get the correct entry by using the LOIO- or PHIO-ID which can be obtained by report DMS_KPRO_READ. Other useful tables are DMS_PH_CD1, DMS_PHIO2FILES and DMS_DOC2LOIO.
    Best regards,
    Christoph

  • Question about "Print Size"

    I am confused and puzzled about "Print Size." First I select the Zoom Tool, then I click "Print Size" in the upper bar. I also have chosen View > Rulers.
    What I don't understand is that one inch in the horizontal ruler actually is considerably longer than one inch on the vertical ruler.  I think this is distorting the appearance on my photos in the monitor as compared with the actual prints. The monitor version of my portrait, for example, looks fatter than the printed version. Why is this and why isn't a horizontal inch equal to a verical inch for viewing purposes.
    Thank you very much for any help on this.
    Bob

    Thank you very much. I changed my monitor to its native resolution and I think this solved the problem.  Bob
    J Maloney <[email protected]> wrote:
    Change the screen resolution setting in your PS prefs to your display resolution. Then print size will work as expected.
    http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density
    More about the print size feature:
    http://help.adobe.com/en_US/Photoshop/11.0/WSfd1234e1c4b69f30ea53e41001031ab64-7935a.html
    >

  • Sql memory usage increase each time win app runs

    Hi,
    Sql memory usage increases each time when win app runs. Why does it work like this? Is it normal ?
    I restart SQL Server 2012. Only my win app uses SQL server.
    First run of winapp.
    start memory usage : 211.800 KB
    close memory usage: 528.136 KB
    Second run of xaf app.
    start memory usage : 528.136 KB
    close memory usage: 996.844 KB
    Third run of xaf app
    start memory usage : 996.844 KB
    close memory usage: 997.640 KB
    Fourth run of xaf app
    start memory usage : 997.640 KB
    close memory usage: 1.104.864 KB

    Hi,
    Sql memory usage increases each time when win app runs. Why does it work like this? Is it normal ?
    Yes, it is perfectly normal for SQL Server to acquire and hold onto large amounts of memory indefinitely.  This memory improves performance by avoiding disk I/O, query plan compilation and costly memory management. 
    On a dedicated SQL Server you should usually let SQL Server dynamically manage memory.  It will release memory if it detects memory pressure.  But if you often run other applications on the server than need significant amounts of memory (e.g. IIS,
    application services), you may want to set max server memory as suggested.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • SQL Memory Usage

    Hello
    I am updating some items with the DTW. i am updating 9000 items. I have made 9 files of 1000 records, i am just updating the picturname field. When i start to upload the files the SQL Memory usage starts to grow more and more. When i try to upload the third file the memory has grown too much, and the DTW says the file update ok but it doesnt update the database. So i need to restart the SQL service (mssqlserver) and do it again. Some times it doesnt work so i need to restart the server.
    Any ideas??
    Jacobo

    hi,
    Check this information abt DI API Memory Consumption in WIKI SDK FAQ's.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/b1/faq_sdk
    DI API
    Memory consumption
    New connection mechanism in 2007 vs. classical
    1. In the old method the DI API was loaded into the same process with the Add-On and was an "actual part" of it, so calls to the DI-API were very quick and direct
    2. In the new method there is one common DI-API which is part of the Core B1. All the Add-Ons will use the same DI-API IF (!!!) they work in the new method. The calls to the DI-API have now to "go between" two processes. This means that they go through more processing and although it's all in the same machine and no actual communication (i.e., network traffic) is actually happening, the system's CPU and memory are "working harder".
    The impact is extremely small on an individual call level, but for an Add-On that makes a large amount of calls this difference accumulates...
    There is no huge additional CPU or Memory consumption. Most of the impact is on the Response Time level. Some of it is CPU consumption and some of it is Context Switch waiting.
    3. This trade-off between Memory consumption and Response Time is actually another reason why R&D thought it's a good idea to leave the new method to be optional based on a decision from the developer.
    Jeyakanthan

  • Help me about file size!

    I have a link of a file. Can you help me to know the size of ift before I download it.

    Hi,
    You can't unless you can query the server about the size.
    /Kaj

  • SqlEjava.sql.SQLException: Data size bigger than max size for this type: 52

    SqlEjava.sql.SQLException: Data size bigger than max size for this type: 5200
    can any one help how to resolve this error

    Im using clob object I want to insert more data
    how to insert more data

  • Question about the size af:inputText

    can <af:inputText> grow itself automatically to avoid scrollbar?
    if user types a long text into it, the inputtext area will become bigger to fit it to avoid scrollbar. is this possible?
    another question is,i found the size of this input area are controlled by 'rows' and 'columns'.
    can i make the inputtext area stretch to 100% width of the page?
    i cannot use 'columns' to accomplish this, since the page resolution is different for users. it works on 1440x900,but fails on others.
    thanks a lot
    -Ken

    cowbell bill wrote:
    Still stumped, I've deleted all unused audio files, deleted all unused midi. Maybe a third of the project. I see nothing in the trash, Project size is still the same 3.25 GB. Bypassed all reverbs, And audio CPU level still maxing out in the red. What am I doing wrong. Thanks Bill
    When you speak about project size, do you mean the size of the project file itself? Or of the entire project folder?
    When you delete tracks or plugins from your project, you won't see anything in the trash, that is normal. Only when you delete an audio file from your disk +from within Logic+ you'll find that audio file in the trash.

  • HT4623 I have a iphone 4 ,version 4.3(8F190), When I click to General settings -there is no software update sign shown .It displays About,Usage, Network etc etc software update is missing

    I have a iphone 4 ,version 4.3(8F190), When I click to General settings -there is no software update sign shown .It displays About,Usage, Network etc etc software update is missing.Need help guys! Operating system is 04.10.01(Modem Firmware)

    You have to update through iTunes on your computer.
    See the chart below to determine whether you can upgrade your device and what you can upgrade to.
    IPhone, iPod Touch, and iPad iOS Compatibility Chart
         Device                                       iOS Verson
    iPhone 1                                      iOS 3.1.3
    iPhone 3G                                   iOS 4.2.1
    iPhone 3GS                                 iOS 6.1
    iPhone 4                                      iOS 6.1
    iPhone 4S                                    iOS 6.1
    iPhone 5                                      iOS 6.1
    iPod Touch 1                               iOS 3.1.3
    iPod Touch 2                               iOS 4.2.1
    iPod Touch 3                               iOS 5.1.1
    iPod Touch 4                               iOS 6.1
    iPod Touch 5                               iOS 6.1
    iPad 1                                          iOS 5.1.1
    iPad 2                                          iOS 6.1
    iPad 3                                          iOS 6.1
    iPad 4                                          iOS 6.1
    iPad Mini                                     iOS 6.1
    Select the method most appropriate for your situation.
    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS to Version 6.0.x from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • Question about the size of my project

    3.25 GB 20 or so tracks. a few plugins each a few software drums and synths. I getting overload warnings here and there. Not the I/O level the audio level. I look at the fear lilly Allen demo which has 50 tracks all sorts of plugins and a vid. 1.45 GB. I selected and deleted unused in audio bin and still the same. What am I missing. Logic Pro, IMAC 3.06 core 2 Duo 4 GB ram. Thanks Bill

    cowbell bill wrote:
    Still stumped, I've deleted all unused audio files, deleted all unused midi. Maybe a third of the project. I see nothing in the trash, Project size is still the same 3.25 GB. Bypassed all reverbs, And audio CPU level still maxing out in the red. What am I doing wrong. Thanks Bill
    When you speak about project size, do you mean the size of the project file itself? Or of the entire project folder?
    When you delete tracks or plugins from your project, you won't see anything in the trash, that is normal. Only when you delete an audio file from your disk +from within Logic+ you'll find that audio file in the trash.

  • What am I doing to make my screen zoom in while I  am using my mouse?  It zooms to about double size, and using the control key and mouse will not return it to its former size.

    When I am searching the internet and using my mouse, my screen will suddenly zoom in to about double size.  Clicking control and mousing will not return it back to where it was.  I have no idea what I am doing to cause this to happen or how to reverse it.

    Hi.
    If you're using a Magic Mouse, a double tap on the mouse with one finger will zoom.
    Double tap again to unzoom.
    Helpful?

Maybe you are looking for