Ubuntu Linux, ubuntu desktop, Linux operating system, ubuntu guide

Oracle

How to Install Oracle 11g Express on redhat

by on Oct.20, 2011, under Oracle, RHEL5

This post will cover basic installation and configuration of Oracle 11g Express Edition (XE) on RHEL 5.7

I have installed the RHEL 5.7 (64 bit)using all the development tools and libraries.  Partition is default partition.

Basic installation is straight forward.

Click here for download the Oracle 11g Express Edition. Now oracle releasing the 64 bit version only.

After the download Unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip.

#unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip

This will create the directory Disk1. Change to the Disk1 directory:

# cd Disk1

#ls

oracle-xe-11.2.0-1.0.x86_64.rpm  response  upgrade

Install the rpm using rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm

#rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm  Preparing…                ########################################### [100%]     1:oracle-xe              ########################################### [100%]

Executing post-install steps…

You must run ’/etc/init.d/oracle-xe configure’ as the root user to configure the database.

Configure 11g XE Database and Option

# /etc/init.d/oracle-xe configure

Oracle Database 11g Express Edition Configuration

————————————————-

This will configure on-boot properties of Oracle Database 11g Express  Edition.  The following questions will determine whether the database should  be starting upon system boot, the ports it will use, and the passwords that  will be used for database accounts.  Press <enter> to accept the defaults.

Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]: Specify a port that will be used for the database listener [1521]: Specify a password to be used for database accounts.  Note that the same  password will be used for SYS and SYSTEM.  Oracle recommends the use of  different passwords for each database account.  This can be done after

initial configuration:

Confirm the password:

Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:y

Starting Oracle Net Listener…Done

Configuring database…Done

Starting Oracle Database 11g Express Edition instance…Done

Installation completed successfully.</enter>

The installation created the directory /u01 under which Oracle XE is installed.

Set the Environment

To set the required Oracle environment variables, use the oracle_env.sh the script included under cd /u01/app/oracle/product/11.2.0/xe/bin

# cd /u01/app/oracle/product/11.2.0/xe/bin
To set the environment for your current session run

#./oracle_env.sh
To set the environment permanently for users, add the following to the .bashrc or .bash_profile of the users you want to access the environment:

#su 0racle

$vim .bash_profile

add the following entries

. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
You should now be able to access SQL*Plus

$sqlplus /nolog
SQL*Plus: Release 11.2.0.2.0 Production on THU Oct 2o 06:10:26 2011
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
SQL> connect sys/Password as sysdba
Connected.
SQL>

 

 

 

1 Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!