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

    Requires Free Membership to View

  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
        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                                                         
        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                            
          change <SID> and alter any file location changes
  4. Remove or rename old control files
  5. Build new DB control files
        connect internal                                                        
        startup nomount                                                         
        alter database open resetlogs;                                          
  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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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:

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.