How to Re org the SQL 2008 database to have equal size data files

Hello everyone -
I have I/O issue with our production system (SAP ECC 6.0 on Windows 2008 and MSSQL 2008).
Following are my I/0 stats in DB02 (since DB Start)
ECPDATA1     E:     Data       25.779     28.053     4.689     1,056.68     36.297     23.326     2.515     45.301     14.43
ECPDATA2     E:     Data       23.143     24.979     4.68     593.297     17.971     12.448     1.238     47.663     14.518
ECPDATA3     G:     Data   9.17     9.807     3.477     1,018.69     36.144     21.938     2.457     46.434     14.712
ECPDATA4     F:     Data  10.985     11.788     2.69     148.512     4.777     3.248     0.314     45.722     15.201
ECPDATA5     F:     Data       14.746     16.164     2.676     162.39     6.693     3.679     0.432     44.139     15.491
ECPLOG1      D:     Log        5.337     27.081     4.916     26.962     26.264     0.037     1.919     726.928     13.688
ECPLOG2      F:     Log     0.755     17.582     0.487     35.472     35.161     0.042     2.637     845.998     13.334
The fourth column is ms/op which is very high and also asymmetrical for all the data files.
Also, The data files are not of equal size
ECPDATA1     106,173
ECPDATA2     59,588
ECPDATA3     105,036
ECPDATA4     14,992
ECPDATA5     16,491
ECPLOG1       1,025
ECPLOG2             3,199
So ECPdata1 and ECPdata3 are about 105 GB while #4 and #5 are 14 GB and 16 GB each. As per SQL best practices, all the Data files should be of equal size to get the best performance.
How do I make the data files with equal sizes ?
Your help is very much appreciated.
Thank you
-TSB

Hi dudes!
The key here is that you manually grow your datafiles before the autogrown mechanism comes to play; in fact, SAP recommends setting the autogrow just to avoid the hypothetical case that should never arrive in which the DB administrator forgot about the database size and it ran out of space.
Otherwise, if you properly monitor and manage your DB you should always grant that at least 30% (to say) of free space is allocated in your datafiles. If you do so, the SQL Server engine should do the rest, as it follows a proportional filling strategy as you can read in SAP note 1238993.
In case your database is not still proportional, my advise is that you just manually grow the datafiles so that all them are the same size, and so SQL Server will do the rest. If you however need to addresss that immediately, you will need to reorganize your database, which is not just more sensitive and complicate, but also which involves some I/O intensive operations (check SAP note 159316).
Cheers!!
--Jesú

Similar Messages

  • How to create a .mdf SQL Server database from a Data-Tier Application file that has data?

    This is a noob question, though I do use SQL Server databases all the time with Entity Framework when I code in C# using Visual Studio 2013.  The development environment is found below at [A].  I am trying to make a clone of a SQL Server 2008 R2
    database (.mdf)  that exists online.  I can read, connect and work with this database in Visual Studio 2013, but I wish to make a local copy of the database, as an .MDF file.  Somewhere in my notes I have a way of creating a local copy from
    an online database when using Visual Studio but I forgot how (it seems, reviewing my notes, that it deals with ADO.NET which is deprecated in Visual Studio 2013 these days, or so it seems).  So I'm looking for another way.  What I did was create
    (or export) a "Data-Tier Application File" from the online SQL Server database, with data, and it seems to have worked in that this Data-Tier Application file exists on my hard drive and seems to have data in it ("SQL Server Replication Snapshot"
    is the format it seems).  It contains skeleton code to create a database, but when I tried to execute it with SQL Server 2014 Management Studio, I got a bunch of errors.
    So my question is:
    1) Can I somehow create a .MDF SQL Server Database from an Data-Tier Application file that has data?  What tool do I use?  I saw this link, http://social.technet.microsoft.com/wiki/contents/articles/2639.how-to-use-data-tier-application-import-and-export-with-a-windows-azure-sql-database.aspx 
    and it relates to Azure, but is there a tool for C#Visual Studio 2013, standalone?
    2) If there's an easy way to create a .mdf SQL Server Database file from an online file, within SQL Server Management Studio?  I don't think so, since it would require Administrator permissions on the online server, which I don't have. I have permission
    to read, update, delete the online database file, but strangely not to download it (the service I use has a tool for backup, but not for download).
    3) same question as 2), but for Visual Studio 2013?  I don't think so, since I notice none of the templates even mentions ADO.NET anymore, but instead they go with Entity Framework.  Using EF I can of course do anything I want with the online database
    (CRUD), but it remains online.  Maybe there's a switch to make a local copy?  I guess I could write a short program to suck all the data out of the online database and put it into a new, duplicate database having the same tables, that I create on
    my localhost, but my question here is if there's an easier way than this, maybe a tool or command I can run from inside Visual Studio?
    Any advice on any of the above questions is appreciated.
    Thank you,
    Paul
    [A] Microsoft Visual Studio Professional 2013
    Version 12.0.21005.1 REL
    Microsoft .NET Framework
    Version 4.5.51641
    Microsoft Web Developer Tools 2013   2.0.40926.0
    SQL Server Data Tools   12.0.30919.1
    Microsoft SQL Server Data Tools
    Windows Azure Mobile Services Tools   1.0
    Windows Azure Mobile Services Tools

    Thanks but these links are too general to help.
    "2. what do you mean by online file?" - I mean the SQL Server database file is on a remote web server that I rent from, but I am not the administrator of.  I can access my database using SQL Server Authentication, but nothing more.
    Paul
    What do you mean by too general? It explains on how you can use data tier application to create and deploy databases
    May be this will help you to understand better
    http://www.databasejournal.com/features/mssql/article.php/3911041/Creating-Data-Tier-Applications--in-SQL-Server-2008-R2.htm
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • JAVA, sqlserver - Need to load an image from the sql server database

    hi,
    I need to load an image from the sql server database using java. I have connected to the database and getting all other records except the records for a photo (datatype = LONGVARBINARY) and Remarks (datatype = LONGVARCHAR).
    I am using java and sql server db. The photo and remarks are stored in the db. and i need to show the image and the remarks fetching them from there.
    I get the error :
    Thread-9 org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
    How can I achieve this?
    Thanks,
    Gargi

    Exactly. And are you using MySQL?
    No. You are using Microsoft SQL server if I have to believe your initial post. A quick google tells me that the dialect class to use is:
    org.hibernate.dialect.SQLServerDialect

  • How can I  connect to SQL server database thru local network by using JSP?

    I'm currently doing a project by using JSP..And I need to display record from the SQL Server database in our school's local network. May I know how can I do that? How can I write the code so that I can able to access the SQL Server databsase Throught school's network by using JSP? Please tell me step by step how can I do that. I'm using Tomcat 4.1 as Web Server. And I had J2SE and J2EE installed in my computer.

    first you have to establish a ODBC DSN on your computer,
    that connects to the database...you can do that from your control pannel.
    i assume that the TOMCAT server is residing on your computer....(if the webserver is in other computer then you would have to create a System DSN on the data sources ODBC option in the settings>control pannel of that machine)
    then you can use that DSN name to connect to the data base from the class file....for further assistance on how to create the class that access the tutorials in sun site.
    regards
    G

  • Configure Synchronization Connections An error has occurred while accessing the SQL Server database

    Hi,
    i am getting following error message
    Central Administration --> Synchronization Connections
    An error has occurred while accessing the SQL Server database or the SharePoint Server Search service.
    If this is the first time you have seen this message, try again later. If this problem persists, contact your administrator.
    Central Administration -->  Manage Profile Service: User Profile Service Application --> Manage User Properties
    Error
    An unexpected error has occurred.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: 3bce5a11-f2dc-4788
    Please tell how to fix it.
    iffi

    Event ID 5555 -> i have change the Timer jobs recycling time AM to PM
    for  User profile page not display  number of count in the page first check services , connection , 
    IISRESET /NOFORCE   /  timer services restart 
    Deepesh Yevle MCTS

  • How to find out the sql details of Request ID

    Hi Guru,
    I am running one crtical request i have all the SID,#serial details with me but i am not sure how i will get the sql query details of that request.so i will check why it's aking time. If any body have any script??

    Please see these docs.
    How to Find Database Session & Process Associated with a Concurrent Program Which is Currently Running. [ID 735119.1]
    bde_request.sql - Process and Session info for one Concurrent Request (11.5) [ID 187504.1]
    How to Retrieve SID Information For a Running Request [ID 280391.1]
    Thanks,
    Hussein

  • SQL Server Management 6.5.1.0 and 6.5.4.0 does not discovery SQL 2008 databases on Windows 2003

    SQL Server Management 6.5.1.0 and 6.5.4.0 does not discovery SQL 2008 databases on a custom instance name or when multiple SQL instances are installed on Windows 2003.
    OS Version: Windows 2203 x64 with SP2
    Database Version: 10.3.5869.0
    The instance in this case: I01 is running on port 49168.
    SQL Server Network Configuration | Protocols for I01 | IP Addresses | IPAll | TCP Port = 49168
    The DB Engine class is discovered but not the "Tcp Port" property.
    The database discovery script then fails as it is missing the 8th parameter; The Port.
    Looking at the discovery script DiscoverSQL2008DBEngineDiscovery.vbs i see the following WMI query.
    Set oWMI = GetObject("winmgmts:\\" & computerName & "\root\Microsoft\SqlServer\" & SQL_WMI_NAMESPACE)  
    Set oQuery = oWMI.ExecQuery("SELECT * FROM ServerNetworkProtocolProperty
    Using WMI Explorer if I connect to namespace: root\Microsoft\SqlServer\ComputerManagement10
    and query "SELECT * FROM ServerNetworkProtocolProperty". There are no instances.
    What am I missing or doing wrong?
    Closely related to this article. https://gallery.technet.microsoft.com/Hotfix-Management-Pack-SQL-17cf1118#content.
    Thanks
    Gavin

    Hi,
    I would like to know is there any update about the issue. If the issue is solved, will you please share the resolution here to help others in this forum who encounter similar issue.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • How many people use the SQL Resource Governor?

    (Timely Walking Dead joke ahead.)For those of you new DBAs, the SQL Server Resource Governor was released along with SQL Server 2008 as a feature to manage your workload and system resource consumption. With Resource Governor, you can throttle allocating resources to the CPU, Memory, and IOPs appropriately, and free up resources based on importance of the application or the user. Resource Governor also allows DBAs to limit any runaway queries and throttle I/O resources that negatively impact workloads.But of course, there are always going to be limitations to any great tool.For example, resource management is limited to the SQL Server Database Engine, andcan't be used for Analysis Services, Integration Services, and Reporting Services. And there isn't any workload monitoring or workload management between SQL Server instances.This...
    This topic first appeared in the Spiceworks Community

    (Timely Walking Dead joke ahead.)For those of you new DBAs, the SQL Server Resource Governor was released along with SQL Server 2008 as a feature to manage your workload and system resource consumption. With Resource Governor, you can throttle allocating resources to the CPU, Memory, and IOPs appropriately, and free up resources based on importance of the application or the user. Resource Governor also allows DBAs to limit any runaway queries and throttle I/O resources that negatively impact workloads.But of course, there are always going to be limitations to any great tool.For example, resource management is limited to the SQL Server Database Engine, andcan't be used for Analysis Services, Integration Services, and Reporting Services. And there isn't any workload monitoring or workload management between SQL Server instances.This...

  • Why i cannot create the sql azure database from my own country 'Nepal' ?. why it is not include in the list of country when we sign up for azure database. :( !!!

    why i cannot create the sql azure database from my own country 'Nepal' ?. why it is not include in the list of country when we sign up for azure database. :(  !!!
    canot we try this new feature ,dosnot we need to try this too..why such discermination for our country nepal. :(

    Hi Anil,
    I am Mahesh from Microsoft Innovation Center. From August 2014 we have made Azure Available to Nepal. You can now directly sign in to azure with your Nepal Based Mobile Number as Verification.
    Thanks for showing your Interest in our Product.
    Mahesh Dahal

  • First simple report/app - how do I edit the sql in it?

    I finally have some time to play with my newly installed htmldb 2.0, and created a quick sample page with a tabular report and queried a table via dblink with some sql I entered in. When I run the app I get a sql error, but for the life of me I can't find out how to get at the sql to edit it.
    Where do I find (and how do I edit) the sql I just entered in?

    When you create this kind of region you can edit the SQL by go to the page definition and clicking on the name you've given to the region in the Regions section of the page rendering.
    This will bring you to the region definition page (you should see /f?p=4000:4651 in the URL of your browser). Then you can go to the region source and edit the SQL there.
    Hope that helps.
    Earl

  • Change the sql 2005 database  C drive to E drive

    hi,
    it is possible to change the sql 2005 database  C drive to E drive
    if ,yes then step:-?
    Regards
    Amit

    Hello Amit,
    >it is possible to change the sql 2005 database C drive to E drive
    >if ,yes then step:-?
    You can also check note [363018|http://service.sap.com/sap/support/notes/363018].
    Regards,
    Eduardo

  • How could I find the SQL statement who get this message ?

    ORA-01555 caused by SQL statement below (Query Duration=11191 sec, SCN: 0x0854.723b9c32)
    ... How could I find the SQL statement who got this message ?
    Thanks, Paul

    ORA-01555 means that the UNDO/ROLLBACK space is not large enough.
    This occurs because the SELECT statement is attempting to read the UNDO, but the UNDO has been released (transactions have committed or rolled back) and reused.
    The following are SOME of the reasons I have seen this to occur:
    1) Updates in a loop, with commits happening in the same loop
    - this will mark the UNDO available quickly and quickly reuse it. Then when the SELECT wants to rebuild a block, the UNDO used to rebuild the block has been reused (solution, make the UNDO bigger)
    2) A SELECT cursor used to control a loop in which updates are performed, and a 'done' flag is marked against the current cursor record, and commits are performed at the end of each loop, prior to fetching the next record
    - same problem as above, but it hits the current process. Same solution
    3) A 'month end' activity spike occurs, and all sorts of transactions create updates. There is a report that reports the activity - amusingly it needs to start at the beginning of all the work and updates periodically by doing a huge SELECT up front. This is then used to drive a loop which attempts to get information from the various transactions that have been updated and committed. After a while, the SELECT gets an ORA-01555
    - same problem as above and same solution. Get a bigger UNDO segment.
    You say this only happens once a month. That should give a hint.
    I wouldn't bother with which SELECT statement, as much as which APPLICATIONs are being run when it happens.
    One way around this - use 10g and set the guaranteed retention period. All sorts of other things will break, by no more 1555. <g>

  • How do I set the HELP menu to use Indesign's local HELP files on the hard drive and not the web?

    How do I set the HELP menu to use Indesign's local HELP files on the hard drive and not the web?
    CS 5.0 launches the internet browser.  > TO SLOW I DONT WANT THIS.
    CS 3.0 uses the local help files > I WANT THIS FOR 5.0.

    You're not speaking to the right forum for your request. Help is a Suite-wide feature and here is the forum where the Help application is discussed, and where the proper Adobe people hang out:
    Community Help Application

  • HT204053 If I have an apple ID for myself and my wife has just got a iPhone for the first time how can she get the same apps as I have for my iPhone and iPad

    If I have an apple ID for myself and my wife has just got a iPhone for the first time how can she get the same apps as I have for my iPhone and iPad by getting it off my iCloud?

    She can't from iCloud without setting up your iCloud account on her phone. But just sync the same apps from your iTunes Library on your computer to her phone.
    Your wife should setup her own iCloud account - which is separate to the iTunes Store accounts.

  • My mac book air can't start installation, because i use windows installation in DOS to make partion, now no mac os on it. How to get back the mac os? i have a window based iso image from a friend, because in my country there is no Apple service.

    my mac book air can't start installation, because i use windows installation in DOS to make partion, now no mac os on it. How to get back the mac os? i have a window based iso image from a friend, because in my country there is no Apple service.

    It sounds like you destroyed your boot partition and the recovery partition.  Depending on it's age, your MacBook Air might be able to do a net boot.  Plug and ethernet connection into it and attempt to boot.  If it has the right firmware, it will find a net boot configuration on the net and boot that.  Then it will give you a Recovery Partition like display and allow you to reinstall the OS X version that came with it.... assuming that it was Lion or ML.  If your computer came with Snow Leopard, then even the net boot won't work. 
    At that point you need a bootable USB Key, or an external DVD drive AND a Snow Leopard installation DVD. 
    An Apple Store, if there is one nearby, MAY be able to get you going again.  However, whatever is on the SSD now will be toast too.

Maybe you are looking for

  • Decision making in DAC

    Hi All, I need help to implement below condition in DAC. I have couple of custom mappings which i have configured in DAC with separate "Source system container". It works fine. Now i need to add one more condition, based on which load in DAC will con

  • Report Builder: output to Excel removes leading zeros

    I'm trying to use the Report Builder to output a numeric field to EXCEL , but on numbers that start with zero EXCEL removes the leading zero's. ex. 00123 becomes 123. Is there something that I can put in the expression builder on the field to overcom

  • Third party sale order wrongly created with Manf plant

    Hi All The Scenario is as follows I have created a sale order with item category TAS. The system generated a purchase requisition which is expected. But it also created a Planned Order for the same sale order when MRP was run for the material. This r

  • Problem with OEPE Weblogic Server Startup

    I am trying to start a WebLogic 9.2.x server in Eclipse without much success. I have the very latest version of the OEPE Plugin for Eclipse. When I attempt to start my WebLogic Server from within Eclipse, I get an error (without a stack trace) that s

  • Append hint..

    Hi all.. Please help me with the following quesion. Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64biI have the following scenario. Job1 "insert" the data into "Table1". Job1 Insert commands has ""append hint" in it. Job1 has lot of "I