Вы находитесь на странице: 1из 34

http://sidadm.blogspot.

com

SAP R/3 4.6C


:
:

15.08.2015
HP-UX 11i ORACLE

:
Server HP RP3440, 4 CPUs PA-RISC, 32 Gb memory,
HP EVA5000 disk array
:
HP-UX 11.11 64-bit on PA-RISC
:
51012583
51014002
-

ORACLE 8.1.7 RDBMS for HP-UX


SAP KERNEL 46C SR2
P2376472_8174_HP64 ORACLE 8.1.7.4.0 patch set

:
- SAP 4.6C SR2. R/3 Installation on UNIX: Oracle Database (April 2001),
- SAP 4.6C SR2. SAP Software on UNIX: OS Dependencies (April 2001),
- SAP 4.6C SR2. SAP R/3 Homogeneous System Copy: UNIX, Windows, OS/390, OS/400
(04.2001),
- SAP note # 387074 - INST: R/3 4.6C SR2 Installation on UNIX,
- SAP note # 387077 - INST: R/3 4.6C SR2 Inst. on UNIX - Oracle,
- SAP note # 387078 - SAP Software on UNIX: OS Dependencies 4.6C SR2,
- SAP note # 389530 - INST: R/3 4.6C SR2 - Homogeneous System Copy,
- SAP note # 575308 - Inst./Sys Copy. SAP Systems on UX/Oracle 8.1.7 with R3SETUP,
- SAP note # 362060 - Current patch set for Oracle 8.1.7.

http://sidadm.blogspot.com
1. (SID = HTM):
- ,
- SAP ,
- ,
- SAP ,
- SAP ,
- ,
.
2. .
hostname ( 8 ), /etc/hosts, IP .
3. SAP note # 387078 /
HP-UX ( kmtune). :
maxswapchunks = 16384
msgseg = 32767
msgssz = 32
msgmnb = 65535
msgmax = 65535
msgmni = 4096
msgtql = 4096
msgmap = 4098
semaem = 16384
semmap = 8194
semmnu = 4092
semmns = 16384
semmni = 8192
semume = 100
semvmx = 32767
shmmax = 21474836480
shmmni = 512
shmseg = 200
maxfiles = 4096
maxfiles_lim = 4096
nflocks = 8192
nfile = 65536
ninode = 34816
maxdsiz = 1073741824
maxdsiz_64bit = 17179869184
maxssiz_64bit = 1073741824
maxuprc = 4096
max_thread_proc > 3000
nkthread = 10000
nproc = 4200
maxusers = 128
dbc_min_pct = 5
dbc_max_pct = 8
swchunk = 8192
, .
4. :
/sapmnt/<SID>,
/usr/sap/<SID>,
/oracle/<SID>/817_64,
/oracle/client/805_64,
/oracle/805_64,

http://sidadm.blogspot.com
/oracle/<SID>/sapreorg,
/oracle/stage/817_64,
/oracle/<SID>/sapdata[1-6].
/usr/sap, /sapmnt:
# chmod 775 /usr/sap /sapmnt
5. (
/usr/sap/SAPDISKS).
6. (. 37 SAP 4.6C SR2. R/3
Installation on UNIX: Oracle Database).
:
# KERNEL/UNIX/HP11_64/SAPCAR -xgvf KERNEL/UNIX/HP11_64/SAPEXE.SAR memlimits
# ./memlimits -l 20000.

7. (offline backup) (HTM).


8. control-file - CONTROL.SQL.
INSTDIR:
# mkdir /tmp/INSTDIR
# chmod 777 /tmp/INSTDIR
R3COPY SAP_KERNEL (
KERNEL/UNIX/COMMON/R3COPY).
ora<sid>.
# su - orahtm
> cd /tmp/INSTDIR
> ./R3COPY
CONTROL.SQL, (a) Source system: Generating the
script CONTROL.SQL.

http://sidadm.blogspot.com

CONTROL.SQL init<SID>.ora /oracle/<SID>/sapreorg


INSDIR .
9. root INSTDIR (/usr/sap/INSTDIR):
# mkdir /usr/sap/INSTDIR
# chmod 777 /usr/sap/INSTDIR
:
# cd /usr/sap/INSTDIR
# /usr/sap/SAPDISKS/KERNEL/UNIX/INSTTOOL.SH

http://sidadm.blogspot.com

10. X-windows root. INSTGUI.


# cd /usr/sap/INSTDIR
# set DISPLAY=<IP >:0.0
# ./INSTGUI
root
:
# cd /usr/sap/INSTDIR
# ./R3SETUP -f CENTRAL.R3S

http://sidadm.blogspot.com

http://sidadm.blogspot.com

http://sidadm.blogspot.com

http://sidadm.blogspot.com

, . -, WE8DEC.
SQLPlus :
SQL> SELECT * FROM V$NLS_PARAMETERS;

http://sidadm.blogspot.com
RDBMS ORACLE.

10

http://sidadm.blogspot.com

11

http://sidadm.blogspot.com

12

http://sidadm.blogspot.com

13

http://sidadm.blogspot.com

14

http://sidadm.blogspot.com

15

http://sidadm.blogspot.com
- Database Copy on file system.

16

http://sidadm.blogspot.com

17

http://sidadm.blogspot.com

11. ORACLE RDBMS 8.1.7.


ora<sid>.
# passwd orattm
SHLIB_LIBRARY_PATH
.dbenv_tsap.(c)sh .sapenv_tsap.(c)sh
<sid>adm ora<sid>.

18

http://sidadm.blogspot.com

X-windows root.
# su - orattm
> touch /oracle/write_test
> ls /oracle/write_test
> rm /oracle/write_test
> umask 022
> setenv DISPLAY <IP >:0.0
> xhost +
> cd /oracle/stage/817_64/Disk1/SAP/
> ./RUNINSTALLER

19

http://sidadm.blogspot.com

20

http://sidadm.blogspot.com

- root,
# /oracle/TTM/817_64/root.sh
"Retry".

21

http://sidadm.blogspot.com

/oracle/TTM/817_64/root.sh,
/oracle/stage/817_64/Disk1/SAPSVRCUSTOM.RSP root.sh .
ORACLE.
12. Patch Set ORACLE 8.1.7.4.0.
ora<sid>.
# su - orattm
> tar -xvf HP64_8174_RELEASE.tar
> setenv DISPLAY <IP >:0.0
> cd $ORACLE_HOME/bin
> ./runInstaller

22

http://sidadm.blogspot.com

23

http://sidadm.blogspot.com

24

http://sidadm.blogspot.com

. ,
README.txt, ora<sid> patch.sh
.
13. SAPINST .

25

http://sidadm.blogspot.com

SAP .
14. <sid>adm.
# passwd ttmadm
SAP .
/sapmnt/<SID>/exe/.
15. /oracle/HTM/817_64/dbs/initHTM.sap
(, berbfquz.aft) /oracle/<SID>/sapbackup/.

/oracle/TTM/817_64/dbs/initTTM.sap (HTM -> TTM, ).
.
, - berbfquz.aft.
# su - ttmadm
> brbackup -i show
> brarchive -i show
16. (brrestore
-m full -b <det_log_file> -c). SID- :
# su - orattm
> cd /oracle/TTM/sapbackup
> brrestore -m full -b berbfquz.aft -c

26

http://sidadm.blogspot.com

1,1 ~ 9 .
17. R3COPY SAP_KERNEL
(KERNEL/UNIX/COMMON/R3COPY) /oracle/<SID>/sapreorg/.
8 CONTROL.SQL /oracle/<SID>/sapreorg/.
ORACLE - init<SID>.ora
/oracle/<SID>/817_64/dbs/. / .
. , .
/ sapdata[1-6] :
# chmod -R 740 /oracle/TTM/sapdata1
# chown -R orattm:dba /oracle/TTM/sapdata1
control files .
/oracle/TTM/origlogA/cntrl/, /oracle/TTM/sapdata1/cntrl, /oracle/TTM/saparch/cntrl.
CONTROL.SQL. , - .
ORACLE (log_files) 20 Mb 100.
LISTENER control files:
# su - orattm
> lsnrctl start
> cd /oracle/TTM/sapreorg
> ./R3COPY
(c) Target system: Executing CONTROL.SQL to create new control files,
.

27

http://sidadm.blogspot.com

18. ORACLE:
# su - orattm
> sapdba -u system/manager -alter_user system/manager
> sapdba -alter_user sys/change_on_install
> sapdba -alter_user sapr3/sap
19. SAPINST.
X-windows root. INSTGUI.
# cd /usr/sap/INSTDIR
# set DISPLAY=<IP >:0.0
# ./INSTGUI
root:
# cd /usr/sap/INSTDIR
# ./R3SETUP -f CENTRAL.R3S

28

http://sidadm.blogspot.com
ORACLE.

29

http://sidadm.blogspot.com

30

http://sidadm.blogspot.com
DDIC .

SAPINST.
20. SAP .
SAP .
RZ10
.

31

http://sidadm.blogspot.com

21. SM28.
22. SE06 / .

32

http://sidadm.blogspot.com

23. RZ04 / .
SMLG .
SP12 .
24. DB02 SM21
.
25. SM37 .
SM36 DB13 (Check and update optimizer statistics, Check database).
26. SCC4 .
27. sapdba (initHTM.dba) .
. sapdba, .
28. sapdba_role.sql (SAP note # 95719).
# su - orattm
> cd /sapmnt/TTM/exe/
> sqlplus /nolog @sapdba_role R3
29. , nonarchive mode offline
redologs /oracle/<SID>/saparch/.
30. ALCONSEG, ALSYSTEMS, CSMSEGM, DBSTATHORA,
DBSTAIHORA, DBSTATIORA, DBSTATTORA, PAHI, OSMON, DBSNP, SDBAH, SDBAD, SDBAP,
SDBAR. SE14 SQLPlus :
SQL> delete from SAPR3.ALCONSEG;

33

http://sidadm.blogspot.com
SQL> delete from SAPR3.ALSYSTEMS;
SQL> delete from SAPR3.CSMSEGM;
SQL> delete from SAPR3.DBSTATHORA;
SQL> delete from SAPR3.DBSTAIHORA;
SQL> delete from SAPR3.DBSTATIORA;
SQL> delete from SAPR3.DBSTATTORA;
SQL> delete from SAPR3.PAHI;
SQL> delete from SAPR3.OSMON;
SQL> delete from SAPR3.DBSNP;
SQL> delete from SAPR3.SDBAH;
SQL> delete from SAPR3.SDBAD;
SQL> delete from SAPR3.SDBAP;
SQL> delete from SAPR3.SDBAR;
SA38 CSM_TAB_CLEAN.
31. ORACLE . SQLPlus
:
SQL> DROP USER OPS$HTMADM CASCADE;
32. SLICENSE , ,
.
33. - STMS (000 , EN ).
34. .

34