Home  >  Article  >  Database  >  Linux下安装Oracle 10XE版

Linux下安装Oracle 10XE版

WBOY
WBOYOriginal
2016-06-07 16:55:39807browse

RedHat 5.2下安装Oracle 10g1、系统需求:内存:至少512mb,推荐用1g;硬盘:服务器至少60g;(一般情况下硬件都能符合要求)软件

RedHat 5.2下安装Oracle 10g

1、系统需求:
内存:至少512mb,推荐用1g;
硬盘:服务器至少60g;
(一般情况下硬件都能符合要求)
软件包:glibc-2.3.2, libaio-0.3.96
交换空间:
RAM: 0~256MB,   SWAP: 3 倍 RAM 大小
RAM: 256~512MB,  SWAP: 2 倍 RAM 大小
RAM: >=512MB,   SWAP: 1024 MB

安装依赖软件包
rpm –ivh libaio-0.3.96.i386.rpm
rpm –ivh glibc-2.3.2.i386.rpm
实际上要安装这两个软件包还需要安装其他一些软件,,具体的软件我都记录在已安装好的那台电脑中了;

创建 Oracle 组和用户帐户
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -m -g oinstall -G dba oracle
# id oracle
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)
设置 oracle 帐户的口令:
passwd oracle

创建目录
以 root 用户身份执行以下命令:
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

配置 Linux 内核参数
以 root 用户身份登录后执行下命令。
cat >> /etc/sysctl.conf kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
EOF

/sbin/sysctl -p

以 root 用户身份运行以下命令来验证设置:
/sbin/sysctl -a | grep shm
/sbin/sysctl -a | grep sem
/sbin/sysctl -a | grep file-max
/sbin/sysctl -a | grep ip_local_port_range
显示如下:
# /sbin/sysctl -a | grep shm
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shm-use-bigpages = 0
# /sbin/sysctl -a | grep sem
kernel.sem = 250        32000   100     128
# /sbin/sysctl -a | grep file-max
fs.file-max = 65536
# /sbin/sysctl -a | grep ip_local_port_range
net.ipv4.ip_local_port_range = 1024     65000

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