Updating SAP ABAP Systems on UNIX and Linux: Oracle

Extending Free Space in the Oracle Database

Prerequisites

For performance reasons, you have to take the following restrictions into consideration when creating the new tablespaces:

  • Index tablespaces and data tablespaces that belong together should not be on the same disk, and should not be in the same sapdata directory.

  • PSAPES<REL>D and PSAPEL<REL>D should not be on the same disk.

  • AIX: If the AIX user parameter fsize (= maximum file size) is set to the default value of 1 GB for user ora<sid>, error messages appear if you create tablespaces greater than 1 GB. Where necessary, increase the value of fsize. Note that the parameter fsize is increased by the same amount for user <sid>adm. Otherwise, <sid>adm cannot start up the database after large tablespaces have been created.

Context

Extend and create tablespaces as requested by the Software Update Manager.

To extend and create tablespaces, use program <SUM directory>/abap/exe/brspace as user ora<sid>. You can use a command line template for BRSPACE generated by the Software Update Manager (see file CHECKS.LOG). For more information, see the SAP online documentation on the BRSPACE program.

BRSPACE proposes other values for the extension than those specified in the list. You can overwrite these values, however, you have to meet the minimum requirements of the list.

Procedure

  1. Extend the listed tablespaces by at least the specified values.
  2. Create the new tablespaces as prompted by the Software Update Manager and with the AUTOEXTEND feature turned on. This applies to the following tablespaces during the procedure:
    Tablespace Extensions for Oracle

    For a System with Old Layout

    For a System with New Layout

    PSAPES<Rel>D

    PSAP<SID><Rel>

    PSAPES<Rel>I

    PSAPEL<Rel>D

    PSAPEL<Rel>I

    Release upgrade only: <Rel> stands for the current target release.

  3. If necessary, extend in the file ORATBSXT.LST the brspace command line by the option -pdb ROOT.

    During the SUM procedure you might have to adjust the size of too small tablespaces using the BRSPACE utility tool. To extend the required tablespaces easily, the Software Update Manager provides some BRSPACE commands stored in file ORATBSXT.LST. If you are running on a pluggable oracle database the execution of the BRSPACE tool, and you try to extend an undo tablespace such as PSAPUNDO, the extension might fail with an error message similar to: BR0065E Tablespace 'PSAPUNDO' not found.

    In this case, you may extend the brspace command line in the file ORATBSXT.LST by the option -pdb ROOT, provided that the following conditions are fulfilled:
    • You are running on a pluggable Oracle database (this is the case if the environment variable ORA_PDB_NAME is set).

    • The tablespace, which has to be extended, is an undo tablespace (such as PSAPUNDO).

    • This undo tablespace is not available in the DBA_TABLESPACE view in the pluggable database to which you are connected. You can check it by entering the following:

      select count(*) from DBA_TABLESPACES where TABLESPACE_NAME = ‘PSAPUNDO’; (Note that PSAPUNDO in the command line is an example.) The result must be 0.

    Based on PSAPUNDO as example, the brspace command should look like the following provided that the above-mentioned conditions are fulfilled:

    brspace -function tsextend -tablespace PSAPUNDO -size 200 -incrsize 200 -maxsize 800 -autoextend yes -pdb ROOT