Saturday, December 8, 2007

Step by Step Installation Guide of Oracle Application Server 10g Release 3 (10.1.3.1.0) on Linux x86 (CentOS 3)

Source: Oracle Documentation : http://www.tahiti.oracle.com


This step by step guide of installing Oracle Application Server 10g Release 3 for Education Purpose and testing the product for Evaluation Purpose.

Oracle Application Server 10g Release 3 (10.1.3.1.0) provides the Oracle SOA Suite, which is a complete set of service infrastructure components for creating, deploying, and managing Service Oriented Architectures. Oracle SOA Suite enables services to be created, managed, and orchestrated into composite applications and business processes.

Oracle SOA Suite consists of:

A) Oracle BPEL Process Manager

B) Oracle Enterprise Service Bus (ESB)

C) Oracle Web Services Manager (OWSM)

D) Oracle Business Rules

Oracle Application Server (includes Oracle HTTP Server, Oracle Containers for J2EE (OC4J or J2EE Server), Oracle Enterprise Manager 10g Application Server Control, Oracle Process Manager and Notification Server and OC4J Java Single Sign-On)

You can integrate Oracle Application Server 10g Release 3 (10.1.3.1.0) with an existing Oracle Application Server environment that includes 10g Release 2 (10.1.2) or 10g (10.1.4.0.1) OracleAS Infrastructure.

I will cover 10g Oracle AS Infrastructure in my next post.


Download the Software

- CentOS
- RedHat Linux

http://www.centos.org/
https://www.redhat.com/apps/download/

Note:Red Hat Enterprise Linux AS/ES 3.0, 4.0 and SUSE Linux Enterprise Server 9 are certified and supported

- Oracle Application Server 10g Release 3

http://www.oracle.com/technology/software/products/ias/index.html

Step 1: Installing Linux (CentOS/RedHat Advanced Server)

Disk space

Basic Installation: J2EE Server and Oracle SOA Suite: 1 GB

Advanced Installation: J2EE Server, Web Server, and Oracle SOA Suite: 1.05 GB

Advanced Installation: J2EE Server and Web Server: 650 MB

Advanced Installation: J2EE Server: 625 MB

Advanced Installation: Web Server: 500 MB

Memory for Basic Installation: 512 MB

grep MemTotal /proc/meminfo


Processor Speed (32-bit) : 300 MHz or faster

cat /proc/cpuinfo | grep MHz


Supported browsers:

Oracle Enterprise Manager 10g is supported on the following browsers:

Microsoft Internet Explorer 6.0 SP2 (supported on Microsoft Windows only)

Netscape 7.2

Mozilla 1.7. You can download Mozilla from http://www.mozilla.org.

Firefox 1.0.4. You can download Firefox from http://www.mozilla.org.

Safari 1.2, 2.0 (on Apple Macintosh computers)



RedHat Advanced Server/CentOS3

Note: There will screen selection difference in various flavour of Linux distribution but step are almost common.

1. Boot the server using the first CD.
- You may need to change your BIOS settings to allow booting from the CD.
2. The boot screen appears with the boot: prompt at the bottom of the screen.
- Select Enter to continue with a graphical install on the console. (For other installation methods and options
- The installer scans your hardware, briefly displays the Red Hat splash screen, and then begins a series of screen prompts.
3. Language Selection
- Accept the default.
4. Keyboard Configuration
- Accept the default.
5. Welcome Screen
- Click on Next.
6. Disk Partitioning Setup
-Use ext3 for each filesystem:

The 10GB disk on the first controller (/dev/sda) will hold all Linux and Oracle software and contains the following partitions:
- 100MB /boot partition
-2,000MB swap partition.
-7,900 MB root partition
Boot Loader Configuration
- Accept the default.
7. Network Configuration
- It is usually best to configure application servers with a static IP address. To do so, click on Edit .
- A pop-up window appears. Uncheck the Configure using DHCP box, and enter the IP Address and Netmask for the server. Be sure that Activate on boot is checked, and click on OK .
- In the Hostname box, select manually and enter the hostname.
- In the Miscellaneous Settings box, enter the remaining network settings.
8. Firewall Configuration
- For the purposes of this walk-through, no firewall is configured.
Select No firewall
- Select Disabled on the "Enable SELinux" drop down list.
- Click on Proceed when the "Warning - No Firewall" window appears.
9. Additional Language Support
- Accept the default.
10. Time Zone Selection
Choose the time settings that are appropriate for your area. Setting the system clock to UTC is usually a good practice for servers. To do so, click on System clock uses UTC.
11. Set Root Password
- Enter a password for root, and enter it again to confirm.
12. Package Installation Defaults
- Select Customize software packages to be installed.
13. Package Group Selection
- Select only the package sets shown here and leave all others unselected.
- Desktop
- X Window System
- Gnome
- Applications
- Graphical Internet (optional)
- Servers
- Do not select anything in this group.
- Development
- Development Tools
- System
- Administration Tools
- System Tools
- Add the package 'sysstat' by clicking on the Details link and selecting "sysstat - The sar an iostat system monitoring commands." from the Optional Packages list.
- Miscellaneous
- Do not select anything in this group.
- Click on Next to proceed.
14. Installing Packages
- Software will be copied to the hard disk and installed. Change disks as prompted.
15. Congratulations
- Remove the installation media from the system, and click on Reboot .
16. The system automatically reboots and presents a new welcome screen.
- Click on Next.
17. License Agreement
- Read the license agreement. If you agree to the terms, select Yes, I agree to the License Agreement and click on Next.
18. Date and Time
- Set the Date and Time.
- If you want to use an NTP server (recommended), select Enable Network Time Protocol and enter the name of the NTP server.
19. Display
- Accept the defaults or change as required.
20. Red Hat Login
- Enter your Red Hat Network login and password or create a new one.
21. System User
- Create an account for yourself.
- Do not create an account for oracle at this time. Creating the oracle account is covered later in this section.
22. Additional CDs
- Click on Next.
23. Finish Setup
- Click on Next.
24. A graphical login screen appears.
25. Congratulations! Your Linux software is now installed.

Verifying Your Installation

Once you've completed the steps above, all of the packages required for Oracle Application Server 10g Release 3 will have been installed. Verify this using the example below.

Required package versions (or later):

http://download.oracle.com/docs/cd/B31017_01/linux.1013/install/reqs.htm#CIHEFBJD

glibc-2.3.2-95.27
glibc-common-2.3.2-95.27
glibc-2.3.4-2.9
glibc-common-2.3.4-2.9
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
compat-db-4.0.14-5
compat-db-4.1.25-9
compat-libstdc++-devel-7.3-2.96.128
compat-glibc-7.x-2.2.4.32.6
compat-libstdc++-7.3-2.96.128
control-center-2.8.0-12
gcc-3.2.3-42
gcc-c++-3.2.3-42
gcc-3.4.3-22.1
gcc-c++-3.4.3-22.1
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
binutils-2.15.92.0.2-13
compat-libstdc++-296-2.96-132.7.2
libstdc++-3.4.3-22.1
libstdc++-devel-3.4.3-22.1
openmotif21-2.1.30-11.RHEL4.4
pdksh-5.2.14-30
setarch-1.6-1
make-3.80-5
gnome-libs-1.4.1.2.90-44.1
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2

Create the following symbolic links:

ln -sf /usr/bin/perl /usr/local/bin/perl
ln -sf /bin/fuser /sbin/fuser

Step 2: : Oracle Environment Configuration on Linux operating system RedHat/CentOS

a) Verifying System Requirements (pre-req’s)

To verify that your system meets the minimum requirements for a Oracle Application Server 10g Release 3, log in as root and run the commands below.

To check the amount of RAM and swap space available, run this:

grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo

The minimum RAM required is 512MB, and the minimum required swap space is 1024MB. Swap space should be twice the amount of RAM for systems with 2GB of RAM or less and between one and two times the amount of RAM for systems with more than 2GB.

b) Configure host information in /etc/hosts file

Note: hosts file must contain fully qualified name

Example : /etc/hosts

192.168.100.2 lnxas1.quickoracle.com lnxas1

Note:

Edit /etc/hosts to remove "localhost" from the IPV6 address list.

Before:
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

After:
# special IPv6 addresses
::1 ipv6-localhost ipv6-loopback

c) Define Shell limits for user oracle

Enter the information at the end of /etc/security/limits.conf file

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 2048
oracle hard nofile 65536


d) Enter the information to /etc/pam.d/login

Session required /lib/security/pam_limits.so

Note: Ref to Oracle documentation of Oracle AS 10g Release states that default values are good for Kernel parameters.

e) Directories Creation

mkdir -p /d01/app/oracle/product/10.1.3
chown -R oracle.oinstall /d01

f) Oracle Group and User Account creation at operating system level

groupadd oinstall
groupadd dba
groupadd oper
useradd -g oinstall -G dba -s /bin/ksh oracle
passwd oracle

g) Login to system as root user and run the below command:

xhost +

h) Login as oracle user and add the below lines in your /etc/.bash_profile or /etc/.profile

#TMP Environment variable for Oracle

TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_BASE=/d01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.1.3/OracleAS_1;
export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$ORACLE_HOME/bin:$PATH; export PATH
PATH=$PATH:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin; export PATH
PATH=$PATH:$ORACLE_HOME/Apache/Apache/bin; export PATH

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi


Note:Comment out the ANT_HOME line from the "/etc/ant.conf" file or if file present then give some other name so that system will not look for this file.

Step 3: Oracle Application Server 10g R3 Installation (Software Installation)

a) Create the Stage directory.

mkdir Stage10gASR3

b) Place the downloaded Software cpio file in Stage Directory and Extract the files as oracle user

cpio -idmv < as_linux_x86_101300_disk1.cpio

c) Install the Application Server Software
Log in using the oracle account.
Change directory to the location where you extracted the Oracle Application Server 10g Release 3 software.

$ cd $HOME/StageAS10gR3

d) Before running the Oracle Univeral Installer export the Display
DISPLAY=:0.0; export DISPLAY

e) Start the Oracle Universal Installer.

$. /runInstaller

1. Oracle Application Server 10g 10.1.3.0.0 Installation
- Installation Directory: /d01/app/oracle/product/10.1.3/OracleAS_1
- Select Basic Installation
- Installation Type: Integrated Webserver, J2EE Server, Process Management
- Instance Name: prodapp
- Administration Name: oc4jadmin (cannot be changed)
- Administration Password: Enter a password and confirm
- Click on Install

2. Specify Inventory Directory and Credentials

- Inventory Directory: /d01/app/oracle/oraInventory
- Operating System group name: oinstall
- Click on Next
- Run the indicated script as root and click on Continue

3. Product-specific Prerequisite Checks

- Click on Next
- Dismiss the Warning window that may appear regarding installed physical memory by clicking on OK.

4. Install

- Watch the installation process

5. Configuration Assistants

- The configuration assistants should succeed without any action on your part.

6. Setup Privileges

- At the end of the installation, a pop up window will appear indicating that a script needs to be run as root. Login as root and run the indicated script.
- Click on OK when finished.

7. End of Installation

- Make note of the URLs presented in the summary, and click on Exit when ready.

3 comments:

Anonymous said...

How long in terms of time did it take to insatll OAS 10g Release 3?

AppsFusion said...

It depends on you machine capacity.

Also what all components you are going to install. If you exclude o/s installation and issues. The fair time to install Application Server is 45-50 mins.

Anonymous said...

Hi,
While im following your steps....i got struck at the beginning itself.
when i select the basic installation.
its asking me to enter the password for...
ORABPEL
ORAESB
ORAWSM

Am i have to create these tablespace for the above 3 in my database?

thanks