RHEL6安装Oracle 11gR2
1 安装Oracle数据库软件1) 检查基本需求(mem:1024M,swap:mem*1.5.可以跳过)内存大小grep MemTotal /proc/meminfo交换分区大小g
1 安装Oracle数据库软件
1) 检查基本需求(mem:1024M,swap:mem*1.5.可以跳过)
内存大小
grep MemTotal /proc/meminfo
交换分区大小
grep SwapTotal /proc/meminfo
增加交换分区
创建/home/swap这么一个分区文件。文件的大小是5120000个block,一般情况下1个block为1K,所以这里空间是5G。
dd if=/dev/zero of=/home/swap bs=1024 count=5120000
接着再把这个分区变成swap分区。
mkswap /home/swap
然后把它加到fstab里面
echo “/home/swap swap swap defaults 0 0″ >> /etc/fstab
2) 检查软件需求
rpm -q binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc- gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel pdksh
没有安装的软件包可以从系统光盘中找到安装也可以yum install安装
pdksh
i386 pdksh-5.2.14-937.1.i586.rpm
x64 pdksh-5.2.14-937.1.x86_64.rpm
Linux公社本地下载地址:
免费下载地址在
用户名与密码都是
具体下载目录在 /pub/2011/09/30/RHEL6安装Oracle 11gR2/
需要注意的是在安装libaio-devel unixODBC unixODBC-devel 这3个软件包的时候,除了安装X64的包以为,还要安装i386的包,,不能因为是X64的系统,就不装i386的包了。
3) 配置内核
vim /etc/sysctl.conf
# Kernel Paramaters Required by Oracle 11gR2
kernel.shmmax = 4294967295
kernel.shmall = 268435456
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
执行sysctl -p更改立即生效
4) 创建操作系统用户,作为软件安装和支持组的拥有者。
groupadd dba
useradd -g dba oracle
passwd oracle
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
5) 为创建的oracle用户设定资源限制(利用PAM)
vim /etc/security/limits.conf
# Paramaters Required by Oracle 11gR2
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
为使限制生效
vim /etc/pam.d/login
# Required by Oracle 11gR2
session required /lib/security/pam_limits.so
session required pam_limits.so
注意:如果是X64的系统,那么这里就要用 /lib64/security/pam_limits.so,不然系统可能会在服务器上无法登录!

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 article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

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]

Article discusses strategies for handling large datasets in MySQL, including partitioning, sharding, indexing, and query optimization.

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

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.

Article discusses using foreign keys to represent relationships in databases, focusing on best practices, data integrity, and common pitfalls to avoid.

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.

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