search
HomeDatabaseMysql TutorialRed Hat Enterprise Linux AS 4.8中安装Oracle 10g R2详解

Red Hat Enterprise Linux AS 4.8中安装Oracle 10g R2详解

本篇博文参考《Oracle 10g官方文档》等资料,故选《RHEL4》操作系统。生产环境中强烈建议以《Oracle 10g官方文档》为蓝图!

一、预备:

1、硬件:注:括号()中是官方提供数据!

1-检查物理内存 (RAM至少1G

[root@RHEL4 ~]# grep MemTotal /proc/meminfo
MemTotal: 1541764 kB //RAM是1.5G
[root@RHEL4 ~]#

2-检查Swap大小 (1G

[root@RHEL4 ~]# grep SwapTotal /proc/meminfo
SwapTotal: 3140696 kB //此处是1.5X2=3G
[root@RHEL4 ~]#

3-检查可用RAM和swap空间

[root@RHEL4 ~]# free
total used free shared buffers cached
Mem: 1541764 898536 643228 0 49480 542584
-/+ buffers/cache: 306472 1235292
Swap: 3140696 0 3140696
[root@RHEL4 ~]#

4-检查CPU

[root@RHEL4 ~]# grep "model name" /proc/cpuinfo
model name : Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz
[root@RHEL4 ~]#

2、软件:

1-操作系统版本

Red Hat Enterprise Linux AS 4.8 X64bit

2-内核版本号

[root@RHEL4 ~]# uname -r
2.6.9-82.EL
[root@RHEL4 ~]#

3-RHEL4所需要安装的软件包

(1)binutils-2.15.92.0.2-10.EL4 (2)compat-db-4.1.25-9 (3)control-center-2.8.0-12 (4)gcc-3.4.3-9.EL4 (5)gcc-c++-3.4.3-9.EL4 (6)glibc-2.3.4-2 (7)glibc-common-2.3.4-2 (8)gnome-libs-1.4.1.2.90-44.1 (9)libstdc++-3.4.3-9.EL4 (10)libstdc++-devel-3.4.3-9.EL4 (11)make-3.80-5 (12)pdksh-5.2.14-30 (13)sysstat-5.0.5-1 (14)xscreensaver-4.18-5.rhel4.2 备注: //查询是否已安装了上面14个软件包 rpm –qa | grep 软件包名 //安装软件包 方法1: rpm –ivh 软件包名 方法2: yum install 软件包名

3. 在/etc/hosts后面添加1行:

127.0.0.1 localhost.localdomain localhost
192.168.1.224 RHEL4

4. 创建用户和组

[root@RHEL4 ~]# groupadd oinstall
[root@RHEL4 ~]# groupadd dba
[root@RHEL4 ~]# useradd -g oinstall -G dba oracle
[root@RHEL4 ~]#

5. 修改参数:

1-在/etc/sysctl.conf的最后添加:

vi /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 = 1024 65000 net.core.rmem_default = 262144 net.core.rmem_max = 262144 net.core.wmem_default = 262144 net.core.wmem_max = 262144

2-然后,使用sysctl -p 命令,即时生效

[root@RHEL4 ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
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 = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
[root@RHEL4 ~]#

3-在/etc/security/limits.conf最后面添加:

[root@RHEL4 ~]# vi /etc/security/limits.conf

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

4-在/etc/pam.d/login最后面添加:

[root@RHEL4 ~]# vi /etc/pam.d/login

session required pam_limits.so 在/etc/profile最后面添加: [root@RHEL4 ~]# vi /etc/profile if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi

6. 创建Oracle 10g R2的安装目录

1-创建oracle安装目录且赋于权限

[root@RHEL4 ~]# mkdir /u01/app/oracle -p
[root@RHEL4 ~]# chown -R oracle:oinstall /u01
[root@RHEL4 ~]# chmod -R 755 /u01
[root@RHEL4 ~]#

2-设置Oracle的环境变量

在.bash_profile最后面添加:

[root@RHEL4 ~]# su – oracle //切换到oracle用户帐户
[oracle@RHEL4 ~]$ vi .bash_profile

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export ORACLE_SID=jiagulun
export NLS_LANG=american_america.zhs16gbk

[root@RHEL4 ~]#exit //退出oracle用户帐户

[root@RHEL4 ~]# su – oracle //重新切换到oracle用户帐户
[oracle@RHEL4 ~]$ ls

接下来请看第2页精彩内容

linux

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
FiiO CP13 cassette player launches with transparent retro lookFiiO CP13 cassette player launches with transparent retro lookJun 16, 2024 am 09:52 AM

TheFiiOCP13cassetteplayerwasannouncedinJanuary.Now,FiiOisexpandingitsportfoliowithtwonewmodels-onewitharedfrontandonewithatransparentfront.Thelatternotonlyperfectlymatchestheretrocharmoftheangulardesign,butalso

区块链资料分析工具有哪些?区块链资料分析工具有哪些?Feb 21, 2025 pm 10:24 PM

区块链技术的迅速发展带来了对可靠且高效的分析工具的需求。这些工具对于从区块链交易中提取有价值的见解至关重要,以便更好地理解和利用其潜力。本文将探讨市场上一些领先的区块链数据分析工具,包括他们的功能、优势和局限性。通过了解这些工具,用户可以获得必要的见解,最大限度地利用区块链技术的可能性。

币安Launchpool第64期项目分析与价格预测:RedStone (RED)能否点燃市场?币安Launchpool第64期项目分析与价格预测:RedStone (RED)能否点燃市场?Mar 03, 2025 pm 11:45 PM

大家好,我是你们的老朋友,一个常年在币安广场和大家聊加密市场的小伙伴。币安Launchpool最近上线了第64期项目——RedStone(RED),作为一个多链预言机项目,它在上线前就引发了不少讨论。今天我们就来深度剖析一下RED,看看它的潜力如何,以及上线后的价格可能怎么走。币安Launchpool第64期项目分析与价格预测:RedStone(RED)能否点燃市场?项目背景与核心亮点RedStone(RED)是一个专注于去中心化金融(DeFi)的多链预言机平台,目标是为E

尼康官宣完成对电影摄影机 RED 公司的收购尼康官宣完成对电影摄影机 RED 公司的收购Apr 13, 2024 pm 09:22 PM

本站4月13日消息,日前,尼康官宣已完成RED公司的收购,RED正式成为尼康子公司。根据官方公告,RED原总裁JarredLand和创始人JamesJannard将作为新公司顾问,任命尼康影像事业部KeijiOishi为RED新公司CEO,RED公司原执行副总裁TommyRios升任新公司联席CEO。公告称,RED目前的产品阵容、合作伙伴以及与经销商的关系不会有任何变化。RED将继续通过保修、维修服务、客户服务和整体产品支持政策。尼康表示,尼康和RED将合并两家公司的优势,开发独特的产品,同时利

赛道遇冷,垂直领域的AI Agent能否打破僵局?赛道遇冷,垂直领域的AI Agent能否打破僵局?Mar 05, 2025 am 07:57 AM

Web3垂直AIAgent:颠覆传统,重塑行业格局?本文探讨了Web2和Web3中AIAgent的应用差异及Web3Agent的未来潜力。Web2已广泛应用AIAgent提升效率,涵盖销售、营销等领域,并取得显著经济效益。而Web3Agent则结合区块链技术,开辟了全新应用场景,尤其在DeFi领域。其通过代币激励、去中心化平台和链上数据分析,展现出超越Web2Agent的潜力。尽管Web3Agent目前面临挑战,但其独特优势使其在中长期有望与Web2竞争,甚至重塑行业格局。Web2AI

狗狗币etf价格会上涨多少倍狗狗币etf价格会上涨多少倍Mar 28, 2025 pm 03:42 PM

狗狗币ETF获批后可能的价格涨幅为2倍至5倍,现价0.18美元可能涨至0.6至1.2美元。1)乐观情景下,涨幅可达3倍至10倍,因市场牛市和马斯克助推;2)中性情景下,涨幅为1.5倍至3倍,因温和资金流入;3)悲观情景下,涨幅为0.5倍至1.5倍,因熊市和低流动性。

垂直代理:加密原生代理的应用场景和颠覆性潜力解读垂直代理:加密原生代理的应用场景和颠覆性潜力解读Mar 04, 2025 am 10:21 AM

人工智能代理(AIAgents)正迅速融入企业日常运营,从大型公司到小型企业,几乎所有领域都已开始应用,包括销售、营销、财务、法律、IT、项目管理、物流、客户服务和工作流自动化等。我们正从人工处理数据、执行重复性任务和使用Excel表格的时代,转变为由AI代理全天候自主运行的时代,这不仅提高了效率,还显著降低了成本。Web2中AI代理的应用案例:YCombinator的视角Apten:一款结合AI和短信技术的销售与营销优化工具。BildAI:一款能够读取建筑蓝图,提

一文详细了解传花旗银行将提供加密货币托管服务!下一步发行稳定币?一文详细了解传花旗银行将提供加密货币托管服务!下一步发行稳定币?Mar 04, 2025 am 10:42 AM

据《TheInformation》报道,美国第三大资产规模银行花旗集团正积极探索将加密货币托管服务融入其业务版图。据悉,花旗此举源于其2024年2月启动的一项试点项目,该项目成功展示了在区块链网络上发行和托管代币化私募股权基金的可行性。多家银行已获数字资产托管牌照目前,多家银行已获得不同国家/地区的数字资产托管服务资质,例如:纽约梅隆银行(BNYMellon)已获准提供除比特币和以太坊ETF外的数字资产托管服务;渣打银行(StandardChartered)在迪拜已搭建数字资产托管基础

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),