- 论坛徽章:
- 0
|
不好意思,这段时间没有上论坛,对了,你把你的tmps 的空间设置成至少1024M以上。好像对临时文件有大小要求。oracle10G的版本只支持到RHEL4,生产中建议安装官方认可的操作系统版本
如果是RHEL5需要修改一下系统中的版本识别文件
因为oracle安装包中的代码有检测操作系统的脚本
[root@dba mnt]# grep ^Linux install/oraparam.ini
Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2
[root@dba mnt]#
解决方法
root@dba mnt]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
[root@dba mnt]# vim /etc/redhat-release
[root@dba mnt]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 4.5 (Tikanga)
[root@dba mnt]#
软件包检查
for i in binutils compat-gcc-34 compat-libstdc++-296 control-center \
gcc gcc-c++ glibc glibc-common glibc-devel libaio libgcc \
libstdc++ libstdc++-devel libXp make openmotif22 setarch
do
rpm -q $i &>/dev/null || F="$F $i"
done ;echo $F;unset F
如果这个命令执行后有输出包名字 请向系统中补充
如果没有输出信息 则说明所需要的软件包已经都在系统中了
---------------------------------------------------
下面这些是我对环境变量的设置,你可以直接用
***********************
1 login OS as root:
# xhost +
2 Package Requirements
yum install -y binutils-* compat-libstdc++-* elfutils-libelf-* gcc-* glibc-* kernel-headers-2.6.18 ksh-20060214 libaio-* libgcc libgomp libstdc++* make sysstat unixODBC-*
3 Create the Oracle Groups and User Account
/usr/sbin/groupadd -g 800 oinstall
/usr/sbin/groupadd -g 801 dba
/usr/sbin/useradd -m -g oinstall -G dba oracle
id oracle
4 Create Directories
--与第8步里的oracle用户的环境变量里的ORACLE_HOME一致
mkdir -p /u01/app/oracle/product/11.2.0/db_1
chown -R oracle.oinstall /u01
chmod -R 775 /u01/app
5 Configuring the Linux Kernel Parameters
cat >> /etc/sysctl.conf <<EOF
#
## for oracle11g r2 install
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
EOF
/sbin/sysctl -p
6 Setting Shell Limits for the oracle User
Oracle recommends setting limits on the number of processes and open files each Linux account may use. To make these changes, cut and paste the following commands as root:
6.1
cat >> /etc/security/limits.conf <<EOF
# for oracle
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
6.2
cat >> /etc/pam.d/login <<EOF
# for oracle
session required /lib/security/pam_limits.so
EOF
7
#Change the default profile for bash and ksh as well as the default login script for cshell.
cat >>/etc/profile <<EOF
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
EOF
8
cat >> /home/oracle/.bash_profile <<EOF
# User specific environment and startup programs
export ORACLE_SID=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export PATH=$ORACLE_HOME/bin PATH HOME/bin
#export SQL_PATH='/home/oracle'
#export LD_LIBRARY_PATH=$ORACLE_HOME/lib
#alias sqlplus='rlwrap sqlplus'
#export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
#alias rman='rlwrap rman'
#alias dgmgrl='rlwrap dgmgrl'
#alias tailoraalert="$ORACLE_BASE/admin/$ORACLE_SID/bdump/alert_$ORACLE_SID.log"
EOF
#--ORACLE_BASE is the root directory for oracle.
#--ORACLE_HOME located beneath ORACLE_BASE is where the oracle products reside
$ORACLE_BASE for installation purpose only. oracle will use it to determine the optimal disk structure (oradata oraInventory product etc).
$ORACLE_HOME is usually $ORACLE_BASE/product/<oracle release version>it is the root directory where all kinds of oracle files resides. it is required for all oracle runtime operations and software maitainance.
********************************************
# xhost +
su - oracle
$ ./runInstaller
------------------------
希望对你有帮助。
|
|