Home Database Mysql Tutorial 在Red Hat 4 AS U7上安装Oracle 10g R2

在Red Hat 4 AS U7上安装Oracle 10g R2

Jun 07, 2016 pm 05:02 PM
redhat

在Red Hat 4 AS U7上安装oracle10gR21. 硬件需求:至少1024MB物理内存 # grep MemTotal /proc/meminfo交换空间大小分配需求 物

在Red Hat 4 AS U7上安装Oracle10gR2  
 
 
1. 硬件需求:  
===========================================  
至少1024MB物理内存 
# grep MemTotal /proc/meminfo  
===========================================  
交换空间大小分配需求  
物理内存:1024 MB ~ 2048 MB, 1.5倍物理内存   
物理内存:2049 MB ~ 8192 MB, 1倍物理内存   
物理内存:8192 MB ~,0.75倍物理内存  
# grep SwapTotal /proc/meminfo  
===========================================  
/tmp目录至少留有400 MB空间 
# df -k /tmp  
===========================================  
1.5 GB至3.5 GB用于安装Oracle软件 
# df -k  
===========================================  
1.2 GB用于预安装Oracle数据库 
# df -k  
===========================================  
2. 软件需求:  
 
Red Hat Enterprise Linux 4.0需要安装如下包:  
binutils-2.15.92.0.2-13.EL4  
compat-db-4.1.25-9  
compat-libstdc++-296-2.96-132.7.2  
control-center-2.8.0-12  
gcc-3.4.3-22.1.EL4  
gcc-c++-3.4.3-22.1.EL44  
glibc-2.3.4-2.9  
glibc-common-2.3.4-2.9  
gnome-libs-1.4.1.2.90-44.1  
libstdc++-3.4.3-22.1  
libstdc++-devel-3.4.3-22.1  
make-3.80-5  
pdksh-5.2.14-30  
sysstat-5.0.5-1  
xscreensaver-4.18-5.rhel4.2  
setarch-1.6-1  
===========================================  
rpm -q binutils compat-db compat-libstdc++ control-center gcc gcc-c++ glibc glibc-common  
rpm -q gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver setarch  
 
[root@ora10g ~]# cd /media/cdrom/RedHat/RPMS  
[root@ora10g RPMS]#  
 
rpm -Uvh compat-db*  
 
在安装rpm包时,如果遇到相关性检查并报如下错误时,可通过安装glibc-kernheaders-2.4-9.1.103.EL.i386.rpm  
解决:  
        kernel-headers is needed by glibc-headers-2.3.4-2.41.i386  
        kernel-headers >= 2.2.1 is needed by glibc-headers-2.3.4-2.41.i386    
===========================================  
检查red hat发行版本号: 
# cat /etc/issue  
===========================================  
检查内核版本号: 
# uname -r  
===========================================  
查询相应package是否安装: 
# rpm -q package_name  
===========================================  
3. 网络需求:  
===========================================  
检查是否使用/etc/hosts进行名字解析(name resolution),如下命名应有files结果返回 
# cat /etc/nsswitch.conf | grep hosts  
 
[root@ora10g ~]# cat /etc/nsswitch.conf | grep hosts 
#hosts:     db files ldap nis dns  
hosts:      files dns  
===========================================  
检查主机名是否设置,如下命令应有类似结果(myhost.mycomputer.com)返回: 
# hostname  
 
[root@ora10g ~]# hostname  
ora10g  
===========================================  
检查域名是否没有被动态设置,如下命令不应返回任何结果: 
# domainname  
 
[root@ora10g ~]# domainname  
(none)  
===========================================  
检查hosts文件是否包含完整的描述名称(the fully qualified host name),如下命令应有类似结果(  
192.168.100.16    myhost.us.mycompany.com   myhost  
127.0.0.1         localhost                 localhost.localdomain  
)返回: 
# cat /etc/hosts | grep `eval hostname`  
 
[root@ora10g ~]# cat /etc/hosts | grep `eval hostname`  
192.168.168.213 ora10g.kl.com   ora10g  
[root@ora10g ~]#  
===========================================  
4. 创建必要的操作系统组和用户:  
 
oinstall组,必需,Oracle产品目录组(Oracle Inventory Group):  
如果如下命令没有类似结果(  
inventory_loc=/u01/app/oracle/oraInventory  
inst_group=oinstall  
)返回,,则必需创建该组: 
# more /etc/oraInst.loc  
 
创建oinstall组 
# /usr/sbin/groupadd oinstall  
===========================================  
dba组,必需,如果需要使用不同的名字,则需要在安装Oracle是进行指定,  
可为不同的oracle安装指定不同的dba组:  
 
创建dba组 
# /usr/sbin/groupadd dba  
===========================================  
oper组,可选,该组用来区分dba的普通用户,权限为SYSOPER:  
 
创建oper组 
# /usr/sbin/groupadd oper  
===========================================  
创建oracle安装用户  
 
确认用户是否存在,如果存在如下命令将有类似结果(  
uid=440(oracle) gid=200(oinstall) groups=201(dba),202(oper)  
)返回: 
# id oracle  
 
不存在则可使用如下命令创建用户,存在请更换用户名: 
# /usr/sbin/useradd -g oinstall -G dba[,oper] oracle  
 
设置密码: 
# passwd oracle  
 
===========================================  
 
[root@ora10g RPMS]# more /etc/oraInst.loc  
/etc/oraInst.loc: No such file or directory  
[root@ora10g RPMS]# /usr/sbin/groupadd oinstall  
[root@ora10g RPMS]# /usr/sbin/groupadd dba  
[root@ora10g RPMS]# groupadd oper  
[root@ora10g RPMS]# id oracle  
id: oracle: No such user  
[root@ora10g RPMS]# useradd -g oinstall -G dba,oper oracle  
[root@ora10g RPMS]# passwd oracle  
Changing password for user oracle.  
New UNIX password:  
BAD PASSWORD: it is based on a dictionary word  
Retype new UNIX password:  
passwd: all authentication tokens updated successfully.  
 
===========================================  

linux

Statement of this Website
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

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

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How do you alter a table in MySQL using the ALTER TABLE statement? How do you alter a table in MySQL using the ALTER TABLE statement? Mar 19, 2025 pm 03:51 PM

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

How do I configure SSL/TLS encryption for MySQL connections? How do I configure SSL/TLS encryption for MySQL connections? Mar 18, 2025 pm 12:01 PM

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)? What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)? Mar 21, 2025 pm 06:28 PM

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

How do you handle large datasets in MySQL? How do you handle large datasets in MySQL? Mar 21, 2025 pm 12:15 PM

Article discusses strategies for handling large datasets in MySQL, including partitioning, sharding, indexing, and query optimization.

Explain InnoDB Full-Text Search capabilities. Explain InnoDB Full-Text Search capabilities. Apr 02, 2025 pm 06:09 PM

InnoDB's full-text search capabilities are very powerful, which can significantly improve database query efficiency and ability to process large amounts of text data. 1) InnoDB implements full-text search through inverted indexing, supporting basic and advanced search queries. 2) Use MATCH and AGAINST keywords to search, support Boolean mode and phrase search. 3) Optimization methods include using word segmentation technology, periodic rebuilding of indexes and adjusting cache size to improve performance and accuracy.

How do you drop a table in MySQL using the DROP TABLE statement? How do you drop a table in MySQL using the DROP TABLE statement? Mar 19, 2025 pm 03:52 PM

The article discusses dropping tables in MySQL using the DROP TABLE statement, emphasizing precautions and risks. It highlights that the action is irreversible without backups, detailing recovery methods and potential production environment hazards.

How do you represent relationships using foreign keys? How do you represent relationships using foreign keys? Mar 19, 2025 pm 03:48 PM

Article discusses using foreign keys to represent relationships in databases, focusing on best practices, data integrity, and common pitfalls to avoid.

How do you create indexes on JSON columns? How do you create indexes on JSON columns? Mar 21, 2025 pm 12:13 PM

The article discusses creating indexes on JSON columns in various databases like PostgreSQL, MySQL, and MongoDB to enhance query performance. It explains the syntax and benefits of indexing specific JSON paths, and lists supported database systems.

See all articles