Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Which new Oracle 9i features are helpful for a SAP customer? Dr. Stephan Bühne.

Slides:



Advertisements
Similar presentations
Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Advertisements

Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
Oracle Architecture. Instances and Databases (1/2)
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2007 all rights.
Basic Storage Concepts and Settings
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
Oracle Online Features - Golfing Instead of Working on Weekends Oracle World 2003 – Session Sep 2003 Denny Wong Consultant Database Services.
Oracle 9.2 – New features in the SAP world
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 2 System Level.
Oracle Architectural Components
Harvard University Oracle Database Administration Session 5 Data Storage.
Managing an Oracle Instance
10 Copyright © 2006, Oracle. All rights reserved. Automatic Shared Memory Management.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
Backup and Recovery Part 1.
Oracle9i Database Administrator: Implementation and Administration
Oracle Database Administration Database files Logical database structures.
IT Database Administration Section 03. Tablespaces and the DBA  Important for DBAs – logical units of database storage Made up of physical operating-system.
Database Administration TableSpace & Data File Management
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Basic Oracle Architecture
1 Oracle Database 11g – Flashback Data Archive. 2 Data History and Retention Data retention and change control requirements are growing Regulatory oversight.
Preface 1 Introduction Course Objectives 1-2 How DBAs Spend Their Time 1-3 Oracle Database 10g Manageability Goals 1-4 Database Management Challenges 1-5.
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
Extents, segments and blocks in detail. Database structure Database Table spaces Segment Extent Oracle block O/S block Data file logical physical.
The Persistence of Memory (Issues) Brian Hitchcock OCP 8, 8i, 9i DBA Sun Microsystems NoCOUG Brian Hitchcock April.
Oracle9i Performance Tuning Chapter 2 Tuning the Buffer Cache.
1 Oracle Architectural Components. 1-2 Objectives Listing the structures involved in connecting a user to an Oracle server Listing the stages in processing.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
An Oracle server:  Is a database management system that provides an open, comprehensive, integrated approach to information management.  Consists.
13 Copyright © 2006, Oracle. All rights reserved. Tuning PGA and Temporary Space.
15 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Summary.
The Self-Managing Database: Automatic SGA Memory Management Tirthankar Lahiri Senior Manager, Distributed Cache & Memory Management Oracle Corporation.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
Outline Introduction to Oracle Memory Structures SGA, PGA, SCA The Specifics of the System Global Area (SGA) Structures Overview of Program Global Areas.
Indexes / Session 2/ 1 of 36 Session 2 Module 3: Types of Indexes Module 4: Maintaining Indexes.
Week 3 Lecture 2 Basic Storage Concepts and Settings.
14 Copyright © 2006, Oracle. All rights reserved. Tuning Block Space Usage.
Week 4 Lecture 2 Advanced Table Management. Learning Objectives  Create tables with large object (LOB) columns and tables that are index-organized 
D Copyright © Oracle Corporation, All rights reserved. Loading Data into a Database.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown President System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2003.
Oracle 10g Database Administrator: Implementation and Administration Chapter 5 Basic Storage Concepts and Settings.
10 Managing Rollback Segments Objectives Planning the number and size of rollback segments Creating rollback segments using appropriate storage.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
Managing Storage.
1 11g NEW FEATURES ByVIJAY. 2 AGENDA  RESULT CACHE  INVISIBLE INDEXES  READ ONLY TABLES  DDL WAIT OPTION  ADDING COLUMN TO A TABLE WITH DEFAULT VALUE.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle Database Architectural Components
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
 Database Administration Oracle Database Instance Management Starting Up and Shutting Down أ. ندى الغامدي, أ. ندى الطوالة.
3 Copyright © Oracle Corporation, All rights reserved. 管理数据库事例.
Data, Space and Transaction Processing
Table spaces.
Initialization Parameters
Is 221: Database Administration
Oracle9i Database Administrator: Implementation and Administration
Index Index.
Which new Oracle 9i features are helpful for a SAP customer?
Chapter 5 The Redo Log Files.
Presentation transcript:

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Which new Oracle 9i features are helpful for a SAP customer? Dr. Stephan Bühne Oracle SAP Solution Center Walldorf

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Initialisation: spfile vs. Pfile SGA: Dynamic Resizing Multiple Block Size Support PGA: Automatic Memory Management Automatic UNDO Management Resumable Space Allocations Identifying unused indexes Online-Reorganisation

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Initialisation: spfile vs. Pfile SGA: Dynamic Resizing Multiple Block Size Support PGA: Automatic Memory Management Automatic UNDO Management Resumable Space Allocations Identifying unused indexes Online-Reorganisation

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Initialisation: spfile vs. pfile Spfile replaces traditional init.ora file Allows server to maintain parameter settings All members of RAC can use the same file Is maintained by the oracle server

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Initialisation: spfile vs. pfile Binary file Is created with the command: „Create spfile from pfile;“ Alter system set parameter = value scope = Memory | Spfile | Both Example: Alter system set SORT_AREA_SIZE = comment ´Temporary Change´ scope = spfile;

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Initialisation: spfile vs. pfile Exporting spfile: „Create pfile from spfile;“ *.sort_area_size= #Temporary change prd1. shared_pool_size=200m prd2. shared_pool_size=150m *.sessions=200

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Initialisation: spfile vs. Pfile SGA: Dynamic Resizing Multiple Block Size Support PGA: Automatic Memory Management Automatic UNDO Management Resumable Space Allocations Identifying unused indexes Online-Reorganisation

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Dynamic SGA Oracle 8i Buffer Cache and Shared Pool are fixed Recycle Pool and Keep Pool are defined out of all DB_Block_Buffers

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP SGA Oracle 8i Default Shared Pool Keep Recycle Buffer Pool SHARED_POOL_SIZE = DB_BLOCK_BUFFERS = BUFFER_POOL_RECYCLE BUFFER_POOL_KEEP Shared_Pool_Reserved_Size SHARED_POOL_RESERVED_SIZE

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Dynamic SGA Oracle 9i Buffer Cache and Shared Pool can be dynamically changed No database restart necessary

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP SGA Oracle 9i Default Shared Pool Keep Recycle Shared_Pool_Reserved_Size SGA_MAX_SIZE = 2048M DB_CACHE_SIZE DB_KEEP_CACHE_SIZE DB_RECYCLE_CACHE_SIZE SHARED_POOL_SIZE

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Dynamic SGA: Parameters If you want make use of the dynamic SGA resizing you MUST use new parameters: – DB_CACHE_SIZE (DB_BLOCK_BUFFERS) – DB_KEEP_CACHE_SIZE (BUFFER_POOL_KEEP) – DB_RECYCLE_CACHE_SIZE(BUFFER_POOL_RECYCLE)

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Dynamic SGA: MONITORING Efficieny of the buffer cache can be monitored with View V$DB_CACHE_ADVICE Parameter DB_CACHE_ADVICE must be specified – OFF: Advisory is turned off – ON:Advisory is turned on – READY:Advisory is turned off, but needed memory is allocated

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Dynamic SGA: V$DB_CACHE_ADVICE Cache Size (MB) BuffersEstd. Read Factor Physical Reads 303, ,317, , ,949, , ,865, , ,282, , ,515, , ,909, , ,739, % 20 % 30 % 200 % 100 % 110 % 120 %

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Dynamic SGA: Summary MAX_SGA_SIZE specifies the total amount of memory used for the oracle SGA Within this specified size all parts of the SGA can be resized dynamically KEEP and RECYCLE Buffers are specified additionally More flexibility to adjust SGA to the current needs

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Dynamic SGA: Summary View V$DB_CACHE_ADVICE can be used to estimate optimal buffer cache size Feature can be switched on/ off dynamically Partial analysis for specific workload is possible Dynamic SGA Resize is also possible in RAC environments

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Initialisation: spfile vs. Pfile SGA: Dynamic Resizing Multiple Block Size Support PGA: Automatic Memory Management Automatic UNDO Management Resumable Space Allocations Identifying unused indexes Online-Reorganisation

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Multiple Block Sizes Tablespaces within one database can have different Oracle Block Sizes Is setup on Tablespace creation Up to five different Sizes can be used Supported Block Sizes: 2k, 4k, 8k, 16k, 32k Each block size has an own buffer cache area

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Default Block Size = 8k Keep Recycle DB_CACHE_SIZE DB_CACHE_SIZE = 32K DB_RECYCLE_CACHE_SIZE Multiple Block Sizes DB_CACHE_SIZE = 32K DB_CACHE_SIZE = 16K DB_KEEP_CACHE_SIZE SGA_MAX_SIZE = 2048M

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Multiple Block Sizes: Monitoring View V$BUFFER_POOL displays information about specified buffer pools Block Size Current Size BuffersTarget Size Prev. Size

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Multiple Block Sizes: Summary A separate Buffer cache must exist, before a tablespace can be created System TS and Temp TS must have default blocksize Larger block sizes are useful for tables containing Long Raw fields BW-Application can benefit (FTS) Useful for SAP Cluster or Pool Tables

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Initialisation: spfile vs. Pfile SGA: Dynamic Resizing Multiple Block Size Support PGA: Automatic Memory Management Automatic UNDO Management Resumable Space Allocations Identifying unused indexes Online-Reorganisation

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Automatic PGA Management Simplifies and improves memory allocation SQL working areas can be adjusted automatically and dynamically – Ease of memory tuning – Reduction of time to tune memory – Better throughput – Improved query response time

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Automatic PGA Management Process PGA Untunable Memory Tunable Memory Process PGA Untunable Memory Tunable Memory Process PGA Untunable Memory Tunable Memory Untunable Memory+Tunable Memory<= PGA_AGGREGATE_TARGET Process Code Heap Memory SORT_AREA_SIZE HASH_AREA_SIZE BITMAP_MERGE_AREA_SIZE CREATE_BITMAP_AREA_SIZE Untunable Memory Tunable Memory

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Automatic PGA Management: Standard R/3 95 %+5 %<= PGA_AGGREGATE_TARGET Untunable Memory Tunable Memory Process PGA = SORT_AREA_SIZE

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Automatic PGA Management: BW R/3 5 %+95 %<= PGA_AGGREGATE_TARGET Untunable Memory Tunable Memory Process PGA SORT_AREA_SIZE HASH_AREA_SIZE BITMAP_MERGE_AREA_SIZE CREATE_BITMAP_AREA_SIZE

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Automatic PGA Management New Oracle Parameters introduced: – PGA_AGGREGATE_TARGET 10 MB – 400 GB – WORKAREA_SIZE_POLICY MANUAL (Default) AUTO (Default if PGA_AGGREGATE_TARGET is set)

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Automatic PGA Management The AUTO Mode ensures: – The overall size of the PGA memory never exceed PGA_AGGREGATE_TARGET – A Single process never runs out of memory

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP PGA Management: Monitoring New Statistics in V$SYSSTAT: NameValue work area memory allocated (KB)0 Work area executions – optimal size2683 Work area executions – one pass size153 Work area executions –multipasses size10

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Automatic PGA Management V$SYSSTAT – WORK_AREA_MEMORY_ALLOCATED Total amount of PGA allocated either by a single process or overall – WORK_AREA_EXECUTIONS_OPTIMAL Optimal size: No write to disk necessary – WORK_AREA_EXECUTIONS One Pass Query could executed with a single disk pass – WORK_AREA_EXECUTIONS MULTIPASS Multiple pass runs were necessary

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP PGA Management: Monitoring New View V$PGASTAT: NameValue aggregate PGA auto target global memory bound total expected memory total PGA inuse total PGA allocated maximum PGA allocated total PGA used for auto workareas maximum PGA used for auto workareas0 total PGA used for manual workareas0 maximum PGA used for manual workareas0 estimated PGA memory for optimal0 maximum PGA memory for optimal0 estimated PGA memory for one-pass0 maximum PGA memory for one-pass0

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Initialisation: spfile vs. Pfile SGA: Dynamic Resizing Multiple Block Size Support PGA: Automatic Memory Management Automatic UNDO Management Resumable Space Allocations Identifying unused indexes Online-Reorganisation

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Automatic UNDO Management Simplifies management of undo data No reasons for create, drop, alter rollback segments UNDO segments can be managed either manual or automatic Data is managed by a single UNDO-tablespace

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Automatic UNDO Management System TBS System Rollback Segment System Rollback Segment Auto Manual _SYSSMU1$ _SYSSMU2$ _SYSSMUn$ UNDO TBS RBS1 RBS2 RBSn RBS TBS System TBS

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Automatic UNDO Management UNDO_MANAGEMENT Switches automatic UNDO management on/off UNDO_TABLESPACE Defines which automatic UNDO tablespace is used UNDO_SUPPRESS_ERRORS Supresses errors if invalid UNDO command is issued UNDO_RETENTION Specifies the time in seconds Read Consistency should be guarenteed

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP UNDO Management Monitoring V$UNDOSTAT Displays the UNDO usage in 10 Minutes intervals Begin_TimeEnd_TimeUNDOBLKSTXNCOUNTMAXCON : : : : : : Undo space = (UR x UPS) + Overhead UR = Undo Retention Parameter UPS = Undo Blocks per second

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Initialisation: spfile vs. Pfile SGA: Dynamic Resizing Multiple Block Size Support PGA: Automatic Memory Management Automatic UNDO Management Resumable Space Allocations Identifying unused indexes Online-Reorganisation

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Resumable Space Allocation Resumable operation are suspended under „Out of space“-errors (e.g. ORA-1653, ORA- 1631, ORA-1562, ORA-1628,...) A session running in one of these error conditions is not aborted, but waits for a specified amount of time to proceed

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Resumable Space Allocation 1. Resumable space operation is enabled 2. Transaction starts 3. Out-Of Space error occurs 4. Error is written to alert.log 5. Error is fixed (e.g. Datafile added) 6. Suspended operation resumes automatically 7. Operation ends successfully

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Resumable Space Allocation But: Must be activated on session level „Alter session enable resumable timeout nn“ ; How to activate in SAP environments ?

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Resumable Space Allocation But: Must be activated on session level „Alter session enable resumable timeout nn“ ; How to activate in SAP environments ? => Logon Trigger

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Resumable Space Allocation Logon Trigger: CREATE OR REPLACE TRIGGER RESUMABLE_TRANSACTION after logon on SAPR3.SCHEMA BEGIN execute immediate ´alter session enable resumable timeout 14400´; END; / Must be created with SYDBA privileg Can be enabled/ disabled as needed

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Resumable Space Allocation Resumable statements are: – Queries (Sort Area, Hash Area) – DML statements (max. Extents, TBS full, Rollback) – SQL*Loader operations – Import and Export operations – DDL statements (Create Index, Index rebuild, CTAS) Status can be monitored with DBA_RESUMABLE

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Resumable Space Allocation SessionStatusTIMEOUTSTART_TIMESUSPEND_TIME 7NORMAL /12/02 00:03: DBA_RESUMABLE:

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Initialisation: spfile vs. Pfile SGA: Dynamic Resizing Multiple Block Size Support PGA: Automatic Memory Management Automatic UNDO Management Resumable Space Allocations Identifying unused indexes Online-Reorganisation

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Identifying Unused Indexes Monitoring is done during Parse Time Helps to identify unused indexes in the system to save space and resources Only Parsing Step is monitored, not the execution

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Identifying Unused Indexes Alter index monitoring usage – Switches Monitoring on for the specified index Alter index nomonitoring usage – Switches Monitoring off for the specified index Switching monitoring ON/ OFF forces reparsing on all SQl statements on the table

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Identifying Unused Indexes A new DBA View V$OBJECT_USAGE exists to view the monitoring results: Index NameTable Name MonUsageStartEnd MSEG~Z01MSEG YESNO :37: :14:00 MSEG~Y01MSEG YES :37: :14:01

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Initialisation: spfile vs. Pfile SGA: Dynamic Resizing Multiple Block Size Support PGA: Automatic Memory Management Automatic UNDO Management Resumable Space Allocations Identifying unused indexes Online-Reorganisation

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Online Reorganisation Tables can be converted: – Non-Partitioned  Partitioned – Columns can be dropped – Columns can be renamed – New Columns can be added – LOB are supported BUT: Long Raw fields are not supported

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Online Reorganisation Transform Source Table Result Table Store Updates Transform Updates

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Online Reorganisation For the reorganisation the following steps must be performed: 1. Dbms_redefinition.can_redef_table (´Owner´, ´Table´); PL/SQL procedure successfully completed ORA cannot online redefine table with no primary key An error is reported, if the table can not be online reorganized. Please note: For tables with Long Raw field no error is reported!

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Online Reorganisation 2. A Primary Key must be created on the table. Alter table SAPR3.MSEG add Primary Key (MANDT,.....) Enable Novalidate;

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Online Reorganisation 3. A Temporary object must be created, having the same attributes as the source table. You can use sapdba to create the correct table syntax or directly SQL e.g.: Create table SAPR3.MSEG_TEMP Tablespace PSAPMSEGD AS Select * from SAPR3.MSEG Where 1 = 0;

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Online Reorganisation 4. Save the Default Constraints from the existing table be either using sapdba or by using exp/imp command. – Export table without data – Import with option indexfile= – Use resulting File to recreate Default constraints later

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Online Reorganisation 5. Run the PL/ SQL Procedure to start Redefinition: Exec Dbms_redefinition.start_redef_table (´SAPR3´,´MSEG´,´MSEG_TEMP´);

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Online Reorganisation 6. Create all indexes on the Temporary Table with different names with the same definition as they exist on the Original table Create Index SAPR3.“MSEG~M_TEMP“ On SAPR3.MSEG_TEMP (MANDT,...) Tablespace PSAPMSEGI

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Online Reorganisation 7. To synchronize tables Run intermediate Exec Dbms_redefinition.sync_interim_table (´SAPR3´,´MSEG´,´MSEG_TEMP´);

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Online Reorganisation 8. To finish synchronize tables Run Exec Dbms_redefinition.finish_redef_table (´SAPR3´,´MSEG´,´MSEG_TEMP´);

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Online Reorganisation 9. Apply the Default constraints on the new table if needed 10. If an abort is needed, you MUST call the procedure dbms_redefinition.abort_redef_table (´SAPR3´,´MSEG´,´MSEG_TEMP´)

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Online Reorganisation Prerequisites: – Table must have Primary Key ! – Must Not have Long Raw fields – LOB are supported

Dr. Stephan Bühne SAP Solution Center Walldorf Oracle 9i: Features for SAP Questions ?