Oracle 11g (Unix) /SQL 2008 (XP) Installation Guide
Oracle 11g (Unix) /SQL 2008 (XP) Installation Guide
Hardware Requirements
x At least 1 GB of RAM
x If RAM between 1GB -2GB swap space should be 1.5 times the size of RAM.
If RAM between 2GB – 16GB swap space should be equal to the size of RAM
If RAM more than 16GB swap space should be 16GB.
x The size of the shared memory should be at least the greater of
MEMORY_MAX_TARGET and MEMORY_TARGET for each Oracle instance on the
computer.
x Processor Type x86 or x86_x64
x At least 1 GB of disk space in the /tmp directory
x Enterprise Edition (x86) - 3.95GB Hard Disk Space for Software Files
Standard Edition (x86) - 3.88GB Hard Disk Space for Software Files
Enterprise Edition (x86) - 1.7GB Hard Disk Space for Data Files
Standard Edition (x86) - 1.5GB Hard Disk Space for Data Files
Enterprise Edition (x86_x64) - 4.35GB Hard Disk Space for Software Files
Standard Edition (x86_x64) - 3.73GB Hard Disk Space for Software Files
Enterprise Edition (x86_x64) - 1.68GB Hard Disk Space for Data Files
Standard Edition (x86_x64) - 1.48GB Hard Disk Space for Data Files
Software Requirements
x Asianux 2.0
x Asianux 3.0
x Oracle Enterprise Linux 4.0 Update 7 or later
x Oracle Enterprise Linux 5.0
x Red Hat Enterprise Linux 4.0 Update 7 or later
x Red Hat Enterprise Linux 5.0
x SUSE Linux Enterprise Server 10.0
x SUSE Linux Enterprise Server 11.0
Kernel Requirement
x On Asianux 2.0, Oracle Enterprise Linux 4.0, and Red Hat Enterprise Linux 4.0:
2.6.9 Or later
x On Asianux 3.0, Oracle Enterprise Linux 5.0, and Red Hat Enterprise Linux 5.0:
2.6.18 or later
2.6.16.21 or later
2.6.27.19 or later
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
Package Requirements
On Linux x86:
On Linux x86-64:
Compiler Requirements
Intel C++ Compiler 10.1 or later and the version of GNU C and C++ compilers listed
under "Package Requirements" are supported with Pro*C/C++, Oracle Call Interface, Oracle
C++ Call Interface, and Additional Software Requirements
Depending on the components you want to use, you must ensure that the following software are
installed:
Browser Requirements
Web browsers must support Java Script, and the HTML 4.0 and CSS 1.0 standards. The
following browsers meet these requirements for Oracle Enterprise Manager Database Control:
If you want to install Oracle Database Vault, then set the DB_BLOCK_SIZE initialization
parameter to 4096 or larger. If the value is less than 4096, then you cannot change it. The only
way to change the DB_BLOCK_SIZE value is by recreating the database.
Configuration
To determine the size of the configured swap space, enter the following command:
To determine whether the system architecture can run the software, enter the following
command:
# uname -m
To determine the amount of disk space available in the /tmp directory, enter the following
command:
# df -h /tmp
To determine the amount of free disk space on the system, enter the following command:
# df -h
To To determine whether the required kernel is installed, enter the following command:
# uname –r
To determine the free disk space on each mounted file system use the following command:
# df –h
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
#mkswap /extraswap
#swapon /extraswap
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
The current values can be tested executing following shell script as a root user.
#!/bin/bash
/sbin/sysctl -a | grep fs.aio-max-nr
/sbin/sysctl -a | grep fs.file-max
/sbin/sysctl -a | grep kernel.shmall
/sbin/sysctl -a | grep kernel.shmmax
/sbin/sysctl -a | grep kernel.shmmni
/sbin/sysctl -a | grep kernel.sem
/sbin/sysctl -a | grep net.ipv4.ip_local_port_range
/sbin/sysctl -a | grep net.core.rmem_default
/sbin/sysctl -a | grep net.core.rmem_max
/sbin/sysctl -a | grep net.core.wmem_default
/sbin/sysctl -a | grep net.core.rmem_max
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
/sbin/sysctl -p
Add the following line to the /etc/pam.d/login file, if it does not already exist:
Start the Firewall administration dialog (System > Administration > Firewall). Click the
"Disable" button followed by the apply button on the toolbar, and then close the dialog.
Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set
as follows:
SELINUX=disabled
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
Setup Packages
Install required packagers mentions in packager requirements using YUM command or RPM .if
you using yum following commands install the particular libraries.
#!/bin/bash
groupadd oinstall
groupadd dba
groupadd oper
groupadd asmadmin
mkdir -p /u01/app/oracle/product/11.2.0/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
xhost +<machine-name>
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
if you install oracle on fedora newest versions The release information in /etc/redhat-release is
incorrect as far as the Oracle installer is concerned. It knows nothing about Fedora but does
know about Red Hat. Therefore the release string needs to be modified as follows:
# cp /etc/redhat-release /etc/redhat-release.org
# echo "redhat release 5" > /etc/redhat-release
Login as the oracle user and add the following lines at the end of the .bash_profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental
variable:
Start the Oracle Universal Installer (OUI) by issuing the following command in the database
directory:
./runInstaller
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
Enter Your Email address to be informed of security issues, install the product and initiate
configuration manager. Then click next.
After few seconds following screen will appear. Select appropriate install option. Then click
next.
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
Next window ask for appropriate system class. Select it and click next:
After few seconds following dialog box will appear. Select type of the database installation you
want to perform. Then click next:
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
Then you should see the following Typical Install Configuration screen:
Enter Administrator password and click next. Then following dialog box will appear. If this is
your first installation leave default values. Otherwise specify directory for installation files.
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
Next OUI checks that the installed software development and runtime packages are correct:
Some Fedora versions will fail all these checks. Just tick the check box Ignore All on the top
right hand to ignore these errors. So long as you have the latest version of each of these packages
installed, all will be fine. you do not need to install pdksh if you have ksh installed. Then click
next.
Then installation wizard displays summary of the installation you are going to do. Best practice
save it to file for later use.
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
During the installation, OUI will popup a dialog window advising you that an error has occurred
with ins_emagent.mk. See below:
After saving the changed file, select the Retry option and the install should successfully continue.
Eventually you should see the Database Configuration Assistant screen followed shortly by a
Password Management screen as shown below:
Do not ignore the Password Management button; press it and change the passwords for SYS and
SYSTEM.
After this you will be asked to run two shell scripts as root.
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
Just open up a root terminal window and execute these shell scripts. One script installs three
scripts, coraenv, oraenv and dbhome in /usr/local/bin (or another user-specified directory) and
the other creates /etc/oratab.
At this stage the installer has finished installing the Oracle database and you can press the Finish
Button. The Oracle database does not need to be started; it is already up and running.
After finishing your installation restart your computer. After reboot your
Computer you have to execute some commands.
To confirm the
Installation was successful, try doing the following:
$ id
uid=502(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(asmadmin)
$ cd $ORACLE_HOME
$ lsnrctl start
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 06-AUG-2010 20:47:58
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /app/oracle/diag/tnslsnr/fedora13/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ultra. localhost.com)(PORT=1521)))
The listener supports no services
The command completed successfully
$
https://ultra.localhost.com:1158/em/console/aboutApplication
$ sqlplus / as sysdba
SQL> startup
ORACLE instance started.
By entering URL you can go to your database management console web page.
To display above window Database instance, listener and agent connection to instance
should be up. It above mentions conditions are true, it will display above window. You must
enter user name and password to login to database console. It one of that above mention
requirement are missing, it will display fallowing window. For login for management console
you must fulfill those requirements.
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
#!/bin/bash
#
#Run-level Startup script for the Oracle Instance and
Listener
#
# chkconfig: 345 91 19
# description: Startup/Shutdown Oracle listener and
instance
ORA_HOME="/u01/app/oracle/product/11.2.0/db_1"
ORA_OWNR="oracle"
# if the executables do not exist -- display error
if [ ! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME ]
then
echo "Oracle startup: cannot start"
exit 1
fi
# depending on parameter -- startup, shutdown, restart
# of the instance and listener or usage display
case "$1" in
start)
# Oracle listener and instance startup
echo -n "Starting Oracle: "
su - $ORA_OWNR -c "$ORA_HOME/bin/lsnrctl start"
su - $ORA_OWNR -c $ORA_HOME/bin/dbstart
touch /var/lock/subsys/oracle
echo "OK"
;;
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
stop)
# Oracle listener and instance shutdown
echo -n "Shutdown Oracle: "
su - $ORA_OWNR -c "$ORA_HOME/bin/lsnrctl stop"
su - $ORA_OWNR -c $ORA_HOME/bin/dbshut
rm -f /var/lock/subsys/oracle
echo "OK"
;;
reload|restart)
$0 stop
$0 start
*)
echo "Usage: $0 start|stop|restart|reload"
exit 1
esac
exit 0
We create a file call oracle inside the /etc/init.d and paste above script into this file and save.
Then you have to access permission for this file. For that we execute Chmod 777 oracle
Command as a root user.
After saving this file execute Chconfig oracle command to updating the run level
Information.
You can directly execute fallowing command to stop and run oracle
Service oracle stop
Service oracle start
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
Then it prompts to enter the username and password for host and db credentials.
Then it will ask “Are you sure you want to perform this action?” say yes,
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
You can simply start your stopped db server by clicking on the Startup button. Then it
Will prompt to enter the username and password for host and db credentials.
Then it will ask “Are you sure you want to perform this action?” say yes.
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
Client-Server Configuration
In the Oracle client/server architecture, the database application and the database are
Separated into two parts: a front-end or client portion, and a back-end or server portion. The
Client executes the database application that accesses database information and interacts with
a user through the keyboard, screen, and pointing device such as a mouse. The server executes
the Oracle software and handles the functions required for concurrent, shared data access to an
Oracle database.
Although the client application and Oracle can be executed on the same computer, it
May be more efficient and effective when the client portion(s) and server portion are executed
By different computers connected via a network.
Normal listener
Oracle 11g (Unix)/SQL 2008 (XP) Installation guide
At the each and every time we start our PC, we have to execute our listener again and
Again. For that you can use fallowing command to start the listener
$ lsnrctl start
Only thing we need to configure is set the SERVER value as “shared”. Then this db
Server becomes shared server.