<?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>Codedrop™ Weblog &#187; Fedora</title>
	<atom:link href="http://www.codedrop.ca/blog/archives/tag/fedora/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codedrop.ca/blog</link>
	<description>Drop'n some code and other tech tidbits...</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:45:02 +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>Oracle 10.2.0.1 installation on Fedora 8</title>
		<link>http://www.codedrop.ca/blog/archives/49</link>
		<comments>http://www.codedrop.ca/blog/archives/49#comments</comments>
		<pubDate>Wed, 23 Jul 2008 01:53:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=49</guid>
		<description><![CDATA[Below are the installation note&#8217;s I captured in installing Oracle10.2.0.1 on a Fedora 8 workstation.  For some reason installations ofOracle on Fedora linux in past never went as smooth as hoped.. I washowever relatively happy with how things turned out on F8 and its niceto see some of the old problems, like hanging during [...]]]></description>
			<content:encoded><![CDATA[<p>Below are the installation note&#8217;s I captured in installing Oracle<br />10.2.0.1 on a Fedora 8 workstation.  For some reason installations of<br />Oracle on Fedora linux in past never went as smooth as hoped.. I was<br />however relatively happy with how things turned out on F8 and its nice<br />to see some of the old problems, like hanging during installation, went<br />away&#8230;  </p>
<p>##########################################<br /># Oracle 10g Standard &#8211; Fedora 8 Linux Installation Instructions<br /># Author: Greg Roll<br /># Date:   July 14th, 2008<br />#<br /># These instructions have been parsed down to the bare requirements to <br /># install Oracle 10g Standard on a typical Fedora 8 installation.<br />#<br />##########################################</p>
<p>##########################################<br />## Install / Update required system packages.<br />##########################################<br />yum install libaio<br />yum install libXp<br />yum update libxcb (must be 1.0-4 or greater!)</p>
<p>##########################################<br />## Configuring the Linux Kernel Parameters as per Oracle<br />## requirements.<br />##########################################</p>
<p>The Linux kernel is a wonderful thing. Unlike most other *NIX systems,<br />Linux allows modification of most kernel parameters while the system is<br />up and running. There&#8217;s no need to reboot the system after making<br />kernel parameter changes. Oracle Database 10g Release 2 requires the<br />kernel parameter settings shown below. The values given are minimums,<br />so if your system uses a larger value, don&#8217;t change it.</p>
<p>kernel.shmall = 2097152<br />kernel.shmmax = 536870912<br />kernel.shmmni = 4096<br />kernel.sem = 250 32000 100 128<br />fs.file-max = 65536<br />net.ipv4.ip_local_port_range = 1024 65000<br />net.core.rmem_default=262144<br />net.core.wmem_default=262144<br />net.core.rmem_max=262144<br />net.core.wmem_max=262144</p>
<p>On my base fedora 8 installation I found I only had to change a 2 options:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br />/etc/sysctl.conf<br /> &#8212;&#8212;&#8212;&#8212;&#8212;<br />add:<br />net.ipv4.ip_local_port_range = 1024 65000<br />kernel.sem = 250 32000 100 128`</p>
<p>Execute the following command to change the current values of the kernel<br />parameters:<br />/sbin/sysctl -p</p>
<p>##########################################<br />## Setup required user / groups.<br />##########################################</p>
<p>/usr/sbin/groupadd oinstall<br />/usr/sbin/groupadd dba<br />/usr/sbin/useradd -g oinstall -G dba oracle<br />passwd oracle</p>
<p>[root@uberdev14 ~]# id oracle<br />uid=2090(oracle) gid=4001(oinstall) groups=4001(oinstall),4002(dba) context=unconfined_u:system_r:unconfined_t:s0<br />[root@uberdev14 ~]# id nobody<br />uid=99(nobody) gid=99(nobody) groups=99(nobody) context=unconfined_u:system_r:unconfined_t:s0<br />[root@uberdev14 ~]# </p>
<p>##########################################<br />## Update user limits.<br />##########################################</p>
<p>Oracle recommends setting limits on the number of processes and open files each Linux account may use.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />/etc/security/limits.conf<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />Add the following 4 lines before the end of file comment:<br />oracle soft nproc 2047<br />oracle hard nproc 16384<br />oracle soft nofile 1024<br />oracle hard nofile 65536</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br />/etc/pam.d/login<br />&#8212;&#8212;&#8212;&#8212;&#8212;-<br />Add the following 2 lines before the pame_selinux.so open rule<br />session    required     /lib/security/pam_limits.so<br />session    required     pam_limits.so  </p>
<p>##########################################<br /># Setup user profile.<br />##########################################</p>
<p># Backup the original system profile.<br />[root@udev10lin01 etc]# cp -p profile profile.ORIG</p>
<p># Modify the system files.<br />&#8212;&#8212;&#8212;&#8212;<br />/etc/profile<br />&#8212;&#8212;&#8212;&#8212;</p>
<p>Edit and add following to bottom:</p>
<p>if [ $USER = "oracle" ]; then<br />  if [ $SHELL = "/bin/ksh" ]; then<br />    ulimit -p 16384<br />    ulimit -n 65536<br />  else<br />    ulimit -u 16384 -n 65536<br />  fi<br />fi</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />/home/oracle/.bash_profile<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Edit and add following:</p>
<p># .bash_profile</p>
<p># Get the aliases and functions<br />if [ -f ~/.bashrc ]; then<br />        . ~/.bashrc<br />fi</p>
<p># User specific environment and startup programs</p>
<p>set -o vi<br />export ORACLE_SID=IVSD1<br />export ORACLE_BASE=/opt/app/oracle<br />export ORACLE_HOME=${ORACLE_BASE}/product/10.2.0/DB1<br />export LD_LIBRARY_PATH=${ORACLE_HOME}/lib:/usr/lib:/lib<br />export PATH=$PATH:${ORACLE_HOME}/bin:/sbin/:/usr/sbin</p>
<p>unset USERNAME</p>
<p>stty erase ^?</p>
<p>#LD_ASSUME_KERNEL=2.2.5; export LD_ASSUME_KERNEL<br />umask 022</p>
<p>##########################################<br /># Create directories for Oracle installation.<br />##########################################</p>
<p>¦ software directories:<br />cd /opt<br />mkdir -p app/oracle<br />chown -R oracle.oinstall app/oracle/<br />chmod -R 775 app/oracle/</p>
<p>ls -l app/<br />total 4<br />drwxrwxr-x  2 oracle oinstall 4096 Apr 13 13:16 oracle<br />[root@udev10lin01 opt]#</p>
<p>¦ Database file directory:<br />mkdir /u01/oradata<br />chown oracle:oinstall /u01/oradata<br />chmod 775 /u01/oradata</p>
<p>¦ Recovery file directory (flash recovery area):<br />mkdir /u01/flash_recovery_area<br />chown oracle:oinstall /u01/flash_recovery_area<br />chmod 775 /u01/flash_recovery_area</p>
<p>##########################################<br /># Install Oracle base software.<br />##########################################</p>
<p>[oracle@udev10lin01 ~]$ cd /opt/app/oracle/software/<br />[oracle@udev10lin01 software]$ ls -l<br />total 653712<br />-rw-r&#8211;r&#8211;  1 oracle oinstall 668734007 May 18 10:54 10201_database_linux32.zip</p>
<p>unzip 10201_database_linux32.zip</p>
<p>[oracle@udev10lin01 software]$ ls -l<br />total 653712<br />-rw-r&#8211;r&#8211;  1 oracle oinstall 668734007 May 18 10:54 10201_database_linux32.zip<br />drwxr-xr-x  6 oracle oinstall      4096 Jun 12 14:50 database<br />[oracle@udev10lin01 software]$</p>
<p>##########################################<br /># Run Oracle installer.<br />##########################################</p>
<p>** First disable X11 access controls by running xhost+ as your current gnome/kde<br />user.</p>
<p>cd /opt/app/oracle/software/database<br />    ./runInstaller -silent -responseFile /opt/app/oracle/software/uberdev-f8-oracle10.2.0.2-recorded.rsp  <br />                   -jreLoc /opt/jdk1.6.0_06 <br />                   -IgnoreSysPrereqs</p>
<p>    &#8211; Select default inventory directory and &#8216;oracle&#8217; user.<br />    &#8211; Select typical install.<br />    &#8211; Select Standard Edition.<br />    &#8211; Accept remaining defaults.<br />    &#8211; Accept warning on product specific prerequisite checks.<br />    &#8211; Select create a database.<br />    &#8211; Accept create general purpose database.<br />    &#8211; enter dbname &#8217;sample&#8217; sid &#8217;sample&#8217;, select Unicode format and enable create database with sample schemas.<br />    &#8211; accept defaults until you get to the password definition screen<br />    &#8211; define password of &#8216;password&#8217; for all default accounts (SYS, SYSTEM,<br />      SYSMAN, DBSNMP)<br />    &#8211; setup &#8216;dba&#8217; as privileged system groups.. if were not defined use<br />      default oracle group.</p>
<p>** NOTES **</p>
<p>=======================================<br />Creating an Oracle Response File for Automated Installs<br />=======================================<br />Response<br />files can be created by running the software in record mode or by<br />manually editing a sample response file. Here&#8217;s a basic demo:</p>
<p>   1. Start the OUI with this command to create the response file:<br />        ./runInstaller -IgnoreSysPrereqs <br />                  -jreLoc /opt/jdk1.6.0_06 <br />                  -record <br />                  -destinationFile /opt/app/oracle/software/uberdev-f8-oracle10.2.0.2-recorded.rsp<br />   2. Make all the selections you want to (source destination, home, home name, products).<br />   3. When you get to the Summary screen, instead of clicking on Install, click on Cancel.</p>
<p>4. Examine the resulting response file created in tmp/recorded.rsp. If<br />desired, you can manually edit this file as long as you adhere to the<br />prescribed format (see documentation).<br />   5. Now perform the silent installation like this:<br />        ./runInstaller -silent -responseFile /opt/app/oracle/software/uberdev-f8-oracle10.2.0.2-recorded.rsp</p>
<p>The progress of the installation will be reported as the script is being run.</p>
<p>If you have a problem with the installation due to incorrect entries in the response file, the installation will fail with a diagnostic message. Further information can be found in the oraInventory/logs directory. Logs with names in the format installActions-<date-timestamp>.log and silentInstall<date-timestamp>.log are created each time the OUI is run using a response file.</p>
<p>- Might need to increase available swap space.<br />Checking available swap space requirements &#8230;<br />Expected result: 8108MB<br />Actual Result: 2047MB</date-timestamp></date-timestamp></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Oracle+10.2.0.1+installation+on+Fedora+8+http://zdm2o.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Oracle+10.2.0.1+installation+on+Fedora+8+http://zdm2o.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/49/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating A Local Mirror (Fedora)</title>
		<link>http://www.codedrop.ca/blog/archives/36</link>
		<comments>http://www.codedrop.ca/blog/archives/36#comments</comments>
		<pubDate>Thu, 06 Sep 2007 17:54:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=36</guid>
		<description><![CDATA[Create a script that you&#8217;ll be able to setup as a cron entry to run daily.  For a FC7 mirror I used the following:

#!/bin/bash
ARCH=i386   # Set to the architecture of your systems

# Mirror found at: http://mirrors.fedoraproject.org/publiclist/Fedora/7/
# Be sure to include trailing slash.
RELEASES_DIR=/clientdata/yum/fedora/releases/7/Fedora/$ARCH/
RELEASES_URL=rsync://mirrors.kernel.org/fedora/releases/7/Fedora/$ARCH/
CORE_DIR=/clientdata/yum/fedora/releases/7/Live/$ARCH/os/
CORE_URL=rsync://mirrors.kernel.org/fedora/releases/7/Live/i386/os/
UPDATES_URL=rsync://mirrors.kernel.org/fedora/updates/7/$ARCH/
UPDATES_DIR=/clientdata/yum/fedora/updates/7/$ARCH/

mkdir -p $RELEASES_DIR
cd $RELEASES_DIR &#124;&#124; exit
rsync --recursive --delete -v $RELEASES_URL .

mkdir [...]]]></description>
			<content:encoded><![CDATA[<p>Create a script that you&#8217;ll be able to setup as a cron entry to run daily.  For a FC7 mirror I used the following:</p>
<pre>
#!/bin/bash
ARCH=i386   # Set to the architecture of your systems

# Mirror found at: http://mirrors.fedoraproject.org/publiclist/Fedora/7/
# Be sure to include trailing slash.
RELEASES_DIR=/clientdata/yum/fedora/releases/7/Fedora/$ARCH/
RELEASES_URL=rsync://mirrors.kernel.org/fedora/releases/7/Fedora/$ARCH/
CORE_DIR=/clientdata/yum/fedora/releases/7/Live/$ARCH/os/
CORE_URL=rsync://mirrors.kernel.org/fedora/releases/7/Live/i386/os/
UPDATES_URL=rsync://mirrors.kernel.org/fedora/updates/7/$ARCH/
UPDATES_DIR=/clientdata/yum/fedora/updates/7/$ARCH/

mkdir -p $RELEASES_DIR
cd $RELEASES_DIR || exit
rsync --recursive --delete -v $RELEASES_URL .

mkdir -p $CORE_DIR
cd $CORE_DIR || exit
rsync --recursive --delete -v $CORE_URL .

mkdir -p $UPDATES_DIR
cd $UPDATES_DIR || exit
rsync --recursive --delete -v $UPDATES_URL .</pre>
<p>Next you&#8217;ll have to configure your systems to use your local repository for updates by setting up a baseurl entry in /etc/yum.repos.d/fedora-updates.repo as described <a href="http://dailypackage.fedorabook.com/index.php?/archives/36-Package-Management-Week-Yum-Repositories-Plugins.html">here</a>.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Creating+A+Local+Mirror+%28Fedora%29+http://id2s7.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Creating+A+Local+Mirror+%28Fedora%29+http://id2s7.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/36/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
