oracle database 11g release 1 (11.1) installation on fedora 8 (f8) this article describes the installation of oracle database 11g release 1 (11.1) on fedora 8 (f8) . the article is based on a server installation with a minimum of 2g swap,
oracle database 11g release 1 (11.1) installation on fedora 8 (f8)this article describes the installation of oracle database 11g release 1 (11.1) on fedora 8 (f8). the article is based on a server installation with a minimum of 2g swap, secure linux disabled and the following package groups installed:
gnome desktop environment editors graphical internet development libraries development tools server configuration tools administration tools base fonts legacy fonts hardware support system tools x window system an example of this type of linux installation can be seen here. alternative installations may require more packages to be loaded, in addition to the ones listed below.
download software unpack files hosts file set kernel parameters setup installation post installation download softwaredownload the following software:
oracle database 11g release 1 (11.1) software unpack filesunzip the files:
unzip linux_11gr1_database.zip
you should now have a single directory called database containing installation files.
hosts filethe /etc/hosts file must contain a fully qualified name for the server:
set kernel parametersoracle recommend the following minimum parameter settings:
kernel.shmall = 2097152kernel.shmmax = 2147483648 # smallest of -> (half the size of the physical memory) or (4gb - 1 byte)kernel.shmmni = 4096# semaphores: semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128fs.file-max = 65536 # 512 * processesnet.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default=4194304net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=262144
the current values can be tested using the following command:
/sbin/sysctl -a | grep
for fedora 8, the following lines should be appended to the /etc/sysctl.conf file.
kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096# semaphores: semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default=4194304net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=262144
run the following command to change the current kernel parameters:
/sbin/sysctl -p
add the following lines to the /etc/security/limits.conf file:
oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536
add the following line to the /etc/pam.d/login file, if it does not already exist:
session required /lib/security/pam_limits.sosession 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
alternatively, this alteration can be done using the gui tool (system > administration > firewall and selinux). click on the selinux tab and disable the feature.
setupinstall the following packages:
# from fedora 8 dvdcd /media/cdrom/packagesrpm -uvh binutils-2.*rpm -uvh elfutils-libelf-0.*rpm -uvh glibc-2.*rpm -uvh glibc-common-2.*rpm -uvh libgcc-4.*rpm -uvh libstdc++-4.*rpm -uvh make-3.*rpm -uvh elfutils-libelf-devel-0.*rpm -uvh glibc-devel-2.*rpm -uvh gcc-4.*rpm -uvh gcc-c++-4.*rpm -uvh libstdc++-devel-4.*rpm -uvh unixodbc-2.*cd /eject# not available on fedora 8 dvd, but available from standard yum repository.yum install libaio libaio-develyum install unixodbc-develyum install sysstatyum install compat-libstdc++# required to mask java conflict (thanks to robert w. benton for pointing this out)yum --enablerepo=development install libxcb.i386
create the new groups and users:
groupadd oinstallgroupadd dbagroupadd opergroupadd asmadminuseradd -g oinstall -g dba,oper,asmadmin oraclepasswd oracle
note. we are not going to use th asmadmin group, since this installation will not use asm.
create the directories in which the oracle software will be installed:
mkdir -p /u01/app/oracle/product/11.1.0/db_1chown -r oracle:oinstall /u01chmod -r 775 /u01
login as root and issue the following command:
xhost +
edit the /etc/redhat-release file replacing the current release information (fedora release 8 (werewolf)) with the following:
redhat release 5
login as the oracle user and add the following lines at the end of the .bash_profile file:
# oracle settingstmp=/tmp; export tmptmpdir=$tmp; export tmpdiroracle_hostname=f8.localdomain; export oracle_hostnameoracle_base=/u01/app/oracle; export oracle_baseoracle_home=$oracle_base/product/11.1.0/db_1; export oracle_homeoracle_sid=db11g; export oracle_sidoracle_term=xterm; export oracle_termpath=/usr/sbin:$path; export pathpath=$oracle_home/bin:$path; export pathld_library_path=$oracle_home/lib:/lib:/usr/lib; export ld_library_pathclasspath=$oracle_home/jre:$oracle_home/jlib:$oracle_home/rdbms/jlib; export classpathif [ $user = oracle ]; then if [ $shell = /bin/ksh ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fifi# required to mask java conflict (thanks to robert w. benton for pointing this out)libxcb_allow_sloppy_lock=true; export libxcb_allow_sloppy_lock
installationlog into the oracle user. if you are using x emulation then set the display environmental variable:
display=:0.0; export display
start the oracle universal installer (oui) by issuing the following command in the database directory:
./runinstaller
during the installation enter the appropriate oracle_home and name then continue installation. some of the prerequisite checks will not complete due to this not being a supported linux distribution. check each of these prerequisites to set them to user verified then you can proceed. for a more detailed look at the installation process, click on the links below to see screen shots of each stage.
select installation method specify inventory directory and credentials select installation type install location product-specific prerequisite checks select configuration option select database configuration specify database configuration options specify database configuration details select database management option specify database storage option specify backup and recovery options specify database schema passwords oracle configuration manager registration summary install configuration assistants database configuration assistant databaseconfiguration assistant summary execute configuration scripts end of installation oem database control login oem database control post installationedit the /etc/redhat-release file restoring the original release information:
fedora release 8 (werewolf)
edit the /etc/oratab file setting the restart flag for each instance to 'y':
db11g:/u01/app/oracle/product/11.1.0/db_1:y
for more information see:
oracle database installation guide 11g release 1 (11.1) for linux automating database startup and shutdown on linux hope this helps. regards tim...