Oracle Settings For R3load Based System

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

2020-05-13 936441

936441 - Oracle settings for R3load based system copy


Version 13 Type SAP Note
Language English Master Language English
Priority Recommendations / Additional Info Category Performance
Release Status Released for Customer Released On 20.06.2012
Component BC-DB-ORA ( Oracle )

Please find the original document at https://launchpad.support.sap.com/#/notes/ 936441

Symptom

Unicode migrations, heterogenous system copies or platform migrations take too


long

Other Terms

Unicode migration, platform migration, R3load, R3szchk

Reason and Prerequisites

Oracle 9.2.x, Oracle 10.2.x, Oracle 11.2.x, 64bit Operating Systems

Solution

Migrations based on R3load generate a specific workload on the Oracle database


which is quite different from a typical production database workload of a R/3 or
BW system.

Therefore a different Oracle configuration and parametrization is required to


achieve optimal database throughput during the export and import phase of the
R3load process reducing the total migration time.

After the migration has been completed the database and parametrization should
be changed back to the recommended production settings of the Oracle database
for R/3 and BW.

The following list contains the necessary steps to achieve the best database
throughput during a system copy with R3load:

1. Use loadprocedure fast option of R3load (Details in OSS note 1045847)

2. Create Oracle Data Dictionary statistics for source database (Only relevant for Oracle 9.2.x
systems. Details in OSS note 558746)
This will reduce substantially the runtime of the R3szchk utility.
WARNING: In a R/3 system you must remove the statistics explained
in note 558746 after the R3szchk has run successfully !!!

3. Database parametrization (init.ora/spfile)


The following settings are designed for 64bit operating systems without process
address space limitations.
Furthermore it is assumed that the Oracle database runs on a dedicated server
and that the R3Load processes will be running on one or more different servers.
If not otherwise noted the settings are valid for both the source database as
well as the target database.

© 2020 SAP SE or an SAP affiliate company. All rights reserved 1 of 4


2020-05-13 936441

• pga_aggregate_target = 70% of main memory size (for target database)

• pga_aggregate_target = 40% of main memory (for source database with all


tables being exported in sorted order)

• _pga_max_size = 2147483648 (2GB)

• db_cache_size................= 20% of main memory size (for target database)

• db_cache_size = 50% of main memory size (for source database)

• db_file_multiblock_read_count = 128 (only for Oracle9.2)

• filesystemio_options = setall

• disk_asynch_io = true

• db_writer_processes = 20 (only for platforms which do not support async_io


and direct_io. Check OSS notes 999524 and 834343 for which platforms support
async_io and direct_io. If a platform supports async_io and direct_io, then
the parameter should not be set.)

• log_buffer = 10485760 (10MB) (should be 1MB if platform supports async_io


and direct_io, check OSS note 999524 and 834343)

• parallel_execution_message_size = 16384

• parallel_threads_per_cpu = 1

• parallel_max_servers = number of CPUs * number of concurrent R3Load


processes * 2

• processes = processes + parallel_max_servers

4. Database configuration

• Size of PSAPTEMP tablespace in source and target database should be at least


20% of used data. Amount of used data can be checked by querying select
(sum) bytes from dba_segments;

• Put redo log files on raw devices if OS and filesystem do not support async,
direct and concurrent IO (see also OSS note 834343 or 999524)

The following changes are designed to reduce unnecessary disk I/O

• Disable archiving in database (alter database noarchivelog)

• Disable redo log mirroring, use only one redo log member per redo group.

5. Network configuration
The following changes are designed to optimize network traffic between database
server and the server(s) running the R3Load processes

• Use Gigabit Ethernet

• Use hardware vendor specific techniques (such as Ether Channeling) to


multiplex network traffic across more than one network connection

• Configure Jumbo Frames

© 2020 SAP SE or an SAP affiliate company. All rights reserved 2 of 4


2020-05-13 936441

• Use dedicated private network segments

• SQL*Net configuration:

• Increase SDU_SIZE in listener.ora to 32KB

• Increase SDU_SIZE in tnsnames.ora to 32KB

• Specify tcp.nodelay=yes in sqlnet.ora

6. DDLORA.TPL changes
The utility R3ldctl will add PARALLEL, NOLOGGING and COMPUTE STATISTICS clauses
to create primary key (crepky) and create index (creind) sections in DDLORA.TPL
template files. To use this new functionality you need to use at least the
following R3ldctl versions:

• R3ldctl 6.40, Patch Level 1

• R3ldctl 7.00, Patch Level 1

This document refers to

SAP Note/KBA Title

999524 Oracle 10.2 platform support for Async IO

971646 6.40 Patch Collection Hom./Het.System Copy ABAP

940561 ORACLE DIRECT PATH LOAD DOES NOT LOAD PARALLEL SINGLE TABLE

857081 Unicode conversion: downtime estimate

834343 Oracle 9.2 Platform Support for Async IO

806554 FAQ: I/O-intensive database operations

784931 Hom./Het.System Copy SAP Web AS 6.40 SR1 ABAP

765475 Unicode Conversion: Troubleshooting

632556 Oracle 9.2.0.* database parameterization for BW

575280 Add info about upgrade to SAP Web AS 6.20 ORACLE 9.2.0

558746 Better Oracle Data Dictionary BW Performance

554031 Creation of space statistics with BRCONNECT

548016 Conversion to Unicode

1319517 Unicode Collection Note

124361 Oracle parameterization (R/3 >= 4.x, Oracle 8.x/9.x)

1045847 ORACLE DIRECT PATH LOAD SUPPORT IN R3LOAD

© 2020 SAP SE or an SAP affiliate company. All rights reserved 3 of 4


2020-05-13 936441
1043380 Efficient Table Splitting for Oracle Databases

This document is referenced by

SAP Note/KBA Title

971646 6.40 Patch Collection Hom./Het.System Copy ABAP

1045847 ORACLE DIRECT PATH LOAD SUPPORT IN R3LOAD

765475 Unicode Conversion: Troubleshooting

1043380 Efficient Table Splitting for Oracle Databases

1319517 Unicode Collection Note

554031 Creation of space statistics with BRCONNECT

548016 Conversion to Unicode

857081 Unicode conversion: downtime estimate

999524 Oracle 10.2 platform support for Async IO

806554 FAQ: I/O-intensive database operations

784931 Hom./Het.System Copy SAP Web AS 6.40 SR1 ABAP

632556 Oracle 9.2.0.* database parameterization for BW

124361 Oracle parameterization (R/3 >= 4.x, Oracle 8.x/9.x)

834343 Oracle 9.2 Platform Support for Async IO

940561 ORACLE DIRECT PATH LOAD DOES NOT LOAD PARALLEL SINGLE TABLE

575280 Add info about upgrade to SAP Web AS 6.20 ORACLE 9.2.0

558746 Better Oracle Data Dictionary BW Performance

Terms of use | Copyright | Trademark | Legal Disclosure | Privacy

© 2020 SAP SE or an SAP affiliate company. All rights reserved 4 of 4

You might also like