CentOs 5.8安装Oracle10G数据库
1、使用YUM安装所属相关软件包yum install libgomp glibc-devel kernel-headers glibc-headers libstdc++-devel sysstatlibaio-devel gcc gcc-c++ elfutils-
libelf-devel-static libtermcap-devel unixODBC-devel libaio-devel compat-db compat-gcc-34 compat-gcc-34-c++ gdb libXp
libstdc++-devel
2、添加用户组
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/groupadd oper
3、添加oracle用户,并设置密码
/usr/sbin/useradd -g oinstall -G dba,oper oracle
passwd oracle
4、内核参数及脚本信息设置
配置内核参数/etc/sysctl.conf,添加条目如下:
fs.file-max = 6553600
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
通过sysctl -p使设置生效
编辑/etc/security/limits.conf文件,添加如下内容
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 10240
oracle hard nofile 65536
编辑/etc/pam.d/login文件,加入如下内容:
session required pam_limits.so
编辑/etc/profile文件,加入如下内容:
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
5、编辑/home/oracle/.bash_profile文件,添加如下内容:
#Oracle安装根路径
ORACLE_BASE="/opt/app/oracle"
export ORACLE_BASE
#Oracle安装目录
ORACLE_HOME=$ORACLE_BASE"/product/10.2.0/db_1"
#此SID在后面安装时需要填入和这里配置一样的
ORACLE_SID=orcl
export ORACLE_HOME ORACLE_SID
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export PATH
6、创建安装目录设置权限
mkdir -p /opt/oracle
chown -R oracle:oinstall /opt/oracle
7、修改/etc/redhat-release文件避免Oracle安装校验,内容如下:
redhat-4
8、切换oracle用户,安装数据库
#防止乱码
export LANG=en_US
执行/runInstaller进行安装
安装选择Advenced Installation,安装语言选择英文和简体中文。
建库选择只安装软件不建库,方便升级Pack后再建库,避免库表数据升级耗时操作。
9、修改/etc/redhat-release文件避免补丁安装校验,内容如下:
Red Hat Enterprise Linux Server release 5 (Tikanga)
10、切换oracle用户,安装补丁
#防止乱码
export LANG=en_US
执行/runInstaller进行安装
11、切换oracle用户,创建数据库,运行dbca,注意进程数及字符集等参数的设置。
http://hi.baidu.com/zuoguangde/blog/item/6b4e8b325d982286a8018e31.html 往前挤挤,没看的看一遍! moon38sun 发表于 2012-03-19 08:56 static/image/common/back.gif
往前挤挤,没看的看一遍!
谢谢支持 受教了。 看看,本人oracle新手,学习了 学习了~~~~~~~~~~~~~~~~~
Signature------------------------------------------------------
Where there is great love, there are always miracles.
nike free 3.0 v2
nike free run 2
nike lunarglide 3
页:
[1]