Académique Documents
Professionnel Documents
Culture Documents
Size
1014M
/*
What ever you are going to use your Automatic Memory Management
Targets later on this database, you need to have shared memory
file system size at lease equal to those settings. In my case I
have plans to use memory management targets lower then 1000M
so 1014 M of shared memory file system is sufficient for me.
But if you would like to have a bigger shared memory (/dev/shm)
size then do the following:
*/
# mount -t tmpfs tmpfs -o size=1500m /dev/shm
# df -h /dev/shm/
Filesystem
Size Used Avail Use% Mounted on
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
tmpfs
1.5G
1.5G
[fully-qualified-machine-name]
[machine-name]
/*
Where "fully-qualified-machine-name" is your
"machine_name"."domain_name"
*/
Next we need to adjust the Linux Kernel Parameters to support Oracle.
Open /etc/sysctl.conf and add the following lines:
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
soft
hard
soft
hard
nproc
nproc
nofile
nofile
2047
16384
1024
65536
Where "nproc" is the maximum number of processes available to the user and "nofiles" is the number
of open file descriptors.
Open /etc/pam.d/login and add the following line if it is already not there.
session
required
pam_limits.so
Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as
follows:
SELINUX=disabled
If you leave SELINUX=enforcing then you may get an error later while starting sqlplus:
sqlplus: error while loading shared libraries:
/usr/lib/oracle/default/client64/lib/libclntsh.so.11.1: cannot restore segment
prot after reloc: Permission denied
Now we need to make sure we have all necessary packages for Oracle. Put your Linux Media into
DVD and go to the "Server" directory.
cd /dvd_mount_point/Server
For RHEL 5 (32-bit):
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
rpm
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
binutils-2*
compat-libstdc++-33*
elfutils-libelf-0*
elfutils-libelf-devel-0*
elfutils-libelf-devel-static-0*
gcc-4*
gcc-c++-4*
glibc-2*`uname -p`*
glibc-common-2*
glibc-devel-2*
glibc-headers-2*
kernel-headers-2*
ksh-20*
libaio-0*
libaio-devel-0*
libgcc-4*
libgomp-4*
libstdc++-4*
libstdc++-devel-4*
make-3*
numactl-devel-0*
sysstat-7*
unixODBC-2*
unixODBC-devel-2*
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
-Uvih
elfutils-libelf-0*`uname -p`*
elfutils-libelf-devel-0*`uname -p`*
gcc-4*`uname -p`*
gcc-c++-4*`uname -p`*
glibc-2*`uname -p`*
glibc-2*i686*
glibc-common-2*`uname -p`*
glibc-devel-2*`uname -p`*
glibc-devel-2*i386*
glibc-headers-2*`uname -p`*
ksh-20*`uname -p`*
libaio-0*`uname -p`*
libaio-0*i386*
libaio-devel-0*`uname -p`*
libaio-devel-0*i386*
libgcc-4*`uname -p`*
libgcc-4*i386*
libstdc++-4*`uname -p`*
libstdc++-4*i386*
libstdc++-devel-4*`uname -p`*
make-3*`uname -p`*
numactl-devel-0*`uname -p`*
sysstat-7*`uname -p`*
unixODBC-2*`uname -p`*
unixODBC-2*i386*
unixODBC-devel-2*`uname -p`*
unixODBC-devel-2*i386*
NOTE: If you are using RHEL5 DVD then you should find them all in the "Server" directory in your
DVD. And if you don't find one there you may download it from the Linux vendor's Web site.
If you have your Linux distribution in 3 CDs then these will be scattered on all three CDs in the Server
directory on all CDs.
Allow the user oracle to use X server, which it will need to run Oracle Universal Installer.
# xhost +SI:localuser:oracle
Now switch to the user oracle.
# su - oracle
-- Let's see which shell is being used by the user Oracle.
$ echo $SHELL
/bin/bash
If the returned shell is bash then open ~/.bash_profile and add these lines:
# Oracle settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
# If /tmp doesn't have 1G space free then you can workaround it by
# pointing the variables TMP AND TMPDIR to a location where you have
# sufficient space.
ORACLE_HOSTNAME=localhost.localdomain; export ORACLE_HOSTNAME
ORACLE_UNQNAME=localhost; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=ORCL; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH; export PATH
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
setenv
setenv
setenv
setenv
setenv
setenv
setenv
ORACLE_HOSTNAME ora11g.home.com
ORACLE_BASE /u01/app/oracle
ORACLE_HOME $ORACLE_BASE/product/11.2.0/db_1
ORACLE_SID ora11g
ORACLE_TERM xterm
PATH /usr/sbin:$PATH
PATH $ORACLE_HOME/bin:$PATH
linux_11gR2_database_2of2.zip
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
2. Installation options like creating a database, installing oracle software only or upgrading the
database. Select "Create and configure a database".
Installation Options
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
3. Choose the system class here. Select "Server Class" it provides more advanced options.
System Class
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
5. Choose your installation Typical or Advanced. We will go with typical at this moment.
Install Type
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
6. If you choose typical install in previous screen, then you will see this page for Install Configurations.
Provide Oracle software installation location, database files location and administrator password etc.
Typical Install Configurations
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
7. Specify the Oracle install inventory location and Operating system group "oinstall".
Create Inventory
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
8. Now all prerequisite checks will be performed here and if every thing is ok you will be moved to the
install summary page. You can hit the "Back" button and come back to see the status of all the checks
performed.
Prerequisite Checks
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
10. Installation Progress. This will take several minutes and it will automatically invoke Database
COnfiguration Assistant to create a database.
Installation Progress
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
13. As a last step you will be asked to execute some configuration scripts as root.
Execute Configuration Scripts
Open another console and login as root. Execute following once logged in successfully.
# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
# /u01/app/oracle/product/11.2.0/db_1/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
COMMON ISSUES
Server parameter file or parameter file doesn't
Init.ora
Which IFILE being used
SQL> show parameter ifile
Create PFILE From SPFILE CREATE pfile=<pfile_name> FROM spfile=<spfile_name>;
CREATE PFILE='c: emp\initorabase.ora' FROMSPFILE='SPFILEORABASE.ORA';
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
startup nomount
Pour voir sa valeur
Code :Slectionner tout - Visualiser dans une fentre part
df -k /dev/shm/
SOLUTION
To configure the enterprise manager database control for your database, issue the following
commands as oracle user:
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
RedHat DVD)
Now create a folder to hold all RPMS that you want to be in the repository, e.g RPMS, and
put the needed "*.rpm" files inside,
Then do createrepo /path/to/RPMS to generate metadata.
When finished, add the repository to your yum config, e.g put the following
to /etc/yum.repos.d/local.repo
[local]
name=Local Repository Demo
baseurl=file:///media/local_repo
enabled=1
gpgcheck=0
protect=1
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html
#!/bin/sh
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export ORACLE_HOME
LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/lib:/usr/lib
export LD_LIBRARY_PATH
echo "Oracle Home: $ORACLE_HOME"
echo "LD_LIBRARY PATH: $LD_LIBRARY_PATH"
echo Starting Apache
/etc/init.d/httpd start
http://www.oracleflash.com/19/Install-Oracle-11g-Release-2-on-RHEL-5.html