Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal Red Hat Enterprise Linux AS/ES 3.0
Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal Oracle Application Server 10g Release 2 (10.1.2) Oracle Application Server(OracleAS) Portal Middle-Tier Portal and Wireless Oracle Application Server J2EE Portal Discoverer Forms/Reports Oracle Application Server(OracleAS) Infrastructure Middle-Tier OracleAS Infrastructure Oracle Application Server Metadata Repository PKI Identity Management Web Oracle Application Server Middle-Tier J2EE and Web Cache Portal and Wireless BI and Forms 3 OracleAS Portal Portal and Wireless BI and Forms Portal and Wireless BI and Forms OracleAS Infrastructure OracleAS Infrastructure ( J2EE and Web Cache OracleAS Infrastructure ) OracleAS Infrastructure Oracle Application Server 10g(10.1.2) for Linux x86 Infrastructure 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 Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal 2
...2...3...4...5...7...7...7 (Red Hat Enterprise Linux 3.0 )...8...10...11 OS...12...15...30...30 OracleAS Portal...31 Web Application Server Control...33...35...35 OracleAS Portal...36 OracleAS Portal...37...38 PDK...38 Portal...39...46...46 Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal 3
Linux Red Hat Enterprise Linux AS/ES 3.0 bash OracleAS Portal OracleAS Portal Oracle Application Server Portal Configuration Guide 10g 10.1.2 Oracle Application Server Portal User's Guide 10g (10.1.2) Oracle Application Server Portal Error Messages Guide 10g(10.1.2) OracleAS Portal OracleAS Infrastructure Identity Management Oracle Application Server 10g(10.1.2) for Linux x86 Infrastructure OracleAS Infrastructure Middle-Tier Portal and Wireless OracleAS Infrastructure Middle-Tier (OracleAS Infrastructure ) MetaData Repository Identity Management OID SSO OCA Oracle HTTP Server Web Cache Portal & Wireless -Portal Application Server Control Infrastructure Application Server Control Middle-Tier / Infrastrucure Oracle Application Server 10g(10.1.2) for Linux x86 Portal 4
1 OS OracleAS Portal Oracle Universal Installer 2 Oracle Application Server 10g Oracle Universal Installer GUI Oracle Universal Installer Portal and Wireless Middle-Tier Oracle Universal Installer OracleAS Infrastructure Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal 5
Oracle Universal Installer 3 Oracle Universal Installer Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal 6
3 1. 2. 3. Oracle Application Server 10g(10.1.2) Oracle Universal Installer root 1. OracleAS Portal OracleAS Infrastructure 2GB 1GB # grep MemTotal /proc/meminfo 2. OracleAS Portal 1.5GB # df -h 3. /tmp OracleAS Portal /tmp 400MB # df h /tmp Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal 7
4. OracleAS Portal 1.5GB # grep SwapTotal /proc/meminfo 5. X Server Oracle Universal Installer GUI 256 X Server # /usr/x11r6/bin/xdpyinfo ( ) 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 5) 2. kernel-2.4.21-20.el CPU SMP Enterprise smp enterprise # uname -r 2.4.21-32.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 Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal 8
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 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 < > hugemem # setarch i386 Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal 9
root 1. nofile 65536 # ulimit -Hn 65536 /etc/security/limits.conf * hard nofile 65536 2. semmsl semmns semopm semmni # /sbin/sysctl a grep sem kernel.sem = 256 32000 100 142 ( ) 3. shmall shmmax semmni # /sbin/sysctl a grep shm kernel.shmmni = 4096 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shm-use-bigpages = 0 ( ) ( ) ( ) 4. msgmax msgmnb msgmni # /sbin/sysctl a grep msg kernel.msgmnb = 65535 ( ) kernel.msgmni = 2878 ( ) kernel.msgmax = 8192 ( ) 5. fille-max # /sbin/sysctl a grep file-max fs.file-max = 131072 ( ) Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal 10
6. ip_local_port_range # /sbin/sysctl a grep ip_local_port_range net.ipv4.ip_local_port_range = 10000 65000 ( ) 7. 1 6 /etc/sysctl.conf # vi /etc/sysctl.conf kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 256 32000 100 142 fs.file-max = 131072 net.ipv4.ip_local_port_range = 10000 65000 kernel.msgmni = 2878 kernel.msgmax = 8192 kernel.msgmnb = 65535 # /sbin/sysctl -p /etc/sysctl.conf root 1. /etc/hosts IP < >.< > < > : 123.456.78.9 portal1012.jp.oracle.com poral1012 web portal 255 Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal 11
2. /etc/hosts 3. DHCP Linux Windows DHCP /etc/hosts 127.0.0.1 < >.< > < > : 127.0.0.1 portal1012.jp.oracle.com portal1012 4. hostname hostname : #hostname localhost.localdomain # hostname portal1012.jp.oracle.com # hostname portal1012.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 Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal 12
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 6. root /etc/security/limits.conf * 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 Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal 13
$ env DISPLAY X Server TMP TMPDIR 400MB PATH CLASSPATH LD_LIBRARY_PATH Oracle LD_BIND_NOW ORACLE_HOME ORA_NLS33 TNS_ADMIN LANG ja_jp.eucjp ( Linux EUC ) 8. /opt/oracle/ Oracle Application Server oracleas Oracle Application Server 10g Release 2 (10.1.2) for Linux x86 Portal 14
1. oracleas # su oracleas Password: 2. TMP TMPDIR TMP TMPDIR 400MB $ df k $TMP $ df k $TMPDIR 3. Oracle Application Server 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 ( ) Oracle Application Server 10g(10.1.2) for Linux x86 Portal 15
5. 6. Oracle Oracle OS /opt/oracle/orainventory oinstall 16
orainstroot.sh root /opt/oracle/orainventory/orainstroot.sh $ su Password: #/opt/oracle/orainventory/orainstroot.sh Oracle (/etc/orainst.loc) : /opt/oracle/orainventory : oinstall. 7. 17
OracleAS portal1012 /opt/oracle/product/1012/portal1012 8. Oracle Application Server 10g 18
> OK 9. Portal and Wireless 10. 19
11. 12. 20
OracleAS 10g Portal 13. Oracle Application Server 10g /etc/services Oracle Application Server 10g OracleAS Portal staticports.ini Disk1 $ cp /mnt/cdrom/stage/response/staticports.ini /opt/oracle/staticports.ini staticports.ini /opt/oracle/staticports.ini # OracleAS Portal HTTP HTTPS 21
80 443 Oracle HTTP Server(OHS), OracleAS Web Cache # J2EE and Web Cache Oracle HTTP Server port = 80 #Oracle HTTP Server Listen port = port_num Oracle HTTP Server SSL port = 443 #Oracle HTTP Server Listen (SSL) port = port_num #Oracle HTTP Server Diagnostic port = port_num #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 = 80 Web Cache HTTP Listen (SSL) port = 443 #Web Cache Administration port = port_num #Web Cache Invalidation port = port_num #Web Cache Statistics port = port_num #Log Loader port = port_num # Business Intelligence and Forms #Discoverer OSAgent port = port_num #Reports Services SQL*Net port = port_num # Infrastructure #Oracle Internet Directory port = port_num #Oracle Internet Directory (SSL) port = port_num #Oracle Certificate Authority SSL Server Authentication port = port_num #Oracle Certificate Authority SSL Mutual Authentication port = port_num Oracle Enterprise Manager Application Server Control OracleAS Infrastructure Metadata Repository 1521 2481 2482 8080 9090 OracleAS Infrastructure Middle-Tier 65536 1024 root 22
Oracle Application Server OracleAS Portal Oracle HTTP Server port Web Cache HTTP Listen port Oracle HTTP Server SSL port Web Cache HTTP Listen (SSL) port staticports.ini Oracle Application Server 10g 10g 2 10.1.2 for HP-UX PA-RISC(64-bit) and Linux x86 4.4 14. Oracle Internet Directory OracleAS Infrastructure Oracle Internet Directory(OID) 23
OracleAS Infrastructure OID OracleAS Infrastructure < >.< > Oracle Application Server 10g for Linux x86 Infrastructure Oracle Internet Directory port ( 3060 ) 15. Oracle Internet Directory OID cn=orcladmin 24
OracleAS Infrastructure ias_admin 16. OracleAS Metadata Repository Metadata Repository 17. ias_admin ias_admin 25
portal1012 ias_admin oracle10g Oracle Application Server Application Server Control ias_admin ias_admin ias_admin 1 5 (A Z a z 0 9) $ _ 1 OracleAS 18. 19. 26
CD-ROM CD-ROM OK : # umount /mnt/cdrom # eject # mount /mnt/cdrom root.sh OK Oracle Application Server 27
( /opt/oracle/product/1012/portal1012/ ) root.sh root $su password #/opt/oracle/product/1012/portal1012/root.sh Running Oracle10 root.sh script... The following environment variables are set as: ORACLE_OWNER= oracleas ORACLE_HOME= /opt/oracle/product/1012/portal1012 Enter the full pathname of the local bin directory: [/usr/local/bin]: ENTER The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y y Copying dbhome to /usr/local/bin... The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y y Copying oraenv to /usr/local/bin... The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y y Copying coraenv to /usr/local/bin... Adding entry to /etc/oratab file... Entries will be added to the /etc/oratab file as needed by 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 1024 $ su Password: # cd /opt/oracle/product/1012/portal1012/apache/apache/bin # chown root.apachectl # chmod 6750.apachectl 28
OK 20. Configuration Assistant 21. OracleAS Application Server10g Oracle HTTP Server URL 29
Web Oracle HTTP Server OracleAS Web Cache Oracle Enterprise Manager Application Server Control OracleAS Portal Application Server Control 1. /opt/oracle/product/1012/portal1012/install/portlist.ini Oracle HTTP Server port Application Server Control port [System] Host Name = portal1012.jp.oracle.com [Ports] Oracle HTTP Server port = 80 Oracle HTTP Server Listen port = 7778 Oracle HTTP Server SSL port = 443 Oracle HTTP Server Listen (SSL) port = 4445 Oracle HTTP Server Diagnostic port = 7201 Java Object Cache port = 7011 Oracle Notification Server Request port = 6004 Oracle Notification Server Local port = 6101 Oracle Notification Server Remote port = 6201 Log Loader port = 44001 DCM Discovery port = 7102 Enterprise Manager Agent Port = 1831 Application Server Control RMI port = 1851 Application Server Control port = 1811 Web Cache HTTP Listen port = 80 Web Cache HTTP Listen (SSL) port = 443 Web Cache Administration port = 4000 Web Cache Invalidation port = 4001 Web Cache Statistics port = 4002 30
OracleAS Portal 1. OracleAS Portal URL http://< >.< >:< >/pls/portal/ < >.< >:< > Oracle HTTP Server URL /opt/oracle/product/1012/portal1012/install/portlist.ini Host Name Oracle HTTP Server port Web Cache HTTP Listen port 2. OracleAS Single Sign-On OracleAS Single Sign-On orcladmin OracleAS Infrastructure ias_admin oracle10g 3. OracleAS Portal OracleAS Portal 31
32
Web Application Server Control Application Server Control 1. Application Server Control URL http://<. >:< > < >.< > Oracle HTTP Server URL /opt/oracle/product/1012/portal1012/install/portlist.ini Host Name < > Application Server Control port ias_admin OracleAS Infrastructure ias_admin oracle10g 2. (<Middle- Tier OracleAS >.< >.< > : portal1012.portal1012.jp.oracle.com ) Oracle Application Server 10g(10.1.2) for Linux x86 Portal 33
OracleAS Portal opmnctl dcmctl Application Server Control Oracle Application Server 10g 34
OracleAS Portal oracleas.portal_env export LANG=ja_JP.eucJP export ORACLE_SID=asdb export ORACLE_HOME=/opt/oracle/product/1012/portal1012 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 /usr/bin PATH $..portal_env $ env 35
OracleAS Portal OracleAS Portal 1. OracleAS Infrastructure (OracleAS Infrastructure ) 2. oracleas $..portal_env 3. OracleAS Portal $ $ORACLE_HOME/opmn/bin/opmnctl startall opmnctl: starting opmn and all managed processes... 4. 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://portal1012.jp.oracle.com:1811/emd/console/aboutapplicat ion Starting Oracle Enterprise Manager 10g Application Server Control... started successfully. 5. OracleAS Portal OracleAS Portal Oracle Application Server 10g(10.1.2) for Linux x86 Portal 36
OracleAS Portal OracleAS Portal 1. oracleas $..portal_env 2. 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://portal1012.jp.oracle.com:1811/emd/console/aboutapplicat ion Stopping Oracle Enterprise Manager 10g Application Server Control...... Stopped 3. OracleAS Portal $ $ORACLE_HOME/opmn/bin/opmnctl stopall opmnctl: stopping opmn and all managed processes... 4. OracleAS Infrastructure (OracleAS Infrastructure ) 5. OracleAS Portal 37
PDK OracleAS Portal BP BizTech News Portal Web OTN Japan Excite Japan OracleAS Portal PDK(Portal Developer Kit) PDK Web Clipping Omni Portlet PDK Oracle Technology Network Japan (OTN) URL( ) http://otn.oracle.co.jp/tech/portlet/index.html Oracle Application Server 10g(10.1.2) for Linux x86 Portal 38
Portal OracleAS Portal Portal ( Metadata Repository DB portal Portal ) SQL*Plus Portal Oracle Internet Directory(OID) Oracle Directory Manage Oracle Directory Manager OracleAS Infrastructure Oracle Directory Manager oracleas OracleAS Infrastructure $..infra_env $ $ORACLE_HOME/bin/oidadmin OID Oracle Directory Manager OID OID 2 OK OID OID 39
OID OID OracleAS Infrastructure < >.< > Oracle Internet Directory port ( 3060 ) OK OID Oracle Directory Manager OID OK OID 40
OID orcladmin OracleAS Infrastructure ias_admin ( oracle10g ) Portal OID > cn=oraclecontext > cn=products > cn=ias >cn=ias Infrastructure Database > orclreferencename=<metadata Repository > > OrclReferenceName=Portal > orclpasswordattribute 41
Portal orclpasswordattribute Portal Portal DB SQL*Plus Portal mod_plsql DAD Portal SSO Application Server Control SSO Oracle Application Server 10g(10.1.2) for Linux x86 Infrastructure Portal Web Application Server Control 42
Infrastructure Infrastructure Infrastructure PORTAL OK 43
Portal Oracle HTTP Server OC4J OC4J_Portal HTTP Server OC4J_Portal Oracle HTTP Server OC4J_Portal 44
Portal 45
OracleAS Portal 1. OracleAS Portal OracleAS Portal OracleAS Infrastructure 2. OracleAS Infrastructure Middle-Tier OracleAS Infrastructure OracleAS Portal Middle-Tier oracleas $ cd $ORACLE_HOME/bin $ $ORACLE_HOME/perl/bin/perl deconfig.pl -u cn=orcladmin w oracle10g dbp oracle10g $ORACLE_HOME OracleAS Portal ORACLE -u OID cn=orcladmin -w (OracleAS Infrastructure ias_admin ) -dbp (OracleAS Infrastructure )Metadata Repository SYS 3. oracleas Oracle Universal Installer(OUI) $ $ORACLE_HOME/oui/bin/runInstaller 4. 46
5. portal1012 6. 47
7. OK 8. 48
9. OUI 10. / OUI ORACLE root Oracle Application Server ORACLE $ su Password: # rm rf /opt/oracle/product/1012/portal1012 /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. 49
# A colon, ':', is used as the field terminator. A new line terminates # the entry. Lines beginning with a pound sign, '#', are comments. # # 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/1012/portal1012:n OracleAS Portal 50
Copyright 2005 Oracle Corporation Japan. All Rights Reserved. Oracle Oracle Corporation Oracle Corporation