Copy or rename R/3 w-out installing

This tip shows you how to move or copy R3 to another server or change the SID or instance number.

Need to move or copy R3 to another server or change the SID or instance number? It can be done without an install quite easily on Unix/Oracle systems.

Move or copy SAP R3 on Unix/Oracle, changing hostname, SID and instance without installing R3 or Oracle.

<SID>        = SAP SID
<HOST>       = Host name
<##>         = SAP Instance number
<SAPINSTNAM> = SAP Instance name (e.g. DVEBMGS00)
<SAPORAHOME> = Home directory of SAP Oracle user
<SAPADMHOME> = Home directory of SAP Administrator
<SAPPROFILE> = Directory containing SAP profiles
<ORATNSHOME> = Directory containing oracle TNS control files
<ORAHOME>    = Oracle Home

  1. Stop SAP and Oracle (shutdown normal)
  2. Copy all files under /oracle/<SID>, /usr/sap/<SID> and /sapmnt/<SID>
  3. Rename and/or edit following changing hostname, SID and instance number
        <SAPORAHOME>/.init<SID>.ora                                             
                    /.dbenv_<HOST>.csh                                          
                    /.dbenv_<HOST>.sh                                           
                    /.sapenv_<HOST>.csh                                         
                    /.sapenv_<HOST>.sh                                          
        <ORATNSHOME>/tnsnames.ora                                               
                    /listener.ora                                               
        <SAPADMHOME>/startsap_<HOST>_<##>                                       
                    /stopsap_<HOST>_<##>                                        
                    /.dbenv_<HOST>.csh                                          
                    /.dbenv_<HOST>.sh                                           
                    /.sapenv_<HOST>.csh                                         
                    /.sapenv_<HOST>.sh                                          
        <SAPPROFILE>/<SID>_<SAPINSTNAM>_<HOST>                                  
                    /START_<SAPINSTNAM>_<HOST>                                  
                    /DEFAULT.PFL                                                
        /usr/sap/PRD/<SAPINSTNAM>
  4. Relink Oracle executables
        cd <ORAHOME>/rdbms/lib                                                  
        edit nmliblist and change <SID>                                         
        make -f ins_rdbms.mk install
  5. Create script to build new DB control files
        svrmgrl                                                                 
        connect internal                                                        
        shutdown normal                                                         
        startup nomount                                                         
        alter database backup controlfile to trace resetlogs;                   
        alter database open;                                                    
        alter system switch logfile (one for each group)                        
        shutdown normal                                                         
        exit                                                                    
        rename the trace file in <ORAHOME>/saptrace/usertrace/ to control.sql   
        edit this file                                                          
          delete everything but the CREATE CONTROLFILE command                  
          change the CREATE CONTROLFILE statement to                            
            CREATE CONTROLFILE SET DATABASE <SID> RESETLOGS ARCHIVELOG          
          change <SID> and alter any file location changes
  6. Remove or rename old control files
  7. Build new DB control files
        svrmgrl                                                                 
        connect internal                                                        
        startup nomount                                                         
        @control.sql                                                            
        alter database open resetlogs;                                          
        exit
  8. Create the services entries in /etc/services
          sapdp<##>    32<##>/tcp
          sapgw<##>    33<##>/tcp
          sapms<SID>   36<##>/tcp
          sapgw<##>s   48<##>/tcp


This was first published in May 2002

Dig deeper on SAP Basis administration and NetWeaver administration

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close