Reindex Table in MS SQL Server 2005

Hi gurus,
Is it possible or effective to reindex all SAP tables in SQL Server 2005?
I've seen lot of example of re-indexing tables in SQL Server, but not in SAP environment (Since SAP Tables are really huge, around 77,000 tables).
Should I defrag my database?
I've executed DBCC SHOWCONTIG and found that some tables have logical defragment more than 70%.
Is there any tcode in SAP to do re-index task?
Thanks before gurus.

Per SAP Note 1241422 - Database fragmentation and reindexing improves performance
Summary
Symptom
During the lifetime of a database (any db not only SAP Business One) and due to insert\update\delete of data, the information in indexes is fragmented.  Fragmentation exists when indexes have pages in which the logical ordering, based on the key value, does not match the physical ordering inside the data file.  Heavily fragmented indexes can cause slow performance.
Other terms
Index, performance, re-index, reindex, slow, poor, DB
Reason and Prerequisites
FAQ
Solution
It is recommended to run a rebuild the following procedure once\twice a month:

Similar Messages

  • DESKI Report using Temp tables in MS- SQL server 2005

    Hi,
    I am trying to create a Free hand SQL DESKI report using temp tables in MS SQL Server-2005, I am using ODBC connection.
    When I run the report, I am getting the error
    u201CConnection or SQL sentence error (DA0005) No column or data to fetchu201D
    Ex:
    Select *
    into #t1
    from region
    select * from #t1
    drop table #t1
    Please help.
    Regards,
    Pratik

    Pratik, the SQL does not seem right. BTW you can only retreive data via Deski Free hand SQL. Also try to use OLE DB connection.

  • Copy table from Ms SQL Server 2005 to Oracle with SSIS package

    Hi all
    I am witting an SSIS package to copy 2 tables from Ms SQL Server 2005 to an Oracle 10g database.
    Problem: I can only see the Microsoft OLDB Provider for Oracle and it is too slow. How can I use the Oracle ODBC in aMs SQL Server 2005 or building a .net SSIS package.
    thanks

    Yes I am able to see the driver on the Data Source (ODBC), I also created a connection to the Oracle database. The problem in Ms SQL Server 2005 is that the ODBC connection I created is not listed. None of the lo local connections are listed, only Microsoft OLEDB connections

  • SQL server 2005 and MDM components

    Question:
    1) Could we make a repository with relevant tables in SQL server2005, and then import to MDM Console?
    2) Could we see the tables of one repository in SQL server 2005.e.g. In MDM console, one repository created with the name Test001, Test 001 has the main table and subtable as well as special table and Admin table. Now I want to see the same structure and same table name in SQL server 2005, can SQL server 2005 provide this possible? If it is possible, which component of SQL should we use?
    Thanks!

    Hi Alfred ,
    1) MDM Basically created tables in database according to its needs . I am not sure if SAP provided the way around
    2) Nope , Its not same structure in database . I only know <b>CM_History</b> is used to track the history . You can use MDM API's to access database .
    Hope this helps a little ,
    - An

  • Migrate tables from Ms SQL Server 20005 to Oracle 10g

    Hi all,
    I am trying to migrate 10 table from Ms SQL Server 2005 to Oracle 10g. I started creating a SSIS package to transfer them but it always fail when it tries to create the tables.
    Questions:
    - Is there any other way to import Ms SQL Server 2005 tables to Oracle
    - also I need to create a scirp that will update these tables periodically
    any ideas?
    Thanks

    YingKuan is right. jsut to expound a little further. This will also allow you to have have scripts which you can run again and again or even schedule them regularly too.
    B

  • Transfer data from Oracle 7 to SQL server 2005

    Hello guys,
    I am new in Oracle and I need some help from you:
    I have an Oracle database 7 and I need to transfer some tables into MS SQL Server 2005.
    Is there any ORACLE utility (compatible with ver 7) to help me in this task?
    If not, what is the way to trasfer data from a Oracle database 7 to SQL Server 2005?
    Thank in advance

    SQL Server can access Oracle database via the Linked Database feature however I do not know if you could find a Oracle 7 database compatiable Oracle client to use with a SQL Server 2005 database. i would not even try to configure this.
    What I suggest is you use SQLPlus to spool out delimited data into flat files, copy/FTP etc ... those flat files to your SQL Server box, and use BCP to load the data into SQL Server.
    There have been numberous posts of generating delimited flat files from Oracle data posted here on the forum but here is one method that will work on version 7:
    How do I export a database table to a flat file ?
         http://www.jlcomp.demon.co.uk/faq/flatfile.html
    HTH -- Mark D Powell --

  • Unreadable Charactors (?????) - Oracle to SQL Server 2005 Database

    Hi everybody:
    I have some trouble in Oracle Database client and SQL Server 2005,when I
    SELECT some table(in that table have some japanese charactors and these
    table are in SQL Server 2005 ) in Oracle Database client.And I have some
    errors as follows:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this
    message: [Generic Connectivity Using ODBC]DRV_GetRows:
    preceding 2 lines from MSQL3 Cause
    And the detail description are as following:
    1. Table A in SQL Server 2005 has datatype as nchar. Data stored in this
    table are Japanese charactors, for eg カラー, 品番, etc and some are
    English charactors.
    2. ODBC version 2000.81.9002.00 is set in Oracle Server.
    3. a) Connection to SQL Server 2005 (as mentioned in Point 1) is done
    through a database link object, named MSQL on Oracle 10G.
    b) NLS_CHARACTERSET in 10G is UTF8.
    c) NLS_NCHAR_CHARACTERSET in 10G is AL16UTF16
    4. We use PL/SQL DEVELOPER 7.0 and client's unicode is set as UTF8.
    Problem:
    Sometimes We keep on getting unreadable charactors (ie ?????) when we use PL/SQL
    to run queries from Table A.But other sometimes we have the error as above
    i.e
    ORA-28500: connection from ORACLE to a non-Oracle system returned this
    message: [Generic Connectivity Using ODBC]DRV_GetRows:
    preceding 2 lines from MSQL3 Cause
    However, no problem found so far for English charactors.
    Thank you very much.

    Hi Ushitaki
    Thank you again .
    What kind of developer tools do you use with on trying that?
    We use PL/SQL DEVELOPER 7.0 ,and we also have tried Toad developer tools ,no matter what tools the problem still exist....
    On the other hand we set NLS_LANG and set the windows codepage 932 and 936 ,too.But it's a pity we still get the error.
    and the error as follows :
    ORA-28500: connection from ORACLE to a non-Oracle system returned this
    message: [Generic Connectivity Using ODBC]DRV_GetRows:
    preceding 2 lines from MSQL3 Cause
    Message was edited by:
    user569423

  • TOPLINK-41 with SQL Server 2005

    I have mapped several entities to a SQL Server 2005 database. I am using the Identity column as a sequence generator for the primary key in each table.
    This is how I do it:
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name="server_asset_id", unique=true, nullable=false, precision=18, scale=0)
    public Long getServerAssetId() {
    return this.serverAssetId;
    }However, I am getting the below error:
    Exception [TOPLINK-41] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: A non-read-only mapping must be defined for the sequence number field.
    Descriptor: RelationalDescriptor(jtdi.cm.ejb.bean.entity.ServerAsset --> [DatabaseTable(jtdi_cm_db.dbo.server_asset)])When I go look at the table properties in SQL Server 2005, I see the identity is setup properly.
    Am I doing this wrong? Any suggestions would be greatly appreciated. Thank you for taking the time to read my post.
    Russ

    This error went away once I corrects a target entity declaration.

  • INSERTING DATA INTO A SQL SERVER 2005 TABLE, WHICH HAS A IDENTITY COLUMN

    Hi All,
    I have to insert the data into a SQL SERVER 2005 Database table.
    I am able to insert the data into a normal SQL Server table.
    When I am trying to insert the data into a SQL Server table, which has a identity column (i.e. auto increment column in Oracle) I am getting error saying that can't insert value explicitly when IDENTITY_INSERT is set to OFF.
    Had anybody tried this??
    There are some SRs on this issue, Oracle agreed that it is a bug. I am wondering if there is any workaround from any one of you (refer Insert in MS-SQL database table with IDENTITY COLUMN
    Thanks
    V Kumar

    Even I had raised a SR on this in October 2008. But didn't get any solution for a long time, finally I had removed the identity column from the table. I can't to that now :).
    I am using 10.1.3.3.0 and MS SQL SERVER 2005, They said it is working for MS SQL SERVER TABLE, if the identity column is not a primary key and asked me to refer to note 744735.1.
    I had followed that note, but still it is not working for me.
    But my requirement is it should work for a MS SQL SERVER 2005 table, which has identity column as primary key.
    Thanks
    V Kumar

  • Migration from sql server 2005 tables to oracle tables.

    Hi,
    Kindly give the steps to migrate from sql server 2005 tables to oracle tables.
    Kindly advise
    Oracle database version:
    Oracle Database 10g Release 10.2.0.1.0 - Production
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE 10.2.0.1.0 Production"
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Edited by: 873127 on Jul 18, 2011 9:46 PM

    Are you migrating or taking continual updates?
    If migrating it might be worth considering The SQLDeveloper Migration Workbench (which moves more than just data)..
    http://www.oracle.com/technetwork/database/migration/sqldevmigrationworkbench-132899.pdf
    Cheers
    David

  • How do I copy a table from Oracle DB to Sql Server 2005 db ?

    Hi , can anyone tell me what the SQL syntax would be for me to copy a table from an ORacle Database over to a SQL SERVER 2005 database ?

    Hi,
    Please look into this link,
    Re: Dump data from SQL Server Database to Oracle
    Thanks

  • SQL SERVER 2005 - part of the tables where migrated

    Hello.
    I'm trying to convert a SQL SERVER2005 DB to ORACLE 10g.
    The sql-developer is converting all the objects from the DB, but builds DDL comands for 43 table insted of 320 tables .
    All the tables are on schema dbo.
    The user connecting to the sql server 2005 is data base owner (dbo).
    After building the repository, on MD_TABLES there are only 43 records.
    Any idea where to search the problem?
    Thanks
    Reuven
    Message was edited by: reuven
    user533419
    Message was edited by: reuven
    user533419
    Message was edited by: reuven
    user533419

    Reuven,
    We are finalizing our production release and would like to get to the bottom of the problem.
    -You can run the workbench/SQLDeveloper so that you can see Java 'Stack traces' from exceptions (errors) in the output:
    [from the SQLDeveloper forum under Unable to start sql developer :]
    There is another [sqldeveloper.exe] that you should try from the command line:
    <sqldevroot>\sqldeveloper\sqldeveloper\bin\sqldeveloper.exe
    This will run in debug mode.
    If all else fails, try the .bat file in that same folder.
    -Are you using a case sensitive database?
    -For the pre-production release workbench currently uses SQL Server 2000 views rather than SQL Server 2005 altered to take allowance for the user/schema separation, this may cause unforeseen problems.
    -Can you send a test database to us with this problem?
    Regards,
    Turloch
    Oracle Migration Workbench Team

  • How to select data from Sql server 2005 database tableinto oracle database table

    Hi,
    I have table text1 in sql server database and text2 in oracle database (11g). Now how to move data from SQL Server table into oracle table. So please help me how to do it.
    Thanks a lot in advance.
    rk
    OS: Windows 7 professional

    Hi,
    you can use export/import wizard and specify sql server as a source and oracle as destination.
    I hope this is helpful.
    Please Mark it as Answered if it answered your question
    OR mark it as Helpful if it help you to solve your problem
    Elmozamil Elamir Hamid
    MCSE Data Platform
    MCITP: SQL Server 2008 Administration/Development
    MCSA SQL Server 2012
    MCTS: SQL Server Administration/Development
    MyBlog

  • Storing the file in to the sql server 2005 table

    hi,every body...
    in my appliaction i need to store the files.
    i have searched the net but only i found as BLOB(Binary L:arge OBject) is the solution,
    how to use this blob...technique..
    can any one send some sample of code to explain.......
    how to insert a file and how to retrive the inserted file from the SQL SERVER 2005...
    thanks in advance..

    yes, ur rite thse two methods are available..
    but i didnt understand that..the method setBinaryStream() accepts 3 parameters
    the last parameter which i know that.. size of the file of int type rite?
    can u give some more information regarding this..
    thanks ..

  • Can't see data in data tab - sql server 2005

    hello,
    i am connected to a sql server 2005 database (with jtds driver), the connection is ok, i see the tables but i can't see data in data tab.
    i have an error : incorrect syntax
    somebody can help me ?
    thank's in advance
    alex

    definitely. I was going to say, make sure you have the privileges to read data.
    From Microsoft SQL Server 2000 on, it is recommended that you are a member of the db_datareader - so that data in the database can be read
    Barry

Maybe you are looking for

  • CLBUS1007.created event triggered by an ABAP OO event?

    Hello gurus, I have noticed, that when the customer master is created in ECC 5.0, the CLBUS1007.created event is triggered (SWEL). However; CLBUS1007 object does not exist in the BOR directory. It must be ABAP OO event than, right? If so, how can I f

  • IMovie 11, v.9.0.4, How do I keep clips in the same spot in the timeline?

    So I have random video clips, and an audio track, recorded all from one music recording session.  I want the audio in the background (I just dropped it in to the timeline as a background audio track) and I have various clips from different cameras th

  • Add select-option fields in report category (PNP)

    Hi, I am trying to create a new report category based on the logical database PNP. I noted that the fields available for select-option for report category come from infotype 0 or 1. Is there anyway to include fields from other infotypes ? Thank you.

  • Restricted session privilege in 9i and 10g

    We recently upgraded from 9.2.0.7 to 10.2.0.3. Oracle 9i allowed a user with RESTRICTED SESSION priv to connect (sqlplus user /@db) when the database was in restricted mode as it should. However, our Oracle 10g database will not allow a user with RES

  • Need serious help. Time is incorrect and bluetooth won't work

    I have iPhone 5c and the time is not right. The bluetooth won't connect or even appear. Problem started about 6 weeks ago when I did the update to ios8. I've read as much as I can about the problem. I've did every reset possible and nothing works. I'