Chinaunix首页 | 论坛 | 博客
  • 博客访问: 361124
  • 博文数量: 100
  • 博客积分: 1894
  • 博客等级: 上尉
  • 技术积分: 951
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-11 23:17
文章分类

全部博文(100)

文章存档

2018年(3)

2014年(2)

2013年(7)

2012年(10)

2011年(8)

2010年(6)

2009年(63)

2008年(1)

分类: Oracle

2009-09-24 13:09:05

1.下载Oracle 10g 
10201_database_linux32.zip

2.安装必要的包
libiao
libXp

3.调整系统参数
A.vi /etc/sysctl.conf 添加如下内容后执行# sysctl -p
kernel.shmall = 2097152       #8G
kernel.shmmax = 2147483648    #2G(真实内存是1G)
kernel.shmmni = 4096          #use default
kernel.sem = 250 32000 200 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 = 524288
 
B. vi /etc/security/limits.conf 添加如下内容:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
 
C.vi /etc/pam.d/login 添加如下2行:
session required /lib/security/pam_limits.so
session required pam_limits.so
 
D.vi/etc/profile 添加如下内容后执行# source /etc/profile
if [ $USER = "oracle" ];then
if [ $SHELL = "/bin/bash" ];then
ulimit -p 16384
ulimit -n 65536
else
unlimit -u 16384 -n 65536
fi
fi

4.添加Oracle用户
 groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle

5.编辑Oracle用户环境变量
vi /home/oracle/.bash_profile 添加如下内容:
ORACLE_BASE=/opt/oracle;export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/10.2.0;export ORACLE_HOME ORACLE_SID=oracle;export ORACLE_SID
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
 
6.修改操作系统支持
unzip 0201_database_linux32.zip
cd database/install
vi oraparam.ini 找到如下内容
"Certified Versions" 在下面的行上加上:redhat-5 保存即可
7.安装
mkdir /opt/oracle (安装目录)#root执行
chown oracle:oinstall /opt/oracle -R
cd database
./runInstaller 在弹出的界面里选择高级安装,接下来一步一步安装即可

8.重启电脑后.启动oracle.
    # su - oracle
    $ lsnrctl start
    $ sqlplus '/ as sysdba'
    > startup

9.Linux 备份和恢复
       # xhost + IP
       $ dbca
       $ exp 按照提示做就OK  (备份)
       $ imp 按照提示做就OK  (恢复)

10.启动企业管理器
cd /opt/oracle/product/10.2.0.1/bin
emctl start dbconsole
      打开IE输入:  即可

11.客户端连接(Linux)
$ netmgr
阅读(1022) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~