Home Database Mysql Tutorial RedHat AS5下Oracle 10g数据库安装笔记

RedHat AS5下Oracle 10g数据库安装笔记

Jun 07, 2016 pm 04:57 PM
oracle redhat

Oracle 10g默认不支持RedHat AS5,不过也能装上去,下面只是简单记录一些安装过程:安装Linux把GCC等开发类的包装上,以减少安装

Oracle 10g默认不支持RedHat AS5,不过也能装上去,下面只是简单记录一些安装过程:

安装Linux把GCC等开发类的包装上,以减少安装时环境的配置。

针对Oracle配置Linux

创建ORACLE用户:

/usr/sbin/groupadd oinstall  /usr/sbin/groupadd dba  /usr/sbin/useradd -m -g oinstall -G dba oracle
创建目录:这里默认放在根目录,生产环境不建议。

mkdir -p /u01/app/oracle  mkdir -p /u02/oradata  chown -R oracle:oinstall /u01/app/oracle /u02/oradata  chmod -R 775 /u01/app/oracle /u02/oradata
设置一下Oracle用户的SHELL限制,提高安全性:

vi /etc/security/limits.conf 加入以下内容:

oracle soft nproc 2047  oracle hard nproc 16384  oracle soft nofile 1024  oracle hard nofile 65536
修改:

vi /etc/pam.d/login 加入以下内容:

session     required      /lib/security/pam_limits.so
用Oracle用户登录,修改用户变量,,设置Oracle安装目录及数据库名称:

vi .bash_profile  ORACLE_BASE=/u01/app/oracle;  export ORACLE_BASE  ORACLE_SID=demo1;  export ORACLE_SID
在Oracle登陆状态下创建目录:

mkdir 10g_db
将Oracle 10g安装包放在这个目录

备注,若是在ROOT下存放的安装文件,请把这个目录的权限给予Oracle。

chmod oracle -R 777 \10g_db
在Oracle登陆下执行:

$ ./runInstaller
欢迎
单击 Next。
指定清单目录和证书
如果您一直在依循本指南中的步骤,则使用默认值即可。否则,编辑清单目录的路径,以指向正确目录。
操作系统组名称应为 oinstall。
如果这是首次在此机器上安装 Oracle,则您将收到一个弹出窗口,提示需要以 root 用户身份运行 orainstRoot.sh 脚本。以 root 用户身份登录,更改到窗口中指定的目录,执行该脚本,然后继续操作。
指定文件位置
如果您一直在依循本指南中的步骤,则使用默认值即可。否则,在继续操作前确保源路径和目标路径正确。
选择安装类型
接受默认值 Enterprise Edition。
与特定产品相关的先决条件的检查
如果您一直在依循本指南中的步骤,则所有检查都应顺利通过。如果一个或多个检查失败,则在继续操作前纠正该问题。
选择数据库配置
接受默认值 Create a starter database 和 General Purpose。
指定数据库配置选项
输入数据库的全局数据库名称。该名称应包含 ORACLE_SID 和服务器域名(例如,demo1.orademo.org,其中 demo1 是 ORACLE_SID,orademo.org 是域名)。
输入全局数据库名称时,SID 框将自动填充。
接受默认的数据库字符集。
选择 Create database with sample schemas。
选择数据库管理选项
选择 Use Database Control for Database Management。
指定数据库文件存储选项
选择 File System,然后输入数据库文件要使用的路径名(在本例中为 /u02/oradata)。
指定备份和恢复选项
选择 Do not enable Automated backups。
指定数据库模式口令
选择 Use the same password for all the accounts。
选择一个口令,然后输入两次进行确认。
摘要
显示已安装产品的摘要。
单击 Install。
安装

此屏幕历经安装和链接 Oracle 软件的几个阶段。

安装过程结束时弹出一个窗口显示配置信息。记下 Enterprise Manager URL,然后单击 OK 关闭该窗口。
弹出一个“Setup Privileges”窗口,提示需要以 root 用户身份运行配置脚本。以 root 用户身份登录,切换到该窗口中指示的目录,然后执行 root.sh 脚本。该脚本提示输入本地 bin 目录的位置。按 Enter 键接受默认值。当脚本完成时,返回到 Setup Privileges 窗口并单击 OK。

启动数据库:

启动和停止 iSQL*Plus:

$ isqlplusctl start  $ isqlplusctl stop
启动和停止监听器:

监听器接受客户端的连接请求,并在验证证书后创建数据库连接。要使用 OEM 或 iSQL*Plus,必须先启动监听器。

$ lsnrctl start  $ lsnrctl stop
启动和停止数据库:

启动和停止数据库的最简单方法是从 OEM 控制台启动和停止。要从命令行执行此操作,请在以 oracle 身份登录后使用 SQL*Plus,如下所示:

启动:

$ sqlplus   SQL*Plus:Release 10.1.0.2.0 - Production on Sun Jun 13 22:27:48 2004   Copyright (c) 1982, 2004, Oracle.All rights reserved.   Enter user-name:/ as sysdba  Connected to an idle instance.   SQL> startup  ORACLE instance started.

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 尊渡假赌尊渡假赌尊渡假赌

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 long will Oracle database logs be kept? How long will Oracle database logs be kept? May 10, 2024 am 03:27 AM

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 order of the oracle database startup steps is The order of the oracle database startup steps is May 10, 2024 am 01:48 AM

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.

How much memory does oracle require? How much memory does oracle require? May 10, 2024 am 04:12 AM

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.

How to see the number of occurrences of a certain character in Oracle How to see the number of occurrences of a certain character in Oracle May 09, 2024 pm 09:33 PM

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.

Oracle database server hardware configuration requirements Oracle database server hardware configuration requirements May 10, 2024 am 04:00 AM

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.

How to read dbf file in oracle How to read dbf file in oracle May 10, 2024 am 01:27 AM

Oracle can read dbf files through the following steps: create an external table and reference the dbf file; query the external table to retrieve data; import the data into the Oracle table.

How much memory is needed to use oracle database How much memory is needed to use oracle database May 10, 2024 am 03:42 AM

The amount of memory required for an Oracle database depends on the database size, workload type, and number of concurrent users. General recommendations: Small databases: 16-32 GB, Medium databases: 32-64 GB, Large databases: 64 GB or more. Other factors to consider include database version, memory optimization options, virtualization, and best practices (monitor memory usage, adjust allocations).

Oracle scheduled tasks execute the creation step once a day Oracle scheduled tasks execute the creation step once a day May 10, 2024 am 03:03 AM

To create a scheduled task in Oracle that executes once a day, you need to perform the following three steps: Create a job. Add a subjob to the job and set its schedule expression to "INTERVAL 1 DAY". Enable the job.

See all articles