search
HomeDatabaseMysql TutorialRHEL6.0下Oracle安装

名称 角色 server (RHEL6.0) 服务器 1、前置条件的准备 (1)解压压缩文件 [root@localhost ~]# unzip linux_11gR2_

名称

角色

server

RHEL6.0)

服务器

1、前置条件的准备

(1)解压压缩文件

[root@localhost ~]# unzip linux_11gR2_database_1of2.zip  //解压后缀为.zip的文件包

[root@localhost ~]# unzip linux_11gR2_database_2of2.zip

[root@localhost ~]# ls database/    //查看生成的database数据文件

doc install response rpm runInstaller sshsetup stage welcome.html

[root@localhost ~]# mv database /    //移动database文件到根下,因为一会要到程序用户下安装Oracle数据库

[root@localhost ~]# chmod 777 /database/       //普通用户没有权限,并给予777权限

 

(2)对于安装的前置要求

[root@localhost ~]# cat /etc/RedHat-release   //系统为RHEL6

Red Hat Enterprise Linux Server release 6.1 (Santiago)

[root@localhost ~]# grep MemTotal /proc/meminfo   //物理内存不少于1G,虚拟机内存不少于1200MB

MemTotal:        1563688 kB

[root@localhost ~]# grep SwapTotal /proc/meminfo   //交换分区为物理内存的1-5~2倍,物理内存为2GB-16GB时,交换分区与物理内存大小相等

SwapTotal:       2097144 kB

[root@localhost ~]# df -hT /tmp/    //确保/tmp目录所在的分区的空间不少于1GB,oracle 11g 硬盘空间不得少于8G

文件系统    类型      容量  已用  可用 已用%% 挂载点

/dev/sda3     ext4     18G   13G 4.0G 77% /

 [root@localhost ~]# hostname dbserver.benet.com //服务器要有完全合格的主机名

[root@localhost ~]# hostname

dbserver.benet.com

[root@localhost ~]# cat /etc/hosts

192.168.1.1 dbserver dbserver.benet.com

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

 

2、软件环境要求

挂载光盘

[root@localhost ~]# mount /dev/cdrom /media/

mount: block device /dev/sr0 is write-protected, mounting read-only

编辑yum仓库,修改配置行

[root@localhost ~]# vi /etc/yum.repos.d/rhel-source.repo //编辑YUM仓库

[rhel-source]

name=Red Hat Enterprise Linux $releasever - $basearch - Source

baseurl=file:///media/Server //url访问路径

enabled=1    //启动软件仓库

gpgcheck=0 //不验证软件包签名

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

yum安装软件环境

[root@localhost ~]# yum -y install binutils compat-libstdc++-33 compat-libstdc++ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libcstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel

RHEL6中安装的oracle 11g,对系统中的ksh软件包无法识别,所有只能挂载RHEL5,安装此光盘中的pdksh软件包

[root@localhost ~]# ls 

anaconda-ks.cfg     linux_11gR2_database_1of2.zip 公共的  图片  音乐

install.log         linux_11gR2_database_2of2.zip 模板    文档  桌面

install.log.syslog pdksh-5.2.14-36.el5.i386.rpm   视频    下载

[root@localhost ~]# rm -rf linux_11gR2_database_1of2.zip //在安装pdksh时,先卸载llg 已节省内存占用率

[root@localhost ~]# rm -rf linux_11gR2_database_2of2.zip

[root@localhost ~]# rpm -ivh pdksh-5.2.14-36.el5.i386.rpm //挂载RHEL5,安装pdksh

安装Java-1.6.0软件包,,以支持使用中文的oracle安装界面

[root@localhost ~]# yum -y install java-1.6.0

[root@localhost ~]# cd /usr/lib/jvm/jre-1.6.0/lib/

[root@localhost lib]# mv fontconfig.bfc fontconfig.bfc.origin  //备份默认字体配置

[root@localhost lib]# cp fontconfig.RedHat.6.0.bfc fontconfig.bfc   //建立RHEL6的字体配置

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
What Are the Limitations of Using Views in MySQL?What Are the Limitations of Using Views in MySQL?May 14, 2025 am 12:10 AM

MySQLviewshavelimitations:1)Theydon'tsupportallSQLoperations,restrictingdatamanipulationthroughviewswithjoinsorsubqueries.2)Theycanimpactperformance,especiallywithcomplexqueriesorlargedatasets.3)Viewsdon'tstoredata,potentiallyleadingtooutdatedinforma

Securing Your MySQL Database: Adding Users and Granting PrivilegesSecuring Your MySQL Database: Adding Users and Granting PrivilegesMay 14, 2025 am 12:09 AM

ProperusermanagementinMySQLiscrucialforenhancingsecurityandensuringefficientdatabaseoperation.1)UseCREATEUSERtoaddusers,specifyingconnectionsourcewith@'localhost'or@'%'.2)GrantspecificprivilegeswithGRANT,usingleastprivilegeprincipletominimizerisks.3)

What Factors Influence the Number of Triggers I Can Use in MySQL?What Factors Influence the Number of Triggers I Can Use in MySQL?May 14, 2025 am 12:08 AM

MySQLdoesn'timposeahardlimitontriggers,butpracticalfactorsdeterminetheireffectiveuse:1)Serverconfigurationimpactstriggermanagement;2)Complextriggersincreasesystemload;3)Largertablesslowtriggerperformance;4)Highconcurrencycancausetriggercontention;5)M

MySQL: Is it safe to store BLOB?MySQL: Is it safe to store BLOB?May 14, 2025 am 12:07 AM

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

MySQL: Adding a user through a PHP web interfaceMySQL: Adding a user through a PHP web interfaceMay 14, 2025 am 12:04 AM

Adding MySQL users through the PHP web interface can use MySQLi extensions. The steps are as follows: 1. Connect to the MySQL database and use the MySQLi extension. 2. Create a user, use the CREATEUSER statement, and use the PASSWORD() function to encrypt the password. 3. Prevent SQL injection and use the mysqli_real_escape_string() function to process user input. 4. Assign permissions to new users and use the GRANT statement.

MySQL: BLOB and other no-sql storage, what are the differences?MySQL: BLOB and other no-sql storage, what are the differences?May 13, 2025 am 12:14 AM

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

MySQL Add User: Syntax, Options, and Security Best PracticesMySQL Add User: Syntax, Options, and Security Best PracticesMay 13, 2025 am 12:12 AM

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

MySQL: How to avoid String Data Types common mistakes?MySQL: How to avoid String Data Types common mistakes?May 13, 2025 am 12:09 AM

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor