Copy or rename R/3 w-out installing

Copy or rename R/3 w-out installing

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                            

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

  1. <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>
  2. Relink Oracle executables
        cd <ORAHOME>/rdbms/lib                                                  
        edit nmliblist and change <SID>                                         
        make -f ins_rdbms.mk install
  3. 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
  4. Remove or rename old control files
  5. Build new DB control files
        svrmgrl                                                                 
        connect internal                                                        
        startup nomount                                                         
        @control.sql                                                            
        alter database open resetlogs;                                          
        exit
  6. 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

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.