How to Install Oracle 9iAS portal on Redhat linux Advanced Server
0. Net work Configuration files:
Add one line to /etc/hosts with your fixed IP and full qualified hostname such as:
152.69.80.151 ias.com ias
Edit file /etc/sysctl.conf to config some kernel parameter
# Disables packet forwarding
net.ipv4.ip_forward = 0
# Enables source route verification
net.ipv4.conf.default.rp_filter = 1
# Disables the magic-sysrq key
kernel.sysrq = 0
kernel.shmmax=256000000
kernel.shmmin=1
kernel.shmmni=100
kernel.sem= 250 32000 32 128
Make sure you reboot your system before you continue
1. Read Installation guide supplied with the product.
2. Download and install Korn Shell package. (pdksh-5.2.14-16.i386.rpm), I have included it in the 9iAS for linux folder.
2b. Install the package rpm –Uvh –force pdksh-5.2.14-16.i386.rpm
2c. Install the Package-binutils-2.11.9.0.0.8-13,
rpm –qa | grep binutils
rpm -Uvh --force binutils-2.11.90.0.8-13.i386.rpm
2d. create symbolic link /sbin/fuser to /bin/fuser
ln –s /sbin/fuser /bin/fuser
2e. Start x windows and set X server access privilege, as root:
startx
xhost +
2f. Set hostname like /etc/hosts, as root, using the full name the same as that one in the /etc/hosts
hostname ias.com
3 Redhat Advanced Server 2.1
Create symbolic link to the JDK
As root:
ln -s /opt/IBMJava2-131 /usr/local/java)
ln -s /usr/local/java/bin/java /usr/local/bin/java
4. Create 9iAS User account
As root:
groupadd iasdba
useradd -m -g iasdba -s /bin/csh -c "9iAS admin account" ias
passwd ias
5. Create 9iAS Unix Directories
5b. Create 9iAS infrastructure $ORACLE_HOME - As root:
mkdir /home/ias
mkdir /home/ias/infrastructure
chown ias.iasdba /home/ias
chown ias.iasdba /home/ias/infrastructure
5c. Create 9iAS unified messaging $ORACLE_HOME - As root:
mkdir /home/ias/unified
chown ias.iasdba /home/ias/unified
6. Install portion #1 - 9iAS Infrastructure Install (local box)
6b. Set "ias" Environments
As ias:
You can edit one file called inf and input following lines.
ORACLE_BASE=/home/ias; export ORACLE_BASE
ORACLE_HOME=/home/ias/infrastructure; export ORACLE_HOME
ORACLE_SID =iasdb; export ORACLE_SID
DISPLAY=localhost:0.0; export DISPLAY
Then execute
. inf
to set the environment parameter.
7. Start runInstaller
As ias:
Su ias
Step 1 - Insert 9iAS release 2 CDROM #1 and wait for the OS to mount cdrom
drive automatically. You will see cdrom content on GUI popup window once
mounted, close this window (X).
Step 2 - Go to Unix prompt and make sure $ORACLE_BASE,$ORACLE_HOME are in place, you can use
Env
To show the environment setting
Step 3 - cd $ORACLE_HOME
Step 4 - /mnt/cdrom/runInstaller &
8. Running 9iAS infrastructure installation
9iAS infrastructure/installer questions answered as follows:
8b. Inventory Location - You are starting your first installation on this computer...
What would you like as base directory? -> /home/ias/oraInventory -> OK
8c. Certain actions need to be performed with root privileges before the install
can continue...
As root execute /tmp/orainstRoot.sh
#/tmp/orainstRoot.sh
click "Continue" button
8d. File Locations
Source (leave at default value)
Destination
Name -> infrastructure
Path (leave at default value of $ORACLE_HOME)
Click "Next" button
8e. Available products
Select Oracle9iAS Infrastructure 9.0.2.0.0 (middle option)
Click "Next" button
8f. Select Configuration Options
Leave at default value of "accept default selection"
Click "Next" button
8g. Create Instance Name and ias_admin Password
Instance name -> iasdb
ias_admin Password -> manager1 (or choice, must contain at least 1 number)
Confirm Password -> manager1
Click "Next" button
8h. Privilege Operating System Groups
Database Administrator (OSDBA) Group -> iasdba (leave at default)
Database Operator (OSOPER) Group -> iasdba (leave at default)
Click "Next" button
8i. Database Character Set
Use default character set
ZHS16GBK
Click "Next" button
8j. Summary
Oracle9iAS Infrastructure 9.0.2.0.0
Quickly verify products, space needed and available, etc. This is the
last chance to cancel!
Click "Install"
9. Watch blue progress bar and file copying/scrolling for install status
Linking pending...
9b. Disk Location
Please insert iAS902 Linux disk 2...
Click "OK"
9c. Disk Location
Please insert iAS902 Linux disk 3...
Click "OK"
9d. Disk Location
Please insert iAS902 Linux disk 4...
Click "OK"
10. Install successful
Linking Oracle 9iAS Infrastructure
11. Error in invoking target relink of makefile
/home/ias/infrastructure/precomp/lib/ins_precomp.mk
To fix it:
As ias go to $ORACLE_HOME/bin
vi genclntsh
change line LD_SELF_CONTAINED="-z defs" to LD_SELF_CONTAINED="" (line 147 of 200)
save genclntsh file
./genclntsh
Created /home/ias/infrastructure/lib/libclntst9.a
Click "Retry" at error popup window. Installer will continue.
Link successful.
12. Setup Privileges
As root
run /home/ias/infrastructure/root.sh
Click "OK" button
13. Configuration Tools
"The following tools will be automatically started for you:"
13b. Database Configuration Assistant (takes long time 1/2 hour)
13c. OID Configuration -> Please wait... (about 20 minutes)
13d. All others monitor progress/completion
14. End of Installation
The installation of Oracle9iAS Infrastructure was successful.
Please remember...
The HTTP Server can be accessed using the following URLs:
http://host.domain.com:7777
https://host.domain.com:4443
The Enterprise Manager Console can be accessed using the following URL:
http://host.domain.com:1810
IMPORTANT:
==========
Before doing any middle tier install using this Infrastructure verify that
Infrastructure is working fine by accessing the following urls:
http://host.domain.com:7777/pls/orasso
Then click Login and Sign is as orcladmin/<ias admin password given during
the installation>
Also try URL:
http://host.domain.com:7777/oiddas
Successful startup of 9iAS R2 Infrastructure will be required by any middle tier
installation against this infratructure.
9iAS Unified Messaging Install
==============================
15.Install portion #2 - 9iAS Unified Messaging Install (separate $ORACLE_HOME)
15a. /home/ias/infrastructure/bin/emctl stop
Enter Management password: (password for ias_admin)
Note:
EM website must be stopped before installing Unified Messaging. Otherwise,
Oracle Installer will return an error message stating EM website must be stopped.
@ As root:
@ rm -rf /etc/emtab
@
@ READ BELOW:
@ Removing /etc/emtab as user root is necessary in order to proceed with
@ middle tier installation if both infrastructure and middle tier will be
@ installed on the same box. Otherwise, OUI will not continue and will detect
@ EM website up and running even if emctl stop command was run
@ This problem has been bugged (Bug# 2382588) and does not seem to reproduce
@ on any other Unix platform or SuSe linux.
@
@ Note that removing /etc/emtab is not supported by 9iAS development and doing
@ so will not allow individual Infrastructure components be displayed on EM
@ website after middle tier installation is completed. Infrastructure component
@ administration/configuration can only be done thru command line
@ This should only be done on Development/testing environments and only when 2
@ Linux boxes are not available for multi-tier installs!
15b. Set "ias" Environments for Unified Messaging Install
As ias user:
su ias
ORACLE_BASE /home/ias;export ORACLE_BASE
ORACLE_HOME /home/ias/unified;export ORACLE_HOME
LD_LIBRARY_PATH $ORACLE_HOME/lib:/lib:/usr/local/lib;export LD_LIBRARY_PATH
TNS_ADMIN /home/ias/infrastructure/network/admin;export TNS_ADMIN
DISPLAY=localhost:0.0; export DISPLAY
IMPORTANT!
Make sure TNS_ADMIN environment points to infrastructure's $OH/network/admin
if installing both infrastructure and middle tier on the same Linux box.
Otherwise, some of the middle tier (unified messaging) Configuration Assistants
will fail as there will be conflict with TNS Listener ports.
16. Start runInstaller
As ias:
Step 1 - Insert 9iAS release 2 CDROM #1 and wait for the OS to mount cdrom
drive automatically. You will see cdrom content on GUI popup window once
mounted, close this window (X).
Step 2 - Go to Unix prompt and make sure $ORACLE_BASE,$ORACLE_HOME and
$LD_LIBRARY_PATH environments are in place. (i.e. echo $ORACLE_HOME)
Step 3 - cd $ORACLE_HOME
Step 4 - /mnt/cdrom/runInstaller &
17. Running 9iAS Unified Messaging installation
9iAS unified messaging/installer questions aswered as follows:
17b. Welcome -> Click "Next" button
17c. File Locations
Source (leave at default location)
Destination
Name -> unified
Path (leave at default /home/ias/unified)
Click "Next" button
17d. Available Products
Select default of "Oracle9i Application Server 9.0.2.0.0"
Click "Next" button
17e. Installation Types
What type of installation do you want? -> "Unified Messaging (2.81G"
Click "Next" button
17f. Component Configuration
Select the components that you would like to configure and automatically
start at the end of the installation...
Leave all component selected (default)
Click "Next" button
17g. Existing Oracle9iAS Single Sign-On
Hostname -> host.domain.com
Port -> 7777 (default)
Click "Next" button
17h. Oracle Internet Directory
"Enter the username and password to logon to Oracle Internet Directory..."
Username -> cn=orcladmin (default value)
Password -> manager1 (or choice)
Click "Next" button to continue
17i. Create Instance Name and ias_admin Password
Instance Name -> unified
ias_admin Password -> manager1
Confirm Password -> manager1
Click "Next" button
17j. Provide Outgoing Mail Server Information
Leave blank... (this can be configured later after the install if needed)
Click "Next" button
17k. Summary
Oracle9i Application Server 9.0.2.0.0
Quickly verify products, space needed and available, etc. This is the
last chance to cancel!
Click "Install"
18. Watch blue progress bar and file copying/scrolling for install status
Linking pending...
18b. Disk Location
Please insert iAS902 Linux disk 2...
Click "OK"
18c. Disk Location
Please insert iAS902 Linux disk 3...
Click "OK"
18d. Disk Location
Please insert iAS902 Linux disk 4...
Click "OK"
19. Error in invoking target relink of makefile
/home/ias/unified/precomp/lib/ins_precomp.mk
To fix it:
As ias go to $ORACLE_HOME/bin
pico genclntsh (pico or vi file)
change line LD_SELF_CONTAINED="-z defs" to LD_SELF_CONTAINED=""
save genclntsh file
./genclntsh
Created /home/ias/unified/lib/libclntst9.a
Click "Retry" at error popup window. Installer will continue.
Link successful.
20. Install
Install successful
Link successful
100% blue progress bar. Copying remaining files.
20b. Setup Privileges
"A configuration script needs to be run as root..."
As root
run /home/ias/unified/root.sh
Click "OK" button
21. Configuration Tools
(takes between 1-1/2 to 2 hours. OC4J Instance Configuration Assistant taking
the longest time to finish due to registration of new apps, portal, etc)
The following tools with be automatically started for you:
21b. Oracle Net Configuration Assistant: Welcome
Pick "Perform typical configuration" -> " Next "
21c. Oracle9iAS Portal Configuration Assistant
"The Oracle9iAS Portal Repository is now being installed."
21d. All other configuration tools/assistants will complete in order. Once all
completed, Status screen will show "succeeded" for all 21 assistants.
22. End of Installation
The installation of Oracle9i Application Server was successful.
Please remember...
The HTTP Server can be accessed using the following URLs:
http://host.domain.com:7778
https://host.domain.com:4445
The Enterprise Manager Console can be accessed using the following URL:
http://host.domain.com:1810
Installation of Oracle9i Application Server Unified Messaging Edition is
complete.
Click "Exit"
Post install suggestions and references:
---------------------------------------
This section is divided into common scenarios found after completing
Oracle9i Application Server Unified Messaging Edition installation. For
each scenario suggestions and/or solutions are provided.
This section is to provide a quick getting started guide. For in-depth
information on product usage consult 9iAS release 2 documentation.
NOTE:
====
Scenarios below have been tested to work without installing mandatory
interoperatibility patchset. It is assumed that this mandatory patchet is
installed successfully before using 9iAS release 2 in production environments.
Mandatory interoperatibility patchset installation should be done using
patchset Release Note instructions and this is beyond the scope of this
bulletin.
I. To verify that everything is installed and running ...
-----------------------------------------------------
Open web browser and go to Enterprise Manager console URL
http://host.domain.com:1810
Enter username -> ias_admin
Enter password -> manager1 (or your password)
Here you will see Enterprise Manager console page showing 2 Standalone Instances,
iasdb.host.domain.com and unified.host.domain.com. Both instances will a GREEN
check mark for Status column if all install steps above were performed
and completed.
Navigate around Enterprise Manager console to become familar with this GUI
administraction interface.
Note: EM console may be slow specially if running both infrastructure and
unified messaging products on the same Unix server with less than 1GB of
physical memory.
II. How to view and run examples/demos
--------------------------------------
Open web browser and go to 9iAS welcome page
http://host.domain.com:7778
Click on "Demostrations" tab on top page menu
All available sample applications will be displayed on
a menu bar on the left hand side of this page.
Run any of the demos available by clicking on them.
NOTE: Some demos require additional setup/configuration. If this is the case
additional configuration information will be displayed.
III. Accessing Portals welcome page to verify installation
----------------------------------------------------------
Open web browser and go to 9iAS welcome page
http://host.domain.com:7778
Click on "Demostrations" tab on top page menu
Click on "Portal and Wireless" on left menu
Click on "Portal" Demo
Alternatively, the Portal welcome page can be reached at URL
http://host.domain.com:7778/pls/portal
If you can not access portal and see following error:
??: servlet ??????????java.io.IOException: Unsupported character encoding: "WINDOWS-936"
You can correct this by:
1) Add the following line in your $IAS_HOME/Apache/modplsql/dads.conf.
2) PLsqlCGIEnvironmentList REQUEST_IANA_CHARSET=GBK After the line that defines the NLS_LANG, that is after : PlsqlNLSLanguage AMERICAN_AMERICA.UTF8
3) Clean all your cache diretories under $IAS_HOME/Apache/modplsql/cache/session and $IAS_HOME/Apache/modplsql/cache/plsql
4) restart all services for infrastructure and mid tier .
5) Clean you borwser cache and access portal.
IV. Accessing Oracle Internet Directory Self Service Console
------------------------------------------------------------
Open web browser and go to 9iAS welcome page
http://host.domain.com:7777/oiddas/
From this site you can:
- Change your own profile settings
- Search for people and other information stored in OID
- Administrators can add and/or modify directory/information.
To login as administrator:
-------------------------
Click on "administrator" link or tab menu
User Name: orcladmin
Password: manager1 (or choice)
Click "Login" button
Consult OID documentation for further help.
如何使Portal显示中文
步骤一:获取portal和orasso两个schema的密码
l Linux shell script:
#!/bin/ksh
ldapsearch -h ias.com -p 4032 -D "cn=orcladmin" -w "manager1" -b "cn=IAS Infrastructure Databases,cn=IAS,cn=Products,cn=OracleContext" -s sub "orclResourceName=portal" orclpasswordattribute
ldapsearch -h ias.com -p 4032 -D "cn=orcladmin" -w "manager1" -b "cn=IAS Infrastructure Databases,cn=IAS,cn=Products,cn=OracleContext" -s sub "orclResourceName=orasso" orclpasswordattribute
Please replace ias.com with your hostname and manager1 with your oid password
这样可以得到两个密码,一个是Portal的,一个是orasso的
步骤二:使用OPCA增加Portal的语言支持
在安装PORTAL的机器上
编写脚本 zhs.bat :
l Windows CMD script:
set ORACLE_HOME=c:\oracle\iaspw
%ORACLE_HOME%\assistants\opca\ptlasst.bat -mode LANGUAGE -s portal -sp portal-password -o orasso -op orasso-password -c myhost.domain.com:1521:mySID -lang zhs -available -silent -verbose
l Linux shell:
csh $ORACLE_HOME/assistants/opca/ptlasst.csh -mode LANGUAGE -s portal -sp NS9JpVce -o orasso –op T6DD06h6 -c oracle9i.vm.demo:1521:iasdb -lang zhs -available -silent -verbose
运行指南:
用步骤一中获取的portal、orasso的密码分别取代上面脚本中的portal-password和orasso-password。然后运行脚本。
步骤三 :在Portal中使用中文
成功运行步骤二以后,重启portal server在Portal和SSO中应该会多出来一个语言选择:简体中文。点击以后,界面会自动进行汉化。
在Portal中,Portal Tools下提供一个Portlet:Set Language。使用这个Portlet可以在Portal支持的多种语言之间进行切换。