Database reorganization

Hi,
We are about to move many segments (tables and indexes only) to few new ASSM tablespaces. The database version is 10.1.0.5.0 on HP-UX B.11.11. We plan to use ALTER TABLE ... MOVE TABLESPACE ...PARALLEL.. and ALTER INDEX ... REBUILD TABLESPACE ... PARALLEL ...
I'd like to ask you how I can improve the move:
1. Is there any parameter/setting to improve the speed of the move? I plan to use NOLOGGING or disablelogging but maybe there is something more. Of course a full backup will be taken before and after the move!
2. The move will make use of the PARALLEL option. Are there any guidelines how to set the parameter? I think about setting the parameter to a value that won’t cause to high I/O contention. Because all parallel processes have to be supplied with data, I’d like to set the parameter that will allow me optimally utilize the I/O subsystem.
3. What does "concurrency wait time" statistic refers to? Is that a cumulative statistic of time spent waiting for CPU, physical and logical I/O where the waiting was caused by concurrent access?
Additionally, I’d like to ask you one question. Currently the database has LOGGING set for all tables, but all indexes are in NOLOGGING mode. How it influence a standby database? Are indexes on the standby database updated? How NOLOGGING for indexes on the primary site affect indexes on the standby.
Regards,
Tim

Hi,
Thank you for your reply.
1. Why do you think disablelogging have to lead to corruption? I would only disable Logging for the time of the reorganization. Moreover I plan to take two backups (one before and one after the reorganization). If something goes wrong I'll go back to the first backup. I everything is fine, I have the latter backup as a starting point. I agree that _disable logging may render the corruption of the database, but only for the time of the reorganization. After the action, the database will again be recoverable and instance failure/media failure proof.
I used that option in the past and that saved me lots of time. In each case I turned on logging short after a reorganization, took backup and everything has been running fine by now.
2. My database stores files on a disk array so parallelism is justified. I only wonder how to estimate the proper degree of paralellism.
I cannot agree with your statement that indexes on standby won't be updated if indexes on primary are NOLOGGING. NOLOGGING option doesn't affect normal DML operations and redo is generated regardless of the setting. It may reduce logging only during some specific operations like direct path load or index rebuilt. I activated the standby many times and there hasn't been any index corruption by now!
If in the NOLOGGING mode normal DMLs weren't logged (for table or index or whatever), database would be useless after any instance failure! But my instance went smoothly through several crashes.
Tim

Similar Messages

  • How to run a Database Reorganization in Background?

    We are using a Windows Platform and we would like to run database reorganization in Background. How will we do this? Via a command? Can we do it via BRTOOLS? Can we schedule the running of Database reorganization via BRTOOLS? DB13 is out of the question so no need to indicate the solution to run the Database Reorganization in Background via DB13. Kindly advice. Thanks.

    Actually, we do know the various approaches and the Hows on implementing them, we just need the how with regards to running DB reorganization in Background.
    For instance, we will schedule the database reorganization on the evening, since there may come a time when there is nobody available at a certain schedule, we need to schedule it in background so that we could still meet the schedule without anybody, personally, checking on it. Another advantage for it is when there are very large objects that usually took lots of time to finish, we usually let it rest in weekends wherein there is a possibilty that no one is available, we could just schedule it in background without having the problems with regards to timeout in dialog sessions. Also, usually, due to location constraints, we cannot personally access the application server thus, we use remote desktop sessions so as to access the servers. Background session can prevent the risk of having failures with regards to network issues or any other factors that might affect the result of the continuity of the reorganization thus, we need way/s on how to implement it in background session.
    Do anyone have a command in running brtools (specifically for reorganization) to run in background?

  • Database Reorganize

    Hi expert
    I want to minimize the size of our current production server, so I delete 1 client (unused client)
    Now I'm going to do database reorganization with BRTOOLS
    my question is what table to reorganize ?
    thanks
    Della

    Hi,
    If you have delete the client than you have to go for full DB reorg (As suggest by Jaun). I am giving you some idea , how we can reorg DB with BRtolls.
    If you go through the SAP Note which has mention by Jaun,than you can find that in oracle 10g we can reorg full DB online.
    1:- Reorg Table which do not have LONG field
    2:- Convert Long field to LOB field & Reorg Table which have LONG field .
    If you need detailed DB reorg steps than go throug the below link.
    [I have given detailed steps here|Re: Table reorganization]
    Thanks & Regards
    Gopal Kaushik

  • Is it worth skipping Indexes during Database reorganization?

    Hi All,
    we are planning for Database reorganization using ALTER TABLE...MOVE TABLESPACE. Can we skip the indexes or we need to perform the ALTER INDEX ...REBUILD TABLESPACE....
    After going through the asktom post we decided to skip the indexes, we are looking for all your suggestion on this topic.
    Ref: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:6601312252730
    Thanks in advance,
    karv

    depends on the version of the database also, you need to select appropriate method of defragmentation
    if your db is 10g, not required to use move command. you can use shrink command which will give benefit to not rebuild indexes

  • Error Scenarios in Database Reorganization

    I need to know what error scenarios may and will occur upon running Database Reorganization. For instance, the db reorg activity was halted in the middle. Some errors like that or something. Kindly provide error scenarios or worst case scenarios or any problematic scenario and kindly indicate the solution as well so that i could have ideas on what to expect and what to encounter during reorganization run.

    Hello Jett,
    what can happen during a reorganization?
    Answer: All or nothing. All things that can occur at normal work can happen at a reorganization.
    You need to think/clarify some things:
    - Which kind of reorg is possible (online / offline) and which restrictions are on some tables
    - How many disk space is needed by the reorg
    - How do you monitor the reorg
    - Look out for oracle bugs that corrupt the data while reorg
    Which scenarios can occur at the reorg depends mostly on the type of rerorg and its objects (online / offline / LOB / LONG , and so on..)
    Regards
    Stefan

  • Oracle database reorganization (moving datafiles to new filesystems)

    Hi All,
    We are planning to perform a database reorganization (moving datafiles to new filesystems) in our Production environment using SAPDBA.
    We had noticed in our recent performance reports that few datafiles in some of the SAPDATAxx filesystems are having higher I/O contention and are putting heavy load on those filesystems resulting in poor performance. So, we had identified the datafiles and planning to move them to new SAPDATA filesystems (uniformly distribute the datafiles to stabilize the I/O). Below are the version information.
    SAP: 3.0F
    Oracle: 9.2.0.8
    OS: HP-UX 11.23
    SAPDBA: 6.20
    I'm going through SAP notes and Oracle documentation on this.Can you please share your experiences if similar activity was carried out by any of you and the documents relating to this.
    Your inputs on this is very much appreciated.
    Thanks,
    Vasu

    If your goal is just to make use of new storage, it is fairly straightforward and quick to move the datafiles as others mentioned. However, moving the datafile will NOT reorganize tables/tablespaces.
    You can optionally reorg tables/tablespaces in addition to the move of datafiles. This generally saves space and helps performance. If you decide to reorg, I would suggest you move the datafiles to faster storage then reorg (since reorg itself is highly IO intensive).
    Some points to consider:
    - perform the reorg when business use is least
    - perform online reorg where possible
    - online reorg creates temporary snaps, typically in the users default tablespace, make sure it has sufficient space
    - start with small tables/tablespaces first to get throughput estimate and also estimate of reduction in size
    - estimate the size of target tablespace (how small it is going to be compared to source) and build the target tablespace smaller to avoid wasting space
    - watch the space usage of the target tablespace when the reorg is running
    - if you are reorging individual tables, make sure the indexes are rebuilt
    Hope this helps.
    Regards,
    Shan

  • 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

  • Oracle Database Reorganization

    hi,
    Planning to reorg oracle database for apo. This involves transparent tables and also cubes. Is there any SAP recommended Oracle reorg strategy / guide for doing so.
    would appreciate any detailed guide is available.
    Thanks,
    RajS

    Hi,
    You can perform online database reorg on APO system. An online
    reorganization is online per definition, so it doesn't interfere on a
    logical consistency layer with other system components.
    The online reorg need additional CPU, disk space and other system
    resources. If possible, we do not recommend to do the online reorg when
    you have heavy workload on the system.
    If you want to understand more about BRSPACE online reorganizations
    please refer to following online help topics.
       http://help.sap.com/saphelp_nw70ehp2/helpdata/en/32/
       0d0c888839164ba4245b3ff7969c59/frameset.htm
       http://help.sap.com/saphelp_nw70ehp2/helpdata/en/1b/
       4e8f0d38a8f4419436d608a36b6581/frameset.htm
       SAP on Oracle
    Regarding the offline reorganisation, please check the below:
    SAP Note 646681 (offline-reorganization in Remark14 of this note).
    Please see point 14 in the above note which clearly explains the
    offline reorganisation process.
    541538 FAQ: Reorganization
    647697    BRSPACE - New tool for Oracle database administration
    648753    Reducing the tablespace size with a reorganization
    Regards,
    Aidan

  • Database reorganization through BRtools

    Hi All,
    Can you please tell me the procedure how to reorganise the total database using BRTools.
    i have gone through the 646681note.
    can you please provide me the steps how to do through  brtools.

    i have seen the above link ,but i cann ot find how to mention all the table spaces names.
    can you tell me how to reorganise total database .
    You cannot reorganise all the tablespaces in the same way.
    System tablespace for example will need a special treatment. And most probably there will be no need to reorganise it.
    But anyway, have a look at
    SAP Note 748434 - New BRSPACE function "dbcreate" - recreate database

  • Database reorganization error

    Hi All
    According to note no 646681 we had performed DB reorganization for Oracle 10 G by using BRSPACE commands
    Long fields conversion
    1.     brspace -f tbreorg -a long2lob -t "*" -n psapclud_n -p 4
    2.     brconnect -u / -c -f stats -t all -f collect -p 4
    1.     brspace -f tscreate -t psapclud_n -d both -l psapclud
    2.     brspace -f tbreorg -s psapclud -t "*" -n psapclud_n -p 4
    3.     brspace -f tsdrop -t psapclud
    4.     brspace -f tsalter -a rename -t psapclud_n -n psapclud
    5.     brconnect -u / -c -f stats -t psapclud -f collect -p 4
    Currently we have reorganised for single tablespace PSAPCLUD
    After all the steps got completed we started sap but
    As soon as we logon by logonpad
    we are gettin the ABAP dump
    DBIF_RSQL_TABLE_UNKNOWN
    A table is referred to in an SAP Open SQL statement that either does not
    exist or is unknown to the ABAP Data Dictionary.
    The table involved is "AGR_DATEU " or another table accessed in the statement
    no errors occured during reorganization but are unable to run any transaction codes in sap
    Can any please suggest where any logs would be generated
    where any errors can be found ,we are clueless please help

    Hi,
    maybe the reorg was done well and only the tablespace rename failed.
    Can you check the status of you new tablesapce.
    select tablespace_name, status from dba_tablespaces.
    should be online.
    Check that the table exists in the right schema after reorganisation.
    select owner, table_name from dba_tables where table_name = '<TABLE_NAME>';
    The reorg protocolls you should find in /oracle/<SID>/sapreorg
    Check the ORACLE Alert file also: /oracle/<SID>/saptrace/backgroung/alert_<SID>.log
    Regards Ulrich Henkenjohann

  • Best Trategy to reduce the Database Size

    Hi Everyone,
    In our Client's Landscape SAP systems have been upgraded to newer versions whereas our client want
    one copy of older Production systems (one copy to retain)
    1) SAP R/3 4.6 C system  (database size of this system is approx 2TB)
    2) SAP BW 3.0 (database size of this system is approx 2TB)
    Now CLient wants us to reduce the database size via re-organization because Archiving of IDOCs & Links we have already done
    Client has recommended for :
    1) Oracle Export/Import: Only Oracle DBA can do (ignore this one)
    2) Database Reorganization : We have tried Reoragnization via BRtools but found very tedious 9 (ignore this one)
    3) SAP Export/Import : Via this way we want to reduce the database size
    Can anybody Tell us How much Free space do we require in order at OS level in order to store the Database Export
    of Two Databases of size around 4TB & what would be the best strategy of reducing the Dabase size.
    Via SAP Export/Import how much approx how much database size will be reduced
    Thanks & Regards
    Deepak Gosain

    Hi,
    >Can anybody Tell us How much Free space do we require in order at OS level in order to store the Database Export
    >of Two Databases of size around 4TB & what would be the best strategy of reducing the Dabase size.
    The only realistic way to know is to do a system copy of the production system on a testbed system and to test the Database Export.
    If you really want to decrease the database size you will have to archive a lot more than the IDOC archiving object.
    Regards,
    Olivier

  • Performance benefits from database export import

    Hi guru,
    I have SAP R3 47.X110 WIN/SQL2005.
    I want to improve performance by a sort of database reorganization.
    I read this note  Note 159316 - Reorganizing tables on SQL Server SQL 2000/2005
    but , there the method descrived is not much quick to do.
    The question is : there is lot performance's benefits from make an export of my instance then re-import , according system copy procedure?
    Or there is another quick way to reorganize database?
    Thank you very much for answer.
    Antonio.

    You want to do an export/import or a reorganization to get more performance. The question is: does it make sense? The given Microsoft article and the mentioned notes describe pretty well, in which cases it makes sense and in which not.
    I wouldn´t start with the last step (reorganization) but I would more try to find out, where the real problems are. Checking the I/O system throughput using performance monitor (perfmon.exe) on Windows, checking long running statements using ST05 and finding out if you have a real index fragmentation using the given DBCC procedures.
    If you come to the conclusion then, that a reorganization makes sense, then I would do it.
    And as stated in the SAP note, if it would become faster after such a task, the underlying I/O subsystem is not fast enough to serve all the requests.
    There´s no general statement as "if you do reorganization using method A or method B it will be faster" because the reasons for a slow performance can vary.
    Markus

  • Space Reorganization after client delete.

    Hi Gurus,
          I have a doubt in reorganization of  space after client delete.
           I have created a client and the client copy(local) was done successful. Now i want to delete the client and want to clear  the space occupied by  the new client (approx 2 GB) . Can u help me how to empty the space occupied by this client.
         My environment..IDES 4.7 . Win 2k. Oracle database.
    Thanks in Advance,
    Sachin.

    Hi
    Sachin.
    Inorder to delete the client login to the particular client say like ex: 300
    execute from the functions or SCC5.
    Select if u want to delete it from the entry of table T000, schedule it immediately or background, Whenever it is deleted the space is not automatically freed from the database although these areas can be filled up with new data.
    When a client is deleted and created again, the space which is freed can be filled up with new data.
    To immediately restore the free space perform the database reorganization, this is recommended when ur client is having a large amount of database.
    For ur case the client is of size 2GB,  the new data can reuse the free space of the deleted  client,
    Checking the space management, current sizes,space statistics etc., Goto the Database performance or Tcode DB02 check the Date/Time analysis when it has done, Else do refresh so that a dialog box is opened and prompts u to select
    1. Perform the database checks
    2. DB checks and update statistics
    Select the 2 option so that it will reorganize the database.
    Regards
    Bhaskar
    Edited by: bhaskar1818 on Jun 3, 2008 10:15 AM

  • ZENworks Database and Primary Servers / Scheduled Reboot

    Hi all,
    I hope I got the correct forum for my questions. If not could an admin be so good to move me to the correct one?
    We've got a ZENworks 11.3.1 Zone with 4 Primary Severs (SLES 11SP3) and up to 25 Satellites (mixed OS). The Databases are on MS SQL.
    Some times we get very strange behaviour of bundles, policies and ZCC is slow. After taking the Databases down and reboot the four primaries the zone is working fine again for a time.
    My question is: Do you reboot your Zone daily/weekly? I did'nt find any recommendations in the documentation.
    Thanks in advance for letting me know how you handle this.
    Kind regards
    Sebastian

    tbargfrede <[email protected]> wrote:
    > nop1983;2330117 Wrote:
    >> tbargfrede <[email protected]> wrote:
    >>> Hi all,
    >>>
    >>> I hope I got the correct forum for my questions. If not could an
    >> admin
    >>> be so good to move me to the correct one?
    >>>
    >>> We've got a ZENworks 11.3.1 Zone with 4 Primary Severs (SLES 11SP3)
    >> and
    >>> up to 25 Satellites (mixed OS). The Databases are on MS SQL.
    >>>
    >>> Some times we get very strange behaviour of bundles, policies and ZCC
    >> is
    >>> slow. After taking the Databases down and reboot the four primaries
    >> the
    >>> zone is working fine again for a time.
    >>>
    >>> My question is: Do you reboot your Zone daily/weekly? I did'nt find
    >> any
    >>> recommendations in the documentation.
    >>>
    >>> Thanks in advance for letting me know how you handle this.
    >>>
    >>> Kind regards
    >>> Sebastian
    >>>
    >>
    >> Right place
    >>
    >> No, you should not need to reboot every Day, week or even month. Using
    >> a
    >> lot of RAM?
    >>
    >> What about your DB's maintenace plan? How does this look?
    >>
    >> --
    >> Nops
    >
    > All primaries got up to 6GB RAM which is used normally 50-70%.
    > The Database MS SQL Server uses RAM 70-80%
    >
    > Database maintenance plan: backup every day, shrink every day.
    >
    > Devices in zone: >2000
    > Database size: 23GB
    >
    Hey
    Zpm in place? Thats a large DB, I see 9GB with 2700 devices on sql.
    This from the docs:
    Check database integrity
    Shrink database
    Reorganize index
    Rebuild index
    Update statistics
    Back up database
    Do you do any of the above? You could give it a try?
    Nops

  • Database reorg

    Hello,
    The customer wants to know whether it's time that we do a reorganization of our SAP Netweaver 7.0 database.
    The thing is, the growth of teh database is not much, hardly 1 GB per month, but maybe internally the database is fragmented (windows term).
    So how is it that we decide, if it is necessary to reorg the database? I know we need to look in Tx db02. But what exactly in Db02?
    Kindly suggest.
    Thanks.

    >But there is no mention of Database Reorganization anywhere
    Early-Watch Report does mention about bad storage qualities. both for tables and indexes.
    It lists top 20 tables and indexes with bad storage qualities. I am not sure why your EWA report does not show that. but in our report ( Both for BW 3.5, and BI7 ) we get these information.
    By the way, what is your ST-PI and ST-A/PI  version? There is a bug in 2008_1_640 but after applying one note correction now again we get these information.
    Some portion of my latest EWA is given below.
    0.0.1 Auxiliary Storage Quality Information
    The following table shows the top "regular" (not partitioned, empty, index organized) tables (max. 20) that have more than 1000 blocks with the lowest storage quality (based on the available CBO statistics).
    TABLES WITH FRAGMENTATION
    Table Name     Rows     Average Row Length     Blocks     Kb Used     Kb Needed     Kb Wasted
    BALDAT     10050500     196     10873585     76235087     1933543     74301543
    UCL2040     2707167     218     1286381     9018862     578974     8439888
    DBTABLOG     56460000     271     2617504     18351413     14997188     3354225
    Action: Reorganization
    The last column (Kb Wasted) shows how much disk space can be recovered through reorganization.
    Caution:
    The Oracle bug 5842686 (detailed in SAP Note 821687) may cause calculations to be incorrect for tables with long raw fields. This bug can be fixed as of Oracle Release 10.2.0.2.
    The following table shows the top "type normal" indexes (max. 20) that have more than 1000 blocks with the lowest storage quality (based on the available CBO statistics).
    Even if your EWA does not provide these information, in my last post there is one link. Click on that, you will get one SQL, by which you can get this information
    Edited by: Anindya Bose on Aug 25, 2009 6:07 PM

Maybe you are looking for

  • Suggestion for a new macbookair flash storage capacity for dual OS

    I'm planning to buy my first MBA. I'll work using logic pro and office for mac. But I also have one app that need run on win7. This app size is max 200mb. To keep my final working file, I plan to buy external storage. My question, looking at my work

  • Downloads dropping from my nano?

    I am a retired. My children gave me this at Xmas.  I rarely use it. I am frustrated as the music I put on disappears.  I up dated the Nano for use in airports. Went on my trip.  When I arrived at my destination the music I wanted to share was gone. 

  • Error in import com.sap.mbs.ca.ur.enum.MessageType

    Hi, I try to import MAM30 SP5 in NWDS (7.1 SP03). After doing that I get an error that class com.sap.mbs.ca.ur.enum.MessageType; is missing. In fact this class is part of the mbsui.jar file which is located in the lib folder of my application. Messag

  • Netgear MR814v2 help

    I have a Mac mini and a G4 iBook, both with the latest OS. I have a Netgear MR814v2 wireless router. I cannot get the thing to work.The browser set-up starts up, and detects that I have a dynamic DCHP, which is correct. However, that is as far as it

  • Networking and printer

    I have vista on one desktop and xp on another.  I was able to print from both.  The printer is an Epson and the one connected to.  The xp was networked to use this printer as well.  I just replaced my wifi router and I cannot get the xp to print.  I