<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cap Data Team SGBD Blog : Oracle, SQL Server, MySQL, Sybase... &#187; huge page</title>
	<atom:link href="http://blog.capdata.fr/index.php/tag/huge-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.capdata.fr</link>
	<description>Le blog technique sur les bases de données de CAP DATA Consulting</description>
	<lastBuildDate>Wed, 01 Feb 2012 17:21:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installation Oracle 64 bits sur Red Hat 5</title>
		<link>http://blog.capdata.fr/index.php/installation-oracle-64-bits-sur-red-hat-5/</link>
		<comments>http://blog.capdata.fr/index.php/installation-oracle-64-bits-sur-red-hat-5/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 10:25:29 +0000</pubDate>
		<dc:creator>Thierry GASCARD</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[64 bits]]></category>
		<category><![CDATA[huge page]]></category>
		<category><![CDATA[redhat 5]]></category>

		<guid isPermaLink="false">https://www.alldb.fr/blogs/?p=72</guid>
		<description><![CDATA[Cet article est écrit par Thierry GASCARD.
1 Configuration système
1.1 Pré-requis matériel :
- 12 Go pour les binaires Oracle en RAID 10
- 400 Mo sur /tmp
1.2 Pré-requis logiciel :
RH 5 Entreprise 64 Bits : Oracle 10.2.0.1 Entreprise Edition Linux x86-64
Patch 10.2.0.4 pour Linux x86-64 sur le site du support Oracle 
Patch 6620371 pour Linux 64 Bits [...]]]></description>
			<content:encoded><![CDATA[<p>Cet article est écrit par <a href="mailto:tgascard@capdata.fr" target="_blank">Thierry GASCARD.</a></p>
<h1>1 Configuration système</h1>
<h2>1.1 Pré-requis matériel :</h2>
<p>- 12 Go pour les binaires Oracle en RAID 10<br />
- 400 Mo sur /tmp</p>
<h2>1.2 Pré-requis logiciel :</h2>
<p>RH 5 Entreprise 64 Bits<a href="http://www.oracle.com/technology/software/products/database/index.html" target="_blank"> : Oracle 10.2.0.1 Entreprise Edition Linux x86-64</a></p>
<p>Patch 10.2.0.4 pour Linux x86-64 sur le site du <a href="http://metalink.oracle.com" target="_blank">support Oracle </a></p>
<p>Patch 6620371 pour Linux 64 Bits sur le site du <a href="http://metalink.oracle.com">support Oracle </a></p>
<h2>1.3 Pré-requis noyau</h2>
<p>version du noyau &gt;=2.6.18-8<br />
SELinux désactivé<br />
X installé et configuré<br />
Rpms suivants installés en plus des Rpms par défaut (version minimum) :<br />
binutils-2.17.50 (x86_64)<br />
compat-db-4.2.52 (x86_64)<br />
compat-libstdc++-296(i386)<br />
compat-libstdc++-33-3.2.3 (x86_64)<br />
compat-libstdc++-33-3.2.3(i386)<br />
control-center-2.16.0 (x86_64)<br />
gcc-4.1.1 (x86_64)<br />
gcc-c++-4.1.1 (x86_64)<br />
glibc-2.5-12 (x86_64)<br />
glibc-2.5-12 (i686)<br />
glibc-common-2.5-12 (x86_64)<br />
glibc-devel-2.5-12 (x86_64)<br />
glibc-devel-2.5-12(i386)<br />
glibc-headers-2.5-12 (x86_64)<br />
ksh-20060214-1.4 (x86_64)<br />
libaio-0.3.96 (x86_64)<br />
libgcc-4.1.1(i386)<br />
libgcc-4.1.1(x86_64)<br />
libgnome-2.16.0 (x86_64)<br />
libgnomeui-2.16.0 (x86_64)<br />
libgomp-4.1.1 (x86_64)<br />
libstdc++-4.1.1 (x86_64)<br />
libstdc++-devel-4.1.1 (x86_64)<br />
libXp-1.0.0-8 (i386)<br />
make-3.81 (x86_64)<br />
sysstat-7.0.0 (x86_64)<br />
unixODBC-2.2.11-7.1 x86_64.<br />
unixODBC-devel-2.2.11-7.1 x86_64<br />
util-linux-2.13-0.50.el5 x86_64<br />
xorg-x11-xinit-1.0.2-15.el5 x86_64</p>
<p>Rem : attention à la présence de rpms 32 bits : utilisation possible de l&#8217;option force : <em>rpm -ivh &#8211;force</em> ..</p>
<h2>1.4 Paramètres noyau</h2>
<p>Modification du fichier <strong>/etc/sysctl.conf</strong> :<br />
kernel.shmmni = 4096<br />
kernel.sem= 250 32000 100 128<br />
kernel.sysrq=1<br />
kernel.msgmnb=65536<br />
kernel.msgmni=2878<br />
kernel.msgmax=8192<br />
net.ipv4.ip_local_port_range = 9000 65500<br />
net.core.rmem_default = 262144<br />
net.core.rmem_max=2097152<br />
net.core.wmem_default = 262144<br />
net.core.wmem_max = 262144<br />
fs.aio-max-nr=3145728<br />
fs.file-max=327679<br />
vm.lower_zone_protection=100<br />
kernel.shmall = 3145728<br />
kernel.shmmax = 12884901888<br />
vm.nr_hugepages = 6144</p>
<p>Modification du fichier <strong>/etc/security/limits.conf</strong> :<br />
oracle hard memlock 12582912<br />
oracle soft memlock 12582912<br />
oracle soft core unlimited<br />
oracle hard nofile 131072<br />
oracle hard nproc 131072<br />
oracle soft nproc 131072<br />
oracle soft nofile 131072<br />
oracle hard core unlimited</p>
<h1>2    Préparation système</h1>
<h2>2.1 Création groupe oinstall,dba</h2>
<p><em>root&gt; groupadd -g 55 oinstall<br />
root&gt;groupadd -g 56 dba</em></p>
<h2>2.2    Ajout utilisateur oracle</h2>
<p><em>root&gt; useradd -u 500 -g 55 -G dba -c &laquo;&nbsp;Oracle Owner&nbsp;&raquo; -d /home/oracle -s /bin/bash oracle<br />
root&gt; passwd oracle</em></p>
<p>2.2 Modification du fichier<strong> /etc/profile</strong><br />
if [ $USER = "oracle" ]; then<br />
if [ $SHELL = "/bin/ksh" ]; then<br />
ulimit -p 16384<br />
ulimit -n 65536<br />
ulimit -l 12582912<br />
else<br />
ulimit -u 16384 -n 65536 -l 12582912<br />
fi<br />
fi</p>
<h2>2.2    Création des répertoires</h2>
<p><em>root&gt; mkdir /opt/oracle<br />
root&gt; mkdir /u01<br />
root&gt; chown –R oracle:oinstall /opt/oracle<br />
root&gt; chown –R oracle:oinstall /u01<br />
root&gt; su &#8211; oracle<br />
mkdir -p /opt/oracle/product/10.2.0/db_1<br />
mkdir -p /opt/oracle/admin</em></p>
<h2>3 Installation Oracle</h2>
<h2>3.1    Décompression des zips et cpio</h2>
<p><em>$ cat 10201_database_linux_x86_64.cpio.gz | gunzip | cpio -idvm<br />
$ cat 10201_companion_linux_x86_64.cpio.gz | gunzip | cpio –idvm<br />
$unzip p6810189_10204_Linux-x86-64</em></p>
<h2>3.2   installation</h2>
<p><em>export ORACLE_BASE=/opt/oracle/product ;<br />
export ORACLE_HOME=/opt/oracle/product/10.2.0/db_1<br />
./runInstaller &amp;</em></p>
<p>Ordre d’installation<br />
1. Installation &laquo;&nbsp;Base Product (10.2.0.1)&nbsp;&raquo;<br />
2. Installation “Companion Disk” pour éviter l’erreur NCOMP lors du patch 10.2.0.4<br />
- Choisir l’option «Oracle Database 10g Products 10.2.0.1.0»<br />
3. Installation Patch (10.2.0.4)<br />
4. Installation patch 6620371 pour &laquo;&nbsp;huge page&nbsp;&raquo;<br />
<em> [oracle]$ cd 6620371/<br />
[oracle]$ /opt/oracle/product/10.2.0/db_1/OPatch/opatch apply</em></p>
<h1>4    Mise à jour de l’environnement Oracle</h1>
<h2>4.1 mise à jour du .profile_bash d&#8217;oracle</h2>
<h2>4.2 mise à jour du glogin.sql</h2>
<p>vi $ORACLE_HOME/slplus/admin/glogin.sql<br />
set sqlprompt &laquo;&nbsp;_user &#8216;on&#8217; _date &#8216;at&#8217; _connect_identifier &gt;&nbsp;&raquo;</p>
<h1>5    configuration de huge page sous linux</h1>
<p>- vm.nr_hugepages  : nombre de pages (taille de 2Mo sur linux avec grep Hugepagesize /proc/meminfo)<br />
- vm.hugetlb_shm_group : ID du groupe utilisé par oracle (dba)<br />
- kernel.shmmax supérieur à la taille de l&#8217;espace mémoire accordé aux &laquo;&nbsp;huge page&nbsp;&raquo;<br />
- memlock  : avec /etc/security/limit.conf et ulimit -l<br />
Tout est bien expliqué dans le blog d&#8217; <a href="http://arkzoyd.blogspot.com/2008/10/huge-pages-linux-et-oracle.html" target="_blank">arkzoyd</a>: à lire absolument !!!!!<strong>Continuez votre lecture sur le blog :</strong>
<ul class="similar-posts">
<li><a href="http://blog.capdata.fr/index.php/creation-et-utilisation-docfs2/" rel="bookmark" title="5 juin 2009">Création et utilisation d&#8217;OCFS2</a> (Thierry GASCARD) [Oracle]</li>
<li><a href="http://blog.capdata.fr/index.php/installation-oracle-11gr2-64-bits-sur-red-hat-5-partie-1/" rel="bookmark" title="3 mars 2010">Installation Oracle 11gR2 64 bits sur Red Hat 5 Partie 1</a> (Thierry GASCARD) [Oracle]</li>
<li><a href="http://blog.capdata.fr/index.php/se-connecter-a-sql-server-a-travers-oracle-quelle-drale-didae/" rel="bookmark" title="12 juin 2008">Se connecter à SQL Server à travers Oracle, quelle drôle d&#8217;idée ?</a> (Thierry GASCARD) [Oracle]</li>
<li><a href="http://blog.capdata.fr/index.php/installation-asm-sur-suse-10-en-64-bits-avec-multipathing-emc-powerpath/" rel="bookmark" title="5 juin 2009">Installation ASM sur SUSE 10 en 64 Bits avec multipathing (EMC Powerpath)</a> (Thierry GASCARD) [Oracle]</li>
<li><a href="http://blog.capdata.fr/index.php/utiliser-asmcmd/" rel="bookmark" title="5 juin 2009">Utiliser ASMCMD</a> (Thierry GASCARD) [Oracle]</li>
</ul>
<p><!-- Similar Posts took 3.103 ms -->
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.capdata.fr%2Findex.php%2Finstallation-oracle-64-bits-sur-red-hat-5%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.capdata.fr%2Findex.php%2Finstallation-oracle-64-bits-sur-red-hat-5%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.capdata.fr/index.php/installation-oracle-64-bits-sur-red-hat-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

