Query on Database Size

Hi all,
I have a question regarding database size of my SAP Instance. My database by the way is Oracle 10g. I used the db02old transaction code. I got the ff: data in the space statistics:
Scale: Month                                            Database
    Date               Values             SIze/kb                      Free/kb
01.09.2009         Total            258744,320                 27,741,824
01.08.2009         Total            258744,320                 30,568,320
01.07.2009         Total            258744,320                 34,444,288
01.06.2009         Total            258744,320                 38,159,168
01.05.2009         Total            247152,640                 29,041,344
01.04.2009         Total            247152,640                 35,197,184
01.03.2009         Total            235560,960                 39,262,144
01.02.2009         Total            205455,360                 14,124,224
01.01.2009         Total            201175,040                 14,463,168
01.12.2008         Total            197324,800                 14,466,112
01.11.2008         Total            193474,560                 14,282,560
01.10.2008         Total            188907,520                 13,716,736
Note that the size from 01.06.2009 to 01.09.2009 has not changed. Does this mean that my database hasnt grown at all?
How can I determine the exact growth of my database? Im planning to do some projection on how long will it take before my entire disks are consumed so I need to gather some data with respect to my database growth per month.
Thanks in advance
Jun

>
Aurelio Tadlas wrote:
> HI Anjali,
>
> Yes, that's precisely what happened. Now I know that the size indicated in db02old is not actually the size of the data contained in the database but rather, its the size of the tablespaces in my database.
>
> Thank you very much for the enlightenment.
>
> Best regards
Hi,
Sorry for "interrupt" here.
I'd recommend you to read the Oracle Database Concept Guide or go to any initial training (like ADM505)
There you will find out that with "database" Oracle refers to the physical files.
You can create a DB of 1 TB and that will be the database size, regardless of the data that is "inside".
That means that, at the end, you more or less understood.
DB02 shows the database size, not the amount of data that is inside the database

Similar Messages

  • Query regarding database size

    hi,
    ( sap 4.7c + sql server 2000 (Module:sd/mm/fi )
    ( data : 1 & half year - no BI )
    our database size is around 50 GB
    and log size is around 30 GB
    I doubt that something is wrong.
    can anyone explain to me what is right and
    what action one should take on this type of scenario.
    thanks in advance
    raj

    Hi Raj,
    My database size is about 30GB (3 years of usage) and log file is about 12GB.
    My database settings (recomendent by SAP and Early watch) are:
    I shrinked database to minimum size and set following settings:
    Database (mdf and ndf):
    - growth activated: checked
    - growth not restricted: checked
    - next step possible: checked
    - next step size: 60MB
    tempdb and log file:
    - growth activated: checked
    - growth not restricted: checked
    - next step possible: checked
    - next step size: 10%
    Regards,
    Marcin Gajewski

  • Query for database size

    I need a query which should display the current size of database and the size of the database one month back. I have tried with OEM but if the database goes down in between, it won't display the result.(OS-HP-Unix, Linux, Ver-8i,9i,10g)

    user10929871 wrote:
    My friend,
    I have a query to find out the size one month back (Note: It doesn't include temp and redo logs size)
    select sum(bytes)/1073741824 from v$datafile where
    creation_time<to_date('01-03-2009','dd-mm-yyyy');That assumes that the only way you are adding space to the database is to add new data files which doesn't seem realistic. It's rather common to increase the size of the database by adding space to an existing data file or allowing a data file to autoextend at least to a point. Are you certain that, for the databases you're working with, the only way that anyone ever adds space to a database is to add new data files?
    and for view the current size
    select sum(bytes)/1073741824 from v$datafile ;
    I have tested and it worked hope I am right if this queries are wrong plz let me know, now what I am looking for is a query where I don't need to provide the specific date just something like add_months function to this query and I want the above two queries into one, something like this but its giving me the wrong result
    select sum(a.bytes)/1024/1024/1024, sum(b.bytes)/1024/1024/1024 from v$datafile a,v$datafile b where a.creation_time<to_date('01-03-2009','dd-mm-yyyy') and b.creation_time<=sysdate
    /If you're sure that the "prior month" query is correct for your environment
    SELECT a.gb old_size, b.gb new_size
      FROM (SELECT sum(bytes)/1073741824
              FROM v$datafile
             WHERE creation_time < trunc(sysdate,'MM')) a,
           (SELECT sum(bytes)/1073741824
              FROM v$datafile ) bJustin

  • QUERY TO GET database size, used size, freesize, tablespacesize of RQ table

    Pls give me a query for to get database size, used size, freesize, tablespacesize of sometables which is starting with 'RQ%'
    I have to get result like this
    Total size, used size, free size ,tablespace size of RQ tables alone
    Reason why i go for "tablespace size of RQ tables" i want to know the size of database after deleting the rq tables
    ( Since i am not getting any reply i go for database forum)
    Pls reply
    S
    Edited by: AswinGousalya on Jul 8, 2009 3:41 PM

    Hello,
    This question looks like it is really for the Oracle RDBMS and not for Berkeley DB. In BDB, we do not have a notion of tablespace size. What database product are you using?
    regards,
    mike brey
    BDB engineering

  • Query for  to get  database size, used size, freesize, db size after drop

    Pls give me a query for to get database size, used size, freesize, tablespacesize of sometables which is starting with 'RQ%'
    I have to get result like this
    Total size, used size, free size ,tablespace size of RQ tables alone
    Reason why i go for "tablespace size of RQ tables" i want to know the size of database after deleting the rq tables
    Pls reply
    S

    i tried with
    SELECT
    --fs.tablespace_name name,
    df.totalspace/1024/1024 mbytes,
    (df.totalspace - fs.freespace)/1024/1024 used,
    fs.freespace/1024/1024 free
    FROM
    (SELECT
    --tablespace_name,
    ROUND(SUM(bytes)) TotalSpace
    FROM
    dba_data_files
    ) df,
    (SELECT
    --tablespace_name,
    ROUND(SUM(bytes)) FreeSpace
    FROM
    dba_free_space
    ) fs
    i AM GETTING total bytes, used bytes, free bytes
    I WANT TO include one more column.. database size after deleting rq tables
    Pls reply
    S
    Edited by: AswinGousalya on Jul 10, 2009 2:17 PM

  • Explain plans differ:  same query, cloned databases.

    oracle 10.2.0.2.0
    solaris 10
    same query, different databases (cloned from same source), different explain plans.
    db parameters are identical.
    Any ideas?
    DB1 (production)
    SQL> explain plan for
      2  SELECT  V__101.*,   SHAPE.fid,SHAPE.numofpts,SHAPE.entity,SHAPE.points,
      3    SHAPE.rowid
      4  FROM
      5   (SELECT b.OBJECTID,b.CRT_DTE,b.CRT_SRC_CDE,b.CRT_AQUI_MTHD_CDE,b.CRT_USR_ID,
      6    b.ADT_ACTN_CDE,b.ADT_ACTN_DTE,b.ADT_ACTN_SRC_CDE,b.ADT_ACTN_USR_ID,
      7    b.TP_SITE_POINT_ID,b.SHAPE,b.SRC_ID,b.SRC_CRT_DTE,b.SRC_TYPE_CDE,
      8    b.LCTN_STAT_CDE,b.FRZN_LCTN_IND,b.TP_NOTES   FROM AMSOWNER.TP_SITE_POINT b
      9    WHERE b.OBJECTID NOT IN (SELECT /*+ HASH_AJ */ SDE_DELETES_ROW_ID FROM
    10    AMSOWNER.D101 WHERE DELETED_AT IN (SELECT l.lineage_id FROM
      SDE.state_lineages l WHERE l.lineage_name = :source_lineage_name AND
    11   12    l.lineage_id <= :source_state_id) AND SDE_STATE_ID = :"SYS_B_0") UNION ALL
      SELECT a.OBJECTID,a.CRT_DTE,a.CRT_SRC_CDE,a.CRT_AQUI_MTHD_CDE,a.CRT_USR_ID,
    13   14    a.ADT_ACTN_CDE,a.ADT_ACTN_DTE,a.ADT_ACTN_SRC_CDE,a.ADT_ACTN_USR_ID,
    15    a.TP_SITE_POINT_ID,a.SHAPE,a.SRC_ID,a.SRC_CRT_DTE,a.SRC_TYPE_CDE,
    16    a.LCTN_STAT_CDE,a.FRZN_LCTN_IND,a.TP_NOTES   FROM AMSOWNER.A101 a,
    17    SDE.state_lineages SL WHERE (a.OBJECTID, a.SDE_STATE_ID) NOT IN (SELECT /*+
    18    HASH_AJ */ SDE_DELETES_ROW_ID,SDE_STATE_ID  FROM AMSOWNER.D101 WHERE
    19    DELETED_AT IN (SELECT l.lineage_id FROM SDE.state_lineages l WHERE
    20    l.lineage_name = :source_lineage_name AND l.lineage_id <= :source_state_id)
    21    AND SDE_STATE_ID > :"SYS_B_1") AND a.SDE_STATE_ID = SL.lineage_id AND
    22    SL.lineage_name = :source_lineage_name AND SL.lineage_id <=
    23    :source_state_id ) V__101 , AMSOWNER.F15 SHAPE where SHAPE.FID(+) =
    24    V__101.SHAPE;
    Explained.
    SQL>  @?/rdbms/admin/utlxplp.sql;
    PLAN_TABLE_OUTPUT
    Plan hash value: 254376361
    | Id  | Operation                         | Name             | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                  |                  |   113K|    49M|       |  2926   (1)| 00:00:41 |
    |*  1 |  HASH JOIN RIGHT OUTER            |                  |   113K|    49M|    17M|  2926   (1)| 00:00:41 |
    |   2 |   TABLE ACCESS FULL               | F15              |   113K|    15M|       |   344   (2)| 00:00:05 |
    |   3 |   VIEW                            |                  |   113K|    34M|       |   331   (2)| 00:00:05 |
    |   4 |    UNION-ALL                      |                  |       |       |       |            |          |
    |*  5 |     HASH JOIN RIGHT ANTI          |                  |   113K|  8948K|       |   332   (2)| 00:00:05 |
    |   6 |      VIEW                         | VW_NSO_1         |     1 |    13 |       |     2   (0)| 00:00:01 |
    |   7 |       NESTED LOOPS                |                  |     1 |    50 |       |     2   (0)| 00:00:01 |
    |   8 |        TABLE ACCESS BY INDEX ROWID| D101             |     1 |    39 |       |     1   (0)| 00:00:01 |
    |*  9 |         INDEX SKIP SCAN           | D101_IDX1        |     1 |       |       |     1   (0)| 00:00:01 |
    |* 10 |        INDEX UNIQUE SCAN          | LINEAGES_PK      |     1 |    11 |       |     1   (0)| 00:00:01 |
    |  11 |      TABLE ACCESS FULL            | TP_SITE_POINT    |   113K|  7512K|       |   329   (2)| 00:00:05 |
    |* 12 |     HASH JOIN ANTI                |                  |     1 |   375 |       |     5  (20)| 00:00:01 |
    |  13 |      NESTED LOOPS                 |                  |     1 |   349 |       |     2   (0)| 00:00:01 |
    |  14 |       TABLE ACCESS BY INDEX ROWID | A101             |     1 |   338 |       |     1   (0)| 00:00:01 |
    |* 15 |        INDEX RANGE SCAN           | A101_STATEID_IX1 |     1 |       |       |     1   (0)| 00:00:01 |
    |* 16 |       INDEX UNIQUE SCAN           | LINEAGES_PK      |     1 |    11 |       |     1   (0)| 00:00:01 |
    |* 17 |      VIEW                         | VW_NSO_2         |     1 |    26 |       |     2   (0)| 00:00:01 |
    |  18 |       NESTED LOOPS                |                  |     1 |    50 |       |     2   (0)| 00:00:01 |
    |* 19 |        INDEX FULL SCAN            | D101_PK          |     1 |    39 |       |     1   (0)| 00:00:01 |
    |* 20 |        INDEX UNIQUE SCAN          | LINEAGES_PK      |     1 |    11 |       |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - access("SHAPE"."FID"(+)="V__101"."SHAPE")
       5 - access("B"."OBJECTID"="$nso_col_1")
       9 - access("SDE_STATE_ID"=TO_NUMBER(:SYS_B_0))
           filter("SDE_STATE_ID"=TO_NUMBER(:SYS_B_0))
      10 - access("L"."LINEAGE_NAME"=TO_NUMBER(:SOURCE_LINEAGE_NAME) AND "DELETED_AT"="L"."LINEAGE_ID")
           filter("L"."LINEAGE_ID"<=TO_NUMBER(:SOURCE_STATE_ID))
      12 - access("A"."OBJECTID"="$nso_col_1" AND "A"."SDE_STATE_ID"="$nso_col_2")
      15 - access("A"."SDE_STATE_ID"<=TO_NUMBER(:SOURCE_STATE_ID))
      16 - access("SL"."LINEAGE_NAME"=TO_NUMBER(:SOURCE_LINEAGE_NAME) AND
                  "A"."SDE_STATE_ID"="SL"."LINEAGE_ID")
           filter("SL"."LINEAGE_ID"<=TO_NUMBER(:SOURCE_STATE_ID))
      17 - filter("$nso_col_2"<=TO_NUMBER(:SOURCE_STATE_ID))
      19 - access("SDE_STATE_ID">TO_NUMBER(:SYS_B_1))
           filter("SDE_STATE_ID">TO_NUMBER(:SYS_B_1))
      20 - access("L"."LINEAGE_NAME"=TO_NUMBER(:SOURCE_LINEAGE_NAME) AND "DELETED_AT"="L"."LINEAGE_ID")
           filter("L"."LINEAGE_ID"<=TO_NUMBER(:SOURCE_STATE_ID))
    47 rows selected.DB2 (staging)
    SQL> explain plan for
      2  SELECT  V__101.*,   SHAPE.fid,SHAPE.numofpts,SHAPE.entity,SHAPE.points,
      SHAPE.rowid
    FROM
      3    4    5   (SELECT b.OBJECTID,b.CRT_DTE,b.CRT_SRC_CDE,b.CRT_AQUI_MTHD_CDE,b.CRT_USR_ID,
      b.ADT_ACTN_CDE,b.ADT_ACTN_DTE,b.ADT_ACTN_SRC_CDE,b.ADT_ACTN_USR_ID,
      6    7    b.TP_SITE_POINT_ID,b.SHAPE,b.SRC_ID,b.SRC_CRT_DTE,b.SRC_TYPE_CDE,
      8    b.LCTN_STAT_CDE,b.FRZN_LCTN_IND,b.TP_NOTES   FROM AMSOWNER.TP_SITE_POINT b
      9    WHERE b.OBJECTID NOT IN (SELECT /*+ HASH_AJ */ SDE_DELETES_ROW_ID FROM
    10    AMSOWNER.D101 WHERE DELETED_AT IN (SELECT l.lineage_id FROM
    11    SDE.state_lineages l WHERE l.lineage_name = :source_lineage_name AND
    12    l.lineage_id <= :source_state_id) AND SDE_STATE_ID = :"SYS_B_0") UNION ALL
    13    SELECT a.OBJECTID,a.CRT_DTE,a.CRT_SRC_CDE,a.CRT_AQUI_MTHD_CDE,a.CRT_USR_ID,
    14    a.ADT_ACTN_CDE,a.ADT_ACTN_DTE,a.ADT_ACTN_SRC_CDE,a.ADT_ACTN_USR_ID,
    15    a.TP_SITE_POINT_ID,a.SHAPE,a.SRC_ID,a.SRC_CRT_DTE,a.SRC_TYPE_CDE,
    16    a.LCTN_STAT_CDE,a.FRZN_LCTN_IND,a.TP_NOTES   FROM AMSOWNER.A101 a,
    17    SDE.state_lineages SL WHERE (a.OBJECTID, a.SDE_STATE_ID) NOT IN (SELECT /*+
      HASH_AJ */ SDE_DELETES_ROW_ID,SDE_STATE_ID  FROM AMSOWNER.D101 WHERE
    18   19    DELETED_AT IN (SELECT l.lineage_id FROM SDE.state_lineages l WHERE
    20    l.lineage_name = :source_lineage_name AND l.lineage_id <= :source_state_id)
    21    AND SDE_STATE_ID > :"SYS_B_1") AND a.SDE_STATE_ID = SL.lineage_id AND
    22    SL.lineage_name = :source_lineage_name AND SL.lineage_id <=
    23    :source_state_id ) V__101 , AMSOWNER.F15 SHAPE where SHAPE.FID(+) =
    24    V__101.SHAPE;
    Explained.
    SQL>  @?/rdbms/admin/utlxplp.sql;
    PLAN_TABLE_OUTPUT
    Plan hash value: 4287458713
    | Id  | Operation                         | Name             | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                  |                  |   145 | 68150 |   401   (1)| 00:00:06 |
    |   1 |  NESTED LOOPS OUTER               |                  |   145 | 68150 |   401   (1)| 00:00:06 |
    |   2 |   VIEW                            |                  |   145 | 47125 |   328   (1)| 00:00:05 |
    |   3 |    UNION-ALL                      |                  |       |       |            |          |
    |*  4 |     HASH JOIN ANTI                |                  |   144 | 10224 |   324   (1)| 00:00:05 |
    |   5 |      TABLE ACCESS FULL            | TP_SITE_POINT    |   145 |  8410 |   322   (1)| 00:00:05 |
    |   6 |      VIEW                         | VW_NSO_1         |     1 |    13 |     2   (0)| 00:00:01 |
    |   7 |       NESTED LOOPS                |                  |     1 |    50 |     2   (0)| 00:00:01 |
    |*  8 |        TABLE ACCESS BY INDEX ROWID| D101             |     1 |    39 |     1   (0)| 00:00:01 |
    |*  9 |         INDEX SKIP SCAN           | D101_IDX1        |     1 |       |     1   (0)| 00:00:01 |
    |* 10 |        INDEX UNIQUE SCAN          | LINEAGES_PK      |     1 |    11 |     1   (0)| 00:00:01 |
    |* 11 |     FILTER                        |                  |       |       |            |          |
    |  12 |      NESTED LOOPS                 |                  |     1 |   349 |     2   (0)| 00:00:01 |
    |  13 |       TABLE ACCESS BY INDEX ROWID | A101             |     1 |   338 |     1   (0)| 00:00:01 |
    |* 14 |        INDEX RANGE SCAN           | A101_STATEID_IX1 |     1 |       |     1   (0)| 00:00:01 |
    |* 15 |       INDEX UNIQUE SCAN           | LINEAGES_PK      |     1 |    11 |     1   (0)| 00:00:01 |
    |* 16 |      FILTER                       |                  |       |       |            |          |
    |  17 |       NESTED LOOPS                |                  |     1 |    50 |     2   (0)| 00:00:01 |
    |* 18 |        TABLE ACCESS BY INDEX ROWID| D101             |     1 |    39 |     1   (0)| 00:00:01 |
    |* 19 |         INDEX RANGE SCAN          | D101_IDX1        |     1 |       |     1   (0)| 00:00:01 |
    |* 20 |        INDEX UNIQUE SCAN          | LINEAGES_PK      |     1 |    11 |     1   (0)| 00:00:01 |
    |  21 |   TABLE ACCESS BY INDEX ROWID     | F15              |     1 |   145 |     1   (0)| 00:00:01 |
    |* 22 |    INDEX UNIQUE SCAN              | F15_UK1          |     1 |       |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       4 - access("B"."OBJECTID"="$nso_col_1")
       8 - filter("DELETED_AT"<=TO_NUMBER(:SOURCE_STATE_ID))
       9 - access("SDE_STATE_ID"=TO_NUMBER(:SYS_B_0))
           filter("SDE_STATE_ID"=TO_NUMBER(:SYS_B_0))
      10 - access("L"."LINEAGE_NAME"=TO_NUMBER(:SOURCE_LINEAGE_NAME) AND
                  "DELETED_AT"="L"."LINEAGE_ID")
           filter("L"."LINEAGE_ID"<=TO_NUMBER(:SOURCE_STATE_ID))
      11 - filter( NOT EXISTS (SELECT /*+ HASH_AJ */ 0 FROM "AMSOWNER"."D101"
                  "D101","SDE"."STATE_LINEAGES" "L" WHERE :B1>TO_NUMBER(:SYS_B_1) AND
                  "DELETED_AT"="L"."LINEAGE_ID" AND "L"."LINEAGE_NAME"=TO_NUMBER(:SOURCE_LINEAGE_NAME) AND
                  "L"."LINEAGE_ID"<=TO_NUMBER(:SOURCE_STATE_ID) AND "SDE_STATE_ID"=:B2 AND
                  "SDE_DELETES_ROW_ID"=:B3 AND "DELETED_AT"<=TO_NUMBER(:SOURCE_STATE_ID) AND
                  "SDE_STATE_ID">TO_NUMBER(:SYS_B_1)))
      14 - access("A"."SDE_STATE_ID"<=TO_NUMBER(:SOURCE_STATE_ID))
      15 - access("SL"."LINEAGE_NAME"=TO_NUMBER(:SOURCE_LINEAGE_NAME) AND
                  "A"."SDE_STATE_ID"="SL"."LINEAGE_ID")
           filter("SL"."LINEAGE_ID"<=TO_NUMBER(:SOURCE_STATE_ID))
      16 - filter(:B1>TO_NUMBER(:SYS_B_1))
      18 - filter("DELETED_AT"<=TO_NUMBER(:SOURCE_STATE_ID))
      19 - access("SDE_DELETES_ROW_ID"=:B1 AND "SDE_STATE_ID"=:B2)
           filter("SDE_STATE_ID">TO_NUMBER(:SYS_B_1))
      20 - access("L"."LINEAGE_NAME"=TO_NUMBER(:SOURCE_LINEAGE_NAME) AND
                  "DELETED_AT"="L"."LINEAGE_ID")
           filter("L"."LINEAGE_ID"<=TO_NUMBER(:SOURCE_STATE_ID))
      22 - access("SHAPE"."FID"(+)="V__101"."SHAPE")
    58 rows selected.

    rocr wrote:
    oracle 10.2.0.2.0
    solaris 10
    same query, different databases (cloned from same source), different explain plans.
    db parameters are identical.
    DB1 (production)
    | Id  | Operation                         | Name             | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                  |                  |   113K|    49M|       |  2926   (1)| 00:00:41 |DB2 (staging)
    | Id  | Operation                         | Name             | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                  |                  |   145 | 68150 |   401   (1)| 00:00:06 |
    If you check the execution plans it's quite obvious that the two environments can not be identical. If you have the same (amount of) data, then one of the two estimates is way off. Which one is in the right ballpark, how many rows are returned by the query? The same applies to the remaining operation ids of the plan, which estimate is correct?
    It's very likely that the underlying table/index statistics are not the same, and therefore you get different plans.
    By the way, you're using bind variables, therefore the output of the EXPLAIN PLAN is only of limited use, since the actual plan at run time might be completely different due to bind variable peeking and potentially histograms created on some of the columns (which is the default in 10g due to the "FOR ALL COLUMNS SIZE AUTO" method_opt default parameter value).
    If you haven't disabled the pre-configured statistics collection job that runs every night in 10g, you might get different statistics due to this job already.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Disk size based on content database size

    Hi,
    Assuming that by the formulae Database size = ((D × V)
    × S)
    + (10 KB × (L +
    (V × D)))
    my DB size is 105 GB,
    what should we recommend be the Hard disk size for creating this data base?
    Thank you,
    Kotamarthi

    Updated but few questions
    WFE & App servers : System
    Files :80 GB ;ULS & IIS Logs etc:80 : Back up : 160(can vary)
    FAST Search : System
    Files:80 GB; Search : 300 GB.: ULS Logs : 80 GB.; Back up: 80 GB.
    DB Server (current content size is 106 GB): System
    Files :80 GB ;MDF: 300 GB;LDF : 100 GB ;Back ups:300 GB(can vary) 
    Updated the Fast Search  with ULS =80 and added back up for 80 GB.
    Few Questions.
    1.For WFE and App server I have only two Drives one for system and one for Logs are those sufficient? where would the sharepoint files go into? or do w e need to and any other drives.
    1.For fast search search drive is 300 GB(this drive would be for indexing/Querying etc? is it fine)
    a.on search Server added 80 GB for back up -  can you let me know for what purpose can we use this.
    2.For DB server , do you mean since we have Drive for LDF logs we dont need drive for ULS log?
    thank you,
    Vinay

  • Query regarding database reorganization

    Hi All,
    I have been asked to reorganize the database( size 220GB Dev, size 460GB Qua, size 500GB Production)
    Database is Oracle 10G, SAP version is ECC 6.0.
    I tried this via BRtools on a test system(size 130GB,Oracle 10G) and nothing happens.Assuming this,I doubt any change.
    However my management is insisting size must decrease by 10 -12 percent.
    My query is if I reorganize the database via BRTOOLS what will be the effect on the database size.
    No client is deleted on any of the system and no data has been erased by the functional team.
    Any suggestion on the same will be a great help to me.
    Regards,
    PG

    Hi,
        How much space is liberated after a re-org task is purely subjective ( system load, when the last re-org was run etc). A test system with no user activity cannot form an ideal test-bed for re-org outcome. Rather than looking out for benefit in terms of percentage of space shrunk, you could look at all avenues that can bring down the database size. The following notes might be used as a starting point.
    SAP Note 541538 - FAQ: Reorganization
    SAP Note 771929 - FAQ: Index fragmentation (Easier than a table re-org task.Can be done online ( before attempting this online, please go through the SAP Hot News announced in SAP Note 1413928 - Index corruption/wrong results after rebuild index ONLINE )
    SAP Note 706478 - Preventing Basis tables from increasing considerably (Exectue the SQL query in the note to identify the tables that occupy highest space and look for corresponding solutions in this note for those tables)
    Above messages' SAP Data Volume Management guide also has suggestions for triggering archiving/deleting/compressing/avoid growth where necessary
    cheers !
    PRADi

  • Exception when querying the database

    Hi
    I'm using jtds driver to connect to the database, it's been working fine all along and now all of a sudden it's giving exceptions when I query the database and It requires me to logout and login to my application again.
    The exception is as follows
    javax.servlet.ServletException: Could not execute query
            at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
            at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
            at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
            at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
            at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
            at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
            at java.lang.Thread.run(Thread.java:534)
    root cause
    net.sf.hibernate.exception.GenericJDBCException: Could not execute query
            at net.sf.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:80)
            at net.sf.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:69)
            at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
            at net.sf.hibernate.impl.SessionImpl.convert(SessionImpl.java:4131)
            at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1557)
            at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1531)
            at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1523)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
            at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
            at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
            at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
            at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
            at java.lang.Thread.run(Thread.java:534)
    Caused by: java.sql.SQLException: Invalid state, the Connection object is closed.
            at net.sourceforge.jtds.jdbc.ConnectionJDBC2.checkOpen(ConnectionJDBC2.java:1305)
            at net.sourceforge.jtds.jdbc.ConnectionJDBC2.prepareStatement(ConnectionJDBC2.java:1978)
            at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:216)
            at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:323)
            at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:263)
            at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:236)
            at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:67)
            at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:784)
            at net.sf.hibernate.loader.Loader.doQuery(Loader.java:269)
            at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138)
            at net.sf.hibernate.loader.Loader.doList(Loader.java:1063)
            at net.sf.hibernate.loader.Loader.list(Loader.java:1054)
            at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854)
            at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1554)
            ... 42 moreCan it maybe be the large size of the dabase?
    What can be wrong?

    java.sql.SQLException: Invalid state, the Connection object is closed
    It answers your question to an extent. Check if your connection or recordset object is closed
    cheers,
    Siddhs

  • Database size would exceed your licensed limit of 10240 MB per database in ms sql 2008 r2 standard editon

    Hello there,
    Pl. provide solution on this on urgent if possible
    REATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 10240 MB per database.
    I have installed MS SQL 2008 R2 Standard Edition
    Error getting while restoring sql db 11gb backup file
    Yogi

    Hi,
    Please post output of  query provided by Olaf. I guess you have connected to Express edition( 2008 r2/2012/2014) and since database has limitation of 10 G hence you got this message. Please double check
    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 Articles

  • Oracle database size

    how can I get the maximun size allocated by DBA for the database.
    and in this size how much space is free now.

    user10648897 wrote:
    how can I get the maximun size allocated by DBA for the database.
    and in this size how much space is free now.Tried google for the same?
    http://www.google.co.in/search?hl=en&q=query+to+find+database+size+oracle&meta=
    And this forum as well?
    http://forums.oracle.com/forums/search.jspa?threadID=&q=query+to+find+database+size+&objID=f61&dateRange=last90days&numResults=15
    Cheers
    Aman....

  • Database size versus table data size

    I ran the below query that queries all tables in the database and the total size for reserved space is 17GB. The database size is 294GB. Why is there such a big difference in size. I would expect the database to be a little bigger but not 277GB bigger.
    DECLARE @TableName VARCHAR(100)    --For storing values in the cursor
    --Cursor to get the name of all user tables from the sysobjects listing
    DECLARE tableCursor CURSOR FOR  
    select [name] from dbo.sysobjects  where  OBJECTPROPERTY(id, N'IsUserTable') = 1 FOR READ ONLY
    --A procedure level temp table to store the results
    CREATE TABLE #TempTable (     tableName varchar(100),     numberofRows varchar(100),     reservedSize varchar(50),     dataSize varchar(50),     indexSize varchar(50),    
    unusedSize varchar(50) )
    --Open the cursor
    OPEN tableCursor
    --Get the first table name from the cursor
    FETCH NEXT FROM tableCursor INTO @TableName
    --Loop until the cursor was not able to fetch
    WHILE (@@Fetch_Status >= 0) BEGIN     
    --Dump the results of the sp_spaceused query to the temp table     
    INSERT  #TempTable         
    EXEC sp_spaceused @TableName     
    --Get the next table name     
    FETCH NEXT FROM tableCursor INTO @TableName END
    --Get rid of the cursor
    CLOSE tableCursor
    DEALLOCATE tableCursor
    --Select all records so we can use the reults
    SELECT *  FROM #TempTable
    order by 2
    --Final cleanup!
    DROP TABLE #TempTable
    Alan

    Hi anaylor,
    According to your description, the database size is larger than sum of tables sizes. There could be a number of reasons , for example,
    • There may have the large transaction, or a lot of data in the database but it has been removed in some process.
    • Indexes/constraints are being stored in other files.
    •Last database cleanup (including table deletion, record deletion) did not affect any disk reclamation.
    •The initial size of the database is large.
    • Have you calculate unused spaces? Databases usually trade space for speeding and allocating huge amounts of disk space ahead of time, to avoid allocation at transaction time. Space freed by delete may be reused or not due to speed reasons.
    Hope it can help.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Estimating The Database Size before build up

    Hi,
    how can i estimate oracle database size before building up. is there any query or formula there to estimate the size.
    i read a thread of Sir. Joel Pérez if he is available then i m requesting him to send me that docs that you are posted for the estimation query.
    my mail is [email protected]
    Regards
    Avnish

    Use the DBMS_SPACE built-in package to estimate table and index cost (size).
    http://www.psoug.org/reference/dbms_space.html

  • Estimate a database size

    Hi Joel,
    Glad if you could forware me the document for estimated db size.
    Thanks in advance
    Mail ID is : [email protected]

    Hello,
    To know the database size, you may execute the following query:
    Datafiles size:
    select sum(bytes)/(1024*1024) "Mo" from dba_data_files;
    Tempfiles size:
    select sum(bytes)/(1024*1024) "Mo" from dba_temp_files;
    Redolog size:
    select sum(bytes)/(1024*1024) "Mo" from v$log;Then, it lacks the size of the controlfile, SPFILE or PFILE, but in general is just a few Mo.
    Hope this help.
    Best regards,
    Jean-Valentin

  • Get DataBase Size and Compare it

    Hello Folks
    I'm trying to get SQL 2008 R2 database size and compare it with this code:
    $DBSize = Invoke-SQLCmd -Query "sp_databases" -Username "user" -Password "pwd" `
    -ServerInstance "localhost" | where-object {$_.database_name -eq "ABC"} | select database_size
    If(($DBSize | Out-String) -ge "5242880"){
    # Some action #
    But that don't return nothing... Some help !?
    Jimcesse
    Principal: http://sysadmin-cr.com/
    Alterno: http://blogs.itpro.es/jimcesse

    Hi,
    I have no way to test this, but try adding -ExpandProperty to select.
    Also, I suggest getting rid of Out-String and using numbers instead.
    EDIT: Also, you may need to use a loop to check each returned size if the query is returning more than one database size.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

Maybe you are looking for

  • Remote for ipad

    Is it still not possible to use the iPhone to remotely control video on the iPAd? Id like to be able to pause the training video Im watching.

  • Vendor names instead of vendor number in J1INMIS

    J1INMIS report-Company & Non Company details & Vendors Name is not available but vendor number  is available in Report. how do i get the names in the report instead of the vendor numbers warm regards Manjunath

  • Direct Database Request Error: illegal number at oci

    Hello, all. In Oracle BI Answers i get an error by building an direct database request: illegal number at oci..... The reason of error is in expression to_char((date_1-date_2)*24, '9990.99') The error disappears if i write expression to_char((date_1-

  • Changing name of device owner

    When setting up my mouse, it asked me to name it. When I just paired my keyboard with my powerbook, it named it the persons name that was the previous owner of my powerbook. I deleted device and started over, thinking that I overlooked the nameing op

  • Why is my macbook running slower after loading OSX mountain lion?

    Just downloaded OSX Mountain Lion a few weeks ago and my laptop seems to be running slower - delayed window filling, etc.  Anyone else notice this problem or have any solutions?  Should I just go in to see a genius? TIA, ddhall