Many of the Oracle E-Business Suite databases on Oracle Cloud Infrastructure (OCI) that we review run on a shape with more CPUs than they use, less memory than they need, and processor cores that are several years old. All three have the same cause: the way the Base Database Service sells its shapes. All three can be corrected, at a lower monthly cost.

This post explains what limits an EBS database, why the Base Database Service shapes fit it badly, and what a better shape looks like, with one production system as the example.

1. What limits an EBS database

A database server has three resources that matter: the number of CPUs, the memory, and the speed of a single CPU core. An EBS database uses them very differently.

Number of CPUs. A form query, a report or a concurrent program runs in one database session, and one session uses one CPU thread at most. The CPUs a database needs are therefore the number of sessions that are on CPU at the same time, measured in AWR as average active sessions on CPU. In the systems we review this is a small part of the CPUs installed, also at peak times. After the inefficient custom code is corrected, it is smaller still: the reviews described in AI performance tuning for Oracle EBS removed 69% to 85% of the database CPU load.

Memory. An EBS database of some years has several terabytes of data. Every block that does not fit into the buffer cache is read from storage again, and the sessions wait for it. The buffer cache is part of the SGA, and the SGA can only be as large as the server’s memory minus the operating system and the memory of the sessions (PGA) at its peak. Most EBS systems, and the large ones in particular, are constrained by memory, not by CPUs.

Single-thread speed. As each session runs on one core, the run time of a long report or interface is set by the speed of one core, not by the number of cores. Twice as many cores do not shorten a report that runs for an hour. A core that is twice as fast halves its CPU time.

The right server for EBS therefore has few CPUs, fast ones, and a lot of memory.

2. The Base Database Service ties memory to CPUs

The Base Database Service does not let you choose the memory of a DB system. Each shape has a fixed amount of memory per CPU:

ShapeProcessorMemory
VM.Standard3.FlexIntel X916 GB per OCPU
VM.Standard.E4.Flex, VM.Standard.E5.FlexAMD E4, E516 GB per OCPU
ECPU shapes (Base DB x86, Standard x86)x868 GB per 4 ECPUs

One OCPU is one physical core with two threads. A system that needs 192 GB of memory needs 12 OCPUs, 24 threads, whether it uses them or not. On the ECPU shapes it needs 96 ECPUs.

The price of this is not only the infrastructure. Database licences are counted per OCPU, one processor licence for every two OCPUs on x86, so every OCPU that is bought for its memory adds licence and support cost as well.

A DB system is therefore either short of memory or pays for CPUs it does not use. Most of those we see are sized by their CPU load and are short of memory.

3. OCI does not renew your hardware

Moving to the cloud does not mean running on current hardware. A DB system stays on the shape it was created with, and Oracle keeps it on that processor generation for as long as the customer does not ask for a change. The monthly price stays the same while the hardware ages.

VM.Standard3.Flex, the shape many EBS databases were created on, runs on the Intel Xeon Platinum 8358, a processor launched in April 2021. The single-thread ratings of PassMark show what has happened since:

OCI shapeProcessorSingle-thread rating
Standard3 (X9)Intel Xeon Platinum 8358, 20212,382
Standard E5AMD EPYC 9J14 (Zen 4)2,903
Standard E6AMD EPYC 9J45 (Zen 5)3,540 to 3,849 for the Zen 5 EPYC models listed

The current E6 shape is about 1.5 times as fast per thread, and as a compute shape it costs less per OCPU than X9. Within the Base Database Service the step is not available: E6 is not offered there, and an Intel DB system cannot be changed to an AMD shape.

Which processor a server runs on is shown by:

lscpu

4. An example

A manufacturer’s EBS 12.2 production database of 3.2 TB runs on the Base Database Service, on VM.Standard3.Flex with 6 OCPUs. These are its figures from DBA SGA+PGA Memory Configuration and DBA CPU Benchmark1:

MeasureValue
CPUs6 OCPUs, 12 threads, Intel Xeon Platinum 8358
Sessions on CPU, average of the last week1.5
Memory96 GB
SGA46.5 GB, of which 26.7 GB buffer cache
PGA at its peak28.4 GB
Wait IO percentage of the last week40%
CPU benchmark14 seconds, against about 7 seconds on the fastest current server CPUs

Of 12 CPU threads, 1.5 are busy on average. At the same time the sessions spend 40% of their time waiting for disk reads, because 3.2 TB of data share a buffer cache of 26.7 GB. The SGA cannot be raised: 96 GB minus 5 GB for the operating system and minus the PGA peak with a reserve of 50% leaves 48 GB, which is what it has.

The system has eight times the CPU threads it uses on average, too little memory, and cores of half the speed that is available today. On the Base Database Service the only way to more memory is 12 OCPUs, twice the price for CPUs that would stay idle.

5. The alternative: a compute shape

The flexible compute shapes of OCI sell OCPUs and memory separately. VM.Standard.E6.Flex takes 1 to 64 GB of memory per OCPU, at $0.03 per OCPU and $0.002 per GB per hour. The database is installed on the VM with the customer’s own licences, as on any other server.

For the example, at Oracle’s list prices for a month of 730 hours, with the customer’s own licences and without storage:

OptionOCPUsMemoryPer monthProcessor licences
Base Database Service, Standard3, today696 GB$8483
Base Database Service, Standard3, more memory12192 GB$1,6956
Compute, VM.Standard.E6.Flex4192 GB$3682
Compute, VM.Standard.E6.Flex6256 GB$5053

The compute shape with 4 OCPUs and 192 GB has twice the memory, cores that are about 1.5 times as fast, and costs less than half. Its 8 threads are still five times the average CPU load, and the SGA can grow from 46.5 GB to about 140 GB. One processor licence is no longer needed.

The same comparison holds for larger systems. Memory is the cheap part of a server, $1.46 per GB per month, and the database service makes it expensive by selling it only together with CPUs.

6. What changes with a compute VM

The Base Database Service is a managed service, and a compute VM is not. These are the differences to plan for:

  • The DBAs install and patch the database and set up backups and Data Guard themselves, as they do on premises, instead of using the console of the service. EBS Cloud Manager supports Compute as the database tier.
  • The move is a database migration, usually with a standby database and a switchover, not a shape change.
  • The comparison above is for a single-instance database.
  • The larger SGA needs hugepages of the same size: How to configure hugepages for Oracle EBS.

Where the database stays on the Base Database Service, check at least which processor generation it runs on, and whether the memory that comes with its OCPUs is assigned to the SGA.

7. Check your own system

Three Blitz Reports and three commands show where a system stands:

QuestionSource
How much memory is there, how much of it is SGA, and how much time goes into disk reads?DBA SGA+PGA Memory Configuration: physical memory, SGA, PGA peak, Wait IO percentage and the average active sessions on CPU
How many CPUs are used at peak?DBA AWR System Metrics Summary: the maximum of Host CPU %
How fast is one core?DBA CPU Benchmark1: about 7 seconds on the fastest current server CPUs

On the database server:

lscpu
free -g
grep -i huge /proc/meminfo

The memory a server should have follows from the SGA it should hold: the SGA, plus 5 GB for the operating system, plus 1.5 times the PGA peak. The CPUs follow from the peak of sessions on CPU, not from the memory.

If you would like us to review your system, run the reports, contact us and send us the Excel outputs.