Oracle 8.0.4

 

Home
Up

Migrate/Upgrade to Oracle 8.0.4

Unix Operating System Version

O/S must have at least version 4.0.

R/3 Release

Before the ORACLE migration your R/3 System must be one of the following Release : 3.0D, 3.0E, 3.0F, 3.1G, 3.1H

Restricting DBA Authorization

  1. Change to UNIX groups and UNIX users.
  2. As user root :

    1. Create new UNIX group oper.
    2. Assign the users <sapsid>adm and ora<sapsid> to this group.
    3. The assignment then appears like this :
      <sapsid>adm : sapsys, oper, dba.
      ora<sapsid> : dba, oper

  3. Setting up OPS$ Connect Mechanism.
  4. Log : $ORACLE_HOME/dbs/chdbpass.log.

    1. Mount CD SAP KERNEL.
    2. Log on as user ora<sapsid> at the UNIX level.
    3. Shutdown sap r3 system.
    4. Copy tool chdbpass from the CD to directory $ORACLE/dbs with :
    5. cd $ORACLE_HOME/dbs
      cp /<CD-Dir>/UNIX/COMMON/INSTALL/CHDBPASS chdbpass

    6. Start chdbpass with : ./chdbpass
    7. Enter password for ORACLE user SYSTEM.
    8. You will first be prompted for the password for the new user OPS$<sapsid>adm, and then new password for the user SAPR3. You can enter the old password again for SAPR3.

Storage Requirements

Digital UNIX :
/oracle/<SAPSID> : 950 MB
/oracle/stage : 500 MB
/tmp : 50 MB.

Requirements Specific to the Operating System

Make sure file /etc/sysconfigtab contain following entries :
ssm-threshold=0

Preparing for Migration

Shutdown the R/3 System
Proceed as follows to read in the data and to prepare for orainst :

  1. Create a Staging Area.
  2. Log on as user ora<sapsid>
    If the following directories already exist, delete their contents:
    /oracle/stage
    /oracle/stage/stage_723
    /oracle/stage/stage_733
    Create an empty /oracle/stage/stage_804 directory.

  3. Read data from the CD to staging area.
  4. Enter the following commands :
    cd /oracle/stage/stage_804
    ./<CD-Dir>/UNIX/UPGRADE.ORA

  5. Copy the orainst directory to the home directory belonging to ORACLE user of database that is to be installed.
  6. Enter commands :
    cd $ORACLE_HOME
    rm –rf orainst
    cp –r /oracle/stage/stage_804/orainst orainst
    cp –r /oracle/stage/stage_804/orainst orainst_sap

  7. Make the following modification to the database :
    1. Change system rollback segment :
    2. svrmgrl
      SVRMGRL> connect internal
      SVRMGRL> alter rollback segment system storage (next 1M maxextents 100);

    3. Extend the tablespace SYSTEM by 300 MB (use sapdba add datafiles).
  8. Shut down database.
  9. Check the following enviroment variables :
  10. ORACLE_HOME=<ORACLE_HOME>
    ORACLE_SID=<SAPSID>
    TWO_TASK à may not be set

  11. Set new environment variables :
  12. Make sure all new variables are set permanently in profile of users <sapsid>adm and ora<sapsid>.
    To do this edit files .dbenv_<host>.sh and .dbenv_<host>.csh in home directory of <sapsid>adm and ora<sapsid>
    For csh, edit : .dbenv_<host>.csh both in <sapsid>adm and ora<sid> with
    setenv STAGING_AREA /oracle/stage/stage_804
    setenv LIBRARY_PATH $ORACLE_HOME
    setenv LD_LIBRARY_PATH $ORACLE_HOME/lib
    setenv SAPDATA_HOME $ORACLE_HOME

  13. Stop the orasrv and listener process for Oracle 7.2.3. For Oracle 7.3.3 only stop the listener process.
  14. Check using the command :
    ps –ef | grep orasrv or ps –axu | grep orasrv
    ps –ef | grep tnslsnr or ps – axu | grep tnslsnr
    To stop the orasrv process, enter the following command :
    $ORACLE_HOME/bin/tcpctl stop
    To stop the listener process, enter the following command :
    $ORACLE_HOME/bin/lsnrctl stop

  15. Check whether any ORACLE processes are active for this SAPSID. To do this, enter command :

ps –afe | fgrep <SID>

Set the following environment variable (C shell):
setenv DISPLAY <host_name>:0
Set the following environment variables in the newly opened window (C shell):
setenv ORACLE_TERM vt100
setenv TERM vt100
setenv ORACLE_DOC $ORACLE_HOME

Migration

Installing the Migration Utility

As user ora<sid> proceed as follows :

  1. $STAGING_AREA/migrate_prepare.sh
  2. cd $ORACLE_HOME/orainst_sap
  3. ./orainst
  4. Confirm all screens with ENTER.
  5. Exit orainst.

Migrating the ORACLE Dictionary

Make sure that when performing the migration step that you have 1.5 GB of free disk space in the dictionary $ORACLE_HOME/saparch.

As user ora<sid> proceed as follows :

  1. Set the following environment variables (C shell):
  2. setenv ORA_NLS32 $ORACLE_HOME/ocommon/nls/admin/data
    setenv ORA_NLS33 $ORACLE_HOME/migrate/nls/admin/data

  3. $STAGING_AREA/migrate_dbfiles.sh
  4. cd $ORACLE_HOME/orainst_sap
  5. ./orainst

  6. Confirm all screen with ENTER.
  7. Install Migration Utility : ORACLE7, Enter.
  8. Exit orainst with Exit.

Following Up the Migration of the ORACLE-Dictionary

  1. Check file install.log, make.log, sql.log, and os.log à don’t contain any error messages.
  2. Make sure the database has been shutdown by checking the file alert_<SID>.log This file is in the directory $ORACLE_HOME/saptrace/background. The last entry should read : COMPLETED : ALTER DATABASE DISMOUNT.
  3. Move all control file from its directory.
  4. Check whether the file conv<SID>.dbf exists in the directory $ORACLE_HOME/dbs.
  5. Caution : You cannot continue with the migration if this file does not exist. First remove the cause of the error, and then continue with this migration step.

  6. cp /oracle/<SID>/dbs/conv<SID>.dbf /oracle/<SID>/orainst_sap/conv<SID>.dbf\
  7. Move all control file from their directories.

Installing Version 8.0.4 of the ORACLE Software

As user ora<sid> proceed :

  1. cd $ORACLE_HOME/orainst_sap
  2. ./del_ora.csh

  3. $STAGING_AREA/migrate_software.sh
  4. cd $ORACLE_HOME/orainst_sap
  5. ./orainst

  6. Confirm all screens with Enter.
  7. Enter Oracle workdir : can be /tmp or /usr/tmp
  8. Note : Oracle workdir must have at lease 50MB free storage.

  9. Exit orainst with Exit.

Converting the Database to ORACLE 8.0.4

Modify the file $ORACLE_HOME/dbs/init<SID>.ora as follows :

  1. Remove the following parameters, if they exist :
  2. checkpoint_process
    COMPATIBLE
    ccf_io_size
    Replace db_writers with dbwr_io_slaves.
    Mark db_writers if it is not mark.
    Insert the following parameter. if it already exists, adjust the value :
    db_file_multiblock_read_count = 8

  3. Start the conversion as user ora<sid> :
  4. cd $ORACLE_HOME/orainst_sap
  5. svrmgrl
    SVRMGR> connect internal
    SVRMGR> @convert
    SVRMGR> shutdown
    SVRMGR> exit

Action after the Migration

  1. Log on as user ora<sid> at operating system level.
  2. Execute the following commands to follow up the migration :
  3. svrmgrl
    SVRMGR> connect internal
    SVRMGR> startup
    SVRMGR> @postinst_migrate
    SVRMGR> exit
    You can find the log in directory $ORACLE_HOME/orainst_sap in file postinst.txt (read note 101449)

  4. Enter the following command as user ora<sid> :
  5. $ORACLE_HOME/bin/lsnrctl start

  6. chmod 755 $ORACLE_HOME
  7. SAPDBA role must be created.
  8. Insert CD ORACLE RDBMS 8.0.4.
  9. cd $ORACLE_HOME/dbs
    cp /sapcd/UNIX/COMMON/DBA_ROLE.SQL sapdba_role.sql
    cd $ORACLE_HOME/dbs
    sqlplus internal @sapdba_role <SID> UNIX

  10. Logon as user <sid>adm
  11. cd /usr/sap/<SID>/SYS/exe/run
  12. rm sapdba brarchive brbackup brconnect brrestore brtools
    CAR –xvf /sapcd/UNIX/DEC/DBATOOLS.CAR .
    su root
    chown ora<sapsid> sapdba brarchive brbackup
    chown ora<sid> brconnect brtools
    chmod 4775 sapdba brarchive brbackup brconect brtools
    exit

  13. Remove user <sid>adm from group dba.

You must then adjust the environment for all users <sapsid>adm and ora<sapsid>, proceed as follows :

  1. Adjustment for all users <sapsid>adm.
  2. Reset the following variables :
    setenv ORACLE_HOME /oracle/<SAPSID>
    setenv ORA_NLS /oracle/<SAPSID>/ocommon/NLS_723/admin/data
    setenv ORA_NLS32 /oracle/<SAPSID>/ocommon/NLS_733/admin/data
    setenv ORA_NLS33 /oracle/<SAPSID>/ocommon/NLS_804/admin/data

  3. Adjustments for the user ora<sid>.
  4. The following variable must be reset :
    setenv ORA_NLS33 /oracle/<SAPSID>/ocommon/nls/admin/data

  5. Make sure that the new variables in profiles of the users <sapsid>adm and ora<sapsid> are set permanently. Edit file .dbenv_<host>.sh and .dbenv_<host>.csh in home directories of <sapsid>adm and ora<sid>.

Enter the following commands as user ora<sid> :
cd $ORACLE_HOME/network/lib
make –f ins_network.mk tnsping
mv tnsping ../../bin

 

Oracle 7.2.3SAP Basis Hint

This page was last updated on 08/23/98.

iexplore.gif    iexplore.gif (14871 bytes)