<?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>Problemi e Soluzioni di un sistemista informatico &#187; oracle</title>
	<atom:link href="http://blog.maurizio.proietti.name/category/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.maurizio.proietti.name</link>
	<description>Il blog tecnico di Maurizio Proietti a Prato 59100. Info e configurazioni linux microsoft</description>
	<lastBuildDate>Wed, 23 Jun 2010 07:32:21 +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>Provvedimento del garante sugli Amministratori di sistema</title>
		<link>http://blog.maurizio.proietti.name/2009/10/29/provvedimento-del-garante-sugli-amministratori-di-sistema/</link>
		<comments>http://blog.maurizio.proietti.name/2009/10/29/provvedimento-del-garante-sugli-amministratori-di-sistema/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 07:06:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[59100]]></category>
		<category><![CDATA[AdS]]></category>
		<category><![CDATA[Amministratori di Sistema]]></category>
		<category><![CDATA[garante]]></category>
		<category><![CDATA[logserver]]></category>
		<category><![CDATA[prato]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[provvedimento]]></category>

		<guid isPermaLink="false">http://blog.maurizio.proietti.name/?p=404</guid>
		<description><![CDATA[Premetto che la ritengo una gran cagata&#8230; e completamente inutile, visto che i log NON HANNO ALCUN VALORE PROBATORIO!
Ma visto che dobbiamo adeguarci&#8230; cerchiamo di farlo a COSTO ZERO!
Io ho risolto (sto risolvendo) così:
Installo rsyslog con logging su file sul logserver
Su un server linux CentOs 5.*
yum install rsyslog*
vim /etc/sysconfig/rsyslog
sostituisco
SYSLOGD_OPTIONS=&#8221;-m  0&#8243;
con
SYSLOGD_OPTIONS=&#8221;-m 0 -r&#8221;
vim /etc/rsyslog.conf
###################################################
$template DynAuth, [...]]]></description>
			<content:encoded><![CDATA[<p>Premetto che <span style="text-decoration: line-through;">la ritengo una gran cagata&#8230; e completamente inutile, visto che</span> i log NON HANNO ALCUN VALORE PROBATORIO!</p>
<p>Ma visto che dobbiamo adeguarci&#8230; cerchiamo di farlo a COSTO ZERO!</p>
<p>Io ho risolto (sto risolvendo) così:</p>
<h2>Installo <strong>rsyslog</strong> con logging su file sul logserver</h2>
<p>Su un server <strong>linux CentOs 5.*</strong></p>
<div><span style="font-size: x-small; font-family: Arial;">yum install rsyslog*</span></div>
<div><span style="font-size: x-small; font-family: Arial;">vim /etc/sysconfig/rsyslog</span></div>
<div><span style="font-size: x-small; font-family: Arial;">sostituisco</span></div>
<div><span style="font-size: x-small; font-family: Arial;">SYSLOGD_OPTIONS=&#8221;-m  0&#8243;<br />
con<br />
SYSLOGD_OPTIONS=&#8221;-m 0 -r&#8221;</span></div>
<div><span style="font-size: x-small; font-family: Arial;">vim /etc/rsyslog.conf</span></div>
<div>###################################################</div>
<div><span style="font-size: x-small; font-family: Arial;">$template DynAuth, &#8220;/var/log/TUTTI/%$MONTH%/%$DAY%/%FROMHOST%.log&#8221;<br />
local1.*,user.*,auth.*,authpriv.*,kern.* ?DynAuth<br />
$EscapeControlCharactersOnReceive off<br />
%msg:::space-cc%<br />
*.info;mail.none;authpriv.none;cron.none                /var/log/messages<br />
authpriv.*                                              /var/log/secure<br />
mail.*                                                  -/var/log/maillog<br />
cron.*                                                  /var/log/cron<br />
*.emerg                                                 *<br />
uucp,news.crit                                          /var/log/spooler<br />
local7.*                                                /var/log/boot.log<br />
local3.*                                                /var/log/varie.log</span></div>
<div>###################################################</div>
<div>vedi<span style="font-size: x-small; font-family: Arial;"><a title="http://openskill.info/infobox.php?ID=1475" href="http://openskill.info/infobox.php?ID=1475"> http://openskill.info/infobox.php?ID=1475</a></span></div>
<div>
<h2>Abilitare il logging su tutti i server linux</h2>
<p>Su un qualsiasi server <strong>linux</strong></p>
</div>
<div>cat /etc/syslog.conf</p>
<p>auth.*;authpriv.*;local1.*          @logserver.dominio</p>
</div>
<div>Su ogni server devo poi creare utenti PERSONALI da assegnare a tutti gli AdS:</div>
<div>useradd -G wheel -m -s /bin/bash username</div>
<div>passwd username</div>
<div>Aggiungo</div>
<div>AllowUsers username</div>
<div>in /etc/ssh/sshd_config</div>
<div>lancio</div>
<div>visudo</div>
<div>e aggiungo o decommento la riga seguente:</div>
<div>%wheel  ALL=(ALL)       ALL</div>
<div>In questo modo gli AdS dovranno loggarsi con il loro account ed usare sudo</div>
<div>(consiglio il sudo -i o sudo -u per diventare root)</div>
<div>Il vantaggio dell&#8217;uso di sudo sta nel fatto che ho potuto cambiare password a root e metterla in cassaforte senza la necessità di comunicarla a tutti gli AdS (dato che sudo permette di diventare root inserendo la propria password)</div>
<div>
<h2>Abilitare il logging su Oracle 9i</h2>
</div>
<div><span style="font-size: x-small; font-family: Arial;">mkdir /var/log/oracle/<br />
chown -R oracle:dba /var/log/oracle/<br />
SHOW  PARAMETER audit<br />
ALTER SYSTEM SET audit_trail=OS SCOPE=SPFILE;<br />
ALTER  SYSTEM SET audit_sys_operations=TRUE SCOPE=SPFILE;<br />
ALTER SYSTEM SET  audit_file_dest=&#8221;/var/log/oracle&#8221; SCOPE=SPFILE;<br />
AUDIT SESSION;<br />
SHUTDOWN  IMMEDIATE<br />
startup</span></div>
<div>Occorre poi creare un cron sul logserver che filtra solo i login/logout  e prelevi i risultati.</div>
<div>Nella ver 9i infatti non è possibile inviare i log a un remote syslog</div>
<div>
<h2>Abilitare il logging su Postgres<span style="font-size: x-small; font-family: Arial;"> </span></h2>
<p><span style="font-size: x-small;"><span style="font-family: Arial;">Modifico<br />
/usr/local/pgsql/data/postgresql.conf<br />
come segue:</span></span></p>
<p><span style="font-size: x-small;"><span style="font-family: Arial;">log_destination = &#8217;syslog&#8217;</span></span></p>
<div><span style="font-size: x-small; font-family: Arial;">syslog_facility = &#8216;LOCAL1&#8242;<br />
syslog_ident = &#8216;postgres&#8217;</span></div>
<div><span style="font-size: x-small; font-family: Arial;"> </span></div>
<div><span style="font-size: x-small; font-family: Arial;">log_connections = true<br />
log_disconnections = true<br />
log_duration =  true</span></div>
</div>
<div><span style="font-size: x-small; font-family: Arial;">log_hostname = true</span></div>
<div>
<h2>Abilitare il logging su MySql</h2>
</div>
<div>Dato che mysql non supporta la scrittura di log su syslog si può risolvere nel seguente modo:</p>
<p>Nel file<br />
/etc/my.cnf</p>
<p>nella sezione<br />
[mysqld]</p>
<p>aggiungo<br />
log=/var/log/mysql.log</p>
<p>Poi lancio all&#8217;avvio il seguente comando:</p>
<p><span style="text-decoration: line-through;">tail -f /var/log/mysql.log | egrep &#8216;Connect|Quit&#8217; | logger -p LOCAL1.info -t mysql &amp;</span></p>
<p>(ringrazio Stefano Coletta (http://www.mindcreations.com/) per la precisazione:</p>
<p><em>l’egrep va corredato dall’opzione –line-buffered altrimenti non funziona  correttamente</em>)</p>
<p>tail -f /var/log/mysql.log | egrep –line-buffered &#8216;Connect|Quit&#8217; | logger -p  LOCAL1.info -t mysql &amp;</p>
<p>e lo salvo nell&#8217; rc.local</p>
<p>e lo metto anche nella sezione <strong>postrotate </strong>del <strong>logrotate </strong>in<br />
/etc/logrotate.d/mysql-log-rotate</p>
<p>Altrimenti, come suggeritomi dal buon <em>Alessandro Corbelli</em> di <em><a href="http://www.web4web.it"><span class="moz-txt-link-abbreviated">www.web4web.it</span></a></em> si possono usare le named pipe:</p>
<p><a href="http://www.linuxjournal.com/article/2156">http://www.linuxjournal.com/article/2156</a></p>
<p><a href="http://www.linuxjournal.com/content/using-named-pipes-fifos-bash">http://www.linuxjournal.com/content/using-named-pipes-fifos-bash</a></p>
<p><em>Non loggo tutto su file ma ho creato una named pipe ed in inittab ho inserito, in respawn, uno script<span> </span> così composto<span> </span></em></p>
<p><em><span> </span>while [ true ]; do<br />
tail -f &lt;namedpipe&gt; | egrep &#8216;Connect|Quit&#8217; | logger&#8230;<br />
done</em></p>
<p><em>Le prestazioni sono &#8216;abbastanza&#8217; decenti.<br />
Il while sarebbe anche superfluo&#8230;</em></p>
<p>Occorre fare attenzione a un particolare:</p>
<p><strong>Se si utilizza la named pipe con lo script in inittab, nello script NON deve esserci il tail, ma il cat.</strong></p>
<p><strong>Quindi lo script diventa:</strong></p>
<p>while [ true ]; do<br />
<strong>cat</strong> &lt;namedpipe&gt; | egrep &#8216;Connect|Quit&#8217; | logger -p LOCAL1.info -t mysql<br />
done</p>
<p><em><br />
</em></p>
</div>
<div>
<h2>Abilitare il logging sui server Windows</h2>
<p>Sui server <strong>windows</strong></p>
</div>
<div>
<p>Ho usato snare:</p>
<p>SnareSetup-3.1.5-MultiArch.exe</p>
<p><a href="http://www.intersectalliance.com/projects/SnareWindows/index.html">http://www.intersectalliance.com/projects/SnareWindows/index.html</a></p>
<p>Come “Destination snare server address” ho messo lo stesso ip del log server e come porta la 514</p>
<h2>Abilitare il logging su Exchange</h2>
<div>Per abilitare il logging sel mailserver:</p>
<p><strong>Gestore sistema Exchange</strong> -&gt; Gruppi amministrativi -&gt; &lt;nome&gt;  -&gt; server -&gt; NomeServer -&gt; tasto dx sul server -&gt; registrazione Diagnostica<br />
-&gt; MSExchangeIS -&gt; private o cassetta postale -&gt; Accessi = minima; Controllo accessi = minima (oppure logons=minima e access control = minima)</p>
<p>Poi su <strong>snare</strong>:<br />
Creo un nuovo oggetto:<br />
Identify the high level event = Any event(s)<br />
Event ID Search Term = 1009,1016,1013,1029<br />
General Search Term = *<br />
Select the User Match Type = Include<br />
User Search Term = *admin*<br />
Identify the event types to be captured = Success Audit + Failure Audit<br />
Identify the event logs = Security  + Application<br />
Select the Alert Level = Critical</p>
</div>
<div>
<h2>Abilitare il logging sul FileServer</h2>
</div>
<div>Creo un nuovo oggetto:<br />
Identify the high level event = Any event(s)<br />
Event ID Search Term = 538,540,552,551,682,683,528<br />
General Search Term = *<br />
Select the User Match Type = Include<br />
User Search Term = *admin*<br />
Identify the event types to be captured = TUTTI<br />
Identify the event logs = Security<br />
Select the Alert Level = Critical</div>
<h2>Immodificabilità dei log</h2>
<p>Ogni notte, sul logserver, parte un cron che mi crea un md5 di tutti i file di log</p>
<p>Lo chiamo Z_calcola_md5.sh in modo che il cron lo chiama da ultimo DOPO il logrotate</p>
<p>cat /etc/cron.daily/Z_calcola_md5.sh</p>
<p>########################################<br />
#!/bin/bash<br />
TMP=`/bin/date &#8211;date=&#8217;1 days ago&#8217; +%m/%d`<br />
FILE_NAME=&#8221;MD5-`/bin/date &#8211;date=&#8217;1 days ago&#8217; +%m-%d`.md5&#8243;<br />
DEST_DIR01=&#8221;/var/log/TUTTI&#8221;<br />
DEST_DIR=&#8221;$DEST_DIR01/$TMP/&#8221;<br />
MD5_DIR=&#8221;/var/log/TUTTI/MD5/&#8221;<br />
cd $MD5_DIR<br />
find  $DEST_DIR  -type f -exec md5sum {} \;  &gt; $FILE_NAME<br />
#########################################</p>
<p>A questo punto posso creare un tar.gz e salvare i log su un dvd o effettuarne un backup</p>
</div>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 1995px; width: 1px; height: 1px;">
<p><a href="http://www.linuxjournal.com/article/2156">http://www.linuxjournal.com/article/2156</a></p>
<p><a href="http://www.linuxjournal.com/content/using-named-pipes-fifos-bash">http://www.linuxjournal.com/content/using-named-pipes-fifos-bash</a></p>
</div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.maurizio.proietti.name/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.maurizio.proietti.name/2009/10/29/provvedimento-del-garante-sugli-amministratori-di-sistema/feed/</wfw:commentRss>
		<slash:comments>80</slash:comments>
		</item>
		<item>
		<title>Quicker Database Oracle Installs on Unbrekable Linux with the oracle-validated RPM</title>
		<link>http://blog.maurizio.proietti.name/2007/06/06/quicker-database-oracle-installs-on-unbrekable-linux-with-the-oracle-validated-rpm/</link>
		<comments>http://blog.maurizio.proietti.name/2007/06/06/quicker-database-oracle-installs-on-unbrekable-linux-with-the-oracle-validated-rpm/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 22:03:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://blog.maurizio.proietti.name/2007/06/06/quicker-database-oracle-installs-on-unbrekable-linux-with-the-oracle-validated-rpm/</guid>
		<description><![CDATA[Fonte: http://www.orablogs.com/sergio/archives/linux/index.html
In an earlier post I wrote about the Oracle channel on the Unbreakable Linux Network (ULN) and how to subscribe to it. This channel just got a great new addition in the form of the oracle-validated RPM. When you install this RPM using up2date and ULN, it will automatically install all packages required by [...]]]></description>
			<content:encoded><![CDATA[<p>Fonte:<br /> <a class="moz-txt-link-freetext" href="http://www.orablogs.com/sergio/archives/linux/index.html">http://www.orablogs.com/sergio/archives/linux/index.html</a></p>
<p>In an earlier post I <a  href="http://www.orablogs.com/sergio/archives/001882.html">wrote about the Oracle channel on the Unbreakable Linux Network (ULN) and how to subscribe to it</a>. This channel just got a great new addition in the form of the oracle-validated RPM. When you install this RPM using up2date and ULN, it will automatically install all packages required by the Oracle database installer. </p>
<pre class="code">[root@localhost ~]# up2date --install oracle-validated  Fetching Obsoletes list for channel: el4_i386_addons...  Fetching Obsoletes list for channel: el4_i386_oracle...  Fetching Obsoletes list for channel: el4_i386_latest...  Fetching rpm headers... ########################################  Name                                    Version        Rel      ---------------------------------------------------------- oracle-validated                        1.0.0          3.el4             i386     Testing package set / solving RPM inter-dependencies... ######################################## oracle-validated-1.0.0-3.el ########################## Done.                    elfutils-libelf-devel-0.97. ########################## Done.                    gcc-3.4.6-3.1.0.1.i386.rpm: ########################## Done.                    gcc-c++-3.4.6-3.1.0.1.i386. ########################## Done.                    glibc-devel-2.3.4-2.25.i386 ########################## Done.                    glibc-headers-2.3.4-2.25.i3 ########################## Done.                    glibc-kernheaders-2.4-9.1.9 ########################## Done.                    libstdc++-devel-3.4.6-3.1.0 ########################## Done.                    sysstat-5.0.5-11.rhel4.i386 ########################## Done.                    Preparing              ########################################### [100%]  Installing...    1:libstdc++-devel        ########################################### [100%]    2:glibc-kernheaders      ########################################### [100%]    3:glibc-headers          ########################################### [100%]    4:glibc-devel            ########################################### [100%]    5:gcc                    ########################################### [100%]    6:gcc-c++                ########################################### [100%]    7:sysstat                ########################################### [100%]    8:elfutils-libelf-devel  ########################################### [100%]    9:oracle-validated       ########################################### [100%] insmod /lib/modules/2.6.9-42.EL/kernel/drivers/net/e1000/e1000.ko  insmod /lib/modules/2.6.9-42.EL/kernel/drivers/char/hangcheck-timer.ko hangcheck_reboot=1 The following packages were added to your selection to satisfy dependencies:  Name                                    Version        Release -------------------------------------------------------------- elfutils-libelf-devel                   0.97.1         3                    gcc                                     3.4.6          3.1.0.1              gcc-c++                                 3.4.6          3.1.0.1              glibc-devel                             2.3.4          2.25                 glibc-headers                           2.3.4          2.25                 glibc-kernheaders                       2.4            9.1.98.EL            libstdc++-devel                         3.4.6          3.1.0.1              sysstat                                 5.0.5          11.rhel4              [root@localhost ~]#  </pre>
<p> Named after <a  href="http://www.oracle.com/technology/tech/linux/validated-configurations/index.html">Validated Configurations</a>, oracle-validated also creates an oracle OS user and an oinstall and dba group. Kernel parameters are also set properly, ensuring that the Oracle Universal Installer will proceed without complaints. Very nice! </p>
<pre class="moz-signature" cols="50">--  principio di Napoleone: non attribuire a malintenzione cio' che puo' essere semplicemente spiegato come imbecillita' MaoX Blog: Problemi e soluzioni di un sistemista informatico: <a class="moz-txt-link-freetext" href="http://maox.blogspot.com">http://maox.blogspot.com</a></pre>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.maurizio.proietti.name/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.maurizio.proietti.name/2007/06/06/quicker-database-oracle-installs-on-unbrekable-linux-with-the-oracle-validated-rpm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installation of Oracle 9i (R2) on (Oracle) Enterprise Linux</title>
		<link>http://blog.maurizio.proietti.name/2007/06/06/installation-of-oracle-9i-r2-on-oracle-enterprise-linux/</link>
		<comments>http://blog.maurizio.proietti.name/2007/06/06/installation-of-oracle-9i-r2-on-oracle-enterprise-linux/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 22:01:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://blog.maurizio.proietti.name/2007/06/06/installation-of-oracle-9i-r2-on-oracle-enterprise-linux/</guid>
		<description><![CDATA[ Installation of Oracle 9i (R2) on (Oracle) Enterprise Linux
 fonte: http://ivan.kartik.sk/oracle/install_ora9_elinux.html 
 This paper (HOWTO) describes step-by-step installation of Oracle 9i database software on Enteprise Linux. Installation steps are valid for 32 bit (x86) and 64 bit (x86_64) architectures. 
 This paper covers following steps:

Pre-Instalation Tasks
Download &#38; Install
Post-Instalation Tasks
Common Installation Errors

 
Pre-Instalation Tasks
 1. [...]]]></description>
			<content:encoded><![CDATA[<div class="contentHeader" align="left"> Installation of Oracle 9i (R2) on (Oracle) Enterprise Linux</p>
<p> fonte:<br /> <a class="moz-txt-link-freetext" href="http://ivan.kartik.sk/oracle/install_ora9_elinux.html">http://ivan.kartik.sk/oracle/install_ora9_elinux.html</a> </div>
<p> This paper (HOWTO) describes step-by-step installation of Oracle 9i database software on Enteprise Linux. Installation steps are valid for 32 bit (x86) and 64 bit (x86_64) architectures. </p>
<p> This paper covers following steps:
<ul>
<li><a  href="http://ivan.kartik.sk/oracle/install_ora9_elinux.html#st1">Pre-Instalation Tasks</a></li>
<li><a  href="http://ivan.kartik.sk/oracle/install_ora9_elinux.html#st2">Download &amp; Install</a></li>
<li><a  href="http://ivan.kartik.sk/oracle/install_ora9_elinux.html#st3">Post-Instalation Tasks</a></li>
<li><a  href="http://ivan.kartik.sk/oracle/install_ora9_elinux.html#st4">Common Installation Errors</a></li>
</ul>
<p> <br />
<h3><a name="st1">Pre-Instalation Tasks</a></h3>
<p> 1. Create oracle User Account</p>
<p> Login as root and create te user oracle which belongs to dba group.
<div class="contentCommand">su -<br /> # groupadd dba<br /> # groupadd oinstall<br /> # useradd -g oinstall -G dba oracle </div>
<p> 2. Setting System parameters<br /> Edit the /etc/sysctl.conf and add following lines:
<div class="contentCommand">kernel.sem = 250 32000 100 128<br /> kernel.shmmax = 2147483648<br /> kernel.shmmni = 128<br /> kernel.shmall = 2097152<br /> kernel.msgmnb = 65536<br /> kernel.msgmni = 2878<br /> fs.file-max = 65536<br /> net.ipv4.ip_local_port_range = 1024 65000 </div>
<p> <font color="red">Note: You need execute &#8220;sysctl -p&#8221; or reboot system to apply above settings.</font> </p>
<p> Edit the /etc/security/limits.conf file and add following lines:
<div class="contentCommand">* &#8211; nproc 16384<br /> * &#8211; nofile 16384 </div>
<p> 3. Setting Oracle Enviroment<br /> Edit the /home/oracle/.bash_profile file and add following lines: </p>
<p> <font color="red">Use this settings for 32bit (x86) architecture.</font>
<div class="contentCommand">ORACLE_BASE=/opt/oracle<br /> ORACLE_HOME=$ORACLE_BASE/920<br /> ORACLE_SID=MYORACLE<br /> LD_LIBRARY_PATH=$ORACLE_HOME/lib<br /> LD_ASSUME_KERNEL=2.4.19<br /> PATH=$<a class="moz-txt-link-freetext" href="PATH:$ORACLE_HOME/bin">PATH:$ORACLE_HOME/bin</a></p>
<p> export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_ASSUME_KERNEL PATH </p></div>
<p> <font color="red">Use this settings for 64bit (x86_64) architecture.</font>
<div class="contentCommand">ORACLE_BASE=/opt/oracle<br /> ORACLE_HOME=$ORACLE_BASE/920<br /> ORACLE_SID=MYORACLE<br /> LD_LIBRARY_PATH=$ORACLE_HOME/lib<br /> LD_LIBRARY_PATH_32=$ORACLE_HOME/lib32<br /> PATH=$<a class="moz-txt-link-freetext" href="PATH:$ORACLE_HOME/bin">PATH:$ORACLE_HOME/bin</a></p>
<p> export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_LIBRARY_PATH_32 PATH </p></div>
<p> Save the .bash_profile and execute following commands for load new enviroment:
<div class="contentCommand">cd /home/oracle<br /> . .bash_profile </div>
<p> 4. Create base directory for Oracle</p>
<p> Login as root and create base directory for Oracle ($ORACLE_BASE).
<div class="contentCommand">su -<br /> # cd /opt<br /> # mkdir oracle<br /> # chown oracle:dba oracle </div>
<p> <br />
<h3><a name="st2">Download &amp; Install</a></h3>
<p> 1. Install required .rpm packages</p>
<p> Some additional packages are required for succesful instalation of Oracle software. To check whether required packages are installed on your operating system one of following commands:
<div class="contentCommand">rpm -q compat-db compat-gcc-32 compat-gcc-32-c++ compat-libcom_err compat-libcwait compat-libgcc-296 compat-libstdc++-296 compat-libstdc++-33 gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers glibc-kernheaders libgcc make </div>
<p> or</p>
<div class="contentCommand"> rpm -qa &#8211;qf &#8216;%{name}-%{version}-%{release}.%{arch}\n&#8217;|egrep &#8216;compat|glibc|gcc&#8217;|sort </div>
<p> Required packages <font color="red">for 32bit (x86)</font> architecture:<br /> 
<div class="contentCommand"> binutils-2.15.92.0.2-21<br /> compat-db-4.1.25-9<br /> compat-gcc-32-3.2.3-47.3<br /> compat-gcc-32-c++-3.2.3-47.3<br /> compat-libcom_err-1.0-5<br /> compat-libcwait-2.1-1<br /> compat-libgcc-296-2.96-132.7.2<br /> compat-libstdc++-296-2.96-132.7.2<br /> compat-libstdc++-33-3.2.3-47.3<br /> gcc-3.4.6-3.1<br /> gcc-c++-3.4.6-3.1<br /> glibc-2.3.4-2.25<br /> glibc-common-2.3.4-2.25<br /> glibc-devel-2.3.4-2.25<br /> glibc-headers-2.3.4-2.25<br /> glibc-kernheaders-2.4-9.1.98.EL<br /> libgcc-3.4.6-3.1<br /> make-3.80-6.EL4.i386 </div>
<p> <font color="red">Note: Package compat-libcwait-2.1-1.i386.rpm is not included in Enterpise Linux installation media. You can download this package <a href="http://oss.oracle.com/projects/compat-oracle/files/RedHat/"  target="_blank">here</a>. </font></p>
<p> Required packages <font color="red">for 64bit (x86_64)</font> architecture:<br /> 
<div class="contentCommand"> binutils-2.15.92.0.2-21.x86_64<br /> compat-db-4.1.25-9.i386<br /> compat-db-4.1.25-9.x86_64<br /> compat-gcc-32-3.2.3-47.3.x86_64<br /> compat-gcc-32-c++-3.2.3-47.3.x86_64<br /> compat-libcom_err-1.0-5.i386<br /> compat-libcom_err-1.0-5.x86_64<br /> compat-libgcc-296-2.96-132.7.2.i386<br /> compat-libstdc++-296-2.96-132.7.2.i386<br /> compat-libstdc++-33-3.2.3-47.3.i386<br /> compat-libstdc++-33-3.2.3-47.3.x86_64<br /> gcc-3.4.6-3.1.x86_64<br /> gcc-c++-3.4.6-3.1.x86_64<br /> glibc-2.3.4-2.25.i686<br /> glibc-2.3.4-2.25.x86_64<br /> glibc-common-2.3.4-2.25.x86_64<br /> glibc-devel-2.3.4-2.25.i386<br /> glibc-devel-2.3.4-2.25.x86_64<br /> glibc-headers-2.3.4-2.25.x86_64<br /> glibc-kernheaders-2.4-9.1.98.EL.x86_64<br /> libgcc-3.4.6-3.1.i386<br /> libgcc-3.4.6-3.1.x86_64<br /> make-3.80-6.EL4.x86_64 </div>
<p> Install the required packages using the rpm command:
<div class="contentCommand"># rpm -ivh <i>&lt;package_name&gt;.rpm</i> </div>
<p> If all required packages were installed succesfuly then login as root and switch the GCC 3.4 compiler binary with GCC 3.2 compiler binary as following:
<div class="contentCommand">su -<br /> # cd /usr/bin<br /> # mv ./gcc ./gcc34<br /> # mv ./gcc32 ./gcc </div>
<p> 2. Download the Oracle 9i (9.2.0.4) software from <a  href="http://www.oracle.com/technology/software/products/oracle9i/index.html"  target="_blank">Oracle website</a> for apropriate architecture.<br /> Direct link to <a  href="http://www.oracle.com/technology/software/products/oracle9i/htdocs/linuxsoft.html"  target="_blank">Oracle Database 32bit (x86)</a><br /> Direct link to <a  href="http://www.oracle.com/technology/software/products/oracle9i/htdocs/linuxx8664soft.html"  target="_blank">Oracle Database 64bit (x86_64)</a></p>
<p> Extract the files using following command (<font color="red">for 32bit</font> architecture):
<div class="contentCommand">gunzip ship_9204_linux_disk1.cpio.gz<br /> gunzip ship_9204_linux_disk2.cpio.gz<br /> gunzip ship_9204_linux_disk3.cpio.gz</p>
<p> cpio -idmv &lt; ship_9204_linux_disk1.cpio<br /> cpio -idmv &lt; ship_9204_linux_disk2.cpio<br /> cpio -idmv &lt; ship_9204_linux_disk3.cpio </div>
<p> or <font color="red">for 64bit</font> architecture:
<div class="contentCommand">gunzip amd64_db_9204_Disk1.cpio.gz<br /> gunzip amd64_db_9204_Disk2.cpio.gz<br /> gunzip amd64_db_9204_Disk3.cpio.gz</p>
<p> cpio -idmv &lt; amd64_db_9204_Disk1.cpio<br /> cpio -idmv &lt; amd64_db_9204_Disk2.cpio<br /> cpio -idmv &lt; amd64_db_9204_Disk3.cpio </div>
<p> When all archives were extracted you&#8217;ve got three directories Disk1, Disk2 and Disk3.</p>
<p> 3. Start the Oracle software installation process.</p>
<p> Now the system is prepared for Oracle software installation. To start the installation process execute the following commands (as oracle):
<div class="contentCommand">cd Disk1<br /> ./runInstaller </div>
<p> <br />
<h3><a name="st3">Post-Instalation Tasks</a></h3>
<p> 1. Switch back the GCC binaries
<div class="contentCommand">su -<br /> # cd /usr/bin<br /> # mv ./gcc ./gcc32<br /> # mv ./gcc34 ./gcc </div>
<p> 2. (Optional) You may consider to use rlwrap for comfortable work with sqlplus. RPM package for RedHat compatible (x86) distribution you can download <a  href="http://ivan.kartik.sk/oracle/download_from.php?site_id=5">here</a>. RPM for x86_64 architecture you can download <a  href="http://ivan.kartik.sk/oracle/download_from.php?site_id=9">here</a>.
<div class="contentCommand"> su -<br /> # rpm -ivh rlwrap-0.24-rh.i386.rpm<br /> # exit<br /> echo &#8220;alias sqlplus=&#8217;rlwrap sqlplus&#8217;&#8221; &gt;&gt; /home/oracle/.bash_profile<br /> . /home/oracle/.bash_profile </div>
<p> <br />
<h3><a name="st4">Common Installation Errors</a></h3>
<p> <font color="red"> Unable to load native library: /tmp/OraInstall2006-12-20_11-11-34AM/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference </font><br /> Solution: Install new JRE 1.3.1 version. Edit the Disk1/install/linux/oraparam.ini and set path to new JRE for JRE_LOCATION variable. For more information see Download &amp; Install section. </p>
<p> <font color="red">/opt/oracle/jre/1.1.8/bin/../lib/i686/native_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so) </font><br /> Solution: Set the LD_ASSUME_KERNEL=2.4.19 </p>
<p> <font color="red"> /tmp/OraInstall2006-12-20_11-38-19AM/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory </font><br /> Solution: Install the xorg-x11-deprecated-libs package. </p>
<p> <font color="red">Starting Oracle Intelligent Agent&#8230;/opt/oracle/920/bin/dbsnmpwd: line 156: 10736 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* &gt;&gt;$DBSNMP_WDLOGFILE 2&gt;&amp;1<br /> /opt/oracle/920/bin/dbsnmpwd: line 156: 10749 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* &gt;&gt;$DBSNMP_WDLOGFILE 2&gt;&amp;1<br /> /opt/oracle/920/bin/dbsnmpwd: line 156: 10761 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* &gt;&gt;$DBSNMP_WDLOGFILE 2&gt;&amp;1<br /> /opt/oracle/920/bin/dbsnmpwd: line 156: 10773 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* &gt;&gt;$DBSNMP_WDLOGFILE 2&gt;&amp;1 </font><br /> Solution: Download and apply patch nr.: 3238244 from <a class="moz-txt-link-freetext" href="http://metalink.oracle.com">http://metalink.oracle.com</a>. </p>
<p> <font color="red">Exception in thread &#8220;main&#8221; java.lang.InternalError: Can&#8217;t connect to X11 window server using &#8216;localhost:0.0&#8242; as the value of the DISPLAY variable. </font><br /> Solution: Execute &#8220;export DISPLAY=:0.0&#8243; (as oracle user) and &#8220;xhost +&#8221; as user who has opened X session (for example logged in KDE, GNOME, etc.). If the value is other than 127.0.0.1 or localhost you should &#8220;xhost +&#8221; on client machine. </p>
<p> <font color="red"> Error in invoking target install of makefile /opt/oracle/920/ctx/lib/ins_ctx.mk<br /> Error in invoking target install of makefile /opt/oracle/920/precomp/lib/ins_precomp.mk<br /> Error in invoking target install of makefile /opt/oracle/920/plsql/lib/ins_plsql.mk<br /> Error in invoking ntcontab.o of makfile /opt/oracle/920/network/lib/ins_net_client.mk </font><br /> Solution: Some of required packages is missing (not installed on your OS) or GCC binaries wasn&#8217;t changed. For more information see Download &amp; Install section. </p>
<p> <center><br /> </center>
<pre class="moz-signature" cols="50">--  principio di Napoleone: non attribuire a malintenzione cio' che puo' essere semplicemente spiegato come imbecillita' MaoX Blog: Problemi e soluzioni di un sistemista informatico: <a class="moz-txt-link-freetext" href="http://maox.blogspot.com">http://maox.blogspot.com</a></pre>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.maurizio.proietti.name/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.maurizio.proietti.name/2007/06/06/installation-of-oracle-9i-r2-on-oracle-enterprise-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
