Database growing

Hi,
Has some way to get my DB to become faster? For example, using statistics?
The tables are getting too big and has some way to make them understand that the database grew. I'm told that in Informix is done manually in statistics because of the increase of records. But I don't work with Informix but with Oracle.
My DB Oracle 10gR2

Dear user622983,
There are several packs and tools for analyzing the database and query performance. You can use statspack, AWR / ADDM (with the diagnostic pack) and the Enterprise Manager.
Oracle 10gR2 is using statisctics and the collector is called the "Cost Based Optimizer". So the CBO is choosing the least cost for your query and create an execution plan. You can make these plans faster by showing the CBO that you are gathering statistics. See the DBMS_STATS package for gathering statistics. Also you can use necessary indexes to improve your query performance.
Are you using partitioning? If yes, you can try to decrease the partition periods. For instance you can use hourly partitions rather than daily partitions. If you are not using partitioning and you have lots of deletes / inserts / updates happening on your table than you should try to shrink the space allocated by using several techniques like moving the table or shrinking the space of it.
You have asked a general question so if you can elaborate more than you can get a solid answer from the OTN users. Use the dba_segments data dictionary view to understand the database growth.
Hope That Helps.
Ogan
Edited by: Ogan Ozdogan on 06.Eki.2010 21:49
Please refer to the http://tahiti.oracle.com , which is the Oracle online documentation, for further information.

Similar Messages

  • Database grow report

    Hi
    What does "database grow report" means and how it is possible to be collected?
    Thanks
    Jonny ...

    this report will tell you how your database is growing?
    generally we will take database size and tablespace sizes in this report on a timely basis (this time could be week, month or quarter)
    by comparing this report will previous one, we will get to know how fast db is growing and accordingly we can plan the space to be added.
    the following script will be helpful
    http://pavandba.wordpress.com/2009/10/24/db-growth-between-two-periods/

  • SpamAssassin's AWL database growing and growing

    I know that this is a known problem, but maybe someone has found a solution in the meantime that did not came to my attention:
    I'm using the auto whitelist feature of SpamAssassin. Unfortunately I'm forced to erase the entire database from time to time, since there seems to be no auto maintenance - it grows and grows (reaches quickly 20 MB+).
    Is there a way to search the AWL list for e-mail addresses used only one or two times and remove exactly these ?

    I know that this is a known problem, but maybe someone has found a solution in the meantime that did not came to my attention:
    I'm using the auto whitelist feature of SpamAssassin. Unfortunately I'm forced to erase the entire database from time to time, since there seems to be no auto maintenance - it grows and grows (reaches quickly 20 MB+).
    Is there a way to search the AWL list for e-mail addresses used only one or two times and remove exactly these ?

  • Oracle 10g database growing day by day

    Oracle 10g database
    database is growing day by day. I would like to know what is inserting into database
    Can you please let me know

    Neeraj Bhatia wrote:
    DBA_TAB_MODIFICATIONS. Monitoring should be enabled for the tables.Just a correction Neeraj, if its 10g or above, the monitoring clause for the tables is actually deprecated and the default monitoring is on out of the box. Please see,
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10739/tables.htm#sthref1903
    Aman....

  • Reporting Database growing rapidly

    Hello,
    Is it normal for the reporting database in SSRS to grow so rapidly? I created a new database 2 days ago, and already it has gone from 300 megabytes the first day to 3gb today. Usually, in a matter of 4-5 months, it grows to 30+ gb.
    Is it normal for it to do this? Once it get's too large it starts to slow the nightly refresh of content down and causes it to take much longer. Also, it seems that when it gets large like that, there are noticeable bottlenecks on the SQL box.
    If this is normal, is the solution just to create a new reporting database once in a while? Shrink it? What? I looked online and didn't see much info addressing this topic.

    It all depends on the number of transactions is carried over the database. If space is going to be constraint
    then take a log backup and shrink the log file.
    Refer the below article
    http://technet.microsoft.com/en-us/library/ms178037(v=sql.105).aspx
    -Prashanth

  • Database growing and weird attributes appearing

    Hello.
    Our SunOne 5.2 DS database is expanding.
    I ran an Export Database task from console and I see attributes like:
    modifyTimestamp;adcsn-43218888000000020002;vucsn-43218888000000020002: 2005090
    9130000Z
    modifiersName;adcsn-43218888000000020001;vucsn-43218888000000020001: cn=direct
    ory manager
    certificateRevocationList;adcsn-43218888000000020000;vucsn-43218888000000020000::
    certificateRevocationList;vucsn-431857af000000010000;deleted::
    certificateRevocationList;vucsn-431873cf000000010000;deleted::
    objectClass;vucsn-42f9bf16000000010000: top
    objectClass;vucsn-42f9bf16000000010000: pkiCA
    objectClass;vucsn-42f9bf16000000010000: cRLDistributionPoint
    cn;vucsn-42f9bf16000000010000;mdcsn-42f9bf16000000010000: PV CA
    creatorsName;vucsn-42f9bf16000000010000: cn=directory manager
    createTimestamp;vucsn-42f9bf16000000010000: 20050810084209Z
    nsUniqueId: 856ca182-1dd211b2-803cf017-d10f91b5
    I have never seen names like these before.
    But where might they be coming from. Apart from the PKI schema, this is a plain vanilla Directory server install on Solaris.
    What worries me is the ;deleted attributes as they are filling up the database... how can they be removed automatically? (and why arent they?)
    Any hints welcomed.

    In a single-server scenario you will never have the old values and deleted attributes. Once you activate replication, the server starts keeping those values for as long as the changelog maxage (this aids in being able to restore other servers from backup or who were done for some period of time). Unfortunately the changelog maxage defaults to unlimited, so entries can grow very big, especially if there are multi-valued attributes.
    I recommend that sites should consider setting
    nsslapd-changelogmaxage under cn=changelog5,cn=config
    to somewhere from 4-7 days depending on your space/recovery needs.
    You will need to export/import if you want to reduce your database size.
    Hello.
    Our SunOne 5.2 DS database is expanding.
    I ran an Export Database task from console and I see
    attributes like:
    modifyTimestamp;adcsn-43218888000000020002;vucsn-43218
    888000000020002: 2005090
    9130000Z
    modifiersName;adcsn-43218888000000020001;vucsn-4321888
    8000000020001: cn=direct
    ory manager
    certificateRevocationList;adcsn-43218888000000020000;v
    ucsn-43218888000000020000::
    certificateRevocationList;vucsn-431857af000000010000;d
    eleted::
    certificateRevocationList;vucsn-431873cf000000010000;d
    eleted::
    objectClass;vucsn-42f9bf16000000010000: top
    objectClass;vucsn-42f9bf16000000010000: pkiCA
    objectClass;vucsn-42f9bf16000000010000:
    cRLDistributionPoint
    cn;vucsn-42f9bf16000000010000;mdcsn-42f9bf160000000100
    00: PV CA
    creatorsName;vucsn-42f9bf16000000010000: cn=directory
    manager
    createTimestamp;vucsn-42f9bf16000000010000:
    20050810084209Z
    nsUniqueId: 856ca182-1dd211b2-803cf017-d10f91b5
    I have never seen names like these before.
    But where might they be coming from. Apart from the
    PKI schema, this is a plain vanilla Directory server
    install on Solaris.
    What worries me is the ;deleted attributes as they
    are filling up the database... how can they be
    removed automatically? (and why arent they?)
    Any hints welcomed.

  • SharePoint 2010 Content database growing too fast

    Hi,
    I have a SharePoint 2010 Content database wss_content_DB which is 197 GB BUT when I calculate my site collection I can see they have used only about 70 GB. I know there is Auditdata table which is about 27 GB. Couple of days ago my content DB was about 105
    GB and it Audit data log was set to unlimited once  I noticed that I set to 90 days since then it jumped to 197 GB.
     I have no idea what is going on.
     Now I need to know
     - why it is showing 197 GB in SQL server
     - How can I trim audit log
     -  Why suddenly it's increased to 197 GB from 105 GB
    Any help will be greatly appreciated.
     Abdul

    There is a way to deal with this table. There is an stsadm command (stsadm -o trimauditlog) as part of the infastructure update that will allow you to manage this data.
    #Powershell Script to trim old AuditData table records.
    $currentDate = Get-Date
    #Number of days we want to keep data in the table
    $NumberOfDays = -90
    $DateToDelete = $currentDate.AddDays($NumberOfDays)
    $DateString = ‘{0:yyyyMMdd}’ -f $DateToDelete
    $STSADMCMD = “stsadm -o trimauditlog -date $DateString -databasename WSS_ContentDB”
    invoke-expression “$STSADMCMD”
    WHY IT SUDDENLY INCREASED:
    Do this query on your SQL Instance: DBCC SQLPERF(logspace)
    This will show you how the size of LOGfiles (LDF) and how much is unused, if you have alot of unused space it indicates you dont have a recent DB backup - normally backup would write log data to MDF file .
    Normally you will not shrink DBs, only if you have deleted alot of data and you are not going to use space again so only do a shrink if you REALLY needs to.
    http://www.microsoft.com/en-us/download/details.aspx?id=24282

  • Content Database Growing too large

    We seem to be experiencing some slowness on our SharePoint farm and noticed that one of our databases (we have two) is now at 170 Gb. Best practice seems to be to keep the database from going over 100Gb.
    We have hundreds of Sites within one Database and need to spit these up to save space on our databases.
    So I  would like to create some new databases and move some of the sites from the old database over to the new databases.
    Can anyone tell me if I am on the right track here and if so how to safely move these sites to another Content Database?
    dfrancis

    I would not recommend using RBS. Microsoft's RBS is really just meant to be able to exceed the 4GB/10GB MDF file size limit in SQL Express. RBS space /counts against/ database size, and backup/restore becomes a more complex task.
    Trevor Seward
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Backup of sql database grows rapidly

    Hi,
    We have issue with respect to log's over MSSQL, due to logs the size of the database is increasing rapidly.
    Can you please provide the best solution as what needs to be done.
    Thanks,
    Chetan Krishna

    Hi,
    IMHO  more appropriate term would be :taking log backup makes the VLF *reusable*( reusable would be more correct term) although truncate the logs/making it inactive/cleared all are correct no issue about it yes taking log backup truncates log and makes
    it resuable  if nothing is holding log.
    Chetan please provide information about recovery model and what does below query return
    select log_reuse_wait_desc from sys.databases where name='db_name'
    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

  • Database growing tremendously

    hi,
    We have a 4.6c 3 - tier systems installed on V5R3. QAS and DEV system are on same partition. We did a system shut down some time back. After that, the database size on QAS is increasing by around 12 GB daily. Earlier, there was very minimal or no increase in size. Nothing specific was done on this system
    How to stop this?
    -Sai

    Hi Sai,
    I cannot believe 12GB/day in the R3QASDATA ...
    Did you track down this to a few tables ?
    Regards
    Volker Gueldenpfennig, consolut.gmbh
    http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de

  • SCCM Database keeps growing

    The ConfigMgr database has grown to 30gb.  I have to shrink it on a daily basis and it continues to grow.  The Services_HIST table seems to grow by 2gb every couple of days.  Is there maintenance for this table that can be run to reduce
    the size?  What else can I do to get the database under control?

    So I recently answer a question just like this in another forums.
    http://www.myitforum.com/forums/ConfigMgr-Database-growing-m243369.aspx
    There are many reasons why the DB will grow and how big it should be.
    How many client do you have?
    Exact what options have you enabled, HW, AI, Power Management, CI, etc.
    Exactly what SU classification and Products have you enabled?
    How often are you doing CI, SW, HW , Heartbeat, etc. ?
    How many deployment are you doing and how often?
    What is you Aged inventory retention setting set to?
    Etc.
    I’m currently using for all of my clients 6-10 GB for the based db, + (# of CM12 Client * 10-15MB)
    Now as to why is you Services History table is “large” that is a hard question to answer. A row will get added to the history table anytime, the PCs current inventory doesn’t match the existing inventory. So if you History table is growing then the question
    should be why is it growing , For the most part it should be fairly stable.
    Use these two queries to track down which computer or services is causing you the biggest headaches.
    This query will tell you which service is changing the most.
    Select
    HS.Displayname0,
    Count(*)
    from
    dbo.v_HS_SERVICE HS
    Group by
    HS.Displayname0
    Order by
    2 desc
    This query will tell you computers is showing the most services with changes.
    Select
    R.Netbios_Name0,
    Count(*)
    from
    dbo.v_R_System R
    join dbo.v_HS_SERVICE HS on R.ResourceID = HS.ResourceID
    Group by
    R.Netbios_Name0
    Order by
    2 desc
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • SCCM database Modified date doesn't change / rebuild indexes

    Hi all,
    I have 2 questions
    1)
    We have a month ago upgraded our SCCM environment from SCCM 2012 RTM -> SCCM 2012 SP1 (no CU), and we have upgraded SQL 2008 R2 (CU6) to SQL 2008 R2 SP2.
    We have a SCCM 2012 primary site and an SCCM 2012 CAS site from both these sites its database file has not changed its modified date since the data of upgrade (SQL is installed on the same server so the database is local). However the WSUS database and the
    reporting DB that exist on the same server updates its modified date.
     SCCM is running and all status messages are OK. All component status's are updating and have correct dates based on when e.g. the last backup ran (that is at 6 pm every night) with no errors. To make a long story short, everything works
    as it should. Deployments and advertisements and OSD arrive, collections get updated, no errors appear in the log files or in the component or site status, but the database on these servers (CAS and Primary) does not modify its date. SCCM backup of these servers
    is running and the database file in that backup also contains the same modified date.
    Anyone knows why this happens , or do we have an issue ?
     2)
    Maintenance task rebuild indexes
    Is there a best practice according to the maintenance task rebuild indexes?
    In our environment we have not enabled this maintenance task, both sites run for over one year.
    Can we enable this task without disturbing or is it a better idea to enable this task in the weekend when there is less workload , and afterwards schedule this task once a week
    regards and thx in advance
    Johan

    As stated “The time stamp will also change if the database files size are expanded as well when the database grow”
    does that mean that after our upgrade a month ago the database has not grown with new data??
    It depends. Data might have been added to the database (which it was fur sure with ConfigMgr), but the timestamp will only change if the file size was increased too. That has something to do with the initial and max file size settings in SQL and the autogrowth
    settings.
    Torsten Meringer | http://www.mssccmfaq.de

  • Database Size versus Backup Size

    Is there a formuly I can use, to calculate the amount of backup space I will need ?
    We have a backup script, for backing up to disk - I copy and paste the main body of the script below. My would like to be able to estimate how much backup space we need, as the database grows.
    connect target
    run
    change archivelog all crosscheck;
    backup database
    include current controlfile
    format '/backup/rman/oraadmin/DBF_%d_%p_%s.RMan'
    filesperset 4
    tag = 'Full_DB_Backup';
    sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    run
    # Backup Archived Logs
    backup archivelog all
    format '/backup/rman/oraadmin/ARC_%d_%p_%s.RMan'
    filesperset 16
    delete input;
    run
    #* Copy Current Control File to Backup Location
    copy current controlfile to '/backup/rman/oraadmin/ControlFile.Ctl';
    }

    use this script -
    column dummy noprint
    column pct_used format 999.9 heading "%|Used"
    column name format a16 heading "Tablespace Name"
    column Kbytes format 999,999,999 heading "KBytes"
    column used format 999,999,999 heading "Used"
    column free format 999,999,999 heading "Free"
    column largest format 999,999,999 heading "Largest"
    break on report
    compute sum of kbytes on report
    compute sum of free on report
    compute sum of used on report
    select nvl(b.tablespace_name,
    nvl(a.tablespace_name,'UNKOWN')) name,
    kbytes_alloc kbytes,
    kbytes_alloc-nvl(kbytes_free,0) used,
    nvl(kbytes_free,0) free,
    ((kbytes_alloc-nvl(kbytes_free,0))/
    kbytes_alloc)*100 pct_used,
    nvl(largest,0) largest
    from ( select sum(bytes)/1024 Kbytes_free,
    max(bytes)/1024 largest,
    tablespace_name
    from sys.dba_free_space
    group by tablespace_name ) a,
    ( select sum(bytes)/1024 Kbytes_alloc,
    tablespace_name
    from sys.dba_data_files
    group by tablespace_name
    UNION
    select sum(bytes)/1024 kbytes_alloc, tablespace_name
    from sys.dba_temp_files
    group by tablespace_name )b
    where a.tablespace_name (+) = b.tablespace_name;
    Message was edited by:
    jittu13

  • List sequences in database

    Hello, please, is there any way I can query database for sequences? I see Database only offers openSequence and removeSequence. Basically I have a system which uses many sequences (each day has a sequence) and I do not need older ones. As the database grows I would like to list old and remove them. Rather than guessing their names--names are based on date so I can manage somehow but an API for listing sequences would be great to have. Thanks

    Hi Peter,
    Each sequence is a record in a database. You specify the record key and the database when you open the sequence. To query these records, use the Database and Cursor APIs just as you would for any other database.
    Does that answer your question?
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 11.2.3 database maintenance (external mssql)

    Still trying to carve out some time to get to 11.3, but in the interim looking after the health of an 11.2.3 zone and taking on the db side of things because someone needs to.
    First thing I've noticed that the DB is 14.4 GB for a zone with <2000 devices, suggesting bloat. My understanding is ~1GB/1000 devices for just a ZCM environment. No patch management, asset management, etc.
    I've run some queries and identified the top five tables by size:
    NC_CompChanges 1261208
    zStatusEvent 1230525
    NC_Component 1039044
    zObjectInfo 1034258
    NC_HotFix 726056
    I've tightened up the centralized message logging settings to auto acknowledge/delete off hours more frequently and will be adjusting the local device logging to only roll up error messages. While that has dropped the system message count considerably, the table sizes are still growing each day.
    Specific areas of concern:
    1) ZENworks Database grows rapidly due to NC_CompChanges table (https://www.novell.com/support/kb/doc.php?id=7004915)
    Will updating beyond 11.2.3 correct this?
    2) The zStatusEvent and zObjectInfo tables may grow extremely large over time (https://www.novell.com/support/kb/doc.php?id=7004256)
    I've built all of the bundles in the zone and really don't rely on system requirements.
    Any input is appreciated. Thanks!

    jeffdtu,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://www.novell.com/support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

Maybe you are looking for

  • Newbie: how to pull data from different data bases to a central location

    Hello, I have no experience at all in Oracle; just in MySQL, PostgreSQL, Firebird for simple applications. I have this project where my Client wants to extract data from related 5 tables, from 12 databases in different locations. Table structure in a

  • Can't move my mp3 files Using my new asus notebook with window 8 and iTunes 11.0.2 version.

    HI, Need help and advises on why I can't move the converted mp3 files to my iTunes playlist. Was okay with my old dell notebook. it keep show ' link' when I drag the file to the playlist but can't click in... please help !!,

  • Need advice on how to get the most out of iDVD.

    My wife and I do wedding Photography - Videography as a source of extra income. My question is: How can I produce the highest image quality dvd for our clients using iDVD. I dont quite under stand the difference between exporting from iMovie to iDVD

  • Won't sleep, wakes spontaneously

    My new Mac Pro has some odd behaviors. First, when using the keyboard shortcut to make it sleep it sometimes won't respond the first time. Sometimes it sleeps right away. Sometimes it takes a few seconds. Sometimes it won't sleep at all unless I use

  • Fullscreen Slideshow blurred why ?

    The new Fullscreen Slideshow is very nice. But i have one Problem. I really have very sharp images but when I pack it in the slideshow and open my Page with the browser. All pictures in the Fullscreen Slideshow are blurred but why?