Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 J2EE
Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE and Web Cache J2EE Oracle Application Server 10g Release 2 (10.1.2) J2EE Oracle HTTP Server Oracle Application Server Containers for J2EE(OC4J) Oracle Enterprise Manager Application Server Control Oracle Application Server 10g 2(10.1.2) Oracle Application Server 10g 2(10.1.2) Oracle Application Server 10g 2(10.1.2) Oracle Technology Network Japan http://otn.oracle.co.jp/document/products/as10g/index.html Linux bash Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 2
...2...2...3...4...6...6...6 (Red Hat Enterprise Linux 3.0 )...7...8...9 OS...10...13...28...28 Oracle HTTP Server...28 Application Server Control...29...30...30...31 Oracle Enterprise Manager Application Server Control...31 Oracle HTTP Server...31 Oracle Application Server Containers for J2EE(OC4J)...33...35 Oracle HTTP Server...35 Oracle Application Server Containers for J2EE(OC4J)...37 Application Server Control...39...39...41...41 Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 3
OS J2EE Oracle Universal Installer 1 Oracle Application Server 10g Release 2 (10.1.2) J2EE Oracle Universal Installer GUI Oracle Universal Installer J2EE 3 1 Oracle HTTP Server Apache Web Oracle Application Server Container for J2EE(OC4J) J2EE J2EE Oracle Enterprise Manager Application Server Control Oracle Application Server Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 4
Oracle HTTP Server OC4J Application Server Control j2eehost.my.company.com 2 Oracle Universal Installer Oracle Universal Installer / 3 Oracle Universal Installer Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 5
3 1. 2. 3. Oracle Application Server 10g Release 2 (10.1.2) Oracle Universal Installer root 1. J2EE 512MB # grep MemTotal /proc/meminfo 2. J2EE 700MB # df -h 3. 1.5GB # grep SwapTotal /proc/meminfo Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 6
4. 256 # /usr/x11r6/bin/xdpyinfo grep window ( ) depth of root window: 16 planes ( ) depth of root window 8 (Red Hat Enterprise Linux 3.0 ) root 1. OS OS # cat /etc/issue Red Hat Enterprise Linux AS release 3 (Taroon Update 4) 2. kernel-2.4.21-20.el CPU SMP Enterprise smp enterprise # uname -r 2.4.21-20.EL kernel-2.4.21-20.el Red Hat Web 3. RedHat Update3 glibc-2.3.2-95.27 glibc-common-2.3.2-95.27 binutils-2.14.90.0.4-35 compat-glibc-7.x-2.2.4.32.6 compat-libstdc++-7.3-2.96.128 compat-libstdc++-devel-7.3-2.96.128 gcc-3.2.3-42 gcc-c++-3.2.3-42 libstdc++-3.2.3-42 Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 7
libstdc++-devel-3.2.3-42 openmotif21-2.1.30-8 pdksh-5.2.14-21 setarch-1.3-1 make-3.79.1-17 gnome-libs-1.4.1.2.90-34.1 sysstat-4.0.7-4.el3.3 compat-db-4.0.14-5 # rpm -q < > Red Hat Enterprise Linux CD-ROM Red Hat Web : rpm / # rpm ivh < > # rpm Uvh < > 4. hugemem #setarch i386 root 1. Web Cache nofile 65536 # ulimit -Hn Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 8
65536 /etc/security/limits.conf * hard nofile 65536 root /etc/hosts IP. 146.56.9.103 j2eehost.jp.oracle.com j2eehost web portal 255 /etc/hosts DHCP Linux Windows DHCP DHCP /etc/hosts 127.0.0.1. 127.0.0.1 localhost.localdomain localhost 127.0.0.1 j2eehost.jp.oracle.com j2eehost 127.0.0.1 localhost.localdomain localhost hostname hostname # hostname Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 9
j2eehost.jp.oracle.com OS Oracle Application Server Oracle Application Server Oracle Application Server root root 1. oinstall # groupadd oinstall 2. dba # groupadd dba 3. oracleas oracleas oinstall dba # useradd -g oinstall -G dba oracleas 4. oracleas # passwd oracleas New password: 5. oracleas /etc/profile $USER = "oracleas" $SHELL = "/bin/ksh" 1 ( ) if [ $USER = "oracleas" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit p 16384 >/dev/null 2>&1 ulimit n 65536 >/dev/null 2>&1 else ulimit u 16384 n 65536 >/dev/null 2>&1 fi fi Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 10
6. root /etc/security/limits.conf 4 * soft nproc 2047 * hard nproc 16384 * soft nofile 2048 * hard nofile 65536 /etc/pam.d/login session required /lib/security/pam_limits.so 7. oracleas # su - oracleas $ env DISPLAY X Server TMP TMPDIR TMP TMPDIR 400MB PATH CLASSPATH LD_LIBRARY_PATH Oracle ORACLE_HOME TNS_ADMIN ORA_NLS33 Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 11
LD_BIND_NOW LANG LANG=ja_JP.eucJP ( Linux EUC ) 8. /opt/oracle/ Oracle Application Server oracleas Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 12
1. oracleas # su oracleas Password: 2. TMP TMPDIR TMP TMPDIR 400MB $ df h $TMP $ df h $TMPDIR 3. Oracle Application Server Disk1 CD-ROM $ mount /mnt/cdrom 4. Oracle Universal Installer OUI $ /mnt/cdrom/runinstaller Oracle Application Server 10g Error :.Continue? (y/n) [n] n
OUI 5. 6. Oracle Oracle Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 14
/opt/oracle/orainventory oinstall OK orainstroot.sh root /opt/oracle/orainventory/orainstroot.sh $ su Password: #/opt/oracle/orainventory/orainstroot.sh Oracle (/etc/orainst.loc) Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 15
: /opt/oracle/orainventory : oinstall. orainstroot.sh 7. OracleAS mid_j2ee01 /opt/oracle/product/as10.1.2/mid_j2ee01 8. Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 16
Oracle Application Server 10g 9. J2EE and Web Cache 10. Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 17
11. Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 18
12. Oracle HTTP Server Oracle HTTP Server J2EE&Web Cache OracleAS Containers for J2EE OC4J (OC4J) J2EE&Web Cache OracleAS Web Cache Oracle Application Server Web Cache OracleAS Farm Repository OracleAS Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 19
Identity Management Access OracleAS Oracle Application Server Single Sign-On Oracle Internet Directory Identity Management 13. Oracle Application Server 10g /etc/services Oracle Application Server 10g Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 20
staticports.ini Disk1 $ cp /mnt/cdrom/stage/response/staticports.ini /opt/oracle/staticports.ini staticports.ini /opt/oracle/staticports.ini # OracleAS Infrastructure Oracle HTTP Server(OHS) 8888 # J2EE and Web Cache Oracle HTTP Server port = 8888 Oracle HTTP Server Listen port = 8888 #Oracle HTTP Server SSL port = port_num #Oracle HTTP Server Listen (SSL) port = port_num #Oracle HTTP Server Diagnostic port = port_num Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 21
#Oracle HTTP Server Jserv port = port_num #Java Object Cache port = port_num #DCM Java Object Cache port = port_num #Oracle Notification Server Request port = port_num #Oracle Notification Server Local port = port_num #Oracle Notification Server Remote port = port_num #Application Server Control port = port_num #Application Server Control RMI port = port_num #Oracle Management Agent port = port_num #Web Cache HTTP Listen port = port_num #Web Cache HTTP Listen (SSL) port = port_num #Web Cache Administration port = port_num #Web Cache Invalidation port = port_num #Web Cache Statistics port = port_num #Log Loader port = port_num portlist.ini 65536 Oracle Application Server staticports.ini Oracle Application Server 10g 10g 2 10.1.2 for HP-UX PA-RISC(64-bit) and Linux x86 4.4 14. ias_admin Oracle Application Server ias_admin Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 22
mid_j2ee01 ias_admin oracle10g Oracle Application Server Application Server Control ias_admin ias_admin 5 (A Z a z 0 9) $ _ 1 OracleAS 15. Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 23
16. CD-ROM Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 24
CD-ROM OK : # umount /mnt/cdrom # eject # mount /mnt/cdrom root.sh OK Oracle Application Server ( /opt/oracle/products/as10.1.2/mid_j2ee01/ ) root.sh root $su password #/opt/oracle/product/as10.1.2/mid_j2ee01/root.sh Running Oracle10 root.sh script... The following environment variables are set as: ORACLE_OWNER= oracleas ORACLE_HOME= /opt/oracle/product/as10.1.2/mid_j2ee01 Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin... Copying oraenv to /usr/local/bin... Copying coraenv to /usr/local/bin... Adding entry to /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 25
Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. Oracle /usr/local/bin dbhome oraenv coraenv y staticports.ini Oracle HTTP Server OracleAS Web Cache 1024 $ su Password: # cd /opt/oracle/products/as10.1.2/mid_j2ee01/apache/apache /bin # chown root.apachectl # chmod 6750.apachectl OK 17. Configuration Assistant Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 26
18. Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 27
Oracle HTTP Server Oracle Enterprise Manager Application Server Control Oracle HTTP Server Application Server Control 1. /opt/oracle/product/as10.1.2/mid_j2ee01/install/portlist.ini Oracle HTTP Server port Web Cache HTTP Listen port ( 2 ) Application Server Control port [Ports] Oracle HTTP Server port = 7777 Oracle HTTP Server Listen port = 7777 Oracle HTTP Server SSL port = 4443 Oracle HTTP Server Listen (SSL) port = 4443 Oracle HTTP Server Diagnostic port = 7200 Application Server Control RMI port = 1850 Oracle Notification Server Request port = 6003 Oracle Notification Server Local port = 6100 Oracle Notification Server Remote port = 6200 Java Object Cache port = 7010 Log Loader port = 44000 DCM Java Object Cache port = 7101 Oracle Management Agent port = 1830 Application Server Control port = 1810 Oracle HTTP Server Listen port = 7777 Oracle HTTP Server Listen (SSL) port = 4443 Web Cache HTTP Listen port = 7778 Web Cache HTTP Listen (SSL) port = 4445 Web Cache Administration port = 4000 Web Cache Invalidation port = 4001 Web Cache Statistics port = 4002 Oracle HTTP Server 1. URL http://<. >:< > Oracle HTTP Server port
2. Application Server Control Application Server Control 1. URL http://<. >:< > Application Server Control port 2. ias_admin oracle10g 3. Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 29
Oracle HTTP Server OracleAS Containers for J2EE(OC4J) Oracle Enterprise Manager Application Server Control 1. oracleas 2. $ vi.j2ee01_env 3..j2ee01_env export ORACLE_HOME=/opt/oracle/product/as10.1.2/mid_j2ee01 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH export PATH=/usr/bin:/usr/local/bin:/bin:/usr/X11R6/bin:. :$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$ORACLE_HOME/dcm/bin :$PATH export NLS_LANG=Japanese_Japan.JA16EUC Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 30
/usr/bin PATH 4. $..j2ee01_env 5. $ env Oracle Enterprise Manager Application Server Control 1. oracleas 2. $..j2ee01_env 3. Application Server Control $ emctl start iasconsole TZ set to Japan Oracle Enterprise Manager 10g Application Server Control Release 10.1.2.0.0 Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved. http://j2eehost.my.company.com:1818/emd/console/aboutappli cation Starting Oracle Enterprise Manager 10g Application Server Control... started successfully. Oracle HTTP Server Application Server Control 1. Application Server Control Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 31
http://<. >:< > Application Server Control port 2. Application Server Control ias_admin oracle10g 3. Oracle HTTP Server HTTP_Server (A) Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 32
Oracle Application Server Containers for J2EE(OC4J) 1. Application Server Control http://<. >:< > Application Server Control port 2. Application Server Control ias_admin oracle10g Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 33
3. Oracle Application Server Containers for J2EE(OC4J) home (A) Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 34
Oracle HTTP Server Application Server Control 1. Application Server Control http://<. >:< > Application Server Control port 2. Application Server Control ias_admin oracle10g Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 35
3. Oracle HTTP Server HTTP_Server (P) Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 36
Oracle Application Server Containers for J2EE(OC4J) Application Server Control 1. Application Server Control http://<. >:< > Application Server Control port 2. Application Server Control ias_admin oracle10g Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 37
3. Oracle Application Server Containers for J2EE(OC4J) home (P) Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 38
Application Server Control 1. oracleas 2. $..j2ee01_env 3. Application Server Control $ emctl stop iasconsole TZ set to Japan Oracle Enterprise Manager 10g Application Server Control Release 10.1.2.0.0 Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved. http://j2eehost.my.company.com:1818/emd/console/aboutappli cation Stopping Oracle Enterprise Manager 10g Application Server Control...... Stopped. 1. oracleas 2. $..j2ee01_env Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 39
3. $ $ORACLE_HOME/opmn/bin/opmnctl stopall Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 40
Oracle Application Server 1. oracleas 2. Oracle HTTP Server Oracle Application Server Containers for J2EE(OC4J) Application Server Control 3. Oracle Universal Installer $ $ORACLE_HOME/oui/bin/runInstaller 4. Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 41
5. mid_j2ee01 6. 7. Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 42
11 OK 8. 9. 10. Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 43
OUI 11. ORACLE_HOME Oracle Application Server ORACLE_HOME $ su Password: # rm rf /opt/oracle/product/as10.1.2/mid_j2ee01 /etc/oratab /etc/oratab $ vi /etc/oratab # # This file is used by ORACLE utilities. It is created by root.sh # and updated by the Database Configuration Assistant when creating # a database. # A colon, ':', is used as the field terminator. A new line terminates # the entry. Lines beginning with a pound sign, '#', are comments. # Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 44
# Entries are of the form: # $ORACLE_SID:$ORACLE_HOME:<N Y>: # # The first and second fields are the system identifier and home # directory of the database respectively. The third filed indicates # to the dbstart utility that the database should, "Y", or should not, # "N", be brought up at system boot time. # # Multiple entries with the same $ORACLE_SID are not allowed. # # *:/opt/oracle/product/as10.1.2/mid_j2ee01:n ( ) Oracle Application Server 10g Release 2 (10.1.2) for Linux J2EE 45
Copyright 2005 Oracle Corporation Japan. All Rights Reserved. Oracle Oracle Corporation Oracle Corporation