Instance - Checklist For Changing SID and Hostname
Instance - Checklist For Changing SID and Hostname
Instance - Checklist For Changing SID and Hostname
Related Notes :
Metalink Oracle :
15390.1 How to Determine and Change DB_NAME or ORACLE_SID
131321.1 How to Relink Oracle Database Software on UNIX
SAP :
SAP R3 Homogenous System Copy Guides 4.6cSR2
<SAPADMHOME>/startsap_<HOST>_<##>
<SAPADMHOME>/stopsap_<HOST>_<##>
<SAPADMHOME>/.dbenv_<HOST>.csh
<SAPADMHOME>/.dbenv_<HOST>.sh
<SAPADMHOME>/.sapenv_<HOST>.csh
<SAPADMHOME>/.sapenv_<HOST>.sh
<SAPPROFILE>/<SID>_<SAPINSTNAM>_<
HOST>
o /START_<SAPINSTNAM>_<HOST>
o /DEFAULT.PFL
o /usr/sap/<TSID>/<SAPINSTNAM>
Relinking Oracle
Only needed if :
An OS upgrade has occurred.
A change has been made to the OS system
libraries. This can occur during the
application of an OS patch.
A new install failed during the relinking
phase.
Individual Oracle executables core dump
during initial startup.
An individual Oracle patch has been applied
(However, explicit relink instructions are
usually either included in the README or
integrated into the patch install script)
# su – ora<sid>
# relink all
Starting SAP-
Collector
Daemon
--------------------
----------
*****************
*****************
*****************
*****************
**********
* This is
Saposcol
Version COLL
20.79 03/08/22
46D - AIX
v4.14 5L-64 bit
031027
* Usage:
saposcol -l:
Start OS
Collector
* saposcol
-k: Stop OS
Collector
* saposcol
-d: OS
Collector
Dialog Mode
* saposcol
-s: OS Collector
Status
* Starting
collector
(create new
process)
*****************
*****************
*****************
*****************
**********
/usr/sap/tmp
/dev_coll
moved to
/usr/sap/tmp
/dev_coll.old
saposcol on
host
ermsr3prd03
started
Checking SAP
R/3 TCC
Database
--------------------
----------
Database is
running
rm: 0653-609
Cannot remove
/tmp/o.
Operation not
permitted.
Could not
remove
directory
/tmp/o
Remove this
directory
manually and
restart again
Starting SAP
R/3 Instance
--------------------
----------
Startup-Log is
written to
/home/tccadm
/startsap_erms
r3stg02_00.log
Startup of
Instance failed
See
/home/tccadm
/startsap_erms
r3stg02_00.log
for details
Check ORACLE_SID and DB_NAME
SQL> select instance from v$thread;
INSTANCE
DB_SID
NAME
DBNAME
Check SAP
SM21 (System Logs)
ST22 (Abap dump)
SM51 (Instance Information)
SMLG (remove load balancing group)
SM37 (remove all jobs belongs to old SID)
Post Installation
SE06 – Choose database copy or migration
Click post installation processing
Reconfigure STMS
- delete old STMS configuration and create new TMS
- change /etc/hosts to accommodate new IP
Change database to noarchivelog mode
Start client copy
Appendix A
umount /export/sapmnt/TCP
umount/usr/sap/TCP
umount /export/usr/sap/trans
umount /oracle
umount /oracle/TCP
umount /oracle/TCP/sapreorg
umount /oracle/TCP/origlogA
umount /oracle/TCP/origlogB
umount /oracle/TCP/mirrlogA
umount /oracle/TCP/mirrlogB
umount /oracle/TCP/saparch
umount /oracle/TCP/sapdata1
umount /oracle/TCP/sapdata2
umount /oracle/TCP/sapdata3
umount /oracle/TCP/sapdata4
umount /oracle/TCP/sapdata5
umount /oracle/TCP/sapdata6
umount /oracle/TCP/sapdata7
umount /oracle/TCP/sapdata8
umount /oracle/TCP/sapdata9
/sbin/helpers/vxfs/bin/umount -o suid /dev/vx/dsk/sapprddg/intf /export/intf
/sbin/helpers/vxfs/bin/umount -o suid /dev/vx/dsk/sapprddg/ixosexchange /export/ixos-exchange
/sbin/helpers/vxfs/bin/umount -o suid /dev/vx/dsk/sapprddg/infastage /export/infastage
Mounting New Filesystem
#!/bin/sh
init<TSID>.ora
db_name = TSID
control_files = new location
background_dump_dest = new location
user_dump_dest = new location
core_dump_dest = new location
log_archive_dest = new location
IFILE = new location (where applicable)
init<TSID>.sap
initTCP.utl
BACKUPIDPREFIX = TSID_
CONFIG_FILE = new location
Appendix C
Sample of control.sql
#
# Set #2. RESETLOGS case
#
# The following commands will create a new control file and use it
# to open the database.
# The contents of online logs will be lost and all backups will
# be invalidated. Use this only if online logs are damaged.
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "TCC" RESETLOGS ARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 255
MAXLOGMEMBERS 3
MAXDATAFILES 254
MAXINSTANCES 50
MAXLOGHISTORY 18151
LOGFILE
GROUP 15 (
'/oracle/TCC/origlogA/log_g15m1.dbf',
'/oracle/TCC/mirrlogA/log_g15m2.dbf'
) SIZE 80M,
GROUP 16 (
'/oracle/TCC/origlogB/log_g16m1.dbf',
'/oracle/TCC/mirrlogB/log_g16m2.dbf'
) SIZE 80M,
GROUP 17 (
'/oracle/TCC/origlogA/log_g17m1.dbf',
'/oracle/TCC/mirrlogA/log_g17m2.dbf'
) SIZE 80M,
GROUP 18 (
'/oracle/TCC/origlogB/log_g18m1.dbf',
'/oracle/TCC/mirrlogB/log_g18m2.dbf'
) SIZE 80M,
GROUP 19 (
'/oracle/TCC/origlogA/log_g19m1.dbf',
'/oracle/TCC/mirrlogA/log_g19m2.dbf'
) SIZE 80M,
GROUP 20 (
'/oracle/TCC/origlogB/log_g20m1.dbf',
'/oracle/TCC/mirrlogB/log_g20m2.dbf'
) SIZE 80M,
GROUP 21 (
'/oracle/TCC/origlogA/log_g21m1.dbf',
'/oracle/TCC/mirrlogA/log_g21m2.dbf'
) SIZE 80M,
GROUP 22 (
'/oracle/TCC/origlogB/log_g22m1.dbf',
'/oracle/TCC/mirrlogB/log_g22m2.dbf'
) SIZE 80M
-- STANDBY LOGFILE
DATAFILE
'/oracle/TCC/sapdata1/system_1/system.data1',
'/oracle/TCC/sapdata1/roll_1/roll.data1',
'/oracle/TCC/sapdata1/roll_2/roll.data2',
'/oracle/TCC/sapdata1/roll_3/roll.data3',
'/oracle/TCC/sapdata1/roll_4/roll.data4',
'/oracle/TCC/sapdata2/temp_1/temp.data1',
'/oracle/TCC/sapdata2/temp_2/temp.data2',
'/oracle/TCC/sapdata2/temp_3/temp.data3',
'/oracle/TCC/sapdata2/temp_4/temp.data4',
'/oracle/TCC/sapdata5/stabi_1/stabi.data1',
'/oracle/TCC/sapdata5/stabi_2/stabi.data2',
'/oracle/TCC/sapdata5/stabi_3/stabi.data3',
'/oracle/TCC/sapdata2/stabd_1/stabd.data1',
'/oracle/TCC/sapdata2/stabd_2/stabd.data2',
'/oracle/TCC/sapdata4/stabd_3/stabd.data3',
'/oracle/TCC/sapdata4/stabd_4/stabd.data4',
'/oracle/TCC/sapdata5/btabi_1/btabi.data1',
'/oracle/TCC/sapdata5/btabi_2/btabi.data2',
'/oracle/TCC/sapdata6/btabi_3/btabi.data3',
'/oracle/TCC/sapdata6/btabi_4/btabi.data4',
'/oracle/TCC/sapdata1/btabi_5/btabi.data5',
'/oracle/TCC/sapdata1/btabi_6/btabi.data6',
'/oracle/TCC/sapdata1/btabi_7/btabi.data7',
'/oracle/TCC/sapdata4/btabi_8/btabi.data8',
'/oracle/TCC/sapdata4/btabi_9/btabi.data9',
'/oracle/TCC/sapdata4/btabi_10/btabi.data10',
'/oracle/TCC/sapdata7/btabi_11/btabi.data11',
'/oracle/TCC/sapdata2/btabd_1/btabd.data1',
'/oracle/TCC/sapdata2/btabd_2/btabd.data2',
'/oracle/TCC/sapdata2/btabd_3/btabd.data3',
'/oracle/TCC/sapdata3/btabd_4/btabd.data4',
'/oracle/TCC/sapdata3/btabd_5/btabd.data5',
'/oracle/TCC/sapdata3/btabd_6/btabd.data6',
'/oracle/TCC/sapdata3/btabd_7/btabd.data7',
'/oracle/TCC/sapdata3/btabd_8/btabd.data8',
'/oracle/TCC/sapdata4/btabd_9/btabd.data9',
'/oracle/TCC/sapdata4/btabd_10/btabd.data10',
'/oracle/TCC/sapdata4/btabd_11/btabd.data11',
'/oracle/TCC/sapdata5/btabd_12/btabd.data12',
'/oracle/TCC/sapdata5/btabd_13/btabd.data13',
'/oracle/TCC/sapdata5/btabd_14/btabd.data14',
'/oracle/TCC/sapdata6/btabd_15/btabd.data15',
'/oracle/TCC/sapdata6/btabd_16/btabd.data16',
'/oracle/TCC/sapdata6/btabd_17/btabd.data17',
'/oracle/TCC/sapdata7/btabd_18/btabd.data18',
'/oracle/TCC/sapdata7/btabd_19/btabd.data19',
'/oracle/TCC/sapdata7/btabd_20/btabd.data20',
'/oracle/TCC/sapdata7/btabd_21/btabd.data21',
'/oracle/TCC/sapdata8/btabd_22/btabd.data22',
'/oracle/TCC/sapdata8/btabd_23/btabd.data23',
'/oracle/TCC/sapdata8/btabd_24/btabd.data24',
'/oracle/TCC/sapdata8/btabd_25/btabd.data25',
'/oracle/TCC/sapdata8/btabd_26/btabd.data26',
'/oracle/TCC/sapdata6/pooli_1/pooli.data1',
'/oracle/TCC/sapdata1/poold_1/poold.data1',
'/oracle/TCC/sapdata1/clui_1/clui.data1',
'/oracle/TCC/sapdata2/clud_1/clud.data1',
'/oracle/TCC/sapdata5/clud_2/clud.data2',
'/oracle/TCC/sapdata4/ddici_1/ddici.data1',
'/oracle/TCC/sapdata1/ddicd_1/ddicd.data1',
'/oracle/TCC/sapdata6/docui_1/docui.data1',
'/oracle/TCC/sapdata2/docud_1/docud.data1',
'/oracle/TCC/sapdata4/el46ci_1/el46ci.data1',
'/oracle/TCC/sapdata6/el46cd_1/el46cd.data1',
'/oracle/TCC/sapdata5/loadi_1/loadi.data1',
'/oracle/TCC/sapdata1/loadd_1/loadd.data1',
'/oracle/TCC/sapdata2/proti_1/proti.data1',
'/oracle/TCC/sapdata3/protd_1/protd.data1',
'/oracle/TCC/sapdata6/es46ci_1/es46ci.data1',
'/oracle/TCC/sapdata7/es46cd_1/es46cd.data1',
'/oracle/TCC/sapdata1/sourcei_1/sourcei.data1',
'/oracle/TCC/sapdata4/sourced_1/sourced.data1',
'/oracle/TCC/sapdata2/user1d_1/user1d.data1',
'/oracle/TCC/sapdata3/user1i_1/user1i.data1',
'/oracle/TCC/sapdata3/protd_2/protd.data2',
'/oracle/TCC/sapdata8/ybmci_1/ybmci.data1',
'/oracle/TCC/sapdata8/ybmcd_1/ybmcd.data1',
'/oracle/TCC/sapdata8/bmcd_1/bmcd.data1',
'/oracle/TCC/sapdata9/ybmci_2/ybmci.data2',
'/oracle/TCC/sapdata9/ybmcd_2/ybmcd.data2',
'/oracle/TCC/sapdata9/clud_3/clud.data3'
CHARACTER SET WE8DEC
;
# Recovery is required if any of the datafiles are restored backups,
# or if the last shutdown was not normal or immediate.
# RECOVER DATABASE USING BACKUP CONTROLFILE
# Database can now be opened zeroing the online logs.
# ALTER DATABASE OPEN RESETLOGS;
# No tempfile entries found to add.
#