快速搭建Oracle Linux 5 上 Oracle Database 11g 测试环境
由于数据库需要某些软件包、软件包版本以及内核参数微调,在系统上安装 Oracle Database 10g 或 11g之前,需要预先配置操作环境。
简化 Oracle Linux 5 上 Oracle Database11g 的安装
目录
1. 介绍适用于 Oracle Linux 的oracle-validated 的RPM
2. 安装 oracle-validated RPM
3. 配置目录,及设置目录的所有者所属组和权限
4.安装 Oracle Database
说明:鉴于本人能力有限,接触oracle没多久,在学习安装oracle时,发现安装oracle的测试环境时,很多问题是由于没有把oracle要求的rpm装完备,而导致后续的安装失败,我在学习了一些资料后发现试用本方法可以很快安装rpm包,也不会遗漏,特整理出来分享给大家,在编辑过程中不免存在一些问题,希望大家发现后不吝予以指出,我的邮箱是:lixora@foxmail.com , 本人非常愿意和那些对oracle感兴趣的同学交朋友,如果学习上有什么问题的话,非常愿意交流。
Version:2.0
Made by:lixora
Date:07.20.2012
1. 介绍适用于 Oracle Linux 的oracle-validated 的RPM
(这一部分可跳过不看,供感兴趣的朋友参考)
由于数据库需要某些软件包、软件包版本以及内核参数微调,在系统上安装 Oracle Database 10g 或 11g之前,需要预先配置操作环境。(一定要阅读相应的 Oracle Database 安装指南以便熟悉硬件、软件和操作系统要求。)在 Oracle Linux 上,我发现有一种非常轻松的办法可以让系统满足这些安装先决条件:首先安装一个名为 oracle-validated 的 RPM 软件包。此 RPM 执行一些预配置步骤,包括:
促使下载和安装数据库安装所需的各种软件包和特定版本,通过 yum 或 up2date功能来解析软件包依赖项
创建用户 oracle 和组 oinstall 及 dba,这些将在数据库安装期间使用
修改 /etc/sysctl.conf 中的内核参数以更改共享内存、信号、最大文件描述符数量等设置
设置 /etc/security/limits.conf 中的软硬 shell 资源限制,如锁定内存地址空间、打开的文件数量、进程数和核心文件大小
针对 x86_64 计算机,在内核中设置 numa=off
请注意,,oracle-validated 只是根据数据库安装的需要来分析现有的 /etc/sysctl.conf 和 /etc/security/limits.conf文件并更新值。所有与数据库安装无关的预自定义设置保持不变。
oracle-validated RPM 软件包可通过 Oracle Unbreakable Linux Network(ULN,它需要支持合同)、Oracle Linux 发行介质或 Oracle 公共 yum 信息库获取。因此,无论系统是否在 ULN 注册访问 Oracle 补丁和支持,您均可使用 oracle-validated 来简化 Oracle Linux 上的数据库安装。不过要记住,Oracle 公共 yum 信息库不会更新安全更新和错误修补,因此保持最新和安全的系统的最佳方式是使用 ULN 订阅。
备注:以 # 开头的为root用户,$ 为oracle用户
2.安装 oracle-validated RPM
本文其余部分将逐步介绍我通过 Oracle 公共 yum 信息库在 Oracle Linux 上安装 oracle-validated 的过程。我首先从一个运行适用于 x86_64 的 Oracle Linux 第 5 版 Update 7 的系统开始,这个 64 位版本的 Oracle Linux 是我从 Oracle 软件交付云(需要注册或登录)下载的。首先,设置一个 yum 配置文件,让其指向正确的信息库,然后从该信息库安装 oracle-validated RPM。
以下是针对 Oracle Database 安装使用 oracle-validated 对系统进行预配置的步骤:
1、挂载本地光盘到系统:把rhel6.2安装光盘放入光驱,在终端命令行下操作
#mkdir /media/oel #新建挂载目录
#mount /dev/cdrom /media/oel #挂载光盘到/media/rhel目录下
#cd /media/oel #进入挂载目录
#ls #查看挂载目录,光盘挂载成功
2、配置本地yum源
#cd /etc/yum.repos.d/ #进入yum配置目录
#touch oel-media.repo #建立yum配置文件
#vi oel-media.repo #编辑配置文件,添加以下内容
##########################
[oel-media]
name= oel5.8 #自定义名称
baseurl=file:///media/oel/Server #本地光盘挂载路径
enabled=1 #启用yum源,0为不启用,1为启用
gpgcheck=0 #检查GPG-KEY,0为不检查,1为检查
#gpgkey=file:///media/rhel/RPM-GPG-KEY-RedHat-release #GPG-KEY路,
##########################

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The retention period of Oracle database logs depends on the log type and configuration, including: Redo logs: determined by the maximum size configured with the "LOG_ARCHIVE_DEST" parameter. Archived redo logs: Determined by the maximum size configured by the "DB_RECOVERY_FILE_DEST_SIZE" parameter. Online redo logs: not archived, lost when the database is restarted, and the retention period is consistent with the instance running time. Audit log: Configured by the "AUDIT_TRAIL" parameter, retained for 30 days by default.

The function in Oracle to calculate the number of days between two dates is DATEDIFF(). The specific usage is as follows: Specify the time interval unit: interval (such as day, month, year) Specify two date values: date1 and date2DATEDIFF(interval, date1, date2) Return the difference in days

The Oracle database startup sequence is: 1. Check the preconditions; 2. Start the listener; 3. Start the database instance; 4. Wait for the database to open; 5. Connect to the database; 6. Verify the database status; 7. Enable the service (if necessary ); 8. Test the connection.

The INTERVAL data type in Oracle is used to represent time intervals. The syntax is INTERVAL <precision> <unit>. You can use addition, subtraction, multiplication and division operations to operate INTERVAL, which is suitable for scenarios such as storing time data and calculating date differences.

The amount of memory required by Oracle depends on database size, activity level, and required performance level: for storing data buffers, index buffers, executing SQL statements, and managing the data dictionary cache. The exact amount is affected by database size, activity level, and required performance level. Best practices include setting the appropriate SGA size, sizing SGA components, using AMM, and monitoring memory usage.

To find the number of occurrences of a character in Oracle, perform the following steps: Get the total length of a string; Get the length of the substring in which a character occurs; Count the number of occurrences of a character by subtracting the substring length from the total length.

The method of replacing strings in Oracle is to use the REPLACE function. The syntax of this function is: REPLACE(string, search_string, replace_string). Usage steps: 1. Identify the substring to be replaced; 2. Determine the new string to replace the substring; 3. Use the REPLACE function to replace. Advanced usage includes: multiple replacements, case sensitivity, special character replacement, etc.

Oracle database server hardware configuration requirements: Processor: multi-core, with a main frequency of at least 2.5 GHz. For large databases, 32 cores or more are recommended. Memory: At least 8GB for small databases, 16-64GB for medium sizes, up to 512GB or more for large databases or heavy workloads. Storage: SSD or NVMe disks, RAID arrays for redundancy and performance. Network: High-speed network (10GbE or higher), dedicated network card, low-latency network. Others: Stable power supply, redundant components, compatible operating system and software, heat dissipation and cooling system.
