免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234
最近访问板块 发新帖
楼主: shizhi2829
打印 上一主题 下一主题

[系统安装] oracle 11g安装报错 [复制链接]

论坛徽章:
1
水瓶座
日期:2014-09-29 17:42:46
31 [报告]
发表于 2012-12-11 22:52 |只看该作者
回复 28# chenyx


   就是按照文档上装的文档上说的可以使高级版本啊如图 可是还是报错显示failed,我就无语了

论坛徽章:
1
水瓶座
日期:2014-09-29 17:42:46
32 [报告]
发表于 2012-12-11 23:02 |只看该作者
回复 30# chenyx


    我的电脑6g的内存,虚拟机2g的,但是现在报错就显示是swap不足,还有就是几个包失败,那几个包应该没问题的,我的都是高级版本的包,不管它了直接忽略,关键就是swap现在该怎么给它增大

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
33 [报告]
发表于 2012-12-12 09:36 |只看该作者
搜索下swapfile,做一个swapfile来充当swap

论坛徽章:
0
34 [报告]
发表于 2012-12-22 11:28 |只看该作者
不好意思,这段时间没有上论坛,对了,你把你的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/binPATHHOME/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


------------------------
希望对你有帮助。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP