search
HomeDatabaseMysql TutorialRed Hat Linux下安装Oracle 10g中先决条件检测中遇到的问题

Red Hat Linux下安装Oracle 10g中先决条件检测中遇到的问题:警告:内存的交换空间不够,有提示需要到少m,已经有多少m。需求待验

在Red Hat Linux下安装Oracle 10g中先决条件检测中遇到的问题是:

1.警告:内存的交换空间不够,有提示需要到少m,已经有多少m。

参照以下办法:(增加交换分区)

1)增加2G的交换分区
[root@localhost ~]#mkdir /root/swap

2)添加交换文件并设置其大小为2G,使用如下命令
[root@localhost ~]# dd if=/dev/zero of=/root/swap/swap bs=1024 count=2048000
读入了 2048000+0 个块
输出了 2048000+0 个块

3)创建(设置)交换空间,使用命令mkswap
[root@localhost ~]# mkswap /root/swap/swap
Setting up swapspace version 1, size = 2097147 kB

4)检查现有的交换空间大小,使用命令free
[root@localhost ~]# free -m
或者
[root@localhost ~]#grep SwapTotal /proc/meminfo

5)启动新增加的2G的交换空间,使用命令swapon
[root@localhost ~]#swapon /root/swap/swap

6)确认新增加的2G交换空间已经生效,使用命令free
[root@localhost ~]# free -m

7)修改/etc/fstab文件,,使得新加的2G交换空间在系统重新启动后自动生效
在文件最后加入:
/root/swap/swap    swap      swap defaults 0 0

2.需求待验证,提示如下:

正在检查网络配置需求...
检查完成。此次检查的总体结果为: 未执行 建议方案: Oracle 支持在具有 DHCP 分配的公共 IP 地址的系统上进行安装。但应使用静态 IP 地址来配置系统的主网络接口, 以便 Oracle 软件正常工作。有关在配置有 DHCP 的系统上安装软件的详细信息, 请参阅 Installation Guide。

解决办法:

      1)手动设置静态IP地址(其实就是把DHCP服务器分配给你的IP地址在这里写一下)
  2)编辑hosts文件(没错Linux下同样也有hosts文件,跟Windows下hosts文件的作用一样,谁模仿的谁不太清楚)
  # vi /etc/hosts    hosts文件里通常情况下已经有了一行(hosts文件内格式:IP 主机名 别名):
  “127.0.0.1
  localhost.localdomain
  localhost”

将其改成:60.176.38.13 localhost.localdomain localhost

其中的60.176.38.13是你的ip,可以通过

查看得到

(DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=60.176.38.13
NETMASK=255.0.0.0
GATEWAY=60.255.255.254)

然后依次按:esc——shift+:——w——q——回车这个修改是即时生效的,这时再重新安装Oracle试一下,应该就不会再报DHCP的问题了。

Linux下查看机器的主机名命令:
# hostname

之后重新测试就功德圆满了~~~

Red Hat Linux下安装Oracle 10g中先决条件检测中遇到的问题

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
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]

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.

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 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.

How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)?How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)?Mar 18, 2025 pm 12:00 PM

Article discusses securing MySQL against SQL injection and brute-force attacks using prepared statements, input validation, and strong password policies.(159 characters)

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 Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

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

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.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

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),