Home Database Mysql Tutorial RHEL4下安装32位Oracle 10G

RHEL4下安装32位Oracle 10G

Jun 07, 2016 pm 04:53 PM
oracle number

一、系统要求1、至少1G物理内存;检查命令:# grep MemTotal /proc/meminfo2、交换空间的设置;检查命令:# grep SwapTotal /pro

一、系统要求
1、至少1G物理内存;检查命令:# grep MemTotal /proc/meminfo
2、交换空间的设置;检查命令:# grep SwapTotal /proc/meminfo
实际内存 建议交换空间大小
-------------- -----------------------------
不超过1G 2倍于内存
1G-2G 1.5倍于内存
2G-8G 与内存相同
超过8G 0.75倍于内存
3、/tmp目录至少400M空闲空间;检查命令:# df -k /tmp
4、Oracle软件所需空间至少3G;检查命令:# df -k
5、数据库文件所需空间1.2G左右;检查命令:# df -k
6、确认系统架构(主要确认是装32bit还是64bit版本);检查命令:# grep "model name" /proc/cpuinfo
7、确认Linux版本;检查命令:# more /etc/issue
8、确认Linux内核;检查命令:# uname -r

二、准备工作
检查安装oracle10g的依赖包是否存在,如没有则安装
# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})n' binutils compat-db compat-libstdc++-296 control-center gcc gcc-c++ glibc glibc-common gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver setarch
应该包含下列的包:
---------------------------------------------------------------------------
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
注意:RedHat AS4U2 x86默认安装的是binutils-2.15.92.0.2-15.x86_64.rpm,据称此版本会引起oracle安装失败!应另外下载binutils-2.15.92.0.2-13.0.0.0.2.x86_64.rpm
下载请到:
下载完成后执行下列命令安装:
#rpm -Uvh --force binutils-2.15.92.0.2-13.i386.rpm
compat-oracle-rhel4-1.0-5.i386.rpm网上也推荐安装,我想有总比没有强顺手也装上了。如果你安装不成功,可以下载这个包装上试试,安装这个包可能会关联到其它软件包,需要按照提示一并安装。

三、配置安装环境
1、配置核心参数。
1). # vi /etc/sysctl.conf ,将下列内容加入该文件。
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
注:一般而言我们只需要修改kernel.shmmax这个值,该参数应该是物理内存的一半(字节)
编辑完之后存盘退出,然后运行下列命令重新加载并验证参数是否正确:
#sysctl -p
2). # vi /etc/security/limits.conf ,将下列内容加入该文件。
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
3). # vi /etc/pam.d/login ,将下列内容加入该文件
session required /lib/security/pam_limits.so
session required pam_limits.so
4). # vi /etc/selinux/config 确保存在以下内容。
SELINUX=disabled
2、创建相关目录,用户,组等
# groupadd dba
# groupadd oinstall
# useradd -g oinstall -G dba -m oracle
# passwd oracle
## 创建用户和组完成,下面创建目录,目录位置你根据自己情况定吧,,注意磁盘的空闲空间。这里我们创建到opt目录下。
# mkdir /opt/ora10g
# mkdir /opt/ora10g/product
# mkdir /opt/ora10g/oradata
# chown -R oracle.oinstall /opt/ora10g
3、配置oracle用户的环境变量
# su - oracle
$ vi .bash_profile
##--------------------------------------
## Set for Oracle10g Install |
##--------------------------------------
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/opt/ora10g
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=jsstts
export ORACLE_TERM=xterm
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64:/usr/X11R6/lib64/
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export LD_ASSUME_KERNEL=2.6.9
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
umask 022
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
##------------------- Set Over

四、安装ORACLE10GR2
终于要开始安装了,以oracle用户启动到视窗状态,打开一个终端。
$ cd /opt/orasetup/database
$ ./runInstaller

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

Video Face Swap

Video Face Swap

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

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 to check tablespace size of oracle How to check tablespace size of oracle Apr 11, 2025 pm 08:15 PM

To query the Oracle tablespace size, follow the following steps: Determine the tablespace name by running the query: SELECT tablespace_name FROM dba_tablespaces; Query the tablespace size by running the query: SELECT sum(bytes) AS total_size, sum(bytes_free) AS available_space, sum(bytes) - sum(bytes_free) AS used_space FROM dba_data_files WHERE tablespace_

How to view instance name of oracle How to view instance name of oracle Apr 11, 2025 pm 08:18 PM

There are three ways to view instance names in Oracle: use the "sqlplus" and "select instance_name from v$instance;" commands on the command line. Use the "show instance_name;" command in SQL*Plus. Check environment variables (ORACLE_SID on Linux) through the operating system's Task Manager, Oracle Enterprise Manager, or through the operating system.

How to encrypt oracle view How to encrypt oracle view Apr 11, 2025 pm 08:30 PM

Oracle View Encryption allows you to encrypt data in the view, thereby enhancing the security of sensitive information. The steps include: 1) creating the master encryption key (MEk); 2) creating an encrypted view, specifying the view and MEk to be encrypted; 3) authorizing users to access the encrypted view. How encrypted views work: When a user querys for an encrypted view, Oracle uses MEk to decrypt data, ensuring that only authorized users can access readable data.

How to uninstall Oracle installation failed How to uninstall Oracle installation failed Apr 11, 2025 pm 08:24 PM

Uninstall method for Oracle installation failure: Close Oracle service, delete Oracle program files and registry keys, uninstall Oracle environment variables, and restart the computer. If the uninstall fails, you can uninstall manually using the Oracle Universal Uninstall Tool.

How to delete all data from oracle How to delete all data from oracle Apr 11, 2025 pm 08:36 PM

Deleting all data in Oracle requires the following steps: 1. Establish a connection; 2. Disable foreign key constraints; 3. Delete table data; 4. Submit transactions; 5. Enable foreign key constraints (optional). Be sure to back up the database before execution to prevent data loss.

How to solve the problem of closing oracle cursor How to solve the problem of closing oracle cursor Apr 11, 2025 pm 10:18 PM

The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

How to check invalid numbers of oracle How to check invalid numbers of oracle Apr 11, 2025 pm 08:27 PM

Oracle Invalid numeric errors may be caused by data type mismatch, numeric overflow, data conversion errors, or data corruption. Troubleshooting steps include checking data types, detecting digital overflows, checking data conversions, checking data corruption, and exploring other possible solutions such as configuring the NLS_NUMERIC_CHARACTERS parameter and enabling data verification logging.

How to create cursors in oracle loop How to create cursors in oracle loop Apr 12, 2025 am 06:18 AM

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

See all articles