Chinaunix首页 | 论坛 | 博客
  • 博客访问: 344069
  • 博文数量: 94
  • 博客积分: 1500
  • 博客等级: 上尉
  • 技术积分: 1020
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-11 09:23
文章分类
文章存档

2011年(76)

2010年(18)

分类: Oracle

2011-05-25 16:57:18

(一)硬件需求
1.物理内存  至少1GB at least 1GB (1048576.0KB) of total physical memory.
  #free -m

2.虚拟内存
  内存:1G~2G  1.5倍
  内存:2G~8G  1倍
  内存:大于8G  0.75倍

 增加虚拟内存:
 1)新建一个分区:fdisk /dev/sda
 2)mkswap /dev/sdaN
 3)swapon /dev/sdaN

3.tmp目录至少400M

4.设置静态IP

(二)安装步骤
1.
安装软件包
The following packages (or later versions) must be installed:
#yum install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel  gcc gcc-c++  glibc glibc-common glibc-devel glibc-headers ksh libaio libaio-devel libgcc libstdc++ make numactl-devel sysstat iostat


binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
numactl-devel-0.9.8.x86_64
sysstat-7.0.2

2.
vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586

# /sbin/sysctl -p

3.
/etc/security/limits.conf
oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  1024
oracle              hard    nofile  65536
oracle              soft    stack   10240

Enter the command /sbin/sysctl -a to confirm that the values are set correctly.


*********************************************************
4.
#groupadd oinstall
#groupadd dba #useradd -g oinstall -G dba oracle#passwd oracle


5. 目录
1)软件基目录 Oracle Base Directory

mkdir -p /home/oracle/oracle/

以下2)、3)目录无需创建,只要在.bash_profile里指定路径就行了。


2)软件安装目录Oracle Inventory Directory

/home/oracle/oracle/oraInventory

3)Oracle Home Directory

$oracle_base/product/11.2.0/dbhome_1

6. #xhost +

su - oracle
1)
vi .bash_profile
TMP=/tmp;export TMP
TMPDIR=$TMP;export TMPDIR
ORACLE_BASE=/home/oracle/oracle;export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1;export ORACLE_HOME
ORACLE_SID=steel;export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH



source .bash_profile

---------------------------------------
4.
mkdir /u01
mkdir /u01/app/app
mkdir /u01/app/oracle

5.
#groupadd oinstall
#groupadd dba #useradd -g oinstall -G dba -d /u01/app/oracle oracle#passwd oracle
#chown -R oracle.oinstall /u01

6. #xhost +

export DISPLAY=local_host:0.0
echo $DISPLAY
$ xhost + fully_qualified_remote_host_name

例:在192.168.1.22上通过secureCRT连接远程服务器192.168.1.133安装数据库
在192.168.1.22 打开xpassive
[root@localhost ~]# export DISPLAY=192.168.1.22:0.0
[root@localhost ~]# xhost +
access control disabled, clients can connect from any host

su - oracle
1)
vi .bash_profile
TMP=/tmp;export TMP
TMPDIR=$TMP;export TMPDIR
ORACLE_BASE=/u01/app/oracle;export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;export ORACLE_HOME
ORACLE_SID=steel;export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH



source /u01/app/oracle/.bash_profile
*******************************************************************

2)
$unzip linux.x64_11gR2_database_1of2.zip
$unzip linux.x64_11gR2_database_2of2.zip
3)
install software and create database

$./database/runInstaller
阅读(1632) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~