Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1839212
  • 博文数量: 117
  • 博客积分: 2559
  • 博客等级: 少校
  • 技术积分: 4385
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-13 20:08
个人简介

作为初学者,要想取得进步,成为高手,首先应该了解自己的不足之处.

文章分类

全部博文(117)

文章存档

2014年(1)

2013年(25)

2012年(13)

2011年(77)

2010年(1)

分类: Oracle

2011-05-23 11:35:57

安装操作系统Linux,字符集设置为英文。 这样避免以后出现乱码的问题。
检查相关安装包
redhat 5下需要如下包, 这些包在安装操作系统的时候基本都安装了,不过要确认一下。 包的版本也有差别, 只要安装了就可以了。
binutils-2.17.50.0.6-2.el5
compat-db-4.2.52-5.1
compat-gcc-34-3.4.6-4
compat-gcc-34-c++-3.4.6-4
compat-libstdc++-33-3.2.3-61
compat-libstdc++-33-3.2.3-61(i386)
compat-libstdc++-296(i386)
gcc-4.1.1-52.el5.2
gcc-c++-4.1.1-52.el5.2
glibc-2.5-12
glibc-2.5-12(i386)
glibc-common-2.5-12
glibc-devel-2.5-12
glibc-devel-2.5-12(i386)
glibc-headers-2.5-12
libgcc-4.1.1-52.el5(i386)
libXp-1.0.0(i386)
libXt-1.0.2(i386)
libXtst-1.0.1(i386)
libaio-0.3.106-3.2
libaio-devel-0.3.106-3.2
libgcc-4.1.1-52.el5
libstdc++-4.1.1-52.el5.2
libstdc++-devel-4.1.1-52.el5.2
libgomp-4.1.1-52.EL5
make-3.81-1.1
numactl-devel-0.9.8.x86_64
sysstat-7.0.0-3.el5
这里要注意的是libXp sysstat 包。 2个包我装了好多次,都没有安装。
设置Shell Limits
  • 编辑/etc/security/limits.conf 文件,在该文件添加如下内容:
       oracle              soft    nproc   2047
       oracle              hard    nproc   16384
       oracle              soft    nofile  1024
       oracle              hard    nofile  65536
注意, 在这里设置之后,就不需要在去修改/etc/profile文件了。
for Oracle 11gR2
oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  1024
oracle              hard    nofile  65536
oracle              soft    stack   10240
修改/etc/pam.d/login 文件
在该文件添加如下内容:
session    required     pam_limits.so
配置Kernel Parameters
编辑/etc/sysctl.conf 文件. 添加如下参数:
# Controls the maximum shared segment size, in bytes --物理内存的一半
kernel.shmmax = 68719476736
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296  --物理内存除以pagesize
-- 以上2个参数,都已经存在, 只需要调整一下参数大小
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 327679 
net.core.rmem_default = 1048576
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
net.ipv4.ip_local_port_range = 9000 65500  -- 这个端口从9000开始
for 11gR2
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
注意:如果已经存在的值,大于这里的设置,就不要修改。
官网的描述表:
Parameter
 Minimum Value
 File
 
rmem_default
 262144
 /proc/sys/net/core/rmem_default
 
rmem_max
 2097152
 /proc/sys/net/core/rmem_max
 
wmem_max
 1048576
 /proc/sys/net/core/wmem_max
 
ip_local_port_range
 Minimum: 9000
Maximum: 65500
Note: Ignore any Oracle Universal Installer warnings related to this parameter.
 /proc/sys/net/ipv4/ip_local_port_range
 
aio-max-nr
Maximum: 1048576
Note: This value limits concurrent outstanding requests and should be set to avoid I/O subsystem failures.
 /sbin/sysctl
 
file-max
 327679
Note: If you have multiple databases on the same system or if you plan to consolidate multiple databases, then Oracle recommends using a higher value.
 /proc/sys/fs/file-max
添加用户组和用户,并为oracle用户设置密码
#groupadd oinstall
#groupadd dba
#groupadd oper
#useradd -g oinstall -G dba oracle
#passwd oracle
创建Oracle安装文件夹
mkdir -p /u01/app/oracle/product/10.2.0/db_1
chown -R oracle.oinstall /u01
chmod -R 777 /u01
设置oracle用户的环境变量
#vi /home/oracle/.bash_profile
--将如下代码添加到.bash_profile文件中:
# Oracle Settings
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=orcl; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
开始安装
版本问题,如果是redhat 5的话,就需要改一下版本参数。编辑/etc/redhat-release文件,注释掉原来的,在添加上redhat-4 如果不该文件,在安装的时候加上参数也行,如:
./runInstaller -IgnoreSysPreReqs
OUI 需要界面支持
使用Xmanager 工具或者是NoMachine工具都可以。 如果是用Xmanger,就需要指定一下DISPALY 变量,如: export DISPLAY=192.168.6.168:0.0
Nomachine 直接连接过去就可以了。 这个是远程桌面。 用起来也方便。 参考:
远程桌面工具 -- NoMachine
参考
http://blog.csdn.net/tianlesoftware/archive/2010/11/11/6003610.aspx
阅读(3853) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~