Oralcle 10g Fedora Core X上快速安装指南

core

Home -> oracle -> Oracle 10g release 1 (10.1.0.2) on Fedora core 1
Oracle Database 10g release 1 (10.1.0.2) installation on Fedora core 1
Please note that Oracle Database 10g is not certified to run on Fedora Linux, therefore you should not use this combination on a production server. You can examine Oracle certification matrix at Metalink
Contents
1. Downloading and unpacking installation files
2. Preparing your system
2.1 Steps to perform as root user
2.2 Steps to perform as oracle user
3. Running the installer
4. Post-installation steps
4.1 Starting database services
4.2 Shutting down database services
4.3 Automating oracle startup and shutdown
1. Downloading and unpacking installation files
Download Oracle Database 10g from Oracle Technology Network. Four files are available:

ship.ccd.cpio.gz - Oracle 10g Companion CD
ship.client.cpio.gz - Oracle 10g Client
ship.crs.cpio.gz - Oracle 10g Cluster Ready Services
ship.db.cpio.gz - Oracle 10g Database
Only ship.db.cpio.gz is required in order to install the database.
Once you downloaded the file, unpack it:
gunzip ship.db.cpio.gz
cpio -idmv<ship.db.cpio
All four installation files unpack to directory named "Disk1", so rename directory before you eventually unpack another file.
You may want to create Oracle installation CD set from unpacked installation files. As I don't have a CD-burner on any of my linux boxes, I created ISO images using
mkisofs -JR -l -o ship.db.iso Disk1/
and burned CDs on Windows machine.
2. Preparing your system
2.1 Steps to perform as root user
Install following fedora packages using rpm -ivh package_name:
From Fedora-core Disk 1:

setarch-1.0-1.i386.rpm
From Fedora-core Disk 2:

openmotif-2.2.2-16.1.i386.rpm
From Fedora-core Disk 3:

compat-libstdc++-7.3-2.96.118.i386.rpm
compat-db-4.0.14-2.i386.rpm
compat-gcc-7.3-2.96.118.i386.rpm
compat-libgcj-7.3-2.96.118.i386.rpm
compat-libstdc++-devel-7.3-2.96.118.i386.rpm
compat-libgcj-devel-7.3-2.96.118.i386.rpm
Now we have to make Oracle installer think that we have one of the supported distributions: Create a backup of your /etc/redhat-release file, an change its contents:
# cp /etc/redhat-release /etc/redhat-release.orig
# echo "Red Hat Enterprise Linux AS release 3 (Taroon)" > /etc/redhat-release
Change kernel parameters by adding the following lines in /etc/sysctl.conf:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 32768 65000
Update kernel configuration:
[root@fedora root]# sysctl -e -p /etc/sysctl.conf
Add the following lines to /etc/security/limits.conf file:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* 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.so
Create user and groups that will own oracle installation. In this exaple the username will be oracle:
[root@fedora]# groupadd oinstall
[root@fedora]# groupadd dba
[root@fedora]# useradd -g oinstall -G dba oracle
[root@fedora]# passwd oracle
Create directories in which oracle software will be installed. Oracle recommends OFA - Optimal Flexible Architecture (see oracle installation guide), but in this example everything will be installed under /home/oracle:
[root@fedora]# mkdir -p /home/oracle/product/10g
[root@fedora]# chown -R oracle.oinstall /home/oracle/*
2.2 Steps to perform as oracle user
Make gcc296 default compiler for user oracle by creating symbolic link. It is important that the directory containing the link (/home/oracle/bin) is listed in the PATH variable before /usr/bin.
[oracle@fedora oracle]$ mkdir /home/oracle/bin
[oracle@fedora oracle]$ cd /home/oracle/bin
[oracle@fedora bin]$ ln -s /usr/bin/gcc296 gcc
Put the following lines in oracle user .bash_profile
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=/home/oracle/product/10g
export ORACLE_SID=orcl
export ORACLE_TERM=xterm
export PATH=$HOME/bin:$ORACLE_HOME/bin:$PATH
ulimit -u 16384 -n 65536
#
# change this NLS settings to suit your country:
# example:
# german_germany.we8iso8859p15, american_america.we8iso8859p1 etc.
#
export NLS_LANG='croatian_croatia.ee8iso8859p2'
Since I am from Croatia, I use Croatian national language support (NLS_LANG, NLS_DATE_LANGUAGE, NLS_SORT and NLS_DATE_FORMAT). You should set these variables to suit your needs.
Listing of valid Oracle NLS Data parameters including supported languages, territories and storage character sets can be found here.
In this example ORACLE_SID=orcl. You will be prompted by installer to specify SID and global database name, and you should replace the SID in .bash_profile with your own SID.
Update environment to include new variables:

[oracle@fedora]$ source /home/oracle/.bash_profile
Everything is now ready to start the oracle installer.
3. Running the installer
If you have Oracle 10g Database CD, login as root and mount it:
[root@fedora]# mount /mnt/cdrom
Oracle installer needs to be run from Xwindows, so start Xwindows and login as user oracle.
Make sure that your envionment is correctly set up:
[oracle@fedora oracle]$ set|grep ORACLE
ORACLE_BASE=/home/oracle
ORACLE_HOME=/home/oracle/product/10g
ORACLE_SID=orcl
ORACLE_TERM=xterm
[oracle@fedora oracle]$ gcc --version
2.96
Start the installer:
[oracle@fedora oracle]$ /mnt/cdrom/runInstaller
Note: if you get thew following error when running the installer from CD-ROM
bash: /mnt/cdrom/runInstaller: /bin/sh: bad interpreter: Permission denied
you should check how your CD-ROM was mounted. It should be mounted by user root, and the information about the filesystem in /etc/fstab sohuld look similar to this:
/dev/cdrom /mnt/cdrom auto exec,noauto,owner,kudzu,ro 0 0
Now the installer should be up and running.
4. Post-installation steps
First we want to change back the /etc/redhat-release file:
[root@fedora]# cp /etc/redhat-release.orig /etc/redhat-release
Next, modify the /etc/oratab file in order to use database startup and shutdown scripts provided by oracle. Find the line in /etc/oratab that looks similar to this:
*:/home/oracle/product/10g:N
Entries are of the form: $ORACLE_SID:$ORACLE_HOME:<N|Y>
Change the last field (N) to Y, and you will be able to start the database using dbstart utility.
4.1. Starting database services
Note: If you just installed Oracle, the database, TNS listener and enterprise manager are already running.
Start TNS Listener:

[oracle@fedora oracle]$ lsnrctl start
You can start the database via dbstart utility:
[oracle@fedora oracle]$ dbstart
or via SQL*Plus:
[oracle@fedora oracle]$ sqlplus / as sysdba

SQL*Plus: Release 10.1.0.2.0 - Production on Sat Feb 21 18:05:43 2004

Copyright (c) 1982, 2004, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 188743680 bytes
Fixed Size 778036 bytes
Variable Size 162537676 bytes
Database Buffers 25165824 bytes
Redo Buffers 262144 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
Production With the Partitioning, OLAP and Data Mining options
[oracle@fedora oracle]$
Start Enterprise manager server:
[oracle@fedora oracle]$ emctl start dbconsole
4.2. Stopping database services
Stop Enterprise manager server:
[oracle@fedora oracle]$ emctl stop dbconsole
You can stop the database via dbshut utility:
[oracle@fedora oracle]$ dbshut
or via SQL*Plus:
[oracle@fedora oracle]$ sqlplus / as sysdba

SQL*Plus: Release 10.1.0.2.0 - Production on Sat Feb 21 18:11:23 2004

Copyright (c) 1982, 2004, Oracle. All rights reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
Production With the Partitioning, OLAP and Data Mining options

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
Production With the Partitioning, OLAP and Data Mining options
[oracle@fedora oracle]$
Stop TNS listener:
[oracle@fedora oracle]$ lsnrctl stop
4.3 Automating oracle startup and shutdown
To automatically start/shut oracle database during system startup/shutdown you need to write a script in /etc/rc.d/init.d directory. You can view or Download an example script.
Copy the script to /etc/rc.d/init.d as root user, edit environment variables to match your settings and modify its permissions:
[root@fedora root]# chown root.root /etc/rc.d/init.d/ora10
[root@fedora root]# chmod 755 /etc/rc.d/init.d/ora10
The script I wrote uses chkconfig utility to simplify service management. It is configured to start oracle services in runlevels 3 and 5,with start priority 95 and stop priority 1.
Initialize new service:
[root@fedora root]# chkconfig ora10 reset
[root@fedora root]# chkconfig --list ora10
ora10 0:off 1:off 2:off 3:on 4:off 5:on 6:off
Now oracle services will be automatically started when entering runlevels 3 and 5, and shut down when entering any other runlevel. For more information on chkconfig utility refer to its man page.
To manually start/stop oracle services you can use
[root@fedora root]# service ora10 start
and
[root@fedora root]# service ora10 stop
Hope this helps.
Denis.
Home -> oracle -> Oracle 10g release 1 (10.1.0.2) on Fedora core 1

--------------------
HAPPYMENG

时间: 2024-12-22 20:08:58

Oralcle 10g Fedora Core X上快速安装指南的相关文章

Fedora Core 3安装Oracle 10.1.0.3简要流程

core|oracle     上午花了点时间完成了第一次Linux平台的安装(:P,有点丢人的说,才第一次),主要是参考了http://www.oracle.com/technology/global/cn/pub/articles/smiley_10gdb_install.html的安装说明.该文主要是介绍RedHat系列的安装,而Fedora Core可以说是Red Hat的开源桌面版,可以说是通用的.下文将结合我的实际操作,对该文作简单的规整.    安装Linux部分不再说明了,唯一要

在Windows XP下硬盘安装Fedora core 7

一.由于fedora core 7不能认NTFS格式...所以先把硬盘格式化成FAT32(原硬盘上有一WINXP系统,为了防止万一,保留的XP系统) 把ISO镜像文件复制到旧硬盘上.然后在网上下载了一个grub_for_dos-0.4.2 开始安装:(以下操作在XP下进行) 1.在C盘根目录下建一文件夹 C:\boot\grub 把下载的grub_for_dos-0.4.2解压.将里面的全部内容复制到grub目录下. 2.修改"C:\boot\grub\menu.lst"文件,在最下面

Fedora 12服务器上安装Apache2+PHP+MySQL

LAMP是Linux, Apache, MySQL, PHP的缩写.这篇教程将教你如何在一台Fedora 12服务器上安装Apache2web服务器+PHP(mod_php) +MySQL . 我已经测试无误,你可以放心使用. 1. 前言 在这篇教程中,我使用的主机名为server1.example.com,ip地址是192.168.0.100.这些设置可能与你想要的有所不同,所以你必须在适当的地方修改一下. 2 安装MySQL5 用下列命令安装MySQL: yum install mysql

怎么样在电脑上快速输入数学公式

很多人难免在电脑上要输入一些数学公司,不管是问别人问题,还是整理一些答案.而输这些数学公式即使是现在小编也一样是不会输,个人感觉太太难了.有一天小编突然发现了一个在电脑上快速输入数学公式很好用的方法,就赶快来分享给大家了. 1 MIP数学输入面板 一说到画板大家肯定大体上知道这个功能了,不错以后要公式是要用写的,是不是感觉非常的幸福. 首先我们需要一台预装有正版win7操作系统的电脑,单击"开始"按钮在开始菜单的搜索输入框中输入"MIP",如图,我们就找到了一个名为

ASP.NET Core MVC上传、导入、导出功能详解

前言 本君已成夜猫子,本节我们来讲讲ASP.NET Core MVC中的上传,这两天在研究批量导入功能,本节顺便简单搞搞导入.导出,等博主弄妥当了再来和大家一并分享. .NET Core MVC上传 首先我们来看看官网的上传的例子,再然后进行拓展训练,官网的表单是这样的. <form method="post" enctype="multipart/form-data" asp-controller="UploadFiles" asp-ac

在Windows服务器上快速架设视频编解码器全攻略

随着互联网的发展,在线视频和视频分享站点已成为当之无愧的流行焦点之一.越来越多的网民们热衷于上土豆等视频网站看在线视频.电影.电视剧,也带动一批播客们制作自己的"创意"视频上传到服务器上和众多网民们分享与交流. 同时也有越来越多的站长们或者草根一族也注意到这一商机,纷纷建立了自己的视频分享站点.就目前而言,绝大多数在线视频分享站点都使用FLV格式的网络视频文件.FLV格式是Macromedia开发的Flash的视频格式.使用这种格式的好处是不但可以轻松导入Flash,同时解决了过去其他

如何在Fedora或CentOS上使用Samba共享文件夹

如今,无论在家里或者是办公场所,不同的电脑之间共享文件夹已不是什么新鲜事了.在这种趋势下,现代操作系统通过网络文件系统的方式使得电脑间数据的交换变得简单而透明.如果您工作的环境中既有微软的Windows又有Linux,那么,一个共享文件及目录的方式便是通过一个跨平台网络文件共享协议:SMB/CIFS.Windows原生的支持SMB/CIFS,Linux也通过开源的软件Samba实现了SMB/CIFS协议. 在这篇文章中,我们将展示如何使用Samba共享文件夹.我们使用的Linux平台是Fedor

百度正在以互联网公司的速度在金融业务上快速追赶

摘要: 查看最新行情 定制产品,10亿限额,年化收益率约8%.这是市场上近期热议的一款新的互联网理财产品. 没错,是 百度 要行动了. 在余额宝效应下,另一大互联网平台百度联手华夏基 查看最新行情 "定制产品,10亿限额,年化收益率约8%".这是市场上近期热议的一款新的互联网理财产品. 没错,是 百度 要行动了. 在余额宝效应下,另一大互联网平台百度联手华夏基金,已经筹备完毕一款类似余额宝的活期理财产品,10月28日即将面世. 今年7月,百度旗下百付宝获批央行第三方支付牌照,随后百度理

Fedora或CentOS上使用Samba共享文件夹教程

如今,无论在家里或者是办公场所,不同的电脑之间共享文件夹已不是什么新鲜事了.在这种趋势下,现代操作系统通过网络文件系统的方式使得电脑间数据的交换变得简单而透明.如果您工作的环境中既有微软的Windows又有Linux,那么,一个共享文件及目录的方式便是通过一个跨平台网络文件共享协议:SMB/CIFS.Windows原生的支持SMB/CIFS,Linux也通过开源的软件Samba实现了SMB/CIFS协议. 在这篇文章中,我们将展示如何使用Samba共享文件夹.我们使用的Linux平台是Fedor